from django.conf.urls import url
#从绝对路径导包会报错
# from meiduo.apps.users import views
from . import views
urlpatterns=[
# url(r'^$ ',views)
url(r'^usernames/(?P<username>\w{5,20})/count/$', views.UsernameCountView.as_view()),
url(r'^mobiles/(?P<mobile>1[3-9]\d{9})/count/$', views.MobileCountView.as_view()),
url(r'^users/$', views.UserView.as_view()),
]
点击右上角头像-博客设置,默认编辑器选择html就行了.
原帖:https://blog.csdn.net/weixin_42474930/article/details/81222012