I am trying to enable admin for my application. I managed to start the administrator, but I can not get my models to appear on the admin page. I tried following the tutorial ( here ) that says:
(quote)
Only one thing: we need to tell the administrator that Poll objects have an admin interface. To do this, create a file called admin.py in your polls directory and edit it to look like this:
from polls.models import Poll from
django.contrib import admin
admin.site.register(Poll)
(final quote)
I added the file admin.pyas instructed, and also added the following lines to urls.py:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
...
(r'^admin/', include(admin.site.urls)),
)
, , . print 1 admin.py, , , , django admin.py. , -, , "", "" "".
?