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

1
vote
3answers
478 views

Forward Apache to Django dev server

EDIT: I just went with Nginx to do the proxy in front of Apache. Much easier to set up and it actually worked. I'm trying to get apache to forward all requests on port 80 to 127.0.0.1:8000, which ...
0
votes
3answers
2k views

Apache mod_wsgi error: ImportError: No module named django.core.handlers.wsgi

I am using Python 2.7 with mod_python 3.3.1 and mod_wsgi 3.3. I get an Internal Server Error and this stack trace in the apache logs: [Thu Apr 21 10:25:37 2011] [error] [client 83.244.243.242] ...
0
votes
3answers
270 views

Python script not running on ready made django vmware image

I am using turnkey image for python django http://www.turnkeylinux.org/django When i open the page by ip adress the home page open ok Now i tried to made the simple python file inside the wwwroot to ...
5
votes
2answers
1k views

Django rewrites URL as IP address in browser - why?

I am using django, nginx and apache. When I access my site with a URL (e.g., http://www.foo.com/) what appears in my browser address is the IP address with admin appended (e.g., ...
4
votes
2answers
620 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 ...
2
votes
2answers
2k views

Celery daemon as a Ubuntu service does not consume tasks while running from terminal does

On Ubuntu 11.10, I have to issue python tasks from django using celery. I'm currently testing on the same machine but eventually the celery worker should run on a remote machine. django uses the ...
1
vote
2answers
152 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: ...
1
vote
2answers
906 views

LDAP authentication with Graphite

I have setup Graphite Web 0.9.9 on CentOS 6.2 x86_64 at EC2 and I'm trying to get LDAP authentication to work against 389 Directory Server. I have configured local_settings.py with: USE_LDAP_AUTH ...
1
vote
2answers
887 views

django + wsgi + suexec + userdir + apache?

I've got a django 1.1 website I want to run in wsgi (as that seems to be the recommended deployment on apache). I want it to run as the www user (apache is running as www-data). I would ideally like ...
1
vote
2answers
314 views

How to deploy local project to Amazon

I have a small webapp written in Python/Django which works fine on my local machine. I've been tinkering and setting up my server on the free tier of Amazon EC2 by following online tutorials. However, ...
1
vote
2answers
177 views

How to serve pages through multiple frameworks/template engines efficiently

I would like to render a file that has both PHP tags and Web2Py tags mixed together. To do this, I would like the web server to pass the file through Web2Py, then PHP. I found a method to call PHP ...
0
votes
2answers
64 views

Repeated EC2 Apache 500 error

I'm running a Django website off Apache and MySQL. I'm using a t1.micro instance. After every couple of days, my server starts giving a 500 error. I solve this problem by restarting the Apache2 and ...
0
votes
2answers
56 views

Why do I see apache's 404 and not Django custom 404?

On my local django runserver I created a custom templates/404.html, and this works no problem. However in production with apache this custom 404.html is no longer shown (even with DEBUG=False). I ...
0
votes
2answers
244 views

munin-cron Unable to Copy Contents

I recently installed munin on my (Fedora12 based) server. Now, I wanted to get all the graphs in a static directory (The application runs on Django). So, I edited the file /etc/munin/munin.conf by ...
0
votes
2answers
255 views

Django fails to find static files served by nginx

I know this is a really noobish question but I can't find any solution despite finding the problem trivial. I have a django application deployed with gunicorn. The static files are served by the ...
0
votes
2answers
204 views

How can I get django-registration emails sent?

I have a Django project on a Saucy EC2 instance, with a site's registration handled via django-registration, and after a few minutes and a few tries to register different email addresses, I am not ...
0
votes
2answers
558 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
2answers
576 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
2answers
39 views

redirection problem for my sites

I have a site example.com and another one test.example.com. Both have different configuration file. But when I enter url test.example.com it will redirect to example.com. configuration file for ...
0
votes
2answers
283 views

Django on Windows 2003 Slow Initially

I have setup Django to run on a windows 2003 server following the steps on the django wiki. Everything works fine and there are no errors. Only one instance of Django is setup on the server at the ...
0
votes
1answer
128 views

why can I access this website but other people can't?

The django app at halfcan.org is hosted on an Amazon ec2 micro instance. I can access it from my computer and from my phone on the same wifi. But anyone else gets a long wait and then "problem ...
0
votes
1answer
1k views

503 Error: Service Temporarily Unavailable (Mod_wsgi, Apache, Django)

I followed the tutorial to mount a Djando application on Apache here. The Django project was created under its own directory in /opt. Any suggestions or other tutorials I can use? I reviewed few ...
0
votes
1answer
65 views

How to track/find long running processes using Django?

I'm using Cherokee(uwsgi) with Django and my timeouts are ridiculous(according to Cherokee). How can I track down what pages are causing these timeouts?
0
votes
1answer
503 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 ...
0
votes
1answer
361 views

Django, modwsgi and apache virtualhosts

I have gotten virtual hosts to work, but somehow this setup of mine is behaving strangely. NameVirtualHost * <VirtualHost *> ServerAdmin webmaster@localhost ServerName x.com ...
0
votes
1answer
303 views

Lighttpd redirect from www.domain.com to domain.com

I need to permanently redirect all www.domain.com to domain.com in Lighttpd. Here's relevant part of my lighttpd.conf: $HTTP["host"] =~ "^www\.domain\.com$" { url.redirect = ( "^/(.*)" ...
0
votes
1answer
177 views

lighttpd not reliable

I have a lighttpd running which serves a django-based webservice. It was running well for some months, but from today on, it returns a 410 sometimes, and sometimes fails silently. To test, I make a ...
0
votes
1answer
100 views

permission errors with python/django

Error can be seen here: http://djaffry.selfip.com:8080/ If i go to the folder /srv/twingle/search and do ls -l I get -rwxrwxrwx 1 root root 65142784 May 26 20:28 words.db I gave it 777 ...
0
votes
1answer
613 views

Protect all XML-RPC calls with HTTP basic auth but one

I set up a Django project for smartphone serving XML-RPC methods over HTTPS and using basic auth. All XML-RPC methods require username and password. I would like to implement a XML-RPC method to ...
0
votes
1answer
61 views

Can a typical shared host serve both Django & RoR simultaneously?

I'm going to be building two independent applications (one on Django, and one on Rails). I was wondering whether it's reasonable to expect a shared host to be able to do both simultaneously. (Like, ...
-1
votes
1answer
602 views

Error code: ssl_error_rx_record_too_long on nginx ubuntu server

I have a site which was perfectly running with apache on some old ubuntu server and also has https for it. But now for some reasons i need to move to different(new ubuntu server with high ...
-1
votes
1answer
351 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.
-1
votes
1answer
167 views

Nginx common configuration that I might have missed

I recently moved from Apache Mod_wsgi to Nginx, and I have seen a major improvement on speed a lowering on memory usage and I am generally very happy with the it. I am not a server expert, so please ...