Django, "the web framework for perfectionists with deadlines", is a Python-based framework for creating web applications. With a powerful object-based database mapper, a clean syntax for mapping URLs to views, a simple template language and a convenient automatically generated administration ...

learn more… | top users | synonyms

0
votes
0answers
70 views

How to host multiple django websites on apache server

I'm building a website where users can learn to build the django website online. So lets say a user user1 wants to build a django website. For this user I want to create a new django website which ...
1
vote
3answers
2k 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
158 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
266 views

Nginx and Gunicorn hanging on GET requests

I'm using Nginx + Gunicorn which is serving my Django project. All GET requests hang for ~1 min. The content seems to be available immediately as I can see it in the Browser inspector but the browser ...
0
votes
1answer
2k views

nginx + uwsgi: — unavailable modifier requested: 0 --?

I'm following this to install and configure Nginx, uWSGI, and Django on Gentoo. Everything looks good until the last step: Nginx returns the 502 Bad Gateway error and the following appears in the ...
0
votes
2answers
666 views

Python: ImportError: No module named os [closed]

error_log ... [Fri Sep 07 16:30:14 2012] [error] import os [Fri Sep 07 16:30:14 2012] [error] ImportError: No module named os -shell- [root@lts5srv1 home]# ldd /root/epd-5.1.0/bin/python ...
0
votes
1answer
330 views

Send nginx X-Accel-Redirect request from remote server

I have 2 server first (domain.com) is a django/apache server, second (f1.domain.com) is a file server (nginx) where some files are protected and should be allow download only to registred user, so i ...
2
votes
1answer
182 views

What's the best way to run Drupal and Django sites behind the same Varnish server?

I have a high traffic website running with Drupal and Apache, five web servers behind a Varnish server load balancing. Let's say this site is example.com. I'm using five backends and a director like ...
0
votes
2answers
417 views

How to configure Apache2 to host Django and PHP on multiple domains simultaneously?

I have a VPS (Ubuntu 10.04) that hosts multiple domains, one of them being a CodeIgniter (PHP) web app. The others are just static websites, no fancy backend languages required. Well I am starting a ...
0
votes
1answer
160 views

How to add php to a linux (ubuntu) server already running nginx + gunicorn + django

I have been running a django app on nginx using gunicorn on Ubuntu (now version 12.04) for some time now, and have been pleased with the results. My issue is that I have inherited a php site which I ...
1
vote
2answers
424 views

Apache logs: do lots of 404s on CONNECT to port 443 indicate a vulnerability?

In my logs I keep getting lots of: "CONNECT XXX.XXX.XXX.XXX:443 HTTP/1.0" 404 218 "-" "-" "CONNECT XXX.XXX.XXX.XXX:443 HTTP/1.0" 404 218 "-" "-" ... "CONNECT XXX.XXX.XXX.XXX:443 HTTP/1.0" 404 218 "-" ...
0
votes
1answer
784 views

mod_wsgi.so: Cannot load mod_wsgi.so into server: libpython2.5.so.1.0: cannot open shared object file: No such file or directory

I get the following error: when i try to restart the server: [root@lts5srv1 mod_wsgi-2.3]# service httpd restart Stopping httpd: [FAILED] Starting httpd: ...
0
votes
1answer
116 views

Apache server only responds to external IP

I am learning Django and wanted to test hosting it on an Ubuntu computer I have. I decided to serve it with Apache and mod_wsgi. I got most things working, but I have one thing puzzling me. I can ...
1
vote
2answers
292 views

multiple instances of nginx in order to keep Django projects separate

I'm building an app using Django + PostrgreSQL + Nginx on Debian 6. The app has two separate components, that will later be on different machines. Component A calls one function from Component B ...
4
votes
1answer
500 views

Celery Daemon receives unregistered tasks

I installed Celery for my Django project following what the official tutorial / doc says. And it's working fine when I launch celery at the command line, I can see it receiving the tasks and execute ...
0
votes
0answers
158 views

Apache - First named virtual host being matched, but returning a redirect

I have several name-based virtual hosts on my Apache server. As I understand it, if the IP/port is matched, but the client supplies a blank or unknown host name, the first virtual host will be used. ...
0
votes
1answer
128 views

Apache stops serving request

