diff options
author | 2021-04-01 20:32:24 +0800 | |
---|---|---|
committer | 2021-04-01 20:32:24 +0800 | |
commit | 4039266c5083545b498b5ef751a98961aa5ba7e1 (patch) | |
tree | 511e8d41f67d33616b4e423ee0a1742fae7ddea8 /pydis_site/settings.py | |
parent | Update misleading documentation. (diff) |
Fix overriden PAGES_PATH in settings.py.
This was causing mysterious 404s because while migrating a feature to
dewikification, the same variable would be placed in the settings file.
Diffstat (limited to 'pydis_site/settings.py')
-rw-r--r-- | pydis_site/settings.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pydis_site/settings.py b/pydis_site/settings.py index 3abf556a..e7bf2a79 100644 --- a/pydis_site/settings.py +++ b/pydis_site/settings.py @@ -119,9 +119,6 @@ MIDDLEWARE = [ ] ROOT_URLCONF = 'pydis_site.urls' -# Path for events pages -PAGES_PATH = Path(BASE_DIR, "pydis_site", "templates", "events", "pages") - TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', @@ -287,4 +284,8 @@ SITE_REPOSITORY_OWNER = "python-discord" SITE_REPOSITORY_NAME = "site" SITE_REPOSITORY_BRANCH = "master" -PAGES_PATH = Path(BASE_DIR, "pydis_site", "apps", "content", "resources") +# Path for events pages +EVENTS_PAGES_PATH = Path(BASE_DIR, "pydis_site", "templates", "events", "pages") + +# Path for content pages +CONTENT_PAGES_PATH = Path(BASE_DIR, "pydis_site", "apps", "content", "resources") |