emily-noble / prideflagsearch

Pride Flag Identification Guide
https://www.prideflags.org/
GNU General Public License v3.0
31 stars 9 forks source link

Migrate data to database #16

Open emily-noble opened 5 years ago

emily-noble commented 5 years ago

Actual flag information should be stored in a database, making it easier to add and edit flags.

emily-noble commented 3 years ago

Looks like mysql is free on our host.

Django could support a dumpdata -> commit to repository -> flush on server -> loaddata on server workflow

emily-noble commented 2 years ago

I think the way that I'd like to handle this is to run off a sqlite database committed to the repository, even though this isn't a best practice. Given that Django has a built-in admin site that would require us exposing the admin password to the repository, this shouldn't be handled through Django's models. Instead, we want to query sqlite directly.