app01
app01 urls.py from django.conf.urls import url from django.contrib import admin from admins import views views.py from app01 import models 总路由 urls.py from django.conf.urls import include from django.conf.urls import url
总路由 urlpatterns = [ url(r'^admins/', include('app01.urls')), url(r'^users/', include('app01.urls')), ]
每一个应用下的路由必须写路由列表,项目才可以跑起来,哪怕是空