stay Django After the completion of the project , stay Set it in mysql Connection parameters :
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME':
'formtask',# Database name , This database should be updated in advance mysql Create a good 'USER': 'root', 'PASSWORD': '123456', 'HOST'
: '', } }
And then again Created in class class , The database model , One class Class corresponds to a database table :
class icesc_v_templates(models.Model): t_id=models.AutoField(primary_key=True)
v_num=models.IntegerField(blank=True, null=True) Cpu_info=models.CharField(
max_length=20, blank=True, null=True) mem_info=models.CharField(max_length=20,
blank=True, null=True) hard_store=models.CharField(max_length=20, blank=True,
null=True) os_info=models.CharField(max_length=200, blank=True, null=True) env=
models.CharField(max_length=100, blank=True, null=True) remark=models.CharField(
max_length=50, blank=True, null=True) class sysPremod(models.Model): o_id=models
.AutoField(primary_key=True) o_code=models.CharField(max_length=20) o_name=
models.CharField(max_length=50) o_description=models.CharField(max_length=50)
Finally, execute the command line :
pip install mysqlclient python making,igrations python

©2019-2020 Toolsou All rights reserved,
【 Explain in detail 】 Interview must ask :SpringBoot Automatic configuration principle 【 Hyper detail 】Java Realization of student information management system 2020 The 11th National Blue Bridge Cup Python group JavaScript note ( five )---- Branch statement MYSQL database SQL Sentence practice experiment EXERCISES. 1 SIMPLE COMMANDSMySQL Basics Commonly used sentence ( Add / delete / modify query )C++ of string of compare usage vue limit input Only positive numbers can be entered C Language of a Gobang game implementation Programmer refused due to low salary offer,HR become shame , Netizens instantly blew up ..