From c099aa5521640763b69543ce91fb7a90fc30c7c9 Mon Sep 17 00:00:00 2001 From: Wesley Bomar Date: Thu, 14 Mar 2024 10:50:47 -0500 Subject: [PATCH] feat: WI-71 remove/migrate settings_custom.py --- a2cps_cms/src/taccsite_cms/settings_custom.py | 38 ------ apcd-cms/src/taccsite_cms/settings_custom.py | 46 ------- .../src/taccsite_cms/settings_custom.py | 57 -------- ecep_cms/src/taccsite_cms/settings_custom.py | 127 ------------------ .../src/taccsite_cms/settings_custom.py | 77 ----------- .../src/taccsite_cms/settings_custom.py | 32 ----- .../src/taccsite_cms/settings_custom.py | 77 ----------- .../src/taccsite_cms/settings_custom.py | 88 ------------ 8 files changed, 542 deletions(-) delete mode 100644 a2cps_cms/src/taccsite_cms/settings_custom.py delete mode 100644 apcd-cms/src/taccsite_cms/settings_custom.py delete mode 100644 demdata_cms/src/taccsite_cms/settings_custom.py delete mode 100644 ecep_cms/src/taccsite_cms/settings_custom.py delete mode 100644 example_cms/src/taccsite_cms/settings_custom.py delete mode 100644 matcssi_cms/src/taccsite_cms/settings_custom.py delete mode 100644 netsage_cms/src/taccsite_cms/settings_custom.py delete mode 100644 tapisproject_cms/src/taccsite_cms/settings_custom.py diff --git a/a2cps_cms/src/taccsite_cms/settings_custom.py b/a2cps_cms/src/taccsite_cms/settings_custom.py deleted file mode 100644 index ad65510d..00000000 --- a/a2cps_cms/src/taccsite_cms/settings_custom.py +++ /dev/null @@ -1,38 +0,0 @@ -# CUSTOM SETTINGS VALUES. -# TACC WMA CMS SITE: -# *.A2CPS.TACC.UTEXAS.EDU - -######################## -# DJANGO_CMS -######################## - -CMS_TEMPLATES = ( - ('a2cps_cms/templates/standard.html', 'Standard'), - ('a2cps_cms/templates/fullwidth.html', 'Full Width'), - ('a2cps-cms/templates/standard.html', 'DEPRECATED Standard'), - ('a2cps-cms/templates/fullwidth.html', 'DEPRECATED Full Width'), - ('guide.html', 'Guide'), - ('guides/getting_started.html', 'Guide: Getting Started'), - ('guides/data_transfer.html', 'Guide: Data Transfer'), - ('guides/data_transfer.globus.html', 'Guide: Globus Data Transfer'), - ('guides/portal_technology.html', 'Guide: Portal Technology Stack') -) - -######################## -# TACC: LOGO & FAVICON -######################## - -LOGO = [ - "a2cps", - "a2cps_cms/img/org_logos/a2cps.png", - "", - "/", - "_self", - "A2CPS: Acute to Chronic Pain Signatures", - "anonymous", - "True" -] - -FAVICON = { - "img_file_src": "a2cps_cms/img/org_logos/favicon.ico" -} diff --git a/apcd-cms/src/taccsite_cms/settings_custom.py b/apcd-cms/src/taccsite_cms/settings_custom.py deleted file mode 100644 index 9ccb2082..00000000 --- a/apcd-cms/src/taccsite_cms/settings_custom.py +++ /dev/null @@ -1,46 +0,0 @@ -# CUSTOM SETTINGS VALUES. -# TACC WMA CMS SITE: -# *.APCD.TACC.UTEXAS.EDU - -######################## -# DJANGO: EMAIL -######################## - -# Set on server, NOT here -# https://tacc-main.atlassian.net/wiki/x/ZhVv -# EMAIL_BACKEND = "..." -# EMAIL_HOST = "..." -# DEFAULT_FROM_EMAIL = "..." - -######################## -# DJANGO_CMS -######################## - -CMS_TEMPLATES = ( - ('standard.html', 'Standard'), - ('fullwidth.html', 'Full Width'), - ('guide.html', 'Guide'), - ('guides/getting_started.tam.html', 'Guide: Getting Started'), - ('guides/data_transfer.html', 'Guide: Data Transfer'), - ('guides/data_transfer.globus.html', 'Guide: Globus Data Transfer'), - ('guides/portal_technology.html', 'Guide: Portal Technology Stack') -) - -######################## -# TACC: LOGO & FAVICON -######################## - -LOGO = [ - "tacc", - "apcd-cms/img/org_logos/apcd-white.png", - "", - "/", - "_self", - "APCD: All-Payer Claims Database", - "anonymous", - "True" -] - -FAVICON = { - "img_file_src": "apcd-cms/img/favicons/favicon.ico" -} diff --git a/demdata_cms/src/taccsite_cms/settings_custom.py b/demdata_cms/src/taccsite_cms/settings_custom.py deleted file mode 100644 index cce3d602..00000000 --- a/demdata_cms/src/taccsite_cms/settings_custom.py +++ /dev/null @@ -1,57 +0,0 @@ -# CUSTOM SETTINGS VALUES. -# TACC WMA CMS SITE: -# *.DEMOCTRATIZING-SITE.TACC.UTEXAS.EDU - -######################## -# DJANGO_CMS -######################## - -CMS_TEMPLATES = ( - ('standard.html', 'Standard'), - ('fullwidth.html', 'Full Width'), - - ('demdata_cms/templates/standard.html', 'Standard (with CSS from TUP)'), - ('demdata_cms/templates/fullwidth.html', 'Full Width (with CSS from TUP)'), - ('demdata-cms/templates/standard.html', 'DEPRECATED Standard (with CSS from TUP)'), - ('demdata-cms/templates/fullwidth.html', 'DEPRECATED Full Width (with CSS from TUP)'), -) - -######################## -# TACC: BRANDING -######################## - -BRANDING = False - -######################## -# TACC: LOGO & FAVICON -######################## - -LOGO = [ - "demdata", - "demdata_cms/img/org_logos/demdata.svg", - "", - "/", - "_self", - "Democratizing Data Logo", - "anonymous", - "True" -] - -FAVICON = { - "img_file_src": "demdata_cms/img/favicons/Favicon_64x64.svg" -} - -######################## -# TACC: PORTAL -######################## - -INCLUDES_CORE_PORTAL = False -INCLUDES_PORTAL_NAV = False -INCLUDES_SEARCH_BAR = False - -######################## -# TACC: CORE STYLES -######################## - -# Only use integer numbers (not "v1", not "0.11.0") -TACC_CORE_STYLES_VERSION = 2 diff --git a/ecep_cms/src/taccsite_cms/settings_custom.py b/ecep_cms/src/taccsite_cms/settings_custom.py deleted file mode 100644 index 261c7ae8..00000000 --- a/ecep_cms/src/taccsite_cms/settings_custom.py +++ /dev/null @@ -1,127 +0,0 @@ -# CUSTOM SETTINGS VALUES. -# TACC WMA CMS SITE: -# *.ECEP.TACC.UTEXAS.EDU - -######################## -# DJANGO_CMS -######################## - -CMS_TEMPLATES = ( - ('standard.html', 'Standard'), - ('fullwidth.html', 'Full Width'), -) - -######################## -# TACC: SEARCH -######################## - -# Support Google search instead of Portal's Elasticsearch -SEARCH_PATH = '/site-search' # cuz Portal Nginx config hijacks /search -SEARCH_QUERY_PARAM_NAME = 'q' # as Google expects - -######################## -# TACC: BRANDING -######################## - -# NOTE: Variables NSF_BRANDING, TACC_BRANDING, and UTEXAS_BRANDING are duplicated from Core-CMS cuz current infrastructure lacks ability to reference default values. - -NSF_BRANDING = [ - "nsf", - "site_cms/img/nsf-white.png", - "branding-nsf", - "https://www.nsf.gov/", - "_blank", - "NSF Logo", - "anonymous", - "True" -] - -TACC_BRANDING = [ - "tacc", - "site_cms/img/tacc-white.png", - "branding-tacc", - "https://www.tacc.utexas.edu/", - "_blank", - "TACC Logo", - "anonymous", - "True" -] - -UTEXAS_BRANDING = [ - "utexas", - "site_cms/img/utaustin-white.png", - "branding-utaustin", - "https://www.utexas.edu/", - "_blank", - "University of Texas at Austin Logo", - "anonymous", - "True" -] - -BRANDING = [ NSF_BRANDING, TACC_BRANDING, UTEXAS_BRANDING ] - -######################## -# TACC: LOGO & FAVICON -######################## - -LOGO = [ - "ecep", - "ecep_cms/img/ecep-white-no_words.svg", - "", - "/", - "_self", - "ECEP Logo", - "anonymous", - "True" -] - -FAVICON = { - "img_file_src": "ecep_cms/img/favicon.ico" -} - -######################## -# TACC: PORTAL -######################## - -INCLUDES_CORE_PORTAL = False -INCLUDES_PORTAL_NAV = False -INCLUDES_SEARCH_BAR = True - -######################## -# DJANGOCMS_BLOG -######################## - -# REQ: Assumes various "NEWS / BLOG" are installed via `custom_app_settings.py` - -# Paths for alternate templates that user can choose for blog-specific plugin -# - Devs can customize core templates at `templates/djangocms_blog/`. -# - Users can choose alt. templates from `templates/djangocms_blog/plugins/*`. -# - Devs can customize alt. templates at `templates/djangocms_blog/plugins/*`. -BLOG_PLUGIN_TEMPLATE_FOLDERS = ( - ('plugins', 'Default'), - # ('plugins/alternate', 'Alternate'), -) - -# Change default values for the auto-setup of one `BlogConfig` -# SEE: https://github.com/nephila/djangocms-blog/issues/629 -BLOG_AUTO_SETUP = False # Set to False after setup (to minimize server overhead) -BLOG_AUTO_HOME_TITLE ='Home' -BLOG_AUTO_BLOG_TITLE = 'News' -BLOG_AUTO_APP_TITLE = 'News' -BLOG_AUTO_NAMESPACE = 'News' - -# Miscellaneous settings -BLOG_ENABLE_COMMENTS = False - -######################## -# DJANGOCMS_BLOG: TACC -######################## - -TACC_BLOG_SHOW_CATEGORIES = False -TACC_BLOG_SHOW_TAGS = False - -######################## -# TACC: CORE STYLES -######################## - -TACC_CORE_STYLES_VERSION = 0 diff --git a/example_cms/src/taccsite_cms/settings_custom.py b/example_cms/src/taccsite_cms/settings_custom.py deleted file mode 100644 index 2f424b2c..00000000 --- a/example_cms/src/taccsite_cms/settings_custom.py +++ /dev/null @@ -1,77 +0,0 @@ -# CUSTOM SETTINGS VALUES. -# TACC WMA CMS SITE: -# *.PROJECT_DOMAIN.TACC.UTEXAS.EDU - -######################## -# DJANGO: EMAIL -######################## - -# Set on server, NOT here -# https://tacc-main.atlassian.net/wiki/x/ZhVv -# EMAIL_BACKEND = "..." -# EMAIL_HOST = "..." -# DEFAULT_FROM_EMAIL = "..." - -######################## -# DJANGO_CMS -######################## - -# CMS_TEMPLATES = ( -# ('standard.html', 'Standard'), -# ('fullwidth.html', 'Full Width'), - -# ('guide.html', 'Guide'), -# ('guides/portal_technology.html', 'Guide: Portal Technology Stack'), -# } - -######################## -# TACC: BRANDING -######################## - -# from taccsite_cms.settings import TACC_BRANDING, UTEXAS_BRANDING, NSF_BRANDING -# -# _CUSTOM_BRANDING = [ -# "example", -# "example_cms/img/some-logo.png", -# "", -# "https://example.com", -# "_blank", -# "Example Logo", -# "anonymous", -# "True" -# ] - -# BRANDING = [ TACC_BRANDING, UTEXAS_BRANDING, NSF_BRANDING, _CUSTOM_BRANDING ] - -######################## -# TACC: LOGO & FAVICON -######################## - -LOGO = [ - "example", - "example_cms/img/portal.png", - "", - "/", - "_self", - "Placeholder Logo for CMS/Portal", - "anonymous", - "True" -] - -FAVICON = { - "img_file_src": "example_cms/img/favicon.ico" -} - -######################## -# TACC: PORTAL -######################## - -# INCLUDES_CORE_PORTAL = False -# INCLUDES_PORTAL_NAV = False -# INCLUDES_SEARCH_BAR = False - -######################## -# TACC: CORE STYLES -######################## - -TACC_CORE_STYLES_VERSION = 2 diff --git a/matcssi_cms/src/taccsite_cms/settings_custom.py b/matcssi_cms/src/taccsite_cms/settings_custom.py deleted file mode 100644 index dce03a14..00000000 --- a/matcssi_cms/src/taccsite_cms/settings_custom.py +++ /dev/null @@ -1,32 +0,0 @@ -# CUSTOM SETTINGS VALUES. -# TACC WMA CMS SITE: -# *.MISE.TACC.UTEXAS.EDU - -######################## -# DJANGO: EMAIL -######################## - -# Set on server, NOT here -# https://tacc-main.atlassian.net/wiki/x/ZhVv -# EMAIL_BACKEND = "..." -# EMAIL_HOST = "..." -# DEFAULT_FROM_EMAIL = "..." - -######################## -# TACC: LOGO & FAVICON -######################## - -LOGO = [ - "matcssi", - "matcssi_cms/img/org_logos/matcssi.png", - "", - "/", - "_self", - "MATCSSI Logo for CMS/Portal", - "anonymous", - "True" -] - -FAVICON = { - "img_file_src": "matcssi_cms/img/favicons/favicon.ico" -} diff --git a/netsage_cms/src/taccsite_cms/settings_custom.py b/netsage_cms/src/taccsite_cms/settings_custom.py deleted file mode 100644 index a086cd39..00000000 --- a/netsage_cms/src/taccsite_cms/settings_custom.py +++ /dev/null @@ -1,77 +0,0 @@ -# CUSTOM SETTINGS VALUES. -# TACC WMA (SAD) CMS SITE: -# *.NETSAGE.TACC.UTEXAS.EDU - -######################## -# TACC: BRANDING -######################## - -# NOTE: Variables NSF_BRANDING, TACC_BRANDING, and UTEXAS_BRANDING are duplicated from Core-CMS cuz current infrastructure lacks ability to reference default values. - -NSF_BRANDING = [ - "nsf", - "site_cms/img/org_logos/nsf-white.png", - "branding-nsf", - "https://www.nsf.gov/", - "_blank", - "NSF Logo", - "anonymous", - "True" -] - -TACC_BRANDING = [ - "tacc", - "site_cms/img/org_logos/tacc-white.png", - "branding-tacc", - "https://www.tacc.utexas.edu/", - "_blank", - "TACC Logo", - "anonymous", - "True" -] - -UTEXAS_BRANDING = [ - "utexas", - "site_cms/img/org_logos/utaustin-white.png", - "branding-utaustin", - "https://www.utexas.edu/", - "_blank", - "University of Texas at Austin Logo", - "anonymous", - "True" -] - -BRANDING = [ NSF_BRANDING, TACC_BRANDING, UTEXAS_BRANDING ] - -######################## -# TACC: LOGO & FAVICON -######################## - -LOGO = [ - "netsage", - "netsage_cms/img/org_logos/netsage_logo_color.png", - "", - "/", - "_self", - "Netsage Logo", - "anonymous", - "True" -] - -FAVICON = { - "img_file_src": "netsage_cms/img/favicons/netsage_icon.ico" -} - -######################## -# TACC: PORTAL -######################## - -INCLUDES_CORE_PORTAL = False -INCLUDES_PORTAL_NAV = False -INCLUDES_SEARCH_BAR = False - -######################## -# TACC: CORE STYLES -######################## - -TACC_CORE_STYLES_VERSION = 0 diff --git a/tapisproject_cms/src/taccsite_cms/settings_custom.py b/tapisproject_cms/src/taccsite_cms/settings_custom.py deleted file mode 100644 index 7ac9db08..00000000 --- a/tapisproject_cms/src/taccsite_cms/settings_custom.py +++ /dev/null @@ -1,88 +0,0 @@ -# CUSTOM SETTINGS VALUES. -# TACC WMA (SAD) CMS SITE: -# *.TAPISPROJECT.TACC.UTEXAS.EDU - -######################## -# DJANGO: AUTH -######################## - -AUTH_LDAP_SERVER_URI = "ldap://cluster.ldap.tacc.utexas.edu" - -######################## -# TACC: BRANDING -######################## - -# NOTE: Variables NSF_BRANDING, TACC_BRANDING, and UTEXAS_BRANDING are duplicated from Core-CMS cuz current infrastructure lacks ability to reference default values. - -NSF_BRANDING = [ - "nsf", - "site_cms/img/org_logos/nsf-white.png", - "branding-nsf", - "https://www.nsf.gov/", - "_blank", - "NSF Logo", - "anonymous", - "True" -] - -TACC_BRANDING = [ - "tacc", - "site_cms/img/org_logos/tacc-white.png", - "branding-tacc", - "https://www.tacc.utexas.edu/", - "_blank", - "TACC Logo", - "anonymous", - "True" -] - -UTEXAS_BRANDING = [ - "utexas", - "site_cms/img/org_logos/utaustin-white.png", - "branding-utaustin", - "https://www.utexas.edu/", - "_blank", - "University of Texas at Austin Logo", - "anonymous", - "True" -] - -UHAWAII_BRANDING = [ - "uhawaii", - "tapisproject_cms/img/org_logos/hawaii-header-trimmed.png", - "branding-uhawaii", - "https://www.hawaii.edu/", - "_blank", - "University of Hawaii Logo", - "anonymous", - "True" -] - -BRANDING = [ NSF_BRANDING, TACC_BRANDING, UTEXAS_BRANDING, UHAWAII_BRANDING ] - -######################## -# TACC: LOGO & FAVICON -######################## - -LOGO = [ - "tapis", - "tapisproject_cms/img/org_logos/tapis-logo-navbar.png", - "", - "/", - "_self", - "Tapis Logo", - "anonymous", - "True" -] - -FAVICON = { - "img_file_src": "site_cms/img/favicons/favicon.ico" -} - -######################## -# TACC: PORTAL -######################## - -INCLUDES_CORE_PORTAL = False -INCLUDES_PORTAL_NAV = False -INCLUDES_SEARCH_BAR = False