
Using Dumpdata and Loaddata
Main source | djangoproject.com/en/2.1/
Django / Database
3 posts

Main source | djangoproject.com/en/2.1/

We'll learn how to use multiple databases with Django, how to create applications with Django, how to find the IP addresses of visitors, and how to use 'from django.db.models import F'.

To use multiple databases, we first need to define them in the project's settings.py file. The example below shows a settings.py configuration for a PostgreSQL and a MySQL database — you can use multiple databases of different types.