1👍
I suspect that you are not finding many examples are Django is abstracting out raw SQL.
Have you looked at using Raw SQL queries, specifically Executing custom SQL directly
table_name = 'Your_Name'
with connection.cursor() as cursor:
cursor.execute(f"create table if not exists {table_name} ( id integer PRIMARY KEY )")
Will create a table called ‘Your_Name’ with a column called id, you will need to read the CSV, there is an example of how to do that here, if you follow that example you could add the DDL into views.py
Source:stackexchange.com