django-nonrel 和管理页面
我正在尝试在 AppEngine 上为我的网站设置 Django 管理套件,但它不起作用。我正在使用 django-nonrel 设置与 .我网站的其余部分似乎工作正常,但我需要让管理员工作,以便我可以开始使用数据存储区。
这是我得到的错误:
DoesNotExist at /admin/
Site matching query does not exist.
我的 url 模式包括此模式:
url(r'^admin/', include(admin.site.urls)),
我的设置包括:
'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',
我的困惑是它已安装并且它在那里,所以我不确定为什么它在该页面上失败。为了证明我没有失去理智,我从工作站点复制了 URL 模式代码,并查看了管理模块的代码,但仍然没有成功。
感谢任何人的见解。
RB
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我遇到了同样的问题,只需在已安装的应用程序中注释掉“django.contrib.sites”...
现在应该可以了!
I had the same problem, simply comment out 'django.contrib.sites', in installed apps...
This should work now !
是的,设置它有点棘手,我建议使用 allButtonsPressed 和 GAE 1.5.3。
Yep its a little tricky to set it up, I would recommend using allButtonsPressed and GAE 1.5.3.