Skip to content

Commit

Permalink
Merge pull request #58 from Raruto/patch-4
Browse files Browse the repository at this point in the history
FIX: update TEMPLATES search paths to allow overriding of default templates
  • Loading branch information
wlorenzetti authored Aug 19, 2022
2 parents 9fb5755 + 971e664 commit e435dcc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/g3w-suite/settings_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
# Destination: /code/g3w-admin/base/settings/local_settings.py
# Read connection parameters from environment
import os
from base.settings.base import TEMPLATES, BASE_DIR

# Allows to load custom templates from your docker volume (eg. "./config/g3w-suite/overrides/templates:/code/templates:ro")
# see: https://docs.djangoproject.com/en/2.2/howto/overriding-templates/
TEMPLATES[0]['DIRS'].append(os.path.join(BASE_DIR, '../../templates'))

G3WADMIN_PROJECT_APPS = []

Expand Down

0 comments on commit e435dcc

Please sign in to comment.