摘要: Django的管理面板默认是不开启的,所以我们需要进行一些设置工作1、在INSTALLED_APPS里面把django.contrib.admin前面的注释去掉2、运行python manage.py syncdb ,建立和管理有关的表3、编辑mysite/urls.py文件,设置管理面板的url路由规则from django.conf.urls import patterns, include, url# Uncomment the next two lines to enable the admin:from django.contrib import adminadmin.autodis 阅读全文
posted @ 2013-05-31 22:07 Django中国 阅读(1806) 评论(0) 推荐(1) 编辑