摘要: models.pyfrom __future__ import unicode_literalsfrom django.db import modelsfrom django.contrib.auth.models import User# Create your models here.class 阅读全文
posted @ 2017-01-17 15:04 二梦非凡 阅读(563) 评论(0) 推荐(0) 编辑
摘要: 有一个数据库然后创建一个超级用户urls.pyfrom django.conf.urls import urlfrom django.contrib import adminfrom son1.views import *urlpatterns = [ url(r'^admin/', admin.s 阅读全文
posted @ 2017-01-17 15:03 二梦非凡 阅读(101) 评论(0) 推荐(0) 编辑