I'd suggest reading the docs. If your trying to use the template
system by itself. This [1] should answer your question.

[1]: 
http://www.djangoproject.com/documentation/templates_python/#configuring-the-template-system-in-standalone-mode

On Nov 30, 2007 3:29 PM, firedancer <[EMAIL PROTECTED]> wrote:
>
> Hi, I just started my django quest,
>
> but when i started  the "Template" part , i found out that not
> everything is set correct .
> this is it :
>  >>> from django.template import Template
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/var/lib/python-support/python2.5/django/template/
> __init__.py", line 918, in <module>
>     add_to_builtins('django.template.defaultfilters')
>   File "/var/lib/python-support/python2.5/django/template/
> __init__.py", line 915, in add_to_builtins
>     builtins.append(get_library(module_name))
>   File "/var/lib/python-support/python2.5/django/template/
> __init__.py", line 904, in get_library
>     mod = __import__(module_name, {}, {}, [''])
>   File "/var/lib/python-support/python2.5/django/template/
> defaultfilters.py", line 5, in <module>
>     from django.utils.translation import gettext
>   File "/var/lib/python-support/python2.5/django/utils/translation/
> __init__.py", line 3, in <module>
>     if settings.USE_I18N:
>   File "/var/lib/python-support/python2.5/django/conf/__init__.py",
> line 28, in __getattr__
>     self._import_settings()
>   File "/var/lib/python-support/python2.5/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.
>
>
> i'm new to using django ,
> i would like to proceed with it ,
>
> your help will be more then appreciated
>
> firedancer
>
> >
>



-- 
----
Waylan Limberg
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to