Wednesday, December 26, 2012

Re: no Polls in the admin page

Can you provide the contents of your admin.py in your polls app. If you've got the below code, then I'm not sure how that is happening.
class PollAdmin(admin.ModelAdmin):      fields = ['pub_date', 'question']    admin.site.register(Poll, PollAdmin)

Cheers,
Ryan

On 26/12/2012, at 11:09 AM, Kelketek Rritaa <kelketek@gmail.com> wrote:

I'm having precisely the same issue with precisely the same side effects. Further, I am able to get output to my logs by adding a print statement to the admin.py file. So I know it's being executed, it just doesn't show up in the admin page. Running syncdb has not fixed it.

Has anyone found a solution to this? There obviously must be something else that needs to be done, as all the other apps continue to hum along just fine in the admin page.

On Thursday, November 1, 2012 1:59:18 PM UTC-5, Mihail Mihalache wrote:
I have followed the django tutorial up to part 2 - https://docs.djangoproject.com/en/1.4/intro/tutorial02/ .
Everything worked fine, until I couldn't see the Polls entry on the admin page. I have checked that I have done everything mentioned in the tutorial. 
I get no error whatsoever. I have no idea what's wrong.
There is a polls entry INSTALLED_APPS.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/eQx6YFul_j4J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment