摘要: URL控制器的动态参数 def article_year(request,year,month): return HttpResponce(year,month) url(r'article/(\d{4})/(\d{2})',views.article_year), 阅读全文
posted @ 2020-03-20 10:39 极客易先生 阅读(92) 评论(0) 推荐(0) 编辑
摘要: STATICFILES_DIRS=[ os.path.join(BASE_DIR,"static"), ] 静态文件路径 {% load static %} <script src="{% static "mytest.js" %}"></script> 静态文件的第二种引入方式 阅读全文
posted @ 2020-03-20 10:08 极客易先生 阅读(59) 评论(0) 推荐(0) 编辑