[英]django 1.3 admin site problem itself
I have got a really strange issue with the admin site.我在管理站点遇到了一个非常奇怪的问题。 When I enter to the site the address is:http://127.0.0.1:8000/admin/ and I see the front-admin-site, hmm looks fine.
当我进入该站点时,地址是:http://127.0.0.1:8000/admin/,我看到了front-admin-site,嗯看起来不错。 But when I click to any "+Add button" or any link on the site I see still the admin site:p but with address fe http://127.0.0.1:8000/admin/category/category/add/ .
但是当我点击任何“+添加按钮”或网站上的任何链接时,我仍然看到管理站点:p 但地址为 fe http://127.0.0.1:8000/admin/category/category/add/ 。 I can play as many times as I want, I see all the time the front-admin-site with a list of my models but with address fe http://127.0.0.1:8000/admin/category/category/add/category/category/add/category/category/add/category/category/add/ :pp
我想玩多少次就玩多少次,我一直在前台管理站点看到我的模型列表,但地址为 fe http://127.0.0.1:8000/admin/category/category/add/category /类别/添加/类别/类别/添加/类别/类别/添加/ :pp
What is wrong?怎么了? Best regards,
此致,
nykon尼康
It's a problem with your urls.py configuration, the way to have admin in there is:这是您的 urls.py 配置的问题,其中有管理员的方法是:
from django.contrib import admin
admin.autodiscover()
... ...
url(r'^admin/', include(admin.site.urls)),
99% of the time that's what that is. 99%的时间就是这样。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.