Skip to content

Commit

Permalink
fix: Django 4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Sep 28, 2023
1 parent d7f70f1 commit f9e7a36
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 2 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion ricerca/settingslocal.example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit f9e7a36

Please sign in to comment.