摘要: 1 CACHES = { 2 'default': { 3 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache', 4 'LOCATION': os.path.join(BASE_DIR,'cache') 5 } 6 } 7 阅读全文
posted @ 2017-08-21 23:50 莫柔落切 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 1 1、请求周期 2 url> 路由 > 函数或类 > 返回字符串或者模板语言? 3 4 Form表单提交: 5 提交 -> url > 函数或类中的方法 6 - .... 7 HttpResponse('....') 8 render(request,'index.html') 9 redirec 阅读全文
posted @ 2017-08-21 21:49 莫柔落切 阅读(430) 评论(0) 推荐(0) 编辑