Django Redirection Help

2012-10-17 Thread lovetoprogram
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

Django learning

2012-06-21 Thread lovetoprogram
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

Django newbie

2012-06-20 Thread lovetoprogram
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