django-nonrel and the admin page

2019-02-18 17:16发布

I am trying to set-up the Django admin suite for my site on AppEngine and it is not working. I am using the django-nonrel setup with . The rest of my site seems to work fine but I need to get the admin working so I can start working with the datastore.

Here is the error I get:

DoesNotExist at /admin/
Site matching query does not exist.

My url patterns includes this pattern:

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

My settings include:

'autoload',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'djangotoolbox',
'djangoappengine',
'myapp',

My confusion is that this is installed and it is there so I am not sure why it's failing on that page. To prove I was not loosing my mind I copied the URL pattern code from a working site and looked at the code for the admin module but still no luck.

Thanks for any insight anyone has.

RB

2条回答
我想做一个坏孩纸
2楼-- · 2019-02-18 17:36

Yep its a little tricky to set it up, I would recommend using allButtonsPressed and GAE 1.5.3.

查看更多
该账号已被封号
3楼-- · 2019-02-18 17:42

I had the same problem, simply comment out 'django.contrib.sites', in installed apps... This should work now !

查看更多
登录 后发表回答