> I'm just getting started on django and I'm using a Windows Vista > version. Yesterday I completed about half of the tutorial without too > much difficulty. Now I'm trying to carry on from where I stopped. > The first thing I need to do is to restart the test server, so I go > into the 'mysite' folder and type "python manage.py runserver". This > fails with this traceback > Traceback (most recent call last): > File "manage.py", line 11, in <module> > execute_manager(settings) > File "C:\Python26\Lib\site-packages\django\core\management > \__init__.py", line > 338, in execute_manager > setup_environ(settings_mod) > File "C:\Python26\Lib\site-packages\django\core\management > \__init__.py", line > 316, in setup_environ > project_module = __import__(project_name, {}, {}, ['']) > ImportError: No module named mysite > > I haven't changed anything from yesterday and I just can't work out > why the server can't start again. In fact if I try anything with > manage.py, I get the same traceback. > > Can someone help me get back on track?
I suspect it has to do with the setting of your DJANGO_SETTINGS_MODULE env variable. When I do $ echo $DJANGO_SETTINGS_MODULE mysite.settings If I set it to "mysite", I get an error message just like yours. HTH, Chai --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---