Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/microtethys-image' into microtet…
Browse files Browse the repository at this point in the history
…hys-image
  • Loading branch information
romer8 committed Apr 5, 2024
2 parents 0fc3464 + f3b3263 commit 266e5b0
Show file tree
Hide file tree
Showing 19 changed files with 445 additions and 709 deletions.
6 changes: 6 additions & 0 deletions docs/installation/resources/example-portal-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ settings:
# - tethysapp.myapp.templates
# ADDITIONAL_URLPATTERNS:
# - tethysext.myextension.urls
# ADDITIONAL_SETTINGS_FILES:
# - tethysext.myestension.settings
# - tethys_home/additional_settings.py
# MULTIPLE_APP_MODE: True
# STANDALONE_APP: my_app


SESSION_CONFIG:
EXPIRE_AT_BROWSER_CLOSE: True
Expand Down
7 changes: 6 additions & 1 deletion docs/tethys_portal/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Apps
Settings
========

Tethys Portal settings. Note: do not edit the :file:`settings.py` directly, Instead set any Django setting in this section, even those not listed here.
Tethys Portal settings. Note: do not edit the :file:`settings.py` file directly, Instead set any Django setting in this section, even those not listed here. If you need to use Python logic to set specific settings, then you can use the ``ADDITIONAL_SETTINGS_FILES`` key under the ``TETHYS_PORTAL_CONFIG`` key to specify additional Python files to include in the :file:`settings.py` file (see :ref:`tethys_portal_config_settings`).

.. tip::

Expand Down Expand Up @@ -69,6 +69,8 @@ RESOURCE_QUOTA_HANDLERS a list of Tethys ``ResourceQu
RESOURCE_QUOTA_HANDLERS_OVERRIDE override for ``RESOURCE_QUOTA_HANDLERS`` setting. CAUTION: improper use of this setting can break the Tethys Portal.
================================================== ================================================================================

.. _tethys_portal_config_settings:

TETHYS_PORTAL_CONFIG
++++++++++++++++++++

Expand All @@ -84,6 +86,9 @@ STATIC_ROOT the Django `STATIC_ROOT <http
STATICFILES_USE_NPM serves JavaScript dependencies through Tethys rather than using a content delivery network (CDN) when ``True``. Defaults to ``False``. When set to ``True`` then you must run ``tethys gen package_json`` to npm install the JS dependencies locally so they can be served by Tethys.
ADDITIONAL_TEMPLATE_DIRS a list of dot-paths to template directories. These will be prepended to Tethys's list of template directories so specific templates can be overriden.
ADDITIONAL_URLPATTERNS a list of dot-paths to list or tuples that define additional URL patterns to register in the portal. Additional URL patterns will precede default URL patterns so URLs will first match against user specified URL patterns.
ADDITIONAL_SETTINGS_FILES a list of dot-paths or file paths to Python files that will be imported into the ``settings.py`` file. Additional settings files are imported at the end of the file and thus will override any previous settings with name conflicts.
MULTIPLE_APP_MODE boolean indicating if the portal should host multiple apps or be configured for a single standalone app.
STANDALONE_APP configured app for when ``MULTIPLE_APP_MODE`` is set to ``False``. If ``None``, then the first configured app in the DB will be used.
================================================== ================================================================================

SESSION_CONFIG
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TEST_SETTING = "Test Setting"

0 comments on commit 266e5b0

Please sign in to comment.