In views.py snippet of Code

2012-03-15 Thread Django_for_SB
Hi All, I'm using render_to_response() in my views.py module. And of course, I've imported the method: "from django.shortcuts import render_to_response" # This is the code that's generating the error: def hours_ahead(request, offset): try: offset = int(offset) except ValueError:

Error on Tutorial Part 3 - https://docs.djangoproject.com/en/1.3/intro/tutorial03/

2012-02-29 Thread Django_for_SB
Hello All, I'm going through the tutorial on djangoproject.com, and can't seem to hurdle over this section that reads "Write views that actually do something" Here's the code I have so far, which is directly copied from the tutorial or prescribed by the tutorial: views.py: "from django.template

Calling "manage.py shell" from the Python Shell in Tutorial Part 1

2012-02-21 Thread Django_for_SB
Django Gurus, I'm an absolute beginner using Python in Django. I'm currently going through the tutorial, part 1, on the djangoproject.com main website: https://docs.djangoproject.com/en/1.3/intro/tutorial01/. I keep trying to complete part 1 of the tutorial, step by step, meaning, I'll go through