返回列表 发帖

求助。django1.1激活管理器得问题

提示: 作者被禁止或删除 内容自动屏蔽

我在django1.1 python2.5下可以成功登录admin管理界面。
操作分如下几步:
1.修改settings.py:
INSTALLED_APPS = (
   .....
    'django.contrib.admin',
)
2、修改urls.py:
from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^mysite/', include('mysite.foo.urls')),

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

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

评分人数

TOP

回答的好.
让中国Python发展的更快 ,更好.

TOP

返回列表