Hello,
I just transitioned my django application from sqllite to MySQL. My setting file now looks like this
DATABASES = {
"default": {
"ENGINE": "django.db.backends.mysql",
"NAME": "fstg$fstg",
"USER": "fstg",
"PASSWORD": "*********",
"HOST": "fstg.mysql.pythonanywhere-services.com",
}
}.
When I try to run the migrations on a console though it says there is no migration to apply. But when I connect via a shell to my new MySQL DB it says there is no table in the DB.
Also, when starting the application, I get an error
django.db.utils.ProgrammingError: (1146, "Table 'fstg$default.django_session' doesn't exist")
It seems to me that my Django app is not considering the correct database (maybe still creating a sql lite DB) when trying to run the migrations.
Can anyone help? :)
Thanks!