hi iam new to django. i just installed the Django. can any one help me in setting the environment variables . actually i put a path like: C:\Python25\Lib\site-packages\django\ and site-packages\bin\django-admin.py but for both types iam unable to import templates.
whenever i try this line from django.template.loader import get_template the following errors are coming:----- Traceback (most recent call last): File "<pyshell#13>", line 1, in <module> from django.template.loader import get_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. thankyou in advance --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---