Tagged Questions

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

5
votes
1answer
90 views

Storing secure keys on Ubuntu web server

I'm running Ubuntu 12.04 Precise with a DUNG (Django, Unix, Nginx & Gunicorn) environment and my app (as well as various config files) is stored in a python virtual environment inside /srv, which ...
1
vote
0answers
326 views

Nginx > Varnish > Gunicorn Error Too many Redirections

I have the following config: Nginx > Varnish > Gunicorn > Django I want to cache 2 versions of same site (mobile & web) with Varnish. Gunicorn : WEB: gunicorn_django --bind 127.0.0.1:8181 ...
1
vote
1answer
48 views

Closing open descriptors in apache2 prefork

I am running mod_wsgi and Django on apache2 httpd 2.2.12. I do quite a few os.system() and subprocess.Popen() calls, and was wondering: is there any option/directive to configure apache2 so that the ...
-1
votes
1answer
97 views

How should I configure my Apache Hosts File to serve a different site for localhost than for my domain/publicip?

I'm trying to test out a LAMP (with PHP5 specifically) setup with Django already serving a website. I want to do the PHP stuff on localhost for now, so that when I do something like this: curl ...
0
votes
0answers
154 views

Getting error while installing mod_wsgi in centos

I have reinstalled python with enable shared [root@master mod_wsgi-3.4]# make clean rm -rf .libs rm -f mod_wsgi.o mod_wsgi.la mod_wsgi.lo mod_wsgi.slo mod_wsgi.loT rm -f config.log config.status rm ...
0
votes
1answer
45 views

Is there any way to isolate the python2.7 , mod_wsgi installation from main environment

I have many local virtual machines for building the django websites. I find it very hard to configure all the machines with mod_wsgi , python and all that installation issues. Is there any way that i ...
2
votes
1answer
709 views

Getting error while install mod_wsgi on centos6.3 with python 2.7

In initially installed yum install mod_wsgi and i think it was linked with python 2.6 Now is there any way to link it with 2.7 I tried configuring from the source and i get this error apxs -c ...
1
vote
1answer
783 views

Connection refused while connecting to upstream

I'm running a Django website with nginx via fastcgi running on a TCP port 9000 on localhost. Everything appears to work correctly, but the error log is filled with lines like these: 2012/11/19 ...
1
vote
1answer
647 views

ImportError: No module named _socket? WSGI Deployment into Apache

I am using WSGI 3.3 for python 2.7.3 (32bit) for Apache 2.2. I got the binary WSGI from http://code.google.com/p/modwsgi/downloads/detail?name=mod_wsgi-win32-ap22py27-3.3.so. I have been trying to ...
1
vote
1answer
943 views

How is it possible for mod_wsgi to be compiled against Python 2.7.3 but use the 2.7.2 runtime?

The following is what appears in my error_log: [Sat Nov 17 23:13:14 2012] [warn] mod_wsgi: Compiled for Python/2.7.3. [Sat Nov 17 23:13:14 2012] [warn] mod_wsgi: Runtime using Python/2.7.2. If I ...
0
votes
1answer
111 views

In supervisord umask setting results in same permissions for files and folders

I'm using supervisord to handle some gevent based wsgi processes that simply run a django app. When I upload files I want them to have rw permissions for user and group (www-data) and of course I ...
1
vote
0answers
98 views

Deploy multiple django instances on one Host

I am trying to setup multiple Django instances on one Host with lighttpd. My problem is to get Djangos FCGI working on subdirectories served by my Webserver. So my aim is the following: ...
0
votes
1answer
552 views

Django - Moving database from development to production servers

I am working on a Django project with a MySQL backend. I'm curious about the best way to update a production server's database to reflect the changes made on the development server's database? When ...
1
vote
0answers
240 views

Stress testing Django app - how to improve throughput?

I'm having my first attempt at stress testing a simple django web app running from gunicorn and nginx which I’ve put on a small 256MB Rackspace Cloud server. Using httperf, I increase the number of ...
2
votes
2answers
200 views

GIT and Django Projects

I have two servers, a Dev server and a Production server. The Production server runs a live Django site, while the Dev server has a copy of the Django project. I use the Dev server to work on the ...
1
vote
2answers
440 views

NGinX config for Django and Wordpress in subdirectory

