Closed trodicaro closed 1 year ago
@trodicaro did you just remove the dict DATABASES = { } ?
in your settings.py you just added this line?
DATABASES['default'] = dj_database_url.config(default="mysql://myname:mypass@localhost:3306/db_name")
I just figure it out doing this:
DATABASES = { 'default': dj_database_url.config( default=config('DATABASE_URL') ) }
DATABASE_URL= "mysql://myuser:mypass@my_host:3306/my_db_name"
=)
This is an old issue closing it off. If you feel this is still a requirement please create a new ticket.
DATABASES['default'] = dj_database_url.config(default="mysql://myname:mypass@localhost:3306/db_name") works.