-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #527 from jbernal0019/master
Upgrade to Django 4.2.5 and postgres:16
- Loading branch information
Showing
11 changed files
with
56 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,22 +30,21 @@ def get_secret(setting, secret_type=env): | |
|
||
# SECRET CONFIGURATION | ||
# ------------------------------------------------------------------------------ | ||
# See: https://docs.djangoproject.com/en/4.0/ref/settings/#secret-key | ||
# See: https://docs.djangoproject.com/en/4.2/ref/settings/#secret-key | ||
# Raises ImproperlyConfigured exception if DJANGO_SECRET_KEY not in os.environ | ||
SECRET_KEY = get_secret('DJANGO_SECRET_KEY') | ||
|
||
|
||
# SITE CONFIGURATION | ||
# ------------------------------------------------------------------------------ | ||
# Hosts/domain names that are valid for this site | ||
# See https://docs.djangoproject.com/en/4.0/ref/settings/#allowed-hosts | ||
# See https://docs.djangoproject.com/en/4.2/ref/settings/#allowed-hosts | ||
ALLOWED_HOSTS = get_secret('DJANGO_ALLOWED_HOSTS', env.list) | ||
# END SITE CONFIGURATION | ||
|
||
|
||
# DATABASE CONFIGURATION | ||
# ------------------------------------------------------------------------------ | ||
# Raises ImproperlyConfigured exception if DATABASE_URL not set | ||
DATABASES['default']['NAME'] = get_secret('POSTGRES_DB') | ||
DATABASES['default']['USER'] = get_secret('POSTGRES_USER') | ||
DATABASES['default']['PASSWORD'] = get_secret('POSTGRES_PASSWORD') | ||
|
@@ -60,7 +59,7 @@ def get_secret(setting, secret_type=env): | |
raise ImproperlyConfigured(f"Unsupported value '{STORAGE_ENV}' for STORAGE_ENV") | ||
|
||
if STORAGE_ENV == 'swift': | ||
DEFAULT_FILE_STORAGE = 'swift.storage.SwiftStorage' | ||
STORAGES['default'] = {'BACKEND': 'swift.storage.SwiftStorage'} | ||
SWIFT_AUTH_URL = get_secret('SWIFT_AUTH_URL') | ||
SWIFT_USERNAME = get_secret('SWIFT_USERNAME') | ||
SWIFT_KEY = get_secret('SWIFT_KEY') | ||
|
@@ -69,14 +68,14 @@ def get_secret(setting, secret_type=env): | |
'key': SWIFT_KEY, | ||
'authurl': SWIFT_AUTH_URL} | ||
verify_storage = lambda: verify_storage_connection( | ||
DEFAULT_FILE_STORAGE=DEFAULT_FILE_STORAGE, | ||
DEFAULT_FILE_STORAGE=STORAGES['default']['BACKEND'], | ||
SWIFT_CONTAINER_NAME=SWIFT_CONTAINER_NAME, | ||
SWIFT_CONNECTION_PARAMS=SWIFT_CONNECTION_PARAMS | ||
) | ||
elif STORAGE_ENV == 'filesystem': | ||
DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage' | ||
STORAGES['default'] = {'BACKEND': 'django.core.files.storage.FileSystemStorage'} | ||
MEDIA_ROOT = get_secret('MEDIA_ROOT') | ||
verify_storage = lambda: verify_storage_connection(DEFAULT_FILE_STORAGE=DEFAULT_FILE_STORAGE, | ||
verify_storage = lambda: verify_storage_connection(DEFAULT_FILE_STORAGE=STORAGES['default']['BACKEND'], | ||
MEDIA_ROOT=MEDIA_ROOT) | ||
else: | ||
verify_storage = lambda: verify_storage_connection() | ||
|
@@ -92,7 +91,7 @@ def get_secret(setting, secret_type=env): | |
|
||
|
||
# LOGGING CONFIGURATION | ||
# See https://docs.djangoproject.com/en/4.0/topics/logging/ for | ||
# See https://docs.djangoproject.com/en/4.2/topics/logging/ for | ||
# more details on how to customize your logging configuration. | ||
ADMINS = [('FNNDSC Developers', '[email protected]')] | ||
LOGGING = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
Django==4.0 | ||
django-filter==22.1 | ||
djangorestframework==3.13.1 | ||
django-cors-headers==3.13.0 | ||
psycopg2==2.9.3 | ||
Django==4.2.5 | ||
django-filter==23.3 | ||
djangorestframework==3.14.0 | ||
django-cors-headers==4.2.0 | ||
psycopg[binary,pool] | ||
environs==9.5.0 | ||
python-swiftclient==4.1.0 | ||
django-storage-swift==1.2.19 | ||
celery==5.2.7 | ||
django-celery-beat==2.3.0 | ||
python-swiftclient==4.4.0 | ||
django-storage-swift==1.3.0 | ||
celery==5.3.4 | ||
django-celery-beat==2.5.0 | ||
python-chrisstoreclient==1.0.0 | ||
python-pfconclient==3.2.0 | ||
django-auth-ldap==4.1.0 | ||
django-auth-ldap==4.5.0 | ||
PyYAML==6.0.1 | ||
whitenoise[brotli]==6.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Local development dependencies go here | ||
-r base.txt | ||
django-debug-toolbar==3.6.0 | ||
django-extensions==3.2.0 | ||
django-debug-toolbar==4.2.0 | ||
django-extensions==3.2.3 | ||
collection-json==0.1.1 | ||
coverage==6.4.4 | ||
pylint==2.15.0 | ||
flake8==5.0.4 | ||
isort==5.10.1 | ||
pudb>=2019.1 | ||
coverage==7.3.1 | ||
pylint==2.17.5 | ||
flake8==6.1.0 | ||
isort==5.12.0 | ||
pudb==2022.1.3 | ||
https://github.com/msbrogli/rpudb/archive/master.zip |