Re: rank newbie - working thru 2.0 Book- basic template Tags give 'syntax error' on {%

2009-03-10 Thread Jonquille
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 wrote: > On Tue, Mar 10, 2009 at 1:58 PM, Jonquille wrote: > > > python manage.py

Re: rank newbie - working thru 2.0 Book- basic template Tags give 'syntax error' on {%

2009-03-10 Thread James Bennett
On Tue, Mar 10, 2009 at 1:58 PM, Jonquille wrote: > What am I missing please, and thank you. You're missing the idea that templates are not Python code and are not typed at a Python prompt -- they're placed in template files and templates are loaded and rendered according

rank newbie - working thru 2.0 Book- basic template Tags give 'syntax error' on {%

2009-03-10 Thread Jonquille
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 "", line 1 {% if 1 5} ^ SyntaxError: invalid syntax What am I