django urls

project_name/urls.py:

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

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^dataBase/',include('dataBase.urls')),
]

 


app_name/urls.py
from django.conf.urls import url
from . import views

urlpatterns = [
    url(r' ',views.reginster,name = 'reginster')
]

posted on 2017-09-13 18:08  run_qin  阅读(136)  评论(0编辑  收藏  举报

导航