# Connect mysqlDB in Django python ?
1. Open the settings.py in your project.
2. Replace this code in setting.py
DATABASES = {
'default': {
'NAME': 'Enter your db name',
'ENGINE': 'django.db.backends.mysql',
'USER': 'Enter mysql username',
'PASSWORD': 'Enter mysql password',
}
}
1. Open the settings.py in your project.
2. Replace this code in setting.py
DATABASES = {
'default': {
'NAME': 'Enter your db name',
'ENGINE': 'django.db.backends.mysql',
'USER': 'Enter mysql username',
'PASSWORD': 'Enter mysql password',
}
}
No comments:
Post a Comment