I need to set up a Django site at the root of a domain, but then have a Wordpress installation in a subdirectly (e.g. /blog/). How would one configure NGinX to do this? "Pretty" URLs have to work for ...
0
votes
2answers
607 views

Permission issue for apache

Environment Details: Amazon Ec2 Ubuntu 12.04 Django + mod_wsgi + python 2.6 web server: apache2 I have mounted a 10GB ebs volume to an instance to /mnt/ebs1/. After mounting the volume and ...
0
votes
3answers
301 views

MySQL Not Turning On

I have an amazon ec2 instance running on the Amazon Linux AMI and its a micro instance. I wanted to install Django onto my server so I entered these commands wget ...
1
vote
1answer
247 views

Is it possible to deploy elasticsearch in Webfaction?

I'd like to deploy elasticsearch (ES) at Webfaction server. I have 256MB of memory and running a Django app that takes about 100MB. I need to index about 10,000 records. Is it possible to run ES in a ...
1
vote
1answer
139 views

Configuring htaccess with django and apache

I am trying to configure my apache server with django. I am having issues matching urls to their views and am not quite sure of the cause of the problem. I have the following configuration: ...
0
votes
1answer
863 views

500 Internal Server Error in django static files on Apache

Recently I deployed a Django powered application but I have some problem with static files. Sometimes (and only sometimes), I get 500 Internal Server Error in getting static files such as ...
1
vote
1answer
697 views

uWSGI & Django 1.4 - Bad Gateway and no error

I am having trouble getting Django and uWSGI to play nice on Ubuntu (12). It seems that the wsgi is loading and then the app is immediately crashing. None of the uwsgi logs are giving me anything to ...
0
votes
1answer
195 views

One server running Django (with Nginx and Apache) and Wordpress Blog

I have nginx listening to port 80 for my primary site foo.com. It proxys to port 8080 which is where the Django app lives server { listen 80; server_name www.foo.com foo.com; access_log ...
4
votes
2answers
656 views

Deploying Django App with Nginx, Apache, mod_wsgi

I have a django app which can run locally using the standard development environment. I want to now move this to EC2 for production. The django documentation suggests running with apache and ...
0
votes
1answer
454 views

500 Internal Server Error when setting up Apache on Ubuntu+Django

I tried with Apache on ubuntu 9.04 and get the same error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact ...
0
votes
1answer
86 views

Loading Module Into Apache - mod_wsgi

Loading Module Into Apache Once the Apache module has been installed into your Apache installation's module directory, it is still necessary to configure Apache to actually load the module. ...
0
votes
1answer
70 views

recommendations for running varnish on same host as django

Is it reasonable decent practice to run varnish on the same host as the django installation it's fronting for? I assume you'd have to configure django so that it leaves enough room in RAM for ...
2
votes
0answers
304 views

Application reports timeouts. However nginx has no record or log

We are serving Django via nginx/uwsgi. We use AWS ELB behind a VPC. This is a webservice to Mobile clients. We had reports of timeouts during development so we have added a concept of a request_id ...
1
vote
1answer
556 views

Django, PostGIS, Postgres on Mac OS X Installation Issues [closed]

So the context Django1.4.x doesn't support postgis2.0 (https://code.djangoproject.com/ticket/16455) Postgres9.2x doesnt support postgis1.5 ...
1
vote
1answer
67 views

Designing server setup for 80 req/sec site - will this do? [duplicate]

Possible Duplicate: Can you help me with my capacity planning? I am tasked with designing a server setup for a site that has to handle about 5k requests per minute (80 - 90 per second). The ...
2
votes
2answers
818 views

Amazon EC2: Not able to open web application even if port it opened

I have a t1.micro instance with public dns looks similar to ec2-184-72-67-202.compute-1.amazonaws.com (some numbers changed) On this machine, I am running a django app $ sudo python manage.py ...
1
vote
1answer
2k views

Getting a “403 access denied” error instead of serving file (using django, gunicorn nginx)

Getting a "403 access denied" error instead of serving file (using django, gunicorn nginx) I am attempting to use nginx to serve private files from django. For X-Access-Redirect settings I followed ...
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
188 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
329 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
2answers
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
1k 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
461 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
188 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
525 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
203 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
542 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
1k 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
131 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
312 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 ...
5
votes
1answer
824 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
1answer
150 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
833 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
131 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 ...
3
votes
2answers
574 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 ...