From 8a249de51c9207e77274d689c520d049de3722aa Mon Sep 17 00:00:00 2001 From: Tris Forster Date: Wed, 4 Jan 2023 09:52:22 +1100 Subject: [PATCH] Tweeking section handling --- Dockerfile | 7 +- .../templates/interface/project_base.html | 2 +- app/library/admin.py | 2 +- app/library/imslp.py | 3 + .../migrations/0004_auto_20230101_1535.py | 40 +++++ .../migrations/0005_auto_20230101_1547.py | 22 +++ app/library/models.py | 143 ++++++++++++---- .../templates/library/collection_list.html | 10 +- .../templates/library/document_entry.html | 8 +- .../templates/library/work_detail.html | 12 +- app/library/urls.py | 16 +- app/library/{views.py => views/__init__.py} | 12 +- app/library/views/api.py | 161 ++++++++++++++++++ app/polyphonic/default_settings.py | 1 + 14 files changed, 378 insertions(+), 61 deletions(-) create mode 100644 app/library/migrations/0004_auto_20230101_1535.py create mode 100644 app/library/migrations/0005_auto_20230101_1547.py rename app/library/{views.py => views/__init__.py} (96%) create mode 100644 app/library/views/api.py diff --git a/Dockerfile b/Dockerfile index 0d2eb8f..0bc5946 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,15 +6,16 @@ WORKDIR /root RUN python3 -m ensurepip RUN pip3 install -U pip --no-cache-dir +COPY app/requirements.txt . +RUN pip3 install -r requirements.txt --no-cache-dir + COPY app /opt/polyphonic WORKDIR /opt/polyphonic COPY docker_settings.py polyphonic/local_settings.py -RUN pip3 install -r requirements.txt --no-cache-dir - RUN mkdir /var/polyphonic RUN SECRET_KEY=_ python3 manage.py collectstatic --noinput ENTRYPOINT ["python3", "manage.py"] -CMD ["runserver", "0.0.0.0:8000", "--insecure"] \ No newline at end of file +CMD ["runserver", "0.0.0.0:8000", "--insecure"] diff --git a/app/interface/templates/interface/project_base.html b/app/interface/templates/interface/project_base.html index 4ee91af..3e23e43 100644 --- a/app/interface/templates/interface/project_base.html +++ b/app/interface/templates/interface/project_base.html @@ -43,7 +43,7 @@