django urls
Posted run_qin
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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‘)
]
以上是关于django urls的主要内容,如果未能解决你的问题,请参考以下文章