Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
14 views

Django Dynamic File Name

A beginner Django guy here, I am looking to change my csv export file name to be dynamic hopefully naming the file with the date it was generated. My current code is response['Content-Disposition'] ...
1
vote
1answer
41 views

Apache2 mod_wsgi python 2.6 Django very slow

I've tried about 1000x things, but I can't seem to figure out why a simple django website is slow using apache 2.2.14/wsgi latest / django 1.3. I've confirmed the problem isn't our database by turning ...
-2
votes
2answers
85 views

How many VMs is too many? [closed]

I have a server with two 2.6GHz quad core processors and 32GB of RAM (along with pleanty of storage). I have a Django app which I intend to run on this server, and I'd like to set up (using VMWare) 2 ...
1
vote
0answers
21 views

Server returning response for previous requests

It's a really strange problem. I believe it to be a server issue, but it's so strange and hard to reproduce that I'm not entirely sure. Just as the title says I'm receiving responses for earlier ...
1
vote
0answers
46 views

What's the ideal Ubuntu operation setup for running a Django webserver? [closed]

What's the ideal Ubuntu operation setup for running a Django webserver? When I started working in Django 2 years (or so) ago it was an nginx front end to serve up static medica and Apache running ...
1
vote
1answer
32 views

Re-uploading file with unicode filename creates identical duplicate

I'm running a Django site on a Debian 6 system, with a gunicorn server and nginx 0.7.67 handling static files. The filesystem locale is set to sv_SE.UTF-8. I got a problem where another user uploaded ...
2
votes
1answer
18 views

Django-Mailer won't stop sending emails

I set up Django Mailer and added the two commands to the crontab: * * * * * root python /srv/www/cpm/manage.py send_mail >> /srv/www/cpm/cron_mail.log 0,20,40 * * * * root python ...
0
votes
1answer
31 views

Django — test server running in background… somewhere

Using Putty on my Vista machine, I logged into my development server (Ubuntu) and fired up the Django Test server. I left my computer for a while (physically) and returned to find the Putty connection ...
0
votes
0answers
86 views

Long running requests with gunicorn + nginx

I've put together an integration server for our Django-powered application. A few of the features are still experimental, and result in overly long requests. I'm okay with the poor performance, for ...
2
votes
3answers
97 views

Django: Nginx with WSGI or Apache with WSGI

Are there any studies comparing the performance (RPS, CPU, Memory usage etc) of delivering python web apps (Django in my case) between nginx and Apache? Can someone help me with facts? Which ...
0
votes
1answer
36 views

Running Django on CentOS?

I have a problem running Django with mod_wsgi and Apache on CentOS. Django runs on Python 2.5 or above but CentOS comes with Python 2.4. I can't just upgrade the default Python 2.4 because it breaks ...
0
votes
1answer
25 views

Django returns 502 error when user apps are added

I've configured a Debian 6 server with nginx, Passenger, and MySQL to run Django, and was running through the Django tutorial with everything going swimmingly until I tried to turn on the admin ...
0
votes
1answer
25 views

Multiple Django sites on a single SSL certificate using a single IP with Apache

Is it technically possible to setup multiple Django sites using a single SSL certificate on a single IP address with Apache? Below is an excerpt from my SSL config: Alias /media/ ...
1
vote
0answers
20 views

Django app running on Apache serves blank 200 responses

I'm trying to deploy an application built on Django on a Ubuntu 10 Server with mod_wsgi and Apache. When I try to access certain views, I get a 200 response with no content from the server. These are ...
0
votes
1answer
18 views

Django update database entry from view?

Have been trying to build a simple asset tracking script, I have most of it working correctly however I would like to be able to check items back in once they have been returned. I would like to be ...
0
votes
1answer
135 views

Django, nginx, FastCGI - running via unix sockets, permission problems

I've configured nginx to run django site via socket: fastcgi_pass unix:/tmp/django.socket; now I'm (manually) running ./manage.py runfcgi socket=/tmp/django.socket http request results in 502 ...
0
votes
1answer
138 views

Vagrant + Nginx + Gunicorn + Django: app keeps returning from port 8080 to port 80