I am running django with mod_wsgi and every thing works fine most of the time but at times I observe that all of sudden Apache stops serving any requests, monitoring service on server says httpd is ...
2
votes
1answer
699 views

Django syncdb can't connect to MySQL on seperate EC2 Instance

I am trying to deploy a django app on AWS with a setup where I have one EC2 instance that is running nginx/uwsgi and a second EC2 instance where I have MySQL 5.5 installed. Both belong to the default ...
-2
votes
1answer
128 views

One of my websites stopped working without apparent reason. Help me figure out why? [closed]

Hello I'm running unmanaged VPS at Hetzner with Ubuntu Linux. I use Apache to serve webpages and I have 8 websites on it. One particular website stopped responding without reason. Nobody touched ...
2
votes
2answers
424 views

How can I run two Django versions in the same server?

i've got two web apps. One was developed using Django 1.0 and the other using Django 1.4. How can I run both apps in the same apache2 server using two versions of django? Somebody told me something ...
0
votes
1answer
227 views

Running two wsgi applications on the same server gdal org exception with apache2/modwsgi

I'm trying to run two wsgi applications, one django and the other tilestache using the same server. The tilestache server accesses the db via django to query the db. In the process of serving tiles ...
2
votes
1answer
225 views

How can I prevent postfix from sending thousands of emails?

I have a Django installation that is configured to email administrators (five of us) whenever an error occurs. All of the generated emails are directed to postfix and then on to the mail server for ...
0
votes
1answer
1k views

Error while installing with Python “pip”: Cannot fetch index base URL http://

I am trying to install a local version of ScrumDo for testing. Only then I come to the point in my installation that I have to run: source bin/activate pip install -r requirements.txt I get ...
14
votes
2answers
4k views

How do I make uWSGI restart when a Python script is modified?

Can't remember where, but I read uWSGI can reload itself like Django development server when a project script is modified. I can't find that in the docs, nor in the internets. How can I do this? I ...
1
vote
0answers
62 views

How can I get Pinax's OpenID to work with NAT?

I have a Pinax gunicorn deployment behind a NAT, where the outward-facing Apache server does a ReverseProxy to the gunicorn server. Overall it works well but when I try to log in with OpenID I get an ...
0
votes
1answer
115 views

Nginx index not at project root

I have an index.html page that's stored alongside with the rest of my client-side resources (/opt/django/media/index.html). I can get nginx to serve the page as the index for requests to just the ...
1
vote
1answer
284 views

How can I optimize system resource usage for many different gunicorn powered Django sites with low traffic?

My server is a Linode with 768MB of RAM. It is home to around 8 small, low traffic Django sites powered by Nginx, Supervisor, and Gunicorn. Currently, each site has its own Linux user account, with ...
1
vote
1answer
1k views

How do you choose the EC2 instance for your django app? [duplicate]

Possible Duplicate: Can you help me with my capacity planning? My team has created a nice django app and now it is going to be deployed on an EC2 instance. Now there are a few questions ...
1
vote
2answers
826 views

“Connection in use” running Gunicorn using VirtualEnv

I am trying to set up a development environment using Gunicorn and NGINX. While following this tutorial: http://ijcdigital.com/blog/django-gunicorn-and-nginx-setup/ I get the following error: ...
2
votes
1answer
389 views

UWSGI, Django, nginx cookie issue - causes 405 Error

I'm running django via uwsgi and nginx, and whenever my app tries to set a cookie, nginx displays a 405 error. The app works fine with apache, runserver or gunicorn, and uwsgi serves it normally ...
1
vote
0answers
125 views

Lighttpd + django on gentoo 10 seconds to answer

I want to run a Django site on a lighttpd with fastcgi on a gentoo machine. Everytime I try to access the site I get a response after more or less exactly 10 seconds. Im using a socket to let lighttpd ...
1
vote
1answer
249 views

Apache / mod_wsgi / Django cannot find MySQL shared library

I'm stuck on a case where the MySQL libraries won't be found on a Apache/mod_wsgi/Django deployed server, altough Python alone can import the library correctly. Here's my Apache log errors: [Tue Jul ...
-4
votes
1answer
83 views

where should my index.html be? django [closed]

I have a friend working with me preparing some web services in a virtual server of mine, he is in a different time zone, and can't talk to him right now, i have access to the server, with ssh, sftp ...
1
vote
1answer
4k views

