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 shell
> > Python 2.5.2 (r252:60911, Mar 27 2008, 1
On Tue, Mar 10, 2009 at 1:58 PM, Jonquille 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 "", line
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 to the documentation.
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 mis
4 matches
Mail list logo