0
votes
1answer
32 views

uwsgi, multiple environment variables

I am using uWSGI to run a Django application on nginx. I have configured the server and all seems to be running well. What I would really like to be able to do is store the django secret key within ...
0
votes
1answer
110 views

Target WSGI script not found or unable to stat [closed]

This problem has tortured me for days. I am using Apache, WSGI and django on my Raspberry Pi. Operating system is Raspbian. Everything is okay except this error from apache. [error] [client ...
1
vote
1answer
87 views

Django WSGI application in a subdirectory?

Recently, I wanted to put one of my WSGI applications into a subdirectory, so that the other directories that cointain various scripts would work as before. In order to do that, I added the following ...
2
votes
1answer
60 views

Django + Apache + mod_wsgi: Why is wsgi script executed multiple times?

I'm relatively new to all the server technology and I followed this tutorial to deploy my django app on an Apache Webserver, using mod_wsgi: ...
0
votes
0answers
75 views

Apache suddenly starts redirecting to bogus URL

I've been having a strange problem on a server I'm administering. After a certain amount time, without doing any change on the server, it suddenly starts redirecting to the main url plus some url info ...
0
votes
1answer
410 views

Apache mpm worker + wsgi Python/Django workers stuck

Our Apache+Django server has the problem that workers get stuck. It's an mpm worker model, and after some time, each process that serves some dozen worker threads has all its workers frozen: # ...
0
votes
1answer
67 views

Deploying django for lot of sites with low traffic [duplicate]

Possible Duplicate: Can you help me with my capacity planning? I am looking for advice for our web server configuration. SaaS model startup (same app, different databases and subdomains). ...
1
vote
2answers
1k views

gunicorn + django + nginx unix://socket failed (11: Resource temporarily unavailable)

Running very high volume traffic on these servers configured with django, gunicorn, supervisor and nginx. But a lot of times I tend to see 502 errors. So I checked the nginx logs to see what error and ...
0
votes
1answer
130 views

Different settings for secure & non-secure versions of Django site using WSGI

I have a Django website where some of the URLs need to be served over HTTPS and some over a normal connection. It's running on Apache and using WSGI. Here's the config: <VirtualHost ...
0
votes
1answer
45 views

Serve PHP page mapped as part of Django's (Python's) virtualhost

I have a question similar to this: Apache : Map one virtualhost to a subdirectory of another virtualhost Except mine is about serving PHP within Django's domain like that: example.com serves ...
1
vote
2answers
1k views

How to run Django 1.3/1.4 on uWSGI on nginx on EC2 (Apache2 works)

