Commit d2040669 authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Added support for genrating ORM model relationships graphs.

parent 174207b5
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -63,6 +63,14 @@ COPY db_conf.sh /db_conf.sh
RUN mkdir /var/log/webapp/ && chown rosetta:rosetta /var/log/webapp/


#------------------------------
# Viz
#------------------------------
RUN apt install python-pygraphviz graphviz-dev -y
RUN pip3 install django-extensions pygraphviz
# Example usage: rosetta/shell webapp "cd /opt/code && python3 manage.py graph_models core_app --exclude-models LoginToken,Text -o ORM.png"


#------------------------------
# Supervisord
#------------------------------
@@ -81,8 +89,3 @@ COPY prestartup_webapp.sh /prestartup/
RUN touch -m /prestartup/prestartup_webapp.sh





+2 −1
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ INSTALLED_APPS = [
    'django.contrib.staticfiles',
    'rest_framework',
    'rest_framework_swagger',
    'django_extensions', 
]

MIDDLEWARE = [