Registered models do not show up in admin


I added a model to admin via, and it does not show up in admin. Since admin is so “It just works”, I have no idea of how to debug this. Pointers?


After adding and registering your admin:

# app/
class YourModelAdmin(admin.ModelAdmin):
    pass, YourModelAdmin)

Make sure your app is in your project

    # other apps ...

Sync your project for that model if you have not done so already:

python syncdb

Restart your server, CTRL-C:

python runserver

Answered By – Thierry Lam

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published