If you want use django templates standalone read this:
http://www.djangoproject.com/documentation/templates_python/#configuring-the-template-system-in-standalone-mode

P.S. Why "query"?
On 23 сент, 17:26, mayank bhargava <[EMAIL PROTECTED]> wrote:
> when i type : >>>from django.template import Template
> on command prompt
> it is showing :
>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   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", lin
> e 3, in <module>
>     if settings.USE_I18N:
>   File "c:\python25\Lib\site-packages\django\conf\__init__.py", line
> 28, in __ge
> tattr__
>     self._import_settings()
>   File "c:\python25\Lib\site-packages\django\conf\__init__.py", line
> 53, in _imp
> ort_settings
>     raise EnvironmentError, "Environment variable %s is undefined." %
> ENVIRONMENT_VARIABLE
> EnvironmentError: Environmeant variable DJANGO_SETTINGS_MODULE in
> undefined
>
> please tell me  how to overcome by this problem


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

  • QUERY mayank bhargava
    • Re: QUERY Alex Koshelev

Reply via email to