摘要: setting.py配置: TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR,'templates')], 'APP_DIRS': 阅读全文
posted @ 2021-07-01 15:22 半日闲1 阅读(38) 评论(0) 推荐(0) 编辑
摘要: url: from django.conf.urls import url from myApp import views urlpatterns = [ # url(r'^time/plus/(\d+)/$', views.hours_ahead), url(r'^time/plus/(\d{1, 阅读全文
posted @ 2021-07-01 14:18 半日闲1 阅读(75) 评论(0) 推荐(0) 编辑