Given that the group has figured out that you need to run
autodiscover() and register any models you want to show in NFA Admin
page, I wanted to point out that the tutorial has the same bug,
somewhere in Tutorial 2, it tells you to un-comment the # for admin
access, which DOES NOT show anything in Admin. The correction would
be to add the autodiscover() call.
Currently part 2 of the Tutorial shows
* Add "django.contrib.admin" to your INSTALLED_APPS setting.
* Run python manage.py syncdb. Since you have added a new
application to INSTALLED_APPS, the database tables need to be updated.
* Edit your mysite/urls.py file and uncomment the lines below the
“Uncomment this for admin:” comments. This file is a URLconf; we’ll
dig into URLconfs in the next tutorial. For now, all you need to know
is that it maps URL roots to applications.
But we need to add to the urls.py:
from django.contrib import admin
admin.autodiscover()
This will make the admin site work the way it used to.
Thoughts?
Thanks
john
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
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
-~----------~----~----~----~------~----~------~--~---