I am posting a question on behalf of my administrator. Basically he wants to set up Django app (made on Django 1.3, but will be moving to Django 1.4, so it should not really matter which one of these ...
2
votes
1answer
877 views

Graphite not running

I'm currently trying to install graphite 0.9.9 on a gentoo box using these instructions from the graphite wiki. Essentially, it fronts graphite using apache and mod_wsgi. Everything seems to have ...
0
votes
0answers
297 views

Wsgi script time out in amazon ec2

I have a django site in an amazon ec2 m1.small instance. Last night it started to throw the following error: [Thu Dec 22 15:22:09 2011] [error] [client 190.21.7.178] Script timed out before ...
1
vote
1answer
202 views

Access content via a LAN connected machine which is Django-WSGI-Apache configured

I configured my system to be able to deploy Django stuff using Apache on my machine(Ubuntu 11.10).I followed the instructions given at ...
0
votes
1answer
174 views

Best place to host a moderately CPU intensive Django WSGI app

I recently made a web app with Django, and (in development mode, where I've been using it), it works great. I'm an academic and need to quickly find hosting for my app somewhere so that I can submit ...
1
vote
0answers
113 views

Django - can't get production web server running

I'm trying to deploy a Django app in production, on an apache server, using mod-wsgi. mod-wsgi is installed and working fine. When I run the Django server, it launches fine, but I can't access it on ...
1
vote
1answer
54 views

How to configure Apache WSGI for Python to serve only non-existing files?

I would like to setup Django with WSGI and Apache on root (/) of the website, but I would like that Apache servers through WSGI (and Django) only those URLs which do not have corresponding file to ...
0
votes
1answer
859 views

How can I track down a memory leak with wsgi, django, php and apache2?

I'm running 3 separate virtualhosts for my website (Django w/ wsgi for the main site, another Django w/ wsgi for the mobile version of the site, and a 3rd for Wordpress serving as the site's blog). ...
3
votes
1answer
3k views

Python/Django/WSGI/Apache - “ImportError: No module named site”

I am trying to use a django application on my local ubuntu machine. However the site doesn't work and my /var/log/apache2/errors.log is filled with messages like this: ImportError: No module named ...
0
votes
1answer
904 views

uWSGI Virtualhost mode with touch-reload

So far I have been experimenting with uWSGI to replace a lot of kludgy server code that builds and does setup for Python wsgi applications under supervise. I am running dozens of these small projects ...
3
votes
2answers
914 views

Attempting to run Django with start Apache2 mod_wsgi on Ubuntu Lucid Lynx without success

I have a small vps with a minimum install of ubuntu lucid-lynx with about 256mb memory, it's newly installed with nothing special running on it. I'm trying to deploy django to it, while I'm ...
3
votes
0answers
2k views

Apache/wsgi “Script timed out before returning headers”

I have a custom Django app that's becoming unresponsive roughly every 5,000 requests. In the apache logs, I see see the following: Apr 13 11:45:07 www3 apache2[27590]: **successful view render here** ...
2
votes
2answers
1k views

How do I get Apache to run Python 2.7 rather than 2.5?

How do I get Apache to run 2.7 rather than 2.5? I'm configuring Apache to use mod_wsgi with Django and Python 2.7, but error logs show Apache is using Python 2.5.2 and can't find ...
2
votes
1answer
826 views

Mutli-Site uWSGI config

I have about a dozen small Django sites I want to run using Nginx and uWSGI. They are on a 4-core server with 8 gigs of ram. Should each site be configured on its own socket and how can I control the ...
0
votes
2answers
402 views

How to speed up request/response to django using apache or another solution?

I'm mainly a developer, but every now and again I jump into the sys-admin position. For the most part I've gotten away with deploying php and python apps using apache. I write today because I'm ...
3
votes
1answer
2k views

Nginx + Django + FastCGI WSGI error? (Non fatal)

Hi everyone I am running django on top of nginx with fastcgi. When i do runfcgi, I am seeing these errors: python manage.py runfcgi daemonize=false host=127.0.0.1 port=8000 WSGIServer: missing ...
1
vote
1answer
386 views

Re: How can Django/WSGI and PHP share / on Apache?

in response to: How can Django/WSGI and PHP share / on Apache? Hello, could you please post the complete config file from /sites-available I am having a problem seems like rewrite engine redirects ...
0
votes
1answer
2k views

How can Django/WSGI and PHP share / on Apache?

I have a server running an established PHP site, as well as some Django apps. Currently, a VirtualHost set up for PHP listens on port 80, and requests to certain directories are proxied to a ...
0
votes
1answer
491 views

Cant start uwsgi in ubuntu 10.10

When I run "/etc/init.d/uwsgi start" nothing happens, the terminal just gives me a new line and no output. There is no sign of uswsgi in ps aux as well and /var/log/uwsgi.log is empty I'm folowing ...
1
vote
1answer
206 views

Django hosting on Windows server

I'm running in a "Windows only" environment. We have a few linux boxes but we're not allowed to use Linux in our DMZ (something about it being less secure. ha.) We're currently developing a couple of ...
2
votes
1answer
477 views

Django Deploy Reccomendations

I have a Web application provided in SaaS way... (each client has his own sub-domain and his own database). My app uses Django Python and Postgresql. Right now is hosted on a linux shared hosting ...
0
votes
2answers
39 views

How would I specify a particular settings.py file in a wsgi file?

I'm a complete newbie to Python and Django but have a need to set up a website. What commands/parameters would I add to a file of type *.wsgi that could specify a particular settings.py file in the ...
2
votes
1answer
3k views

HTTP 500 error from POST reuqest to django vai WSGI and apache

Ive got a Django web application setup with mod_wsgi and apache2 on ubuntu 9.10 Im using the following code to o a user authentication via a HTTP post for another part of my site. All it required ...
0
votes
2answers
868 views

How to force the use of SSL for some URL of my Django Application?

I want to be sure that for some URL of my website, SSL will be use. I saw a lot of answer already on SO. http://stackoverflow.com/questions/724968/force-redirect-to-ssl-for-all-pages-apart-from-one ...