[Tilesathome] Help: getting django to work
Sebastian Spaeth
sebastian at sspaeth.de
Mon Nov 17 11:46:37 GMT 2008
Enzo Losantas wrote:
> raise EnvironmentError, "Could not import settings '%s' (Is it on
> sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e)
>
> EnvironmentError: Could not import settings
> '/root/OSM/mysite/settings.py' (Is it on sys.path? Does it have syntax
> errors?): No module named /root/OSM/mysite/settings.py
No expert by any means, but django needs to find the main settings file
of a site in order to function. In Apache FastCGI etc you set those with
SETTINGS_MODULE environment variables and in "django-admin.py runserver"
it will use the standard python paths to find settings.py (ie it will
look in the current directory first).
Have you copied settings.py.example (to settings.py) and adapted to your
needs as described in docs/INSTALL?
It isn't finding settings.py
Spaetz
More information about the Tilesathome
mailing list