On Mon, Nov 10, 2008 at 6:10 PM, ayayalar <[EMAIL PROTECTED]> wrote: > > Hello I am new to Django. > > I am trying to exercise "templates" through the interactive shell, > however I end up getting this error. Can anyone help? > > here is the exact steps I follow: > > 1) cd C:\Django\mysite > > manage.py > settings.py > settings.pyc > urls.py > urls.pyc > views.py > views.pyc > __init__.py > __init__.pyc > > 2) set DJANGO_SETTINGS_MODULE=mysite.settings I've also tried set > DJANGO_SETTINGS_MODULE=settings.py >
Setting it to mysite.settings will work if c:\django is on your PYTHONPATH. Setting it to settings.py won't work at all because of the .py. Assuming you are running the python from c:\django\mysite, setting DJANGO_SETTINGS_MODULE to just 'settings' will work. Or, use 'python manage.py shell', which assumes settings.py is in the current directory and sets the environment up for you. Karen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---