django mysql settings

Solutions on MaxInterview for django mysql settings by the best coders in the world

showing results for - "django mysql settings"
Mariana
18 Mar 2019
1#add this settings in settings file
2
3DATABASES = {
4    'default': {
5        'ENGINE': 'django.db.backends.mysql', 
6        'NAME': 'DB_NAME',
7        'USER': 'DB_USER',
8        'PASSWORD': 'DB_PASSWORD',
9        'HOST': 'localhost',   # Or an IP Address that your DB is hosted on
10        'PORT': '3306',
11    }
12}
13