Django管理问题1

2024-04-20 12:21:57 发布

您现在位置:Python中文网/ 问答频道 /正文

每次我在django admin中点击任何链接,它也会调用其他url,并将我注销,所以现在我不能更改任何内容。在

会话id每次也会更改。在

我查过了网址.py管理员的在文件的最上面。在

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'developer.views.home', name='home'),
    # url(r'^developer/', include('developer.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)

Tags: thetodjangourldeveloper内容homedoc