Hi,
I am new to Django and I was creating a basic site with it. But I have
encountered a problem.
In the following code, I have a webpage with form and when submit button is
clicked, the parameters have to be passed into a results page for display.
When I keep render_to_response of the results
I tried to do this according the tutorial.
>>> from django import template
>>> t = template.Template('My name is {{ name }}.')
>>> c = template.Context({'name': 'Adrian'})
>>> print t.render(c)
My name is Adrian.
>>> c = template.Context({'name': 'Fred'})
>>> print t.render(c)
My name is Fred.
But
I am trying django using the djangobook tutorial. I have Python
experience. However when I'm trying to execute following command in
command prompt (Windows 7), I get this error.
File "", line 1
django-admin.py startproject mysite
^
SyntaxError: Invalid synatx
3 matches
Mail list logo