Loading

摘要: 创建User表 继承AbstractUser from django.db import models # Create your models here. from django.contrib.auth.models import AbstractUser class User(AbstractUser): # 阅读全文
posted @ 2022-11-30 23:43 爱learn 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 重构项目后端目录 重构项目目录 规划 luffy 项目名 |--logs/ 项目运行事/开发时 的日志目录 -包 |--script/ 项目临时使用脚本文件目录 |--doc/ 存放项目介绍信息 |--readme.md 项目说明 |--luffy/ 项目主应用, 开发时代码存放的目录 -包 |--urls.py 总 阅读全文
posted @ 2022-11-30 22:38 爱learn 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 创建虚拟环境 创建虚拟环境 创建背景 同一个版本的Python建立的项目只能对应一个版本的模块. 例: 项目1, python3.6 使用 django1.x (运行项目2之后运行项目1, 需要卸载django2.x, 重装django1.x) 项目2, python3.6 使用 django2.x (运行项目1 阅读全文
posted @ 2022-11-30 21:18 爱learn 阅读(162) 评论(0) 推荐(0) 编辑
摘要: pip换源 pip换源 哪些源可以换 直接通过pip访问的是外网, 速度慢. 将pip的访问地址换成国内的地址, 加快下载模块的速度. 国内一些机构对Python官网的模块进行了备份. 国内五大源: 阿里云 https://mirrors.aliyun.com/pypi/simple/ 清华大学 https:/ 阅读全文
posted @ 2022-11-30 21:14 爱learn 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 百川入海 0--->1 阅读全文
posted @ 2022-11-30 20:01 爱learn 阅读(59) 评论(0) 推荐(0) 编辑