aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/content/views
diff options
context:
space:
mode:
authorGravatar kosayoda <[email protected]>2021-04-01 20:32:24 +0800
committerGravatar kosayoda <[email protected]>2021-04-01 20:32:24 +0800
commit4039266c5083545b498b5ef751a98961aa5ba7e1 (patch)
tree511e8d41f67d33616b4e423ee0a1742fae7ddea8 /pydis_site/apps/content/views
parentUpdate 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/apps/content/views')
-rw-r--r--pydis_site/apps/content/views/page_category.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_site/apps/content/views/page_category.py b/pydis_site/apps/content/views/page_category.py
index bb2c07cc..b31814f7 100644
--- a/pydis_site/apps/content/views/page_category.py
+++ b/pydis_site/apps/content/views/page_category.py
@@ -16,7 +16,7 @@ class PageOrCategoryView(TemplateView):
self.location = Path(kwargs.get("location", ""))
# URL location on the filesystem
- self.full_location = settings.PAGES_PATH / self.location
+ self.full_location = settings.CONTENT_PAGES_PATH / self.location
# Possible places to find page content information
self.category_path = self.full_location
@@ -56,7 +56,7 @@ class PageOrCategoryView(TemplateView):
context["breadcrumb_items"] = [
{
- "name": utils.get_category(settings.PAGES_PATH / location)["title"],
+ "name": utils.get_category(settings.CONTENT_PAGES_PATH / location)["title"],
"path": str(location)
} for location in reversed(self.location.parents)
]