Skip to content

Commit

Permalink
add default to ALLOCATIONS_TO_EXCLUDE
Browse files Browse the repository at this point in the history
  • Loading branch information
rstijerina committed Jun 18, 2024
1 parent b212079 commit cdfa698
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions designsafe/settings/common_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
ALDRYN_SEARCH_REGISTER_APPHOOK = True

from designsafe.settings.nees_settings import NEES_USER_DATABASE
#if NEES_USER_DATABASE['NAME']:
# if NEES_USER_DATABASE['NAME']:
# DATABASES['nees_users'] = NEES_USER_DATABASE


Expand Down Expand Up @@ -346,13 +346,13 @@
'allowedContent': True
}

#MIGRATION_MODULES = {
# MIGRATION_MODULES = {
# 'djangocms_file': 'djangocms_file.migrations_django',
# 'djangocms_googlemap': 'djangocms_googlemap.migrations_django',
# 'djangocms_picture': 'djangocms_picture.migrations_django',
# 'djangocms_video': 'djangocms_video.migrations_django',
# 'djangocms_style': 'djangocms_style.migrations_django',
#}
# }

LOGIN_URL = os.environ.get('LOGIN_URL', '/login/')

Expand Down Expand Up @@ -501,7 +501,11 @@

# Allocations to exclude
#
ALLOCATIONS_TO_EXCLUDE = os.environ.get("ALLOCATIONS_TO_EXCLUDE", "").split(",") if os.environ.get("ALLOCATIONS_TO_EXCLUDE") else []
ALLOCATIONS_TO_EXCLUDE = (
os.environ.get("ALLOCATIONS_TO_EXCLUDE", "").split(",")
if os.environ.get("ALLOCATIONS_TO_EXCLUDE")
else ["DesignSafe-DCV"]
)


###
Expand Down Expand Up @@ -597,7 +601,7 @@
RECAPTCHA_PRIVATE_KEY= os.environ.get('DJANGOCMS_FORMS_RECAPTCHA_SECRET_KEY')
NOCAPTCHA = True

#FOR RAPID UPLOADS
# FOR RAPID UPLOADS
DESIGNSAFE_UPLOAD_PATH = '/corral-repl/tacc/NHERI/uploads'
DESIGNSAFE_PROJECTS_PATH = os.environ.get('DESIGNSAFE_PROJECTS_PATH', '/corral-repl/tacc/NHERI/projects/')
DESIGNSAFE_PUBLISHED_PATH = os.environ.get('DESIGNSAFE_PUBLISHED_PATH', '/corral-repl/tacc/NHERI/published/')
Expand Down

0 comments on commit cdfa698

Please sign in to comment.