I'm building a website with Django and I need to have a GPS coordinate attribute in my User model.
I will be using GeoDjango, which needs PostgreSQL and, since my website is already working with the sqlite3 default database, I need to install a PostgreSQL database to the project in order to create a Coordinates model in it and link it to the User model of the SQLite database.
I found lots of tutorials on the internet about "how to use multiple databases" but they are all very basics. Since I'm quite new to Django and web programming, I'm needing an in-depth tutorial about multiple databases. I have a few questions and I thank you in advance if you can answer one or more of those!
Note: I'm using windows 10 with PostgreSQL installed with the ubuntu app of windows.
1) How can I create and initialize the file for the new database in the Django project? The file db.sqlite3 was automatically created with the Django project initialization so how can I create another one?
2) Do I need to use a new app for the GPS coordinates or can I use an existing one?
3) How can I make the OneToOne relationship between my User model and my Coordinates model that will be in the other database?