You may want to define WSGIDaemonProcess inside your VirtualHost, see http://modwsgi.readthedocs.org/en/latest/configuration-directives/WSGIDaemonProcess.html
On Fri, Jan 4, 2013 at 9:36 PM, Tsolmon Narantsogt <[email protected]> wrote: > Hello Comrades. > I have a problem when deploying django project. I installed apache and > mod_wsgi module and django. > And i create virtual host in /etc/apache2/sites-available/mysite > > content: > <VirtualHost *:80> > ServerName name > ServerAdmin [email protected] > DocumentRoot /var/www/mydjangoproject/ > <Directory /var/www/mydjangoproject/> > Order allow,deny > Allow from all > </Directory> > WSGIScriptAlias / /var/www/mydjangoproject/mydjangoproject/app.wsgi > </VirtualHost> > mydjangoproject - it's my root package name > > and my app.wsgi > > import os, sys > > sys.path.append('/var/www') > sys.path.append('/var/www/mydjangoproject') > os.environ['DJANGO_SETTINGS_MODULE'] = 'mydjangoproject.settings' # this is > your settings.py file > import django.core.handlers.wsgi > application = django.core.handlers.wsgi.WSGIHandler() > > But i got following error (apache log) > > ImportError: Could not import settings 'mydjangoproject.settings' (Is it on > sys.path?): No module named settings > > Pls send me solution. It's my first time :-) > > Regards. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

