I'd been trying several things to see if they'd work, so I went with the 
absolute minimum that /should/ work:

from polls.models import Poll
from django.contrib import admin
admin.site.register(Poll)

Putting in the code you've given me does not work either.

HOWEVER, yesterday I was poking around with it quite a bit, and was able to 
find out the following.

1. Even though the polls app isn't showing on the index page, 
admin/polls/poll/ works fine.
2. Admin does register the poll program:

In [1]: from django.contrib import admin

In [2]: import polls.admin

In [3]: admin.site._registry
Out[3]: {polls.models.Poll: <polls.admin.PollAdmin at 0xaf5c88c>}

3. It should be noted that this project is an already existing one I'm 
trying to modify. Do you know if there's a way to 'mask' what applications 
end up on the admin page? If so, this may have been enabled by the upstream 
for my project, and I need to find a way to disable this.

On Wednesday, December 26, 2012 5:43:38 PM UTC-6, Ryan Blunden wrote:
>
> 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 <[email protected]<javascript:>> 
> 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 [email protected]<javascript:>
> .
> To unsubscribe from this group, send email to 
> [email protected] <javascript:>.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>
>

-- 
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/-/fTqX2fAFtY4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to