简体   繁体   中英

Heroku Django Migrate Not Working

I am in my way learning python with django, and when I tried to sync with Heroku, there's an error showing I haven't migrated them yet. I am pretty sure have done it, but the console still saying so.

Iam sure I left an obvious part. But still can't find which one.

This image reflected exactly what I am talking about

You cannot use sqlite on Heroku. You must use the postgres add-on.

Sqlite stores its db on the filesystem, but on Heroku the filesystem is ephemeral and not shared between dynos. Running a command spins up a whole new dyno, with its own database file which is migrated, but then thrown away. The next command - or the web dyno itself - won't see that db.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM