LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 11-30-2007, 02:08 PM   #1
firedancer
Member
 
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
firedancer

Quote:
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.
 
  


Reply


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 08:39 AM
Daemon Template thekonqueror Programming 0 08-15-2005 02:07 PM
Template class with a template member... Nicholas Bishop Programming 3 02-21-2005 08:27 PM
c++ template help ashirazi Programming 4 11-16-2004 08:52 AM
C++ Template question deiussum Programming 11 09-24-2004 08:26 AM


All times are GMT -5. The time now is 07:16 PM.

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