Peter Bailey
unread,Jul 22, 2008, 3:21:42 PM7/22/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Hi all. I am attempting to convert an app I am writing to use the nfa.
I have looked at all the docs available about this, but must have
missed something. I am using:
Django version 1.0-alpha-SVN-8053
Anyway, I have changed my urls.py file to be like so:
from django.contrib import admin
(r'^admin/(.*)', admin.site.root), # in urlpatterns
and in my models file I have:
from django.contrib import admin
and then after my Page class declaration I have
admin.site.register(Page)
which creates the following error at runtime:
ImproperlyConfigured at /
Error while importing URLconf 'generator.urls': The model Page is
already registered
I have tried using the autodiscover and not using it - same result - I
also see some people are using an admin.py file and some are just
modifying the model.py file.
Can anyone point me at some info or tell me what I am doing wrong.
Feeling kinda stupid about now...
Thanks,
Peter