Thanks you. I did it. :-)
On Fri, Jan 4, 2013 at 10:23 PM, Tsolmon Narantsogt <mnt...@gmail.com>wrote: > Thanks you its works fine. > > But another issue > > Django Version: > 1.3.4Exception Type: > ImportErrorException Value: > > No module named base.urls > > base is my app. > my urls > > urlpatterns = patterns('', > url(r'^$', include('base.urls')), > ..... > > > > On Fri, Jan 4, 2013 at 9:51 PM, Addy Yeow <ayeo...@gmail.com> wrote: > >> 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 <mnt...@gmail.com> >> 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 m...@email.com >> > 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 django-users@googlegroups.com. >> > To unsubscribe from this group, send email to >> > django-users+unsubscr...@googlegroups.com. >> > 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 django-users@googlegroups.com. >> To unsubscribe from this group, send email to >> django-users+unsubscr...@googlegroups.com. >> 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 django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.