tethysplatform / tethys

The Tethys Platform main Django website project repository.
http://tethysplatform.org/
BSD 2-Clause "Simplified" License
92 stars 49 forks source link

tethys db command not working #981

Closed kfh01 closed 11 months ago

kfh01 commented 1 year ago

tethys db configure, init, and start all not working. Here's an example of what happens when I try to use db configure: image

msouff commented 1 year ago

Your database is missing tables.

Try running tethys manage makemigrations then you can see which tables are missing with tethys manage showmigrations and finally apply the migrations with tethys manage migrate

Hopefully things work after that.

msouff commented 1 year ago

Also, tethys db configure is a shortcut that runs tethys db init, start, create, migrate, and createsuperuser. Your db is failing at the migrate step so after you get past that just run tethys db createsuperuser and your db should be good to go.