I am getting this error while opening the deployed site on railway
.
I looked for the solution and found that we need to change the host of mysql settings, so I changed them. These are my new database settings.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'my_db',
'USER': 'root',
'PASSWORD': 'toor',
'HOST': '0.0.0.0',
'PORT': '3306',
'OPTIONS': {
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'"
}
}
}
I am still getting the error. What should I do?