File permissions "seems" to have been the problem. Website is now up
and running after trying almost everything (I felt like the day I lost
my phone security number).

Thank you for the responses.

On Sep 22, 1:48 am, Graham Dumpleton <graham.dumple...@gmail.com>
wrote:
> On Sep 21, 7:50 am, Jose Sibande <jbsiba...@gmail.com> wrote:
>
>
>
> > Hi,
> > I get this error in /var/log/apache2/error.log:
>
> > [Mon Sep 21 01:38:14 2009] [error] [client 41.157.12.3] ImportError:
> > Could not import settings 'WWlove.settings' (Is it on sys.path? Does
> > it have syntax errors?): No module named settings
>
> > And my /home/jose/WWlove/apache/django.wsgi Looks like this:
> > import os, sys
> > sys.path.append('/home/jose')
> > sys.path.append('/home/jose/WWlove')
> > os.environ['DJANGO_SETTINGS_MODULE'] = 'WWlove.settings'
>
> > import django.core.handlers.wsgi
>
> > application = django.core.handlers.wsgi.WSGIHandler()
>
> > *Themod_wsgidocumentation address this issue and says that if this
> > error occurs then that means I haven't spelled my path welll.
> > I looked, trying to spot the error, but evrything seems spelt ok.
>
> As the error says 'No module named settings' and not 'No module named
> WWlove.settings', it suggests it found the package directory called
> 'WWlove' but the directory it found doesn't actually contain a
> settings.py file, or that it isn't readable by user the web server is
> running.
>
> Add to WSGI script:
>
>   import WWlove
>   import sys
>   print >> sys.stderr, WWlove.__path__
>
> and verify where WWlove package root is being picked up from. Then
> check permissions of files in that directory and that it is the
> directory you want used.
>
> Graham
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to