aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/content
diff options
context:
space:
mode:
Diffstat (limited to 'pydis_site/apps/content')
-rw-r--r--pydis_site/apps/content/tests/test_views.py2
-rw-r--r--pydis_site/apps/content/views/page_category.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/pydis_site/apps/content/tests/test_views.py b/pydis_site/apps/content/tests/test_views.py
index cd0d0bf7..36d771a1 100644
--- a/pydis_site/apps/content/tests/test_views.py
+++ b/pydis_site/apps/content/tests/test_views.py
@@ -33,7 +33,7 @@ def patch_dispatch_attributes(view: PageOrCategoryView, location: str) -> None:
view.page_path = view.full_location.with_suffix(".md")
-@override_settings(PAGES_PATH=BASE_PATH)
+@override_settings(CONTENT_PAGES_PATH=BASE_PATH)
class PageOrCategoryViewTests(MockPagesTestCase, SimpleTestCase, TestCase):
"""Tests for the PageOrCategoryView class."""
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)
]