随笔分类 - django
摘要:Django 2.0 中文官方文档地址: https://docs.djangoproject.com/zh-hans/2.0/ 《Django Girls》中文版地址: https://tutorial.djangogirls.org/zh/
阅读全文
摘要:GitHub:https://github.com/python-social-auth/social-app-django 官网文档:http://python-social-auth.readthedocs.io/en/latest/ 安装 生成数据库表 settings配置 D:\Python
阅读全文
摘要:官方文档:http://www.django-rest-framework.org/api-guide/throttling/#throttling settings.py配置 AnonRateThrottle:用户未登录请求限速,通过IP地址判断 UserRateThrottle:用户登陆后请求限
阅读全文
摘要:GitHub:https://github.com/niwinz/django-redis 官网文档:http://django-redis-chs.readthedocs.io/zh_CN/latest/ 安装:pip install django-redis 使用 1、settings.py配置
阅读全文
摘要:GitHub:https://github.com/chibisov/drf-extensions 官方文档:http://chibisov.github.io/drf-extensions/docs/ 安装 cache用法 1、使用 2、设置过期时间,配置在settings.py
阅读全文
摘要:官网文档:http://getblimp.github.io/django-rest-framework-jwt/ GitHub:https://github.com/GetBlimp/django-rest-framework-jwt 结合django-rest-framework使用,用于支持j
阅读全文
摘要:使用django-cors-headers模块 github:https://github.com/ottoyiu/django-cors-headers 官方文档中有详细说明 简要配置 1、安装 2、settings.py文件配置
阅读全文
摘要:Django xadmin引入DjangoUeditor 版本:python3.6.1,Django1.11.1 DjangoUeditor下载地址:https://github.com/twz915/DjangoUeditor3 1、放入自定义第三方目录,settings.py配置 2、urls.
阅读全文
摘要:ango 设置media static 本文python版本3.6.1,Django版本1.11.1 1、settings.py配置 增加django.template.context_processors.media 增加MEDIA_URL、MEDIA_ROOT 2、urls.py 3、model
阅读全文
摘要:官网地址:https://github.com/jamespacileo/django-pure-pagination 官网上有详细的安装和使用介绍
阅读全文
摘要:官方文档:http://django-simple-captcha.readthedocs.io/en/latest/usage.html#installation github:https://github.com/mbi/django-simple-captcha 安装部署 版本:django
阅读全文
摘要:官方文档: http://xadmin.readthedocs.io/en/docs-chinese/ 版本:django1.9 pip安装部署 settings.py配置 INSTALLED_APPS中增加2个app:xadmin、crispy_forms urls.py配置,xadmin替换ad
阅读全文
摘要:Django中Celery http请求异步处理 本章延续celery之前的系列 1、settings配置 2、编写task jib_update_task任务为更新salt jid数据 3、url设置 4、启动queue=salts的worker程序 5、http POST请求访问测试
阅读全文
只有注册用户登录后才能阅读该文。
摘要:Django Suit 效果 使用前django页面 使用后django页面 安装 官方文档 http://django-suit.readthedocs.io/en/develop/index.html 环境:python2.7.10,django1.9.8 配置使用 settings设置
阅读全文
摘要:Django中Celery的实现 Celery官网http://www.celeryproject.org/ 学习资料:http://docs.jinkan.org/docs/celery/ Celery介绍 Celery是基于Python开发的一个分布式任务队列框架,支持使用任务队列的方式在分布的
阅读全文
摘要:django1.9 + uwsgi +nginx1.9 部署 官方介绍 https://uwsgi.readthedocs.io/en/latest/tutorials/Django_and_nginx.html 安装uwsgi一、下载uwsgi:https://pypi.python.org/py
阅读全文