I used this template to setup a development VirtualBox VM using Vagrant. Chef orchestrated the installation of the server, which should server as my development machine for working on a Django ...
0
votes
1answer
79 views

centos,django, mod_wsgi & different python installations

I am getting this error File "/usr/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module TemplateSyntaxError: Caught ImportError while rendering: No module named ...
0
votes
0answers
30 views

Apache2, mod_fastcgi, PHP5 and fpm problems (with a Django top directory application)

I'm having trouble deploying a PHP5 application in the following setup with a Gentoo system: Apache 2.2 mod_fastcgi PHP5 with fpm (fpm running a pool with an user and group of its own) Django for ...
0
votes
1answer
48 views

How do I set Django to use Python 2.7 instead of Python 2.4?

I have installed Python 2.7 but still kept Python 2.4. When I enter the command python, it runs python 2.4 and I want to keep it this way. But how to I set Django to use /usr/local/bin/python2.7 when ...
1
vote
1answer
32 views

Redirecting through httpd.conf with Django and mod_wsgi

I am trying to use Apache's Rewrite module to redirect users before Django catches the request. I tried the following to redirect a user from "test.php" to the "links" page <VirtualHost ...
0
votes
0answers
40 views

Wsgi script time out in amazon ec2

I have a django site in an amazon ec2 m1.small instance. Last night it started to throw the following error: [Thu Dec 22 15:22:09 2011] [error] [client 190.21.7.178] Script timed out before ...
1
vote
1answer
53 views

Database access Problems with Django and MySQL

I've got Apache and mod_wsgi up and running, and am now trying to introduce Django to MySQL. I've created a database named 'django' and a 'django' user; and I've granted all to django on django: ...
0
votes
1answer
45 views

Django - What is the server configuration is preferable?

1) Apache2+uWSGI+NGINX(for static) or 2) NGINX + uWSGI
1
vote
1answer
41 views

Access content via a LAN connected machine which is Django-WSGI-Apache configured

I configured my system to be able to deploy Django stuff using Apache on my machine(Ubuntu 11.10).I followed the instructions given at ...
1
vote
2answers
95 views

Do I need the ports.conf Apache configuration?

I am using nginx to serve static content and proxy requests to Apache for serving Django. I have multiple domains, and each domain has it's own port and Apache VirtualHost config. For example, ...
0
votes
1answer
78 views

Supervisord and gunicorn_django not playing well sometimes

I can issue a command via supervisorctl to shutdown my gunicorn_django process but sometimes it hangs around until I have to eventually kill it with a -9. The log for the process usually has this: ...
0
votes
1answer
80 views

Incorrect Django redirect from nginx/Apache HTTPS proxy misconfiguration

I'm fairly new to web development, so I know I'm making a beginner mistake with my server configuration. I have an nginx server sitting in front of an Apache server that is serving Django requests. I ...
0
votes
0answers
40 views

Django with Plesk on RedHat

I was told that using Django with Plesk is problematic and is not recommended for deployment. What is the reason for that? EDIT: Since I only heard it in some lecture and couldn't really get more ...
3
votes
3answers
109 views

Getting more database performance - postgresql

