Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-30-2007, 03:08 PM   #1
Registered: Apr 2007
Posts: 146

Rep: Reputation: 15
from django.template import Template, gives output

i started the django tutoial , but now i'm stuck
can this be related to corrupted installation or do i need to change settings ,
not really sure what to do
any options suggestions so i can proceed are appreciated
thank you

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/", line 918, in <module>
File "/var/lib/python-support/python2.5/django/template/", line 915, in add_to_builtins
File "/var/lib/python-support/python2.5/django/template/", line 904, in get_library
mod = __import__(module_name, {}, {}, [''])
File "/var/lib/python-support/python2.5/django/template/", line 5, in <module>
from django.utils.translation import gettext
File "/var/lib/python-support/python2.5/django/utils/translation/", line 3, in <module>
if settings.USE_I18N:
File "/var/lib/python-support/python2.5/django/conf/", line 28, in __getattr__
File "/var/lib/python-support/python2.5/django/conf/", line 53, in _import_settings
raise EnvironmentError, "Environment variable %s is undefined." % ENVIRONMENT_VARIABLE
EnvironmentError: Environment variable DJANGO_SETTINGS_MODULE is undefined.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ template blues spursrule Programming 5 06-08-2006 09:39 AM
Daemon Template thekonqueror Programming 0 08-15-2005 03:07 PM
Template class with a template member... Nicholas Bishop Programming 3 02-21-2005 09:27 PM
c++ template help ashirazi Programming 4 11-16-2004 09:52 AM
C++ Template question deiussum Programming 11 09-24-2004 09:26 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration