diff --git a/.gitignore b/.gitignore index b13f244f178df23700f70025bf63269679921404..4c96ba9f0e66dd5bc68c6b72c1eb2ff65a21346d 100644 --- a/.gitignore +++ b/.gitignore @@ -37,6 +37,7 @@ htmlcov/* junit*.xml coverage.xml .pytest_cache/ +.mypy_cache # Build and docs folder/files build/* diff --git a/configure.sh b/configure.sh index c4027e38a5e625e1c6b507020131d98fa9e403fe..a2e8d17ee67b49d525617be89d07afd9c7f1e14a 100755 --- a/configure.sh +++ b/configure.sh @@ -63,10 +63,11 @@ sed -e "s/SECRET_KEY = '.*'/SECRET_KEY = '${DJANGO_SECRET_KEY}'/" -i pvs_instance/settings.py chmod g+w -R . chgrp users -R . - + if [[ "$ENABLE_HTTP_ACCESS" = true ]] ; then echo "Installing and enabling http_access" echo "INSTALLED_APPS += ('http_access', )" >> pvs_instance/settings.py + echo "EOXS_RESULT_ITEM_FEED_LINK_GENERATORS = ['http_access.opensearch.HttpAccessResultItemFeedLinkGenerator']" >> pvs_instance/settings.py echo "urlpatterns.append(re_path(r'^http/', include('http_access.urls')))" >> pvs_instance/urls.py fi @@ -74,7 +75,7 @@ echo "DEBUG ON Setting functions" echo "MIDDLEWARE.append('pyinstrument.middleware.ProfilerMiddleware')" >> pvs_instance/settings.py sed -e 's/DEBUG = False/DEBUG = True/' -i pvs_instance/settings.py - + var="import os import sys import debugpy diff --git a/requirements.txt b/requirements.txt index 1c1e2a555e8300402f06aa3c2b5c5e46509761bd..fa4ef99457df50bebb64d43d1ced9778f1ad7736 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,4 +7,4 @@ jsonschema<5.0 boto3<2.0 django-cors-headers<4.0 pystac<2.0 -http-access==0.0.1 +http-access==0.1.0