Re: In views.py snippet of Code

2012-03-15 Thread Sami Balbaky
Thank you Kevin, problem solved. I'm actually reading the book from www.djangobook.com. I need to cross reference with the documentation on www.thedjangoproject.com. Best, SB On Thu, Mar 15, 2012 at 11:43 AM, Kevin Wetzels wrote: > > > On Thursday, March 15, 2012 7:32:53 PM UTC+1, Django_for_S

Re: In views.py snippet of Code

2012-03-15 Thread Kevin Wetzels
On Thursday, March 15, 2012 7:32:53 PM UTC+1, Django_for_SB wrote: > > 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

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: