One. Initialization of the project
With the installation of a virtual environment github project development environment
two. settings.py:
Set # databases are fixed DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'mxshop', # to connect to the database, you need to create a good connection before 'USER': 'user', connect to the database user name # Password 'passw', # connect to the database: 'PASSWORD' 'HOST': '192.168.1.1', # connection to the host, this default level 'PORT': 3306, # default port 3306 "OPTIONS":{"init_command":"SET default_storage_engine=INNODB;"} } }