diff --git a/Dockerfile b/Dockerfile index 7e8e0d14..33a6acff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,7 +44,7 @@ RUN apt-get clean && apt-get -y update && apt-get -y install --no-install-recomm RUN if [ "$INSTALL_DEBUG" ] ; then \ apt-get -y update && apt-get -y install --no-install-recommends \ vim htop bmon net-tools iputils-ping procps \ - && pip install --user ipython \ + && pip install --user ipython pytest pytest-django \ ; fi # make folders diff --git a/tubearchivist/config/settings.py b/tubearchivist/config/settings.py index ac41eaa0..b81e3b49 100644 --- a/tubearchivist/config/settings.py +++ b/tubearchivist/config/settings.py @@ -33,7 +33,9 @@ SECRET_KEY = PW_HASH.hexdigest() # SECURITY WARNING: don't run with debug turned on in production! DEBUG = bool(environ.get("DJANGO_DEBUG")) -ALLOWED_HOSTS, CSRF_TRUSTED_ORIGINS = ta_host_parser(environ["TA_HOST"]) +ALLOWED_HOSTS, CSRF_TRUSTED_ORIGINS = ta_host_parser( + environ.get("TA_HOST", "localhost") +) # Application definition diff --git a/tubearchivist/requirements-dev.txt b/tubearchivist/requirements-dev.txt index 33c81ec8..02778fba 100644 --- a/tubearchivist/requirements-dev.txt +++ b/tubearchivist/requirements-dev.txt @@ -5,4 +5,6 @@ flake8 isort pylint pylint-django +pytest +pytest-django types-requests