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
332 views

Nginx, Django, Gunicorn work slow in specific situations

My problem is that when I log on to my application via facebook, or send an email it takes a very long time ( about 1-2 minutes ). In other situations site is reacting almost instantly. My application ...
0
votes
2answers
562 views

File uploads and client_max_body_size in nginx + gunicorn + django

I need to configure nginx + gunicorn to be able to upload files greater than the default max size in both servers. My nginx .conf file looks like this: server { # ... location / { ...
1
vote
2answers
158 views

django + apache2, each user takes up a lot of memory

I'm running my django app on apache2 (with mpm prefork) with a mysql database. It works fine, except when multiple users use it, and it takes around 40-45m RES for each user. httpd.conf: ...
0
votes
3answers
10k views

How to clear nginx cache [closed]

My nginx config here: http://p.ngx.cc/0c This link http://aa-tour.ru/static/system/css/style.css show me old cached version of file, how to remove it and clear cache? This is correct (new) version of ...
0
votes
4answers
423 views

Apache taking ownership of file and folder

I have django site running on Ubuntu with apache2 configured with mod_wsgi. The media (folder where user uploaded files go) is owned by ubuntu user (with sudo access) and the group of media folder is ...
0
votes
1answer
135 views

Installing WSGI on EC2 micro instance

How do I install Apache with WSGI on my Amazon AMI EC2 micro instance? I tried sudo yum install httpd libapache2-mod-wsgi but I got this error message no package libapache2-mod-wsgi available ...
1
vote
2answers
3k views

ubuntu + nginx + uwsgi + django No Python application found

I am trying to setup my server with a nginx to uwsgi to django stack, but I am having problems with the uwsgi part. When I run uwsgi and pass in all the parameters on the command line, it works ...
0
votes
1answer
539 views

Django mutli-threading on apache/mod_wsgi/windows

I am quite new to the combination of apache and django and quite naive frankly regarding to how multi-threading is handeled. Specifically I run on a windows server, so I know the MPM is only ...
0
votes
2answers
441 views

Preserve http headers from Django using NGINX and Gunicorn

I'm setting some non-caching headers in a Django middleware to control caching of xhr request. Mostly because IE is caching ajax request heavily. class NeverCacheXhrMiddleware(object): """ ...
-1
votes
1answer
746 views

Python, “you don't have permission to access that port” [closed]

I'm setting up my first Django project on a server When I do python manage.py runserver .0.0.0.0:80, it tells me You don't have permission to access that port. When I do python manage.py runserver ...
2
votes
1answer
151 views

Unable to serve Django static files

I am trying to serve Django admin static files but nothing seems to be working below is my nginx configuration : upstream django { server 127.0.0.1:8000; } server { listen 4321; ...
0
votes
0answers
71 views

Cache layer for Heroku-hosted mobile-server app

I am developing a mobile app, backed by a server hosted on Heroku. There will be a continual polling of the server by the client, to check for changes in state. To avoid hammering my Heroku servers I ...
0
votes
0answers
93 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 ...
1
vote
1answer
462 views

Django - cant connect to local MySQL Server through socket

I’m using Django Bitnami Stack on Amazon EC2. I’m attempting to sync the database for the initial setup but I am having problems. When running the following command I receive an error message: ...
3
votes
2answers
3k views

Nginx 502 bad gateway runing django in uwsgi

I tryed to restart a project in production and it stoped working. This is a django==1.5.1 and django-cms==2.4.1 project. I restarted because I've updated the project from django==1.4.1 to ...
0
votes
1answer
142 views

nginx proxy_cache or Memcached

I currently use nginx's proxy_cache for file-based caching in front of three Django applications (Apache/mod_wsgi). For some locations/URLs, I disabled proxy_cache and used Memcached (per view) within ...
1
vote
0answers
584 views

upstream sent more data than specified in “Content-Length” header while reading upstream

I have django app (based on Mezzanine). My nginx conf looks like: upstream myhost { server 127.0.0.1:8000; } server { listen 80; server_name www.myhost.ru myhost.ru; ...
0
votes
2answers
299 views

What is the advantage of having ELB infront of your NGINX servers?

I've looked into a lot of back end setups on Amazon Web Services, especially that of Instagram's. On their Instgram Engineering Blog they mentioned how they have an Elastic Load Balancer in front of ...
0
votes
1answer
703 views

centos 6.4 - django deploy with apache and mod_wsgi

I'm trying to deploy on a VM with centos 6.4 a basic django project with apache and mod_wsgi. This is the project tree: myproj/ ├── manage.py ├── myapp │   ├── __init__.py │   ├── models.py │   ├── ...
2
votes
1answer
307 views

How to run multiple websites from one Django project on nginx and uwsgi

How to run two web sites or subdomains of a site from a single Django code base. Each Django app in the project can then power a website on a different domain, but all the apps can still share a ...
0
votes
0answers
3k views

Nginx/uWSGI - upstream prematurely closed connection while reading response header from upstream

I've got an Ubuntu server configured with Nginx and uWSGI to serve Django which was setup and working with the default start page yesterday. All I have done since is install MySQL and later ...
1
vote
4answers
3k views

Python-devel for python 2.7 on CentOS 6.4

Ok, i want to run django web-application on production VPS. Operation system of the VPS is CentOS. Application code written on Python 2.7. I have already installed Python 2.7 with configured virtual ...
0
votes
1answer
325 views

Troubleshooting mod-wsgi thread dying

A WSGI daemon on our public-facing web server died and required reloading apache configuration to start it again. All the error.log says is: Script timed out before returning headers: wsgi.py (and ...
3
votes
2answers
689 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: # ...
1
vote
1answer
469 views

Debugging Gunicorn + Nginx + Django

I'm trying to deploy a readthedocs instance on my own server. The recommended way to deploy is using Gunicorn + nginx with postgres. Because there's basically no documentation on how to do this ...
0
votes
1answer
315 views

Upgrading from Django 1.3 (Python 2.6) to Django 1.5 + Python 2.7 CentOS

We currently have a server running python2.6 + apache and mod_wsgi that runs with Django 1.3. I plan to use the following guide to install python 2.7 ...
1
vote
1answer
222 views

Setup Pootle on Uberspace Webspace

I tried to setup Pootle on my uberspace server, but after installing all the required apps/software i get the following error message: (pootle)[tundem@phoenix ~]$ pootle start Loading custom settings ...
0
votes
2answers
580 views

static files in OpenShift/Python27/Django in custom build

I have extensively searched for a solution to my problem; however, due to the lack of success I decided to post a question. In short: I have created an OpenShift app/build based on this repo (in ...
0
votes
1answer
134 views

mod_wsgi daemon mode not working in Apache

I have problems getting mod_wsgi to run in daemon mode on my Debian / Apache 2.2.16 / Python 2.6.6 / mod_wsgi 3.3 / Django 1.3 setup. Everything works OK in embedded mode, but when I try to switch to ...
0
votes
2answers
434 views

nginx serving static files; apache django; secure file from apache to nginx?

I serve all static files (/static/ and /media/) via nginx and all other requests are routed to apache using mod_wsgi to use django. nginx acts as proxy through to Apache/mod_wsgi. As far as I know ...
0
votes
1answer
902 views

gunicorn working vs uwsgi timeout

I've setup my Python / Django app on a vmware machine with CentOS, uwsgi and gunicorn along with all my apps dependencies. After running my app with gunicorn with the following command: gunicorn ...
0
votes
1answer
721 views

nginx, gunicorn and django weird 504 gateway timeout

I have an nginx / gunicorn / django setup as follows: Nginx server { listen 80; server_name myserver.com; root /www/python/apps/pyapp/; access_log ...
0
votes
2answers
164 views

can not access portal after specifying port in URL

Django webservices is running on port 8000 (pyhon manage.py runserver 0.0.0.0:8000) I am able to access using , https://ec2-72-44-51-113.compute-1.amazonaws.com/admin/ but if I specify port in url, ...
0
votes
2answers
478 views

Apache: relative paths appended to current URL instead of added to basename

I'm new to web servers, so please be gentle: I've set up a new apache2 server on a Mint System (Ubuntu-base, which also means Debian-based). I've also installed a Django backend and the wsgi_mod ...
1
vote
0answers
190 views

Strange Django/Apache 500 error when loading dynamically generated images (sometimes)

I have a really strange Http500 error when loading dynamically generated images. And for some reason it only happens sometimes. The apache error log doesn't show any errors. The django development ...
0
votes
1answer
72 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
0answers
482 views

How to redirect all HTTP traffic to HTTPS for a Django 1.4 application running on an EC2 with nginx/uWSGI behind ELB with an SSL cert

I would like to know how to put my entire django site behind HTTPS. If anyone tries to come via HTTP I want that user to be redirected to HTTPS. Currently, firefox is giving me the error "Firefox has ...
0
votes
1answer
96 views

Apache2: VirtualHost and Django

We're hosting two sites and don't have a domain name at the moment so we're using the IP address. I want the two sites to be accessed in the following manner: http://123.123.123.123/Site1 ...
0
votes
1answer
489 views

Apache django mysql very slow

I am using Django, wsgi with apache, but the server is really slow when I try to insert data into mysql server. It takes 1 second to insert 200 rows in a table. The strange thing is that only 3% of ...
1
vote
1answer
31 views

where is the configuration for https host Django+PHP

I am an app developer, with little web site development experience, now having to check some work on a virtual server, All seems to be working fine, but I cannot find where a configuration for a host ...
0
votes
0answers
97 views

Apache + Django making requests out causes memory leaks

My site on Webfaction is using the Requests python package to make a good number of requests to another site. This happens whenever a user triggers a particular ajax request on mine. (I on-demand ...
2
votes
1answer
66 views

Supervisord unable to shutdown fcgi processes

I've managed to set up supervisord with fastcgi on a django project of mine, the problem is that when I make mi program stop, the server keeps running somehow, and my page keeps online. Here is my ...
1
vote
1answer
159 views

only django work in presence of mod_wsgi , PHP not working

I am using PHP with apache2 and MySQL on a rackspace server, it is unmanaged cluoud hosting. I am hosting multiple sites using virtual host. Now i want to use Django on it. A site needs django so I ...
0
votes
1answer
398 views

How to get apache to use python 2 with mod_wsgi?

I have an Arch Linux server that used to use Python 2.7.3 just fine with Apache and mod_wsgi-3.4-2. I have both Python 2.7.3 and 3.3.0 installed on the server, and both executables are located in ...
3
votes
1answer
249 views

Web Server Routing Based On Location

I have a website that has users from both Hong Kong and Australia. Unfortunately, since the server is located in Australia, users from Hong Kong are going to suffer latency problems. Traffic has to ...
0
votes
1answer
422 views

Serving Django staticfiles via Nginx 404

I host my Djangoproject on Nginx with uwsgi. staticfiles need to be served separately by Nginx server { listen 80; server_name blog.foo.de; location /static { root ...
0
votes
1answer
316 views

Problems upgrading to Python 3.3 and setting up Django [closed]

I'm new to Linux and am trying to set up Python / Django on my machine! I installed Python 3.3 from the source file and it was compiled into /usr/local/bin. Then I created a symbolic link between ...
-1
votes
1answer
601 views

How can I use the uWSGI Emperor to limit resources to a given amount for all apps (instead of per each)

I have a Django application for which I want to limit the resources used by uWSGI to 12288MB and processes (workers) to 6. With 3 separate apps, I can limit each to 2 workers, and each worker to ...
1
vote
1answer
235 views

Installation requirements of django installing in hostgator dedicated server

First, before I install OSQA on my dedicated server at hostgator, I want to know the requirements. I don't want to screw up my server so it's better to ask question first. I have read a lot of ...
-1
votes
1answer
358 views

How to build Python-2.7 Debian (Two version Python)

I installed Python-2.7.3 on Debian 6. ./configure --enable-shared --prefix=/usr/local/python2.7 make make install Now already installed, how I can access this: shell: python2.7 Thanks.