Hi,
Recently downloaded the various prerequisites and am following the
online manual.

All going reasonably well except until chapter 4, Templates.

When trying to run the following command:

>>>django.template import Template
I get:
Traceback (most recent call last):
  File "<pyshell#7>", line 1, in <module>
    from django.template import Template
  File "C:\Python25\lib\site-packages\django\template\__init__.py",
line 918, in <module>
    add_to_builtins('django.template.defaultfilters')
  File "C:\Python25\lib\site-packages\django\template\__init__.py",
line 915, in add_to_builtins
    builtins.append(get_library(module_name))
  File "C:\Python25\lib\site-packages\django\template\__init__.py",
line 904, in get_library
    mod = __import__(module_name, {}, {}, [''])
  File "C:\Python25\lib\site-packages\django\template
\defaultfilters.py", line 5, in <module>
    from django.utils.translation import gettext
  File "C:\Python25\lib\site-packages\django\utils\translation
\__init__.py", line 3, in <module>
    if settings.USE_I18N:
  File "C:\Python25\lib\site-packages\django\conf\__init__.py", line
28, in __getattr__
    self._import_settings()
  File "C:\Python25\lib\site-packages\django\conf\__init__.py", line
53, in _import_settings
    raise EnvironmentError, "Environment variable %s is undefined." %
ENVIRONMENT_VARIABLE
EnvironmentError: Environment variable DJANGO_SETTINGS_MODULE is
undefined.

>>>>>>>>>>>>

Help?

Regards
Colin


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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