Skip to content

app-generator/devtool-django-dynamic-datatb

Repository files navigation

The tool aims to provide a powerful data table interface using the developer's minimum amount of code For newcomers, Django is a leading backend framework used to code from simple websites and API's to complex eCommerce solutions. The presentation layer uses Simple-DataTables and Vanilla JS code to render the information.


Quick start in Docker

👉 Step 1 - Download the code from the GH repository (using GIT)

$ git clone https://github.com/app-generator/devtool-django-dynamic-datatb.git
$ cd devtool-django-dynamic-datatb

👉 Step 2 - Start the APP in Docker

$ docker-compose up --build 

Visit http://localhost:5085 in your browser. By default a simple Books Model is used as sample.

  • The Dynamic UI is live at http://localhost:5085/datatb/books

Django Dynamic DataTables - Open-Source Tool for Developers.


Video Presentation

django-soft-dashboard-dynamic-datatb.mp4

How It Works

👉 Step #1 - Define models in apps/models.py

By default, the project comes with a simple Books model:

class Book(models.Model):

    title = models.CharField(max_length=100)

👉 Step #2 - Register the model in core/settings.py (API_GENERATOR section)

DYNAMIC_DATATB = {
    'books': "Book", # <-- Books model provided as sample
}

👉 Step #3 - Migrate Database

$ python manage.py makemigrations
$ python manage.py migrate

👉 Step #4 - Access the UI

  • Manager books via dynamic page /datatb/books/


Django Dynamic DataTables - Developer tool provided by AppSeed