On Jan 11, 2008 6:31 PM, comike01 <[EMAIL PROTECTED]> wrote: > > I am having a disastrous time trying to set up a new django site on my > server. Every time I restart my server with it enabled I get > something along the lines of > " File "/usr/local/lib/python2.4/site-packages/django/core/handlers/ > base.py", line 27, in load_middleware > for middleware_path in settings.MIDDLEWARE_CLASSES: > > File "/usr/local/lib/python2.4/site-packages/django/conf/ > __init__.py", line 28, in __getattr__ > self._import_settings() > > File "/usr/local/lib/python2.4/site-packages/django/conf/ > __init__.py", line 59, in _import_settings > self._target = Settings(settings_module) > > File "/usr/local/lib/python2.4/site-packages/django/conf/ > __init__.py", line 87, in __init__ > raise ImportError, "Could not import settings '%s' (Is it on > sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, > e) > > ImportError: Could not import settings 'mysite.settings' (Is it on > sys.path? Does it have syntax errors?): No module named > mysite.settings" > > I'm sure this problem has to do with me using default settings still, > but I don't know what to change them to. Any advice would be much > appreciated. >
You don't say what server you are trying to start. Apache with mod_python? The development server? Something else? The problem looks to be that your server cannot locate your settings file -- it is probably not on the Python path for the server. But without knowing what server you are using, it is hard to give guidance on how to fix it. Note the docs do cover settings for deployment, search for "Deployment" here: http://www.djangoproject.com/documentation/ Karen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

