Auto Generate Django Models using InspectDB

Auto Generate Django Models using InspectDB

Auto Generate Django Models using InspectDB. Learn how to take a scraped dataset and turn it into Django models using inspectdb. You can also use this method for legacy databases.

Learn how to take a scraped dataset and turn it into Django models using inspectdb. You can also use this method for legacy databases.

We'll use:

  • Django (v2.2+)
  • Jupyter
  • SQLAlchemy
  • Pandas
  • sqlite3
  • Python (v3+)

You can use this method to convert SQLAlchemy-managed models into Django-managed models as well.

How to use (after watching tutorial):

  1. Download / Clone this Repo
  2. Activate a virtual environment python3 -m venv .
  3. Run pip install -r requirements.txt
  4. Run jupyter notebook
  5. Navigate to nbs/ and open Autogen_Final.ipynb
  6. Run All Cells
  7. Update models.py as you need related to the python manage.py inspectdb --database lite command.

If you get a import error related to django, just do steps 2-4 in a new terminal / powershell.

django python web-development developer programming

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Hire Python Developers

Are you looking for experienced, reliable, and qualified Python developers? If yes, you have reached the right place. At **[HourlyDeveloper.io](https://hourlydeveloper.io/ "HourlyDeveloper.io")**, our full-stack Python development services...

Hire Python Developers India

Looking to build robust, scalable, and dynamic responsive websites and applications in Python? At **[HourlyDeveloper.io](https://hourlydeveloper.io/ "HourlyDeveloper.io")**, we constantly endeavor to give you exactly what you need. If you need to...

Python Django Full Course | Django Tutorial | Django Web Framework

Python Django full course | Django Tutorial | Django Web Framework | you will be learning almost everything you need to create web application with Django framework.

Basic Data Types in Python | Python Web Development For Beginners

In the programming world, Data types play an important role. Each Variable is stored in different data types and responsible for various functions. Python had two different objects, and They are mutable and immutable objects.