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

3) python


4) >>> from django.template import Template
    >>> t = Template("My name is {{ name }}.")

5) ERROR: ImportError: Settings cannot be imported, because
environment variable DJANGO_SETTINGS_MODULE is undefined.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to