On Sun, 2007-04-01 at 20:36 +1000, Malcolm Tredinnick wrote: > Hi Colin, > > On Sun, 2007-04-01 at 03:18 -0700, CColin wrote: > > Hi, > > Recently downloaded the various prerequisites and am following the > > online manual. > > > > All going reasonably well except until chapter 4, Templates. > > > > When trying to run the following command: > > > > >>>django.template import Template > > I get: > > Traceback (most recent call last): > [... snip ...] > > You've hit a small bug in Django, unfortunately. It should be possible > to do what you have tried without requiring any settings to be > configured, but at the moment it isn't.
[...] > A lot of people are starting to hit this problem lately (stupid book .. > encouraging people to try Django!), so I'll try to fix it tomorrow > morning; I'm going to be stuck inside waiting for a package delivery in > any case. :-) Good new, bad news situation here: in the very latest subversion code, it is possible to do "from django.template import Template" without any error now. I had to fix that as part of fixing another problem. However, you will never be able to do anything with the templates without configuring the settings (or using the "manage.py shell" method). This is because the template code behaves slightly differently internally depending upon whether it is in debug mode or not and it needs to access the settings to know that. So there's a slight bug in the text at www.djangobook.com there. Using the "manage.py shell" method should work exactly as you expect, though. Regards, 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 -~----------~----~----~----~------~----~------~--~---