0
votes
0answers
31 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
votes
0answers
19 views

Django needs permission to do os.system() in Apache and mod_wsgi

I am stuck in a permission problem with Django, Apache and mod_wsgi, I think! I have successfully deployed my Django application in a development environment with Apache and mod_wsgi were also static ...
0
votes
1answer
32 views

Configuring Apache with Django

I'm trying to configure Apache with Django. Everything is working except the admin panel. It's static files are not loading. The documentation talks about different ways of doing it but none are ...
0
votes
1answer
49 views

Django, Ubuntu, Apache, mod_wsgi

I'm trying to configure apache with django on Ubuntu 12.04. I'm using mod_wsgi. I used a couple of different tutorials but none of them fully worked for me. Frustrated, I installed nginx without ...
1
vote
1answer
118 views

Tuning django based site deployed using apache wsgi for better performance

I'm running django application using apache+mod_wsgi, I have setup 6 medium ubuntu servers on Amazon ec2 in which 2 for mongo and 4 for django and apache, using ebs for postgresql and configured a ...
1
vote
1answer
101 views

Is graceful restart of Apache forcing to reload all python modules handled by mod_wsgi?

If I want to be sure that all python modules are recompiled and reloaded in my Django project under mod_wsgi and Apache, is it enough to restart apache gracefully with: /etc/init.d/apache graceful ...
0
votes
1answer
44 views

Need Server requirement estimates for my application [duplicate]

I am a newbie to Web Development and am trying to estimate the server requirements based on my application configuration. My application will have to perform simple database look-up based on unique ...
1
vote
1answer
156 views

Running multiple Django projects within Apache, sys.path being over written

I have been trying to research how to do a multiple Python / Django deployment using Apache VirtualHosts. The issue I am encountering seems straight forward, ImportError: Could not import settings ...
0
votes
1answer
308 views

Target WSGI script not found or unable to stat [closed]

This problem has tortured me for days. I am using Apache, WSGI and django on my Raspberry Pi. Operating system is Raspbian. Everything is okay except this error from apache. [error] [client ...
1
vote
1answer
157 views

Django WSGI application in a subdirectory?

Recently, I wanted to put one of my WSGI applications into a subdirectory, so that the other directories that cointain various scripts would work as before. In order to do that, I added the following ...
2
votes
1answer
164 views

Django + Apache + mod_wsgi: Why is wsgi script executed multiple times?

I'm relatively new to all the server technology and I followed this tutorial to deploy my django app on an Apache Webserver, using mod_wsgi: ...
0
votes
1answer
128 views

Can I configure apache/mod_wsgi so that the Alias URL path is not stripped before it reaches my Django app?

I am trying to configure Apache to host a Django webservice and a PHP website. All URLs with the pattern www.mysite.com/api should be directed to the Django service. All other URLs (e.g. ...
0
votes
0answers
52 views

Messed Up Virtual Hosting After Installing Django with mod_wsgi

I was tasked with setting up Django, which seemed to require mod_wsgi, on an Ubuntu server fairly recently, which I was able to get working through much ardor and trial and error. Unfortunately, I ...
0
votes
2answers
110 views

ubuntu linode server 404 error with django mod_wsgi [closed]

I have configured a linode server with apache2 and mod_wsgi.. the server is running wsgi is running postgre is running and syncdb was successful what I am having trouble finishing is actually ...
1
vote
2answers
139 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
1answer
328 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
1answer
456 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 │   ├── ...
0
votes
1answer
216 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 ...
0
votes
1answer
278 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 ...
0
votes
1answer
103 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
1answer
414 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
144 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
307 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 ...
1
vote
1answer
46 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 ...
0
votes
0answers
142 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
538 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
442 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 ...
0
votes
2answers
469 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 ...
4
votes
2answers
406 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
78 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
2answers
662 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
128 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
2answers
422 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 ...
0
votes
1answer
227 views

Running two wsgi applications on the same server gdal org exception with apache2/modwsgi

I'm trying to run two wsgi applications, one django and the other tilestache using the same server. The tilestache server accesses the db via django to query the db. In the process of serving tiles ...
1
vote
1answer
249 views

Apache / mod_wsgi / Django cannot find MySQL shared library

I'm stuck on a case where the MySQL libraries won't be found on a Apache/mod_wsgi/Django deployed server, altough Python alone can import the library correctly. Here's my Apache log errors: [Tue Jul ...
2
votes
1answer
377 views

django, mod_wsgi, MySQL High CPU - Problems

I am having a problem with an OSQA site. It is Django/Apache/mod_wsgi configured site. Every hour, the CPU spikes to 164% (Average) for task HTTPD. After 10 minutes, it frees back up. I have reviewed ...
1
vote
0answers
108 views

Apache conf changes when migrating django project from mod_python to mod_wsgi

Not sure if this is the right place to ask this question, but I'm migrating a django project from mod_python to mod_wsgi and I want to make sure I have my apache configuration correct. The old ...
0
votes
1answer
204 views

Django hosting on linux - what's the most memory-efficient technique?

I've got a VPS (Ubuntu 10.04, 512MB) on which I host 10-15 django sites, most of which have intermittent traffic. I'm wondering what the best hosting technique is in this situation, where the ...
2
votes
1answer
231 views

Apache, mod_wsgi, Django Error When Not SSH'd In To Server

I'm getting some strange errors that I've worked through to this point. I have an Ubuntu server setup with Apache + mod_wsgi + Django. When I'm SSH'd into the server, I can access the website fine ...
1
vote
1answer
431 views

Django error saying “could not connect to server: Permission denied”

I am getting an error trying to visit my Django app. I am running Gentoo and the web server is Apache with the mod_wsgi module to display Django. The error says OperationalError at /admin/ could not ...
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
324 views

Django + Apache with mod_wsgi on Mac. Unable to load MySQLdb

I currently set up a virtual host on Apache to try to host my Django project at django.localhost My apache configurations are correct: hobbes3@hobbes3:~/Sites/mysite$ apachectl configtest Syntax OK ...
0
votes
1answer
352 views

mod_wsgi overriding virtual hosts on Apache?

I have a working Django app hosted on my linode (Fedora 15), and I'm attempting to host a php-based site there as well. I'm using name-based virtual hosts to redirect requests based on the host name, ...
0
votes
3answers
700 views

Debian 5 Lenny how to upgrade Python to 2.7 version to run Django app?

I'm configuring Debian 5 to run my Django app. The required application is required incompatible with Python 2.5 packages. I installed Python 2.7 and created the symlink python -> ...
0
votes
1answer
284 views

Django + Apache + mod_wsgi problems

I have spent the last 2 days attempting to deploy a Django application I've built and tested using the development server built into manage.py. I've read countless tutorials and snippets, and cannot ...
2
votes
1answer
2k 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 ...
1
vote
0answers
75 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 ...
0
votes
1answer
244 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 ...
1
vote
1answer
352 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 ...