nginx not serving admin static files?

First, I want to clarify that this error is just for the admin static files. This means my problem is specific just to the static files that corresponds to the Django admin. The rest of the static ...
0
votes
0answers
233 views

Setting up Django application on lighttpd behind apache reverse proxy

I have a Django (v. 1.3.1) app at http://some_other_example.com (it will be behind firewall) running on lighttpd server with fastcgi. I need make it available under http://example.com/myapp. It ...
0
votes
1answer
275 views

Starting a Amazon EC2 Free Tier with Ubuntu and Django [closed]

I'm planning to begin a Django project that may (or may not) grow to be a pretty big thing. So I wanted to start out well: buy my public DNS (not sure yet if with Google Apps or any other domain ...
2
votes
1answer
378 views

django, mod_wsgi, MySQL High CPU - Problems

I am having a problem with an OSQA site. It is Django/Apache/mod_wsgi configured site. Every hour, the CPU spikes to 164% (Average) for task HTTPD. After 10 minutes, it frees back up. I have reviewed ...
1
vote
0answers
108 views

Apache conf changes when migrating django project from mod_python to mod_wsgi

Not sure if this is the right place to ask this question, but I'm migrating a django project from mod_python to mod_wsgi and I want to make sure I have my apache configuration correct. The old ...
0
votes
2answers
4k views

Nginx - when tunnel the url redirects without port number

My problem is very similar to this: nginx proxy pass redirects ignore port I am using nginx 1.0.14. I want to be able to ssh-tunnel into my Django website, so I can work remotely. I've tested a ...
0
votes
1answer
383 views

Deploying django project under sub-URL with Apache/FastCGi

I am trying to deploy a django project under a sub-URL on hostgator hosting. Here is the tutorial I was following: http://support.hostgator.com/articles/django-with-fastcgi My index.fcgi looks like ...
1
vote
1answer
518 views

Nginx,Uwsgi and Django App Not Found

I have configured Nginx with uWSGI and Django on CentOS. Django Directory(contains all my django app): /home Django Project Directory: /home/hdblog /home/hdapp.py contains below: import os, sys ...
1
vote
2answers
400 views

Why Won't Apache Fully Stop or Restart? I have to manually Kill every time

I have a configured EC2 server running Ubuntu 11.10 running a Django App on Apache2/WSGI. This server works perfectly, stops and restarts without any problems. When I clone this instance, everything ...
4
votes
1answer
789 views

Running django custom management commands with supervisord

I'd like to use supervisord to run some commands for my Django project but I keep getting the following error: supervisor.log: 2012-05-18 17:52:15,784 INFO spawnerr: can't find command 'source' ...
1
vote
0answers
525 views

cx_Oracle - InterfaceError: Unable to acquire Oracle environment handle

I have installed Django on Ubuntu 12.04 behind NGINX with uWSGI. I use Postgresql as the main database for the application however I need to retrieve some data from an Oracle database. I have ...
0
votes
1answer
47 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 ...
0
votes
1answer
96 views

ngnix on amazon ec2 instance which has RedHat 4.4.4-13?

I have an ec2 instance running on amazon which has AMI(ami-1b814f72).Its running RedHat 4.4.4-13 version. I want to install ngnix and gunicorn on with django. According to ngnix ...
1
vote
1answer
481 views

uwsgi memory usage optimisation

I'm running several django sites on uwsgi, and I'm attempting to optimise my configuration for memory usage, but the --idle and --die-on-idle flags don't seem to be doing anything. Each daemon starts ...
0
votes
1answer
79 views

Should I be setting up my Django app on my server via SSH or locally? [closed]

Ok noob question: I have a little micro AWS EC2 instance running, and I'm going through this Django tutorial. SSH'ing into my EC2 means that all the work I'm doing, like editing the config files, ...
0
votes
1answer
205 views

Django hosting on linux - what's the most memory-efficient technique?

I've got a VPS (Ubuntu 10.04, 512MB) on which I host 10-15 django sites, most of which have intermittent traffic. I'm wondering what the best hosting technique is in this situation, where the ...
-2
votes
1answer
292 views

Django: Nginx with wsgi or uwsgi

Which one has better performance, stability? Which monitoring tool should also be the best choice ? Thanks for your answers!