|
 
- UID
- 101
- 帖子
- 184
- 精华
- 34
- 积分
- 269
- 阅读权限
- 150
- 在线时间
- 116 小时
- 注册时间
- 2008-4-3
- 最后登录
- 2010-7-3
|
2#
发表于 2009-10-9 23:38
| 只看该作者
我在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
评分人数
-
|