Tagged Questions
0
votes
0answers
36 views
Debugging Apache/Django/WSGI Bad Request (400) Error
My simple Django app worked fine in debug mode (manage.py runserver), and works under WSGI+Apache on my dev box, but when I pushed to EC2 I began receiving intermittent (10-80% of the time) errors of ...
0
votes
0answers
15 views
How can I generate URLs for uploaded files on my machine? (deployed Flask on Apache2 Debian)
In a Flask python function, I want to take a saved file and figure out the URL for it so I can input it into the Google Docs Viewer. So if I save 'test.pdf', it might return ...
1
vote
0answers
34 views
Flask & mod_wsgi app causing ports to stop working
My Flask and mod_wsgi app seems to be breaking ports. Every month or so my page will stop loading and I get a "Google Chrome could not connect to " message, but moving it to a new port fixes it. ...
0
votes
0answers
12 views
Intermittent module import failure in Apache CGI Python script
I've got a Python script which I'm running as a CGI script under Apache. The script calls a module which successfully imports without errors normally, however when the script is run by Apache, it ...
0
votes
1answer
22 views
Flask (on apache mod_wsgi) returns BuildError
I have a problem with Flask on my web-server (apache with mod_wsgi):
[Sat Nov 30 20:19:45 2013] [error] ERROR:app:Exception on / [GET]
[Sat Nov 30 20:19:45 2013] [error] Traceback (most recent call ...
-5
votes
0answers
21 views
Publish site to lan on mac [on hold]
i've been trying for a long time to host my site to my home network. I've got a mac running osx mavericks 10.9. I know about the built in Apache and Python servers, but they just don't work. Do any of ...
0
votes
1answer
21 views
Mac OS deploy Django + Apache on Amazon EC2
I am trying to deploy Django and Apache to Amazon EC2 server. Currently, i have already got the AWS account and lunched the instance on server. But the problem is that i cannot find a tutorial about ...
0
votes
1answer
33 views
Analyzing high WSGI/Response time data of django with mod_wsgi on NewRelic
Project deployment as: django with apache mod_wsgi
Got New Relic lite version configured to track web performance.
On the New Relic -> Monitoring -> Web transactions panel -> Sort on Most time ...
0
votes
1answer
66 views
Why is my Python script giving me an error every time it runs?
I checked the server logs and I can't seem to find anything that explains why it's doing this. Every time I load the page I get a "500 Internal Server Error" message. All I'm trying to do is update a ...
0
votes
1answer
20 views
Apache + web.py application timing out
I have a web.py application which I recently got to work with Apache using mod_wsgi. Everything worked till a few hours back.
Later when I decided to revisit the application it had stopped working. ...
1
vote
1answer
24 views
Apache Pig - Jython UDF Memory Error
I'm using Jython to write my Python UDF in pig but I'm encountering memory issues when the input to my UDF is massive (i.e. it exceeds the memory allocated to my JVM). In the Pig documentation, ...
0
votes
1answer
43 views
WSGIScriptAlias being ignored
I am deploying Django project and having an issue.
When accessing the website via / route there's You don't have permission to access / on this server. And when I'm accessing it directly via ...
0
votes
3answers
47 views
UnicodeEncodeError with django: inconsistent behavior
I deployed a project on webfaction with djanog. All went fine until recently, when all of a sudden I started to get this error: UnicodeEncodeError: 'ascii' codec can't encode characters in position ...
0
votes
0answers
56 views
Scalability of a django app in 2014?
This is more an update to this thread: Does Django scale?
Since it's not very clear and seemingly a popular question that people want to know, let's say I have an idea for an app, and I have a ...
0
votes
1answer
23 views
Web.py not working with Apache using mod_wsgi
I am trying to get web.py to work with Apache. I'm following the instructions here: Web.py + Apache with mod_wsgi
This is what my httpd.conf looks like right now:
LoadModule wsgi_module ...
0
votes
0answers
25 views
python apache2 raspberry pi installation
I have tried using several articles ( and a week ) to setup Raspberry pi with apache2 and python for use on the web. So far there has been no results. I have python working on the command line along ...
0
votes
1answer
55 views
django-debug-toolbar appears, but is empty (panels are not populating)
Almost all of the time when I load my site the debug toolbar is empty like this:
http://imgur.com/fj49NHX
I have made the following configurations in my projects settings.py
DEBUG = True
...
0
votes
1answer
52 views
Calling exe in Windows from Linux
Background knowledge: Website in Django run under apache.
Briefly speaking, I need to call an .exe program in a windows machine from a Linux machine.
The reason for this is our website runs on ...
0
votes
0answers
30 views
Django dev server works, apache not
i have such url.conf
from django.conf.urls import patterns, include, url
urlpatterns = patterns('',
url(r'^test/', 'ask.views.index'),
)
and view
def index(request):
...
0
votes
1answer
20 views
How Apache Solr works with Django 1.5?
I am new on Django framework. So please help me work with solr and Django.
I am trying with some tutorial available on different site but all worked with older versions of Django and Apache Solr those ...
0
votes
1answer
44 views
Django get environment variables from apache
I cannot seem to get Django to read the settings I configure from the environment variables. I have followed some guides online, and found some other questions, and as a result have tried configuring ...
0
votes
1answer
34 views
Internal Server Error with very simple python script
I'm new to python, and i'm trying to run a simple script (On a Mac if that's important).
Now, this code, gives me Internal Server Error:
#!/usr/bin/python
print 'hi'
But this one works like a ...
0
votes
1answer
55 views
Django deployment with Apache on AWS — Directory Structure
I have a django app with the following structure
web/
manage.py
settings.py
wsgi.py
urls.py
/subapp1/
/subapp2/
When deployed on the development server runserver, everything links ...
0
votes
2answers
34 views
Difference between wsgi.py and django.wsgi
I am trying to serve my webpages using Apache and was wondering the difference between wsgi.py and django.wsgi.
There is documentation on both but I'm not sure which one I should implement. I am ...
1
vote
1answer
100 views
CherryPy: Exception handling help needed
I have a html.app that ask asynchronously for its JSON data model from CherryPy Backend. The size of JSON data is somewhat large 1.74 MB. It takes about 1 sec to load and render the data. The app ...
0
votes
1answer
24 views
Automatic “<!--: spam” tag from Apache?
i have a realy strange problem.
I try to display a relativly huge table (ca. 100 rows) from a database with a python script.
It worked perfectly on my computer via XAMPP but when i test in on my ...
1
vote
1answer
63 views
Apache to serve Django project on EC2 instance — 500 Internal Server Error
I am trying to deploy my Django project on AWS and have Apache serve up my webpages. I am able to deploy the webpages using runserver but I want this to become a production server --thus I want to use ...
2
votes
1answer
32 views
Ignore `/static` when URL pattern absorbs it
I am serving my static files at example.com/static/. I am also using the following url pattern in my root url conf (pointed at example.com) which absorbs everything in order to include some things at ...
0
votes
1answer
31 views
mod wsgi using apache and python
I have used mod_wsgi to create a web server that can be called locally. Now I just found out I need to change it so it runs through the Apache server. I'm hoping to do this without rewriting my whole ...
0
votes
1answer
39 views
Apache - Running Long Running Processes In Background
Before you go any further, I am currently working in a very restricted environment. Installing additional dll's/exe's, and other admin like activities are frustratingly difficult. I am fully aware ...
0
votes
1answer
22 views
pyton cgi script always got 403 forbidden with apache2 2.4.6
work environment: Ubuntu 13.10 saucy, apache2 2.4.6
I have a python script in /usr/lib/cgi-bin and I use it as a proxy for convert internal url to external. it works great with apache 2.2 but always ...
0
votes
1answer
51 views
SimpleHTTPServer code 404, message File not found
I am trying to run a simple d3 Javascript program to visualise a graph. I also have a JSON file for this graph. In order to get the program run, I was told that I should follow the following steps:
...
1
vote
1answer
50 views
Django wsgi error on Apache
When i tried to run Django 1.5 on Apache 2.2, Windows server 2008 R2 and Python 3.3, It give me this error, i think there is problem in wsgi.py, but i dont now where:
This is error in Apache:
[Sun ...
1
vote
1answer
37 views
Configuration error in Apache
When i created server In Apache 2.2 on Windows Server 2008, Python 3.3 and Django 1.5. It give me this error why?
This is in my conf:
WSGIScriptAlias / D:/Rocnikova_prace/mysite/mysite/wsgi.py
...
0
votes
2answers
39 views
Python 2.6.6 Ubuntu Server os.environ not unicode
I'm trying to write a simple chat system that accepts various languages and translates them automatically, printing both the original language and a second language (e.g, English) next to it.
But, ...
0
votes
0answers
16 views
Add CSRF token to cookie, python cgi
Apache modsecurity is warning of missing CSRF tokens on requests for web pages on my demo (Ubuntu) server.
The local time and the cookie string on a python cgi form print on submit as:
local time: ...
0
votes
2answers
168 views
Ubuntu - Python - Apache2 - Mod_WSGI - Django: No module named / TypeError / TemplateSyntaxError / 'str' object is not callable
EDIT: I may have included way too much information but I noticed that in urls.py if I change the name to a non-existant project or app I get the No module named error, but if it is changed to one of ...
0
votes
1answer
39 views
Django Change Root URL
I am trying to complete the Django starter tutorial.
I have the site working fine on the django test web server. I am trying to get it working on Apache.
I have setup Apache so ...
3
votes
2answers
44 views
Unable to retrieve value over a query object
report_qs = CustomReport.objects.filter(id=report_id)
report_qs store below output
Output:
{
"Locator__employer_state": "AR",
"data_model_name": [
"Locator",
...
1
vote
1answer
77 views
Flask facebook canvas app - 405 method not allowed
I am fairly new to web development and Python, trying to make a facebook app using python flask. Found some code in this tutorial that I am using to get started: ...
0
votes
1answer
69 views
Apache user permission
I have an Apache server installed which exposes a website written in PHP that I have been working on. One of the functions of the website is to insert new data into a MySQL database. When data is to ...
0
votes
1answer
50 views
Django REST API TemplateDoesNotExist Apache
I am trying to do the this tutorial for the Django REST API Framework.
When testing using my Apache setup I get this error when trying to browse the pages:
TemplateDoesNotExist at /
...
-1
votes
1answer
56 views
How to execute python script on webserver? [closed]
I have a python script which downloads images from a website(call it a image crawler), I want to execute this script on my webserver at my hosting site. I want to execute it on a regular basis, how to ...
0
votes
2answers
36 views
Stress test on Django makes it slow while there are free system resources
Today I was doing a stress test to a new Django (1.5.4) running on an Ubuntu Server 12.04 site before going into production and I've found some unexpected results:
Doing 50 requests per second, htop ...
2
votes
1answer
45 views
Requested URL not found with mod_wsgi in Django
I am trying to get django to work on apache with mod_wsgi. My djang.wsgi code is:
import os, sys
sys.path.append('C:/djcode/mysite')
os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
import ...
0
votes
2answers
66 views
django 500.html on prodserver not showing up - instead 500 Internal Server Error
I am deploying django page and finally it is up running, but 500 template is not found in production server and i am getting this error in var/log/apache2/error.log:
raise TemplateDoesNotExist(name)
...
1
vote
2answers
35 views
Issue with path to python/pythonpath
I have a VPS with system-wide installed python 2.5.
I installed python 2.7 to one of the user's home dir (using --prefix). added it to bashrc and bash_profile, exported python variable to env, and ...
0
votes
1answer
29 views
How could I add apache asp and python (on linux not windows)?
I currently have a Linux server with Apache::ASP installed that uses Perl.
Is it possible to create an Active Server Page on a Linux Apache Server using Python (in lieu of Perl)?
I have seen an IIS ...
2
votes
3answers
70 views
Weird, inconsistent behavior using Apache and multiple Django sites
I have two mod_wsgi django sites and four domain names. Two domains point to each site. When I visit my two sites using all four domains in chrome, they all work fine. But only most of the time. ...
2
votes
2answers
172 views
Trouble running python script as cgi under apache (ubuntu 12)
Disclosure: I searched a lot, and I don't think my question (for my configuration) is answered here. For example
run python script as cgi apache server
doesn't answer it.
So:
I have a simplest ...