1. 程式人生 > >django-settings裏mysql連接配置

django-settings裏mysql連接配置

password backend def mysql localhost oot settings tin databases

DATABASES = {   ‘default‘: {     ‘ENGINE‘: ‘django.db.backends.mysql‘,     ‘NAME‘: ‘dailyfresh‘,     ‘HOST‘: ‘localhost‘,     ‘PORT‘: 3306,     ‘USER‘: ‘root‘,‘     ‘PASSWORD‘: ‘mysql‘,   } }

django-settings裏mysql連接配置