Re: Django 1.7 tutorial: Use generic views

2014-09-01 Thread Michael Martin
James, Yes, you are correct. It would have made more sense if they placed the "Amend Views" section first. On Mon, Sep 1, 2014 at 6:12 PM, James Schneider wrote: > Did you finish out the 'Amend Views' section of the tutorial? > > https://docs.djangoproject.com/en/dev/intro/tutorial04/#am

Re: Django 1.7 tutorial: Use generic views

2014-09-01 Thread James Schneider
Did you finish out the 'Amend Views' section of the tutorial? https://docs.djangoproject.com/en/dev/intro/tutorial04/#amend-views Based on the dir() output below, you didn't. You won't be able to reference those view classes from your urls.py until you create them in views.py. Personal note: I t

Re: Django 1.7 tutorial: Use generic views

2014-09-01 Thread Michael Martin
Here are the results that I recieved >>> from polls import views >>> dir(views) ['Choice', 'HttpResponse', 'HttpResponseRedirect', 'Question', '__doc__', '__fil e__', '__name__', '__package__', 'detail', 'get_object_or_404', 'index', 'render ', 'results', 'reverse', 'vote'] >>> On Sat, Aug 30, 2

Re: Django 1.7 tutorial: Use generic views

2014-08-30 Thread Sithembewena Lloyd Dube
I suggest typing: - manage.py shell - from polls import views - dir(views) What output do you get? i.e, nspect views like the regular python module that it is. On Sat, Aug 30, 2014 at 6:41 PM, Pitchblack wrote: > I need to use Jython instead of Python, I found that jython2.7b2 works > with DJa

Django 1.7 tutorial: Use generic views

2014-08-30 Thread Pitchblack
I need to use Jython instead of Python, I found that jython2.7b2 works with DJango 1.7. So, I am stuck using the beta version. I am trying to follow the current Django tutorial and I have ran into a problem. I am not sure if I am using generic views properly. When I try to change the urls.py (