[英]django-nonrel and the admin page
I am trying to set-up the Django admin suite for my site on AppEngine and it is not working. 我正在尝试在AppEngine上为我的网站设置Django管理套件,但它无法正常工作。 I am using the django-nonrel setup with .
我正在使用django-nonrel设置。 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.
为了证明我没有忘记,我从工作站点复制了URL模式代码,并查看了管理模块的代码,但仍然没有运气。
Thanks for any insight anyone has. 感谢任何人的洞察力。
RB RB
我有同样的问题,只需在已安装的应用程序中注释掉“django.contrib.sites”......这应该可以了!
是的,设置它有点棘手,我建议使用allButtonsPressed和GAE 1.5.3。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.