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
1answer
18 views

How to reinstall python2.7 on CentOS 6 in order to install mod_wsgi

I've installed Python2.7 from source on a CentOS 6 VPS, and I'd like to get a Django site up and running. Unfortunately, everything I've Googled so far says that I'll need to install mod_wsgi, which ...
2
votes
1answer
2k views

UnicodeEncodeError when uploading files in Django admin

Note: I asked this question on StackOverflow, but I realize this might be a more proper place to ask this kind of question. I'm trying to upload a file called 'Testaråäö.txt' via the Django admin ...
2
votes
2answers
1k views

Make mod_wsgi use python2.7.2 instead of python2.6?

i am running Ubuntu 10.04.1 LTS and it came pre-packed with python2.6 but i need to replace it with python2.7.2. (The reason is simple, 2.7 has a lot of features backported from 3 ) i had ...
-1
votes
0answers
15 views

http not working after configuring https in apache

I am trying to run my django application using mod_wsgi on apache. My site settings are following: WSGIPythonPath /home/ubuntu/gmail2sfdc <VirtualHost *:80> Alias /static/ ...
1
vote
2answers
863 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 ...
0
votes
0answers
7 views

Cache-Control only working for media files and not static files served in Django

I'm trying to use Cache-Control for my static files. Following is my code for the .htaccess file # 1 YEAR <FilesMatch "\.(ico|svg|woff|eot|ttf)$"> Header set Cache-Control "max-age=31536000, ...
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 ...
1
vote
1answer
1k views

Enabling mod_wsgi in Apache for a Django app on Gentoo

I installed Apache, Django, and mod_wsgi on Gentoo using emerge (on Amazon EC2). I know that the mod_wsgi is configured in /etc/apache2/modules.d/70_mod_wsgi.conf: <IfDefine WSGI> LoadModule ...
0
votes
0answers
13 views

Webserver needed for django WSGI API?

My app is just a REST API written in django. There is no static content or html pages served. In setting up our production environment, we are planning on using amazon ELB (load balancer) to balance ...
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] ...
-1
votes
0answers
24 views

Setting up Django with uswgi and nginx in ubuntu

I am following this tutorial and I am stuck: http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html I created a file called test.py in the /desktop/uswgi-tutorial directory: # ...
1
vote
2answers
859 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 ...
0
votes
0answers
21 views

Running Django Test Server - Segmentation fault (core dumped)

I am running the Django test server from a virtualenv - necessary to use supervisord to run Celery as a background process. When I try: "python manage.py runserver" from the cygwin shell I get the ...
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 ...
0
votes
0answers
11 views

Django-mailer emails stuck in queue

I have been using the Django-Mailer app for a few years on my large, corporate Django driven web application. I use it to send a custom email to each of our 800 clients. Generally, it has worked well. ...
2
votes
1answer
1k 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
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 ...
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
1answer
59 views

Nginx and Django use www-prefixed domain

Trying to understand how to force www. in my domain and redirect anything like ww.example.com or test.example.com -> www.example.com Everything works fine when I go to www.example.com or example.com, ...
2
votes
2answers
1k views

Deploying Django with mod_wsgi

/etc/apache2/site-available/mysite.com <VirtualHost my_ip_here:80> ServerAdmin foo@mysite.com ServerName mysite.com ServerAlias www.mysite.com WSGIScriptAlias / ...
1
vote
1answer
2k views

django wsgi multiple projects different url same apache server

I'm trying to get 2 separate django projects running on the same apache server with mod_wsgi that are also under the same domain but different urls. Like www.example.com/site1/ and ...
0
votes
1answer
27 views

nginx wont start after reboot Ubuntu 14.04

I'm getting this error: nginx: [emerg] duplicate upstream "app_server" in /etc/nginx/sites-enabled/django.save:1 this is my config file: upstream app_server { server 127.0.0.1:9000 ...
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., ...
1
vote
1answer
910 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 ...
-1
votes
1answer
38 views

503 errors on Apache+Mod_wsgi+Django

I'm new to Python and trying to setup Django on my VPS that is running CentoOS 6.5. My Apache version is 2.2.15. Python is running on version 2.7. I created a virtualenv under ...
0
votes
0answers
14 views

Nginx blocks http response with long string

I encountered a issue with my live web service today. The backend setup is Nginx + Django webservice. In the webservice, I have code to return a HttpResponse with a long JSON string (> 1400 char). ...
1
vote
1answer
209 views

Trying to run gunicorn from supervisor gives error - error: class uri 'simple' invalid or not found

I am already running successfully 2 django projects (in same virtualenv with python 2.7) with Django + gunicorn + virtualenv + Supervisord environment. But now i am trying to run another project in ...
0
votes
0answers
101 views

