Python
Django
空空dream
这个作者很懒,什么都没留下…
展开
-
Rabin加解密算法(python3)
【代码】Rabin加解密算法(python3)原创 2023-11-18 16:20:50 · 798 阅读 · 0 评论 -
migrate python反向生成数据库模型工具
PS D:\CODE\career> python manage.py migrate System check identified some issues: WARNINGS: ?: (mysql.W002) MySQL Strict Mode is not set for database connection 'default' HINT: MySQL's Strict Mode fixes many data integrity problems in MySQL, such原创 2020-09-09 00:41:12 · 305 阅读 · 0 评论 -
Python入门 页面和传参
逻辑: 在career\career\settings.py配置模板路径,系统自动去该路径查找HTML模板(项目名career) 定义页面函数使用render渲染关联到index模板,传入context参数 在模板html代码插入context,两个大括号引用{{ context }} 1. 配置模板路径 按需修改,以下代码有省略, ‘DIRS’: [os.path.join(BASE_DIR, ‘mbti/view’)],//添加模板路径 import os//添加os包,否则会报错 from.原创 2020-09-08 01:29:40 · 514 阅读 · 0 评论 -
Python入门 创建Django项目和应用
安装Python 官网:https://www.python.org/downloads/windows/ Download Windows x86-64 executable installer 安装pip和Django 自行安装,直接执行pip install django PS D:\CODE\career> pip install django Requirement already satisfied: django in c:\users\liguangliang\appdata\lo原创 2020-09-05 14:30:10 · 235 阅读 · 0 评论