ninetteadhikari / django_model

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Available Scripts

In the directory, you can run:

#Installs pipenv
pip3 install pipenv
#Creates virtual environment
pipenv shell
#Installs all dependencies
pipenv install
#Runs server
python manage.py runserver
#Runs migrations
python manage.py migrate

Create ERD

Remove existing erd.dot and erd.png files and install pyparsing and pydot

pip3 install django-extensions
pip3 install pyparsing pydot

In the app directory run the following:

python manage.py graph_models -a > erd.dot
python manage.py graph_models -a > erd.dot && python manage.py graph_models --pydot -a -g -o erd.png

About


Languages

Language:Python 100.0%