Graphite SQLite3 DatabaseError: attempt to write a readonly database

Running graphite under apache httpd, with slqite database, I have the correct folder permissions [root@liaan55 httpd]# ls -ltr /var/lib | grep graphite drwxr-xr-x. 2 apache apache 4096 ...
2
votes
1answer
1k views

Supervisor process exits with 'exit status 1; not expected'

I'm trying to run a gunicorn_django process in supervisor but it always exits immediately, giving this error: INFO exited: my_app (exit status 1; not expected) INFO received SIGCLD indicating a ...
0
votes
1answer
44 views

How to serve static files for multiple Django projects via nginx to same domain

I am trying to setup my nginx conf so that I can serve the relevant files for my multiple Django projects. Ultimately I want each app to be available at www.example.com/app1, www.example.com/app2 ...
0
votes
2answers
44 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 ...
2
votes
1answer
45 views

psycopg2 not found by django after installing in virtualenv

I want to use postgresql with django so did the following: sudo apt-get install libpq-dev python-dev sudo apt-get update workon myenv sudo pip install psycopg2 And after configuring my settings.py ...
0
votes
2answers
43 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
72 views

Nginx + Apache mod_wsgi, troubles understanding how to configure servers

I've been trying for too long to set up a development environment on my Ubuntu 12.04. My intention is to set up everything as I'd have to do later in a production environment, so I followed this ...
0
votes
1answer
45 views

Scalable django app, should message queue be located on load balancer or app server?

I've just architected my first scalable backend for a django app, however I put the message queue service (RabbitMQ) on the load balancer machine. I was able to siege some of my API routes with up to ...
0
votes
1answer
124 views

Jenkins fighting with Django over permissions

I've got a Jenkins/Nginx server running. But I get the error from Django: attempt to write a readonly database So I solved this problem by changing the ownership of the project folder to the ...
2
votes
0answers
25 views

Not seeing Django logs on Heroku

I'm not seeing log entries (at a level of INFO) made by Django in my Heroku logs. This is my configuration: LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'filters': { ...
0
votes
1answer
189 views

Internal Server Error when running Gunicorn as a service

I'm trying to deploy my Django app for the first time on a Digital Ocean VPS. I've used their Django droplet which setup things like this except I'm not using a virtual environment. After adding my ...
0
votes
1answer
51 views

Apache web server, virtual hosts, sub domains and multiple web frameworks

I have a website www.mysite.com This is the main site and I will be using the Django web framework for the site I also want to have other subdomains such as: https://mail.mysite.com (handled ...
-1
votes
1answer
250 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 ...
0
votes
0answers
44 views

Django wsgi and mod_pagespeed not working

I installed mod_pagespeed on my server and it's working as far as the page header is concerned: X-Mod-Pagespeed:1.7.30.5-3847 The problem is that it's doing nothing else. No whitespace or comment ...
0
votes
0answers
167 views

Apache error log with django application showing “strange” error

My django code was previously in /var/www and all worked just fine. Yesterday, I decided to move the code in /root and keep the static files in /var/www for security purposes. I am using Django 1.6.5 ...
0
votes
0answers
29 views

Djapian in Ubuntu trusty

I'm trying to migrate my Django server to a new server running Ubuntu trusty (the last one ran lucid). I've got almost everything working except for Djapian: when I run python manage.py index ...
0
votes
0answers
75 views

Server configuration in production for Django applications

I want to deploy my Django project to production as follows: example.com # redirect to www www.example.com # for dynamic files static.example.com # for static files media.example.com ...
1
vote
1answer
201 views

uWSGI Returning Empty Response

I have a Django site which I am trying to server via uWSGI. I have started the server like so: uwsgi --emperor . Ctrl+Z bg 1 (There are two .ini files which point to the test version and production ...
0
votes
1answer
114 views

Howto rewrite URLs with two nginx as reverse proxies to gunicorn/Django

I have a Django application, deployed with gunicorn on port 8000, on a VM with a backend nginx, port 80, on the same VM. The nginx config is: location / { proxy_http_version 1.1; ...
0
votes
0answers
80 views

Apache single sign on redirecting to success login page, Django application

All I have a Django web application with relative paths url. For instance, I have www.example.com/inventory/get_item/?item_id=5 In the apache configuration I am using oracle single sign on to ...
0
votes
1answer
793 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
2answers
2k 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
0answers
26 views

Installing PySide on an Amazon EC2 Instance Running Django

So I realize my title is almost laughable, but my situation is this. I have a fairly complicated desktop app written in Python and the PySide Qt bindings and I need to make a stripped down version of ...