> > On Apr 24, 5:17 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > > > > ImportError: Could not import settings 'frobnitz.settings' (Is it on > > > sys.path? Does it have syntax errors?): No module named > > > frobnitz.settings > > > So as the error clearly asks you: > > > 1. Does your frobnitz/settings.py have syntax errors? > > If I could see the errors, I would not be posting here.
Since you hadn't original included your settings.py, people have no way of guessing errors in it. So, I thought I would ask :) > > > 2. Is it in your PYTHONPATH? Your Apache conf for the application > > should have a line like: > > > PythonPath "['/path/to/project'] + sys.path" > > > That goes in the <Location> directive and should point to the > > directory that's the parent of your frobnitz directory. See this for > > details: > > The PARENT of the project dir! I had that wrong. Changing this has > helped some but now I cannot connect to the sqlite db. Heh. Your settings.DATABASE_NAME seems to be empty. It needs to point to the path where your SQLITE .db file lives. You should put in the absolute path to your .db file there and retry. > > Here are the python lines from httpd.conf. I include them despite the > fact they > have nothing to do with django not working when I use the built-in > django development server i.e. "python manage.py runserver". The two environments are not working for different reasons. Mod_python/ Apache wasn't working because frobnitz.settings was not in the PYTHONPATH. The dev server isn't working because you haven't defined your sqlite .db file path. Now that hopefully you've fixed the PYTHONPATH issue, the only thing that's keeping either environment from working is the sqlite .db path setting. Hope this helps, -Rajesh D --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---