On Tue, Mar 10, 2009 at 1:58 PM, Jonquille <[email protected]> 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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---