1👍
✅
Read the multiple databases topic in the django docs.
To execute SQL query in the additional database use the following code:
from django.db import connections
cursor = connections['my_additional_database'].cursor()
cursor.execute("DELETE FROM very_important_table");
Source:stackexchange.com