[Answer]-Additional non model database connections in Django

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");

Leave a comment