当前位置:网站首页>Django uses the existing data table method of MySQL database
Django uses the existing data table method of MySQL database
2022-07-29 01:20:00 【Zhou xiansen likes vegetarian food】
Django Use MySQL Data table methods that already exist in the database
It's best to change the table name you create into prefix and django Automatically create table names with the same prefix , It's ok if you don't change it , But too many late tables are easy to be confused .
stay django perform
python manage.py inspectdb > models.pySynchronize tables in the database , And generate a new models.py, Will generate models.py File overwrite app Medium models.py Just go .
Last synchronize database
python manage.py makemigrationstake app Under folder
migrationsDelete all contents of the folder , Folder retention , You can then execute the following command .python manage.py migrate
边栏推荐
- Charles -- 从0-1教你如何使用抓包工具
- 【ManageEngine】助力哈尔滨工程大学实现网络流量一体化监控管理
- Connect with Alipay payment
- 18 diagrams, intuitive understanding of neural networks, manifolds and topologies
- y80.第四章 Prometheus大厂监控体系及实战 -- kube-state-metrics组件介绍和监控扩展(十一)
- log4j动态加载配置文件
- 【ManageEngine】局域网监控软件是什么,有什么作用
- Flask project architecture (First Edition
- 电子招标初学者指南
- SDRAM Controller Design (two design methods of digital controller)
猜你喜欢

括号匹配的检验

Flask reports an error: pymysq1.err OperationalError:(1054, “Unknown column ‘None‘ in ‘field list‘“)
![“index [hotel/jXLK5MTYTU-jO9WzJNob4w] already exists“](/img/f2/37a1e65eb1104d72128f96fc5d9c85.png)
“index [hotel/jXLK5MTYTU-jO9WzJNob4w] already exists“

Cookie和Session

如何执行建设项目的时间影响分析?
![[web development] basic knowledge of flask framework](/img/79/5ece84552c82e98f5e15fac1ee3335.png)
[web development] basic knowledge of flask framework

Oozie job scheduling

Hilbert transform and instantaneous frequency

Deep learning | matlab implementation of TCN time convolution neural network spatialdropoutlayer parameter description

图扑软件亮相 2022 福州数博会,携手共创数字新时代
随机推荐
Classification prediction | MATLAB realizes time series classification prediction of TCN time convolution neural network
Cookie和Session
Cookies and sessions
进程和线程知识点总结 2
Expression evaluation
量化交易之数字货币篇 - 生成foot print因子数据
Self-attention neural architecture search for semantic image segmentation
递归与分治
Textkit custom uilabel identification link
RHCE命令练习(二)
Naver 三方登录
[web development] basic knowledge of flask framework
Oozie工作调度
Flask project architecture (First Edition
表达式求值
Flink Postgres CDC
【Jenkins笔记】入门,自由空间;持续集成企业微信;allure报告,持续集成电子邮件通知;构建定时任务
APP接入Kakaotalk三方登录
New pseudo personal guide page source code
[ManageEngine] what is the LAN monitoring software and what is its function