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/apps/content/views | |
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/apps/content/views')
-rw-r--r-- | pydis_site/apps/content/views/page_category.py | 4 |
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) ] |