diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 64eb745c..a7a0dae5 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -18,15 +18,13 @@ jobs: fail-fast: false matrix: python-version: - - '3.7' - '3.8' - '3.9' - '3.10' - '3.11' django-version: - - '3.0' - - '3.1' - '3.2' + - '4.0' - 'master' steps: diff --git a/requirements.txt b/requirements.txt index 93d32fc6..44eab922 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,7 @@ -django>=3.0.8,<4.0 +django>=3.2.20,<5.0 mysqlclient # uwsgi -# SASS dynamic compiler django-cors-headers django-filter @@ -14,8 +13,7 @@ git+https://github.com/UniversitaDellaCalabria/django-organizational-area.git pillow # Rest -#djangorestframework -git+https://github.com/peppelinux/django-rest-framework@agid_oas3 +git+https://github.com/UniversitaDellaCalabria/django-rest-framework.git@agid_oas3 markdown # openAPI schema v3 diff --git a/ricerca/settingslocal.example.py b/ricerca/settingslocal.example.py index 77535e24..a08128fe 100644 --- a/ricerca/settingslocal.example.py +++ b/ricerca/settingslocal.example.py @@ -20,8 +20,9 @@ # the path corresponding the admin backend, default if not defined: admin/ ADMIN_PATH = 'admin_path' -DEFAULT_HOST = +DEFAULT_HOST = '' ALLOWED_HOSTS = [DEFAULT_HOST, '*'] +CSRF_TRUSTED_ORIGINS = [f'https://{DEFAULT_HOST}'] AUTH_USER_MODEL = 'accounts.User' DATA_DIR = os.path.join(BASE_DIR, "data")