Skip to content
Snippets Groups Projects
Commit c6fc0dd4 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Merge branch 'django-uml' into 'master'

Feat: Generate visual data model

See merge request !23
parents 35c5d63e c72ebc66
No related branches found
No related tags found
1 merge request!23Feat: Generate visual data model
Pipeline #1916 passed
......@@ -12,6 +12,7 @@ steering/site_media/__sized__/*
steering/cache/*
steering/mysql.cnf
steering/postgresql.cnf
steering_data_model.png
venv/
python/
.env
......@@ -115,3 +115,17 @@ Finally, you can start the development server::
(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 -g -o steering_data_model.png program profile
......@@ -5,6 +5,7 @@ charset-normalizer==2.0.12
Django==3.2.13
django-cors-headers==3.11.0
django-environ==0.8.1
django-extensions==3.1.5
django-filter==21.1
django-oidc-provider==0.7.0
django-versatileimagefield==2.2
......@@ -25,6 +26,7 @@ pre-commit==2.18.1
psycopg2-binary==2.9.3
py==1.11.0
pycryptodomex==3.14.1
pydotplus==2.0.2
pyjwkest==1.4.2
pyparsing==3.0.8
pytest==7.1.1
......
......@@ -144,6 +144,7 @@ INSTALLED_APPS = (
"rest_framework",
"rest_framework_nested",
"django_filters",
"django_extensions",
"drf_spectacular",
"oidc_provider",
"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