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
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
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
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
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 (
5 matches
Mail list logo