上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页
摘要: settings.py 1 CACHES = { 2 "default": { 3 "BACKEND": "django_redis.cache.RedisCache", 4 "LOCATION": "redis://192.168.10.129:6379/0", 5 "OPTIONS": { 6 阅读全文
posted @ 2020-08-05 22:22 Fmaj-7 阅读(172) 评论(0) 推荐(0)
摘要: 1 TINYMCE_DEFAULT_CONFIG = { 2 # // General options 3 'mode': 'textareas', 4 'theme': "advanced", 5 'plugins': "pagebreak,style,layer,table,save,advhr 阅读全文
posted @ 2020-08-05 14:04 Fmaj-7 阅读(399) 评论(0) 推荐(0)
摘要: 1 from django.contrib.auth.backends import ModelBackend 2 from django.contrib.auth import get_user_model 3 from django.db.models import Q 4 5 UserMode 阅读全文
posted @ 2020-08-04 10:48 Fmaj-7 阅读(241) 评论(0) 推荐(0)
摘要: 1 class ModelBackend(object): 2 """ 3 Authenticates against settings.AUTH_USER_MODEL. 4 """ 5 6 def authenticate(self, request, username=None, passwor 阅读全文
posted @ 2020-08-04 10:41 Fmaj-7 阅读(139) 评论(0) 推荐(0)
摘要: 语句:select * from user \G; 作用:按行显示 阅读全文
posted @ 2020-08-03 22:39 Fmaj-7 阅读(112) 评论(0) 推荐(0)
摘要: 字典判断是否存在key: data = {'one': 1, 'two': 2, 'three': 3} python2:data.has_key('one') True python3: data.__contains__('one') True 阅读全文
posted @ 2020-07-28 11:44 Fmaj-7 阅读(311) 评论(0) 推荐(0)
摘要: before/prepend/after/append 阅读全文
posted @ 2020-07-24 11:21 Fmaj-7 阅读(283) 评论(0) 推荐(0)
摘要: 一、celery目录结构: 1、celery.py: 2、celeryconfig.py 3、task.py 二、配置 1、sender:本地windows10 2、broker:centos7.4,192.168.110.128,redis作为中间人 3、worker:centos7.4,192. 阅读全文
posted @ 2020-07-17 11:32 Fmaj-7 阅读(397) 评论(0) 推荐(0)
摘要: https://www.5ibc.net/ 阅读全文
posted @ 2020-07-15 11:28 Fmaj-7 阅读(150) 评论(0) 推荐(0)
摘要: git init git status git add 文件名 (对指定文件进行版本控制) git add . (对制定文件夹下所有文件及子目录进行版本控制) git commit -m '提交到版本库并创建第一个版本' git config --global user.email "xxxx@qq 阅读全文
posted @ 2020-07-15 10:45 Fmaj-7 阅读(171) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页