Created a fresh Django app (copied in some of the old files in case we still need those). Configured the DATABASE settings to connect to Robotic Dogs. Used inspectdb to copy the database tables into a models.py file. Reorganized the file and made adjustments required for the Django server to start and be able to query tables. Used black and isort to format the python files.
Created a fresh Django app (copied in some of the old files in case we still need those). Configured the DATABASE settings to connect to Robotic Dogs. Used
inspectdb
to copy the database tables into a models.py file. Reorganized the file and made adjustments required for the Django server to start and be able to query tables. Usedblack
andisort
to format the python files.