Great - the 2.0 book/Chap. 4, moves smoothly from code examples to Tags without that mention.
Thanks for the quick responses. Jon On Mar 10, 3:02 pm, Alex Gaynor <alex.gay...@gmail.com> wrote: > On Tue, Mar 10, 2009 at 1:58 PM, Jonquille <jon.le...@verizon.net> wrote: > > > python manage.py shell > > Python 2.5.2 (r252:60911, Mar 27 2008, 17:57:18) [MSC v.1310 32 bit > > (Intel)] on win32 > > Type "help", "copyright", "credits" or "license" for more information. > > (InteractiveConsole) > > >>> {% if 1 %} > > File "<console>", line 1 > > {% if 1 5} > > ^ > > SyntaxError: invalid syntax > > > What am I missing please, and thank you. > > Jon > > What you just pasted is a piece of django template, not Python code, you > need to put it in a string and use a template object as the djangobook > shows(and all the docs do), not try to execute it at the Python prompt. > > Alex > > -- > "I disapprove of what you say, but I will defend to the death your right to > say it." --Voltaire > "The people's good is the highest law."--Cicero- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---