http://django-chinese-docs.readthedocs.org/en/latest/topics/db/models.html 通常在项目中的models.py文件中建表的 This example model defines a Person, which has a first_name and last_name: from django.db import models class Person(models.Model): first_name = models.…
问题1:in include 'provide the namespace argument to include() instead 描述:在最外层的urls.py 添加项目的urls后报错,错误显示:in include 'provide the namespace argument to include() instead." 解决方案: 修改:url(r'admin/',include(admin.site.urls)) 为 url(r'admin/',admin.site.urls)…