Skip to content
Snippets Groups Projects
Commit 3a7fd017 authored by David Trattnig's avatar David Trattnig
Browse files

Feat: Generate visual data model

parent 35c5d63e
No related branches found
No related tags found
1 merge request!23Feat: Generate visual data model
Pipeline #1913 passed
...@@ -12,6 +12,7 @@ steering/site_media/__sized__/* ...@@ -12,6 +12,7 @@ steering/site_media/__sized__/*
steering/cache/* steering/cache/*
steering/mysql.cnf steering/mysql.cnf
steering/postgresql.cnf steering/postgresql.cnf
steering_data_model.png
venv/ venv/
python/ python/
.env .env
...@@ -115,3 +115,17 @@ Finally, you can start the development server:: ...@@ -115,3 +115,17 @@ Finally, you can start the development server::
(venv) $ ./manage.py runserver (venv) $ ./manage.py runserver
Data Model
----------
You can generate a visualization of the data model using the Django extensions.
First, install GraphViz globally:
apt-get install graphviz
Then, run following to generate an image out of the models:
(venv) $ manage.py graph_models --pydot -a -g -o steering_data_model.png
...@@ -5,6 +5,7 @@ charset-normalizer==2.0.12 ...@@ -5,6 +5,7 @@ charset-normalizer==2.0.12
Django==3.2.13 Django==3.2.13
django-cors-headers==3.11.0 django-cors-headers==3.11.0
django-environ==0.8.1 django-environ==0.8.1
django-extensions==3.1.5
django-filter==21.1 django-filter==21.1
django-oidc-provider==0.7.0 django-oidc-provider==0.7.0
django-versatileimagefield==2.2 django-versatileimagefield==2.2
...@@ -25,6 +26,7 @@ pre-commit==2.18.1 ...@@ -25,6 +26,7 @@ pre-commit==2.18.1
psycopg2-binary==2.9.3 psycopg2-binary==2.9.3
py==1.11.0 py==1.11.0
pycryptodomex==3.14.1 pycryptodomex==3.14.1
pydotplus==2.0.2
pyjwkest==1.4.2 pyjwkest==1.4.2
pyparsing==3.0.8 pyparsing==3.0.8
pytest==7.1.1 pytest==7.1.1
......
...@@ -144,6 +144,7 @@ INSTALLED_APPS = ( ...@@ -144,6 +144,7 @@ INSTALLED_APPS = (
"rest_framework", "rest_framework",
"rest_framework_nested", "rest_framework_nested",
"django_filters", "django_filters",
"django_extensions",
"drf_spectacular", "drf_spectacular",
"oidc_provider", "oidc_provider",
"corsheaders", "corsheaders",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment