diff options
Diffstat (limited to 'pydis_site/apps/home')
-rw-r--r-- | pydis_site/apps/home/README.md | 3 | ||||
-rw-r--r-- | pydis_site/apps/home/urls.py | 3 | ||||
-rw-r--r-- | pydis_site/apps/home/views.py | 5 |
3 files changed, 2 insertions, 9 deletions
diff --git a/pydis_site/apps/home/README.md b/pydis_site/apps/home/README.md index 34c1e367..1296ea3f 100644 --- a/pydis_site/apps/home/README.md +++ b/pydis_site/apps/home/README.md @@ -1,8 +1,7 @@ # The "home" app This Django application takes care of serving the homepage of our website, that -is, the first page that you see when you open pythondiscord.com. It also -manages the timeline page showcasing the history of our community. +is, the first page that you see when you open pythondiscord.com. ## Directory structure diff --git a/pydis_site/apps/home/urls.py b/pydis_site/apps/home/urls.py index 30321ece..ccbb5824 100644 --- a/pydis_site/apps/home/urls.py +++ b/pydis_site/apps/home/urls.py @@ -1,9 +1,8 @@ from django_distill import distill_path -from .views import HomeView, timeline +from .views import HomeView app_name = 'home' urlpatterns = [ distill_path('', HomeView.as_view(), name='home'), - distill_path('timeline/', timeline, name="timeline"), ] diff --git a/pydis_site/apps/home/views.py b/pydis_site/apps/home/views.py index bfa9e02d..71f95293 100644 --- a/pydis_site/apps/home/views.py +++ b/pydis_site/apps/home/views.py @@ -153,8 +153,3 @@ class HomeView(View): """Collect repo data and render the homepage view.""" repo_data = self._get_repo_data() return render(request, "home/index.html", {"repo_data": repo_data}) - - -def timeline(request: WSGIRequest) -> HttpResponse: - """Render timeline view.""" - return render(request, 'home/timeline.html') |