Hello: I've installed Django 1.0 on Ubuntu and am trying to get it to run on Apache. Apache is installed, working fine, with mod-python also in place. I'm new at everything Linux.
But when I try to run my app (a test blog), Apache gives an ImportError message (below) I have come across NUMEROUS references to this error message, and the solution usually seems to involve changing the Python Path. But nothing I try seems to work. I've tried using / user/local for a path, /var/www; the path to my app. Nothing works. Any suggestions? MOD_PYTHON ERROR ProcessId: 9980 Interpreter: 'mysite' ServerName: 'ubuntu.ubuntu-domain' DocumentRoot: '/var/www/' URI: '/mysite' Location: '/' Directory: None Filename: '/var/www/mysite' PathInfo: '' Phase: 'PythonHandler' Handler: 'django.core.handlers.modpython' Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch default=default_handler, arg=req, silent=hlist.silent) File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1229, in _process_target result = _execute_target(config, req, object, arg) File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1128, in _execute_target result = object(arg) File "/usr/lib/python2.5/site-packages/django/core/handlers/ modpython.py", line 228, in handler return ModPythonHandler()(req) File "/usr/lib/python2.5/site-packages/django/core/handlers/ modpython.py", line 191, in __call__ self.load_middleware() File "/usr/lib/python2.5/site-packages/django/core/handlers/ base.py", line 31, in load_middleware for middleware_path in settings.MIDDLEWARE_CLASSES: File "/usr/lib/python2.5/site-packages/django/conf/__init__.py", line 28, in __getattr__ self._import_settings() File "/usr/lib/python2.5/site-packages/django/conf/__init__.py", line 59, in _import_settings self._target = Settings(settings_module) File "/usr/lib/python2.5/site-packages/django/conf/__init__.py", line 94, 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 'settings' (Is it on sys.path? Does it have syntax errors?): No module named settings --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---