添加 'URL模式'

This commit is contained in:
206530132 2021-06-23 21:06:51 +08:00
parent c261588273
commit 265c892ea0
1 changed files with 13 additions and 0 deletions

13
URL模式 Normal file
View File

@ -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)
]