From 265c892ea05f928bb4848366078081688769ba14 Mon Sep 17 00:00:00 2001 From: 206530132 <1105152735@qq.com> Date: Wed, 23 Jun 2021 21:06:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20'URL=E6=A8=A1=E5=BC=8F'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- URL模式 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 URL模式 diff --git a/URL模式 b/URL模式 new file mode 100644 index 0000000..e345c98 --- /dev/null +++ b/URL模式 @@ -0,0 +1,13 @@ +#定义learning_logs的URL模式 + +from django.conf.urls import url + +from . import views + +app_name=‘learning_logs‘ +urlpatterns=[ + #主页 + url(r‘^$‘,views.index,name=‘index‘), + #显示所有主题, + url(r‘^topics/$‘,views.topics,name=‘topics‘) + ] \ No newline at end of file