Re: Django by Example: error with to do app; global name 'escape' is not defined

2012-08-25 Thread koiwai
Ah, thanks. Maybe it's time to start using eclipse. On Saturday, August 25, 2012 7:23:45 AM UTC+1, Tundebabzy wrote: > > I think you want to add this import statement: > from django.utils.html import escape > > On 8/24/12, koiwai wrote: > > plus code > > > > def

Re: Django by Example: error with to do app; global name 'escape' is not defined

2012-08-25 Thread Babatunde Akinyanmi
I think you want to add this import statement: from django.utils.html import escape On 8/24/12, koiwai wrote: > plus code > > def response_add(self, request, obj, post_url_continue='../%s/'): > """ > Determines the HttpResponse for the add_view

Re: Django by Example: error with to do app; global name 'escape' is not defined

2012-08-24 Thread koiwai
plus code def response_add(self, request, obj, post_url_continue='../%s/'): """ Determines the HttpResponse for the add_view stage. """ opts = obj._meta pk_value = obj._get_pk_val() msg = "Item(s) were added successfully." # Here, we

Django by Example: error with to do app; global name 'escape' is not defined

2012-08-24 Thread koiwai
Hi, I'm currently working through Django by Examples and I am getting an error when attempting to have the user automatically go back to the listing of 'todo items' after entering new 'to do items' through creating a new date. The