There is a django "web application" (from hell) we are hosting on a dedicated server. After some benchmarking I found that the "Application" is amazingly bad at database operations (refactoring is not ...
1
vote
0answers
46 views

DB encryption for Django web app without storing key on server

We are setting up a virtual private server (not hosted by us), on which we will be user testing our Django-based web application. The user-generated content produced in these tests will be very ...
0
votes
0answers
34 views

Nginx - How to configure the virtual.conf to serve a Django application

I'm trying to serve a Django application to production. I have installed Gunicorn and now I need to setup a Nginx Virtual Host. I'm kind of lost on how to configure the "virtual.conf" from Nginx. I ...
0
votes
1answer
125 views

apache+mod_wsgi configuration for django project(s) on a quad core

I've been experiment quite some time with a "typical" django setting upon nginx+apache2+mod_wsgi+memcached(+postgresql) (reading the doc and some questions on SO and SF, see comments) Since I'm still ...
3
votes
1answer
93 views

MySQL transaction issue with Django and Amazon RDS

I'm having a problem with a MySQL 5.5 database instance running on Amazon RDS. Periodically (once every couple of days) a transaction will fail to complete and appears to leave the tables locked. ...
2
votes
1answer
302 views

Nginx + uWSGI + Django performance stuck on 100rq/s

I have configured Nginx with uWSGI and Django on CentOS 6 x64 (3.06GHz i3 540, 4GB), which should easily handle 2500 rq/s but when I run ab test ( ab -n 1000 -c 100 ) performance stops at 92 - 100 ...
0
votes
0answers
17 views

Django deployment with lighttpd: URL issue

I have a problem deploying my Django application to a web server that runs lighttpd. Unfortunately, I followed the instructions in the Django docs, but it simply doesn't work for me. With the ...
-1
votes
1answer
42 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 ...
-1
votes
2answers
366 views

Ubuntu 11.10; Python2.7 wanted on libapache2-mod-wsgi insted of Python2.6

I have trouble with configuring a Django server in mode wsgi with Ubuntu 11.10. Here is the problem: the latest ubuntu 11.10 has python2.7 as default. Installing apache2 and libapache2-mod-wsgi expect ...
1
vote
0answers
56 views

django url matching with Lighttpd fastcgi

I have a problem with url. I can access the djando app home page ( localhost/djangotest/ ) but can't access the admin section ( localhost/djangotest/admin/ ). I can access it using the django server ...
1
vote
1answer
135 views

gevent with Django as daemon

I've been developing an app using django_socketio (a python port of the Node equivalent), which relies on gevent. It ships with a Django management command that runs gevent's pywsgi server, but that ...
3
votes
1answer
205 views

Why do I need Nginx and something like Gunicorn?

Im looking for a overly simplified answer for the following question. Im trying to build a foundational understanding of how Nginx works along side something like GUnicorn. Do I need both Nginx and ...
0
votes
2answers
75 views

how to serve multiple Domains from one Computer in a local network

I am having a problem serving my django project in a local network. Each project needs a unique domain name in the hosts file. In my local network other computers cannot see the projects. my computer ...
2
votes
0answers
29 views

whoosh_backend module cannot be found

I recently tried to install haystack with a whoosh search engine. This is to work with django 1.3 on a nginx production server. I've followed the installation instructions for each item (both haystack ...
2
votes
1answer
39 views

Hosting a Django Site with Apache/Ubuntu

I'm having issues trying to deploy my first Django app on ubuntu/Apache. I've followed the guides on djangoproject.com and scoured the internet looking for answers and I'm stuck. I have the basics up ...
2
votes
0answers
98 views

Analyze uwsgi strace log to find out why it takes high CPU usage

I'm running a django site with nginx through uwsgi. The problem is uwsgi process take a lot of CPU time when traffic become heavy. The same configuration works fine on test server and siege/ab ...
0
votes
1answer
43 views

Is this good results for my django webserver?

I bought a new server to migrate my site because the former are experiencing delays from time to time. I'm doing some tests with AB to check how good is this new server, and would like hear from you! ...
0
votes
1answer
62 views

Python(Django) web site on ISPConfig3

Can I run both PHP and Python(Django) websites on one ISPConfig without some changes in code, just from ISPConfig on Fedora 14?
1
vote
1answer
80 views

virtualenv gcc error MySQL-python

I am trying to install MySQL-python through PuTTY with virtualenv. Specs. *CentOS-6.0 *Python2.6 So I have read many sites and the biggest thing I see is python-dev, and python-devel(btw I don't ...
1
vote
3answers
192 views

Beginner installing first app on EC2 bitnami stack

Beginner question here. Its probably obvious to someone who does this stuff all the time. But I'm having difficulty setting up django running on an EC2 bitnami instance. I setup my server and I'm ...
0
votes
2answers
207 views

How do you serve multiple domain static files with nginx in front of apache?

I would like to run multiple domains from the same server. I would like nginx to sit in front of apache and serve static files. So requests for one.com/site_media/logo.png points to ...

1 2 3 4 5 7