摘要: ###腾讯云短信的写法 # 使用腾讯云短信的写法 需要 import random from django.conf import settings # from gongju.tengxun.sms import send_sms_single def 短信(request): code = ra 阅读全文
posted @ 2022-05-06 01:04 铁铁匠 阅读(573) 评论(0) 推荐(0)
摘要: from django.db import models # 设计数据表 class 部门表(models.Model): 部门名称 = models.CharField(max_length=32) class 员工表(models.Model): 员工姓名 = models.CharField( 阅读全文
posted @ 2022-05-06 00:56 铁铁匠 阅读(58) 评论(0) 推荐(0)
摘要: # 数据库配置 DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'django员工管理', 'USER': 'root', 'PASSWORD': '200209', 'HOST': '127.0.0. 阅读全文
posted @ 2022-05-06 00:54 铁铁匠 阅读(56) 评论(0) 推荐(0)
摘要: #django命令 python manage.py startapp app_name #新建app python manage.py startproject project_name #新建工程 templates # 新建模板在所在的app内 static #新建静态文件 阅读全文
posted @ 2022-05-06 00:50 铁铁匠 阅读(21) 评论(0) 推荐(0)
摘要: (venv) F:\xxx\xxxx项目名>pip freeze > requirements.txt 阅读全文
posted @ 2022-05-06 00:49 铁铁匠 阅读(19) 评论(0) 推荐(0)
摘要: ###强制覆盖本地代码 # 强制覆盖本地代码 git fetch --all git reset --hard origin/master git pull 修改git邮箱和用户名 git config --global user.name "tietiejiang" #修改名称 git confi 阅读全文
posted @ 2022-05-06 00:43 铁铁匠 阅读(38) 评论(0) 推荐(0)