Friday, April 18, 2014

Re: Questions about setting up my first app in django tutorial

from django.contrib import admin  from polls.models import Poll

class PollAdmin(admin.ModelAdmin):
pass    admin.site.register(Poll, PollAdmin)

On Thursday, 17 April 2014 00:03:03 UTC-4, Xiaofeng Feng wrote:
I am now trying to set up my first app using django tutorial. However, I was stuck at adding the poll app in part 2. I think I followed all the steps and it goes well before this question. After I change admin.py with
from django.contrib import admin  from polls.models import Poll    admin.site.register(Poll)
as the tutorial says. The admin website does not change at all. Does anybody know why this happens? Thanks.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/15198a1b-9dbf-436e-b010-e4656b953606%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment