标签:url hid span gif nbsp open setting include app
1、项目urls.py
from django.conf.urls import url,include from django.contrib import admin from django.views.static import serve from cnblog_s9 import settings from blog import views
urlpatterns = [ url(r"blog/",include("blog.url")), ]
2、app下创建url.py(引入与上面一致)
urlpatterns = [ url("(\w+)",views.homesite), # homesite(request) ]
标签:url hid span gif nbsp open setting include app
原文地址:https://www.cnblogs.com/nick477931661/p/8861905.html