sosbrumadinho / brumadinho_location

Conjunto de ferramentas para ajudar no resgate e localização das vítimas atingidas pelo rompimento da barragem que ocorreu recentemente em Brumadinho/MG
MIT License
868 stars 129 forks source link

CHANGE the database used in geolocation_service #46

Closed brunolcarli closed 5 years ago

brunolcarli commented 5 years ago

The service is using sqlite3 as database, this is not a good database for production.

Must change to another database such as MySQL.

andersonmalheiro commented 5 years ago

This is simple, as the project is being build with Django it's only necessary to change some configs on the "settings.py" to use a Postgres or MySQL database.

brunolcarli commented 5 years ago

Yes, i only opened the issue cuz yesterday i was going to sleep and now im at work. This is for remembering so i can do after work or if anyone could do this in the meantime that i cannot.

andersonmalheiro commented 5 years ago

I'm also at work now, so when I get home at night I'll see what I can do to help. I have a little experience with Django, so I'll try to help you with the project too man.

brunolcarli commented 5 years ago

Thanks @andersonmalheiro I appreciate your help :D

isouzasoares commented 5 years ago

@brunolcarli maybe using geodjango with postgis is a good idea, if you want I can help.

https://docs.djangoproject.com/en/2.1/ref/contrib/gis/tutorial/#geographic-models

caiocarrara commented 5 years ago

Probably the production database is going to be Postgres. As this is not something we can address immediately (there's still some issues to be solved before) I'm closing this issue only trying to organize the work and not scatter the efforts that is coming.