今天看了有点困  看了好久才写下来的 


#主url
from django.conf.urls import url,include

urlpatterns = [

    url(r'^app1/', include("app1.urls")),




]

#app url

from django.conf.urls import url,include
from app1 import views
from django.contrib import admin





urlpatterns = [
   url(r'^admin/', admin.site.urls),
   url(r'^viewQ/', views.viewQ),

完了
可以睡觉额

 

posted on 2017-05-18 23:34  mljqqh  阅读(276)  评论(0编辑  收藏  举报