Comments (3)
https://docs.djangoproject.com/en/1.10/topics/cache/#specifying-per-view-cache-in-the-urlconf
请看django文档.
至于没有key的问题,我觉得你可以检查下是否redis连接成功, 缓存key是自动生成的,你可以用命令:keys *
查看所有的keys,
我测试的如下所示:
5) ":1:views.decorators.cache.cache_page..GET.613e25bf0dd734f371c6647b4ab9e68a.d41d8cd98f00b204e9800998ecf8427e.en-us.Asia/Shanghai"
6) ":1:views.decorators.cache.cache_header..613e25bf0dd734f371c6647b4ab9e68a.en-us.Asia/Shanghai"
from blog.
ok,谢谢
from blog.
博主毕业后从事的是python相关吗
from blog.
Related Issues (16)
- 下载程序后,运行报报错 HOT 1
- Exception Value: Invalid template library specified. ImportError raised when trying to load 'bootstrap3.templatetags.bootstrap3': cannot import name flatatt
- 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)
- 你的requirements 下的dev.txt pymysql "=="少写了一个 HOT 1
- 大神是怎么学习django的 给新手一些建议好吗 谢谢 HOT 1
- bugs HOT 1
- 怎么没有数据库还有登陆校验 HOT 6
- ProgrammingError at / (1146, u"Table 'blog.app_article' doesn't exist") HOT 3
- 请问哪里有表数据 HOT 2
- 关于markwown HOT 1
- 前端框架 HOT 1
- ModuleNotFoundError: No module named 'celery' HOT 1
- 表结构 HOT 1
- 无法安装 HOT 1
- About to the import Errors and something HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blog.