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,
Bigtable Paper notes be based on springboot File upload for python Hundred lines of effective code to achieve Hanoi Tower Games ( Minimalist version )2019 Ladder race Lucky lottery (15 branch ) MySQL8.0MGR Single owner / Multi master installation and switching Java Function and use of reflection python Painting love A masterpiece to be handed down !Alibaba Interior products Redis In depth notes and source code data structure C Parking management of language JAVA Interview questions - Find the longest string that does not repeat ( Personal approach )