On Sat, 2007-03-10 at 14:21 +0000, mo wrote: > Hi, > > I get an Error when i execute the following line: > > >>> from django.template import Template
You either have to import the django configuration module and configure your settings manually, or set the DJANGO_SETTINGS_MODULE environment variable first. It's a semi-bug that you can't just import this code without needing to configure settings, but even when that's fixed (ticket #3687), you'll still have to configure settings before you can use the code in any way. The simplest way to try things out from the python shell is to run "manage.py shell" inside a project that is already configured. The more complicated way if you don't have a settings file available is to read http://www.djangoproject.com/documentation/settings/#using-settings-without-setting-django-settings-module , but that's for advanced use only. Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---