django-nonrel and the admin page

徘徊边缘 提交于 2019-12-19 09:41:23

问题


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


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/8498837/django-nonrel-and-the-admin-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!