Register an application in the official Django tutorial

I follow the official Django tutorial. I am stuck in Part 2 .

I am registering a Poll object for the administrator but cannot see it. Where can I start debugging and fixing this?

I created admin.py in my polls / folders:

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

admin.site.register(Poll)
+3
source share
1 answer

Two good things to check:

  • Did you restart the dev server?
  • Is your application added to settings.py? those. INSTALLED_APPS = {'Poll',}

If you check the comments on my question, you will see how this was resolved. Essentially, my problem was that the application was not in INSTALLED_APPS.

Thanks to @Daniel Roseman and @pastylegs

+2
source

All Articles