On Jun 21, 10:51 am, commonzenpython <commonzenpyt...@gmail.com> wrote: > Graham thanks for all your help, and patience, i will read the the > information in the link you provided, this is the exact configuration > i added to the httpd.conf file : > > LoadModule wsgi_module modules/mod_wsgi.so > WSGIScriptAlias / /home/ashtanga/public_html/ash/apache/django.wsgi > > the path to my Django project is /home/ashtanga/public_html/ash > > This is my django.wsgi: > > import os > import sys > sys.path.append('/home/ashtanga/public_html/ash') # again i changed
You need parent as well as site directory. Thus: sys.path.append('/home/ashtanga/public_html') sys.path.append('/home/ashtanga/public_html/ash') As I said, try the WSGI script in my blog post as that means you only have to setup one path and don't need to set DJANGO_SETTINGS_MODULE either as Django will work that out automatically with the way the final WSGI script in my blog post does things. Graham > the actual adress for > security purposes but the path leads to my project called ash > os.environ['DJANGO_SETTINGS_MODULE'] = 'ash.settings' > import django.core.handlers.wsgi > application = django.core.handlers.wsgi.WSGIHandler() > > i will try the quick fix provided by Izantal -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.