On Sun, Feb 7, 2010 at 4:27 PM, Brian <tarkawebf...@gmail.com> wrote:
> Hi all, > > I'm putting together a Django application from scratch and have > created my models. I'm trying to activate the admin site now and am > getting the above error. I've tried everything I found on mailing > lists with no luck. This includes the old style settings.py (which is > commented out now) as well as the new. Note, the model has synced to > the database correctly. > > Here is the contents of the admin.py file which resides in my app > directory (triagedb/triagedb_app): > > [snip] > Here is my settings file: > [snip] > > ROOT_URLCONF = 'triagedb_app.urls' > > [snip] > > INSTALLED_APPS = ( > #'django.contrib.auth', > #'django.contrib.contenttypes', > 'django.contrib.sessions', > 'django.contrib.sites', > 'django.contrib.admin', > 'triagedb.triagedb_app', > ) > > Here is my urls..py file: > [snip] > The urls.py file you show looks like it is a base project urls.py file, auto-created perhaps when you ran django-admin.py startproject triagedb. That file would have been place in triagedb/urls.py. Yet your ROOT_URLCONF settings is ''triagedb_app.urls", which will be looking to load triagedb_app/urls.py from somewhere in the Python path. Where exactly is this urls.py file located? If it is really in triagedb/urls.py then the URLCONF setting should be 'triagedb.urls'. Karen -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.