views:

47

answers:

1

I just registered my models my models with django admin. I navigate to the django admin at /admin. I log in sucessfully and I can see all my models. great so far.

But now if I try to click one of the links, for Ex: 'users', django gives me a 404 saying

The current URL, admin/auth/user/, didn't match any of these.

Its really weird because in my urls.py I have it mapped correctly

(r'^admin/', include(admin.site.urls)),

I have all the required middleware enabled and have these in my installed apps

'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.admin',

anyone have any idea? Thanks.

A: 

Do you have this one in your urls.py?:

from django.contrib import admin

admin.autodiscover()

But in fact without this you shouldn't even see models from django.contrib.auth... weird, can you post complete urls.pt file?

Lukasz Dziedzia
here it isfrom django.conf.urls.defaults import *import dselectorimport splash.viewsimport hypervisor.viewsfrom django.contrib import adminadmin.autodiscover()parser = dselector.Parser()#hypervisorurlpatterns = parser.patterns('', (r'^admin/', include(admin.site.urls)),)
colorfulgrayscale
is this only urls file you use in the project?(there are no url patterns for your views)
Lukasz Dziedzia