Home > Software design >  Easy Way To Import A Table from MS SQL Server to Django?
Easy Way To Import A Table from MS SQL Server to Django?

Time:08-29

Is there good documentation on importing existing tables from MS SQL Server to Django? Some of the table names don't get along with Python (i.e. # in the column name). Eventually data will by brought into the MS SQL Server and need to be pushed to Django. I am using mssql-django.

CodePudding user response:

You could try to use inspectdb to generate models from exiting databases: https://docs.djangoproject.com/en/4.1/howto/legacy-databases/#auto-generate-the-models

  • Related