合集-Django
Django入门(一)
摘要:一、开始第一个demo 1、Django安装(略) 2、创建项目与应用 创建项目: django-admin startproject [项目名称] 例:django-admin startproject guest 目录结构: guest/ ├── guest/ │ ├── __init__.py
Centos7 离线安装python3 Django
摘要:安装python 1.、下载Python3源码包 下载地址:www.python.org/ftp/python/ 2、安装python前的库环境 yum install gcc patch libffi-devel python-devel zlib-devel bzip2-devel openss
'staticfiles' is not a registered tag library. Must be one of:
摘要:django.template.exceptions.TemplateSyntaxError: 'staticfiles' is not a registered tag library. Must ROOT_URLCONF = '' TEMPLATES = [ { 'BACKEND': 'djan
bootstrap模板
摘要:免费模板:https://sc.chinaz.com/tag_moban/bootstrap.html 蓝色公司Bootstrap后台源码模板下载 http://www.bootstrapmb.com/item/10587/preview Python+Vue+Django前后端分离项目实战 htt
django报错 django.core.exceptions.ImproperlyConfigured: mysqlclient 1.4.0 or newer is required; you have 0.10.1
摘要:django 3.1,Python3.8.2 启动项目报错如下: django.core.exceptions.ImproperlyConfigured: mysqlclient 1.4.0 or newer is required; you have 0.10.1. 解决 项目的__init__文
django模板
摘要:https://github.com/PyGuoJun/Interface_TestPlatform https://testerhome.com/topics/15534 https://testerhome.com/topics/13269 https://testerhome.com/topi
Django 2.1.7 视图 - 自定义404错误、500错误
摘要:Django 2.1.7 视图 - 自定义404错误、500错误 Django 2.1.7 使用富文本编辑器 tinymce
django 发送邮件正文表格模板
摘要:def email_template(book_id,borrow_book,yg_name): html = ''' <p>详情</p> <table border="1" cellpadding="0" cellspacing="0" width="1800" style="border-col
django 定时任务第三方库apscheduler
摘要:1、apscheduler未安装的需要自己安装,安装命令如下: pip install apscheduler 2、apscheduler库有很多不同类型的调度器,其他我也不懂,只知道BlockingScheduler与BackgroundScheduler,这是比较常用的两种 区别主要在于Bloc
Django内置发送邮件功能
摘要:第一步:setting.py配置 EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_USE_TLS = False # 是否使用TLS安全传输协议(用于在两个通信应用程序之间提供保密性和数据完整性。) EMAIL_
Django Models 多条件查询 以及Q/F查询
摘要:Django Models 多条件查询 以及Q/F查询:https://my.oschina.net/esdn/blog/834943 Django的数据库查询:https://blog.csdn.net/qq_28452411/article/details/86545481 查询:https:/
Django项目中添加ldap登陆认证功能的实现
摘要:setting配置 # settings配置 import ldap from django_auth_ldap.config import LDAPSearch AUTHENTICATION_BACKENDS = ( # 配置为先使用LDAP认证,如通过认证则不再使用后面的 'django_aut
django分页
摘要:views函数: @login_required(login_url='/users/login/') def device_list(request): username = request.session.get('user', '') all_device = Device.objects.a
xterm + react + antd pro 小坑记录
摘要:xterm + react + antd pro 小坑记录 https://juejin.cn/post/6863271258113441805 Django运维系统基础功能之 web远程ssh终端 https://blog.csdn.net/weixin_39098318/article/deta