GlitchGuru package
GlitchGuru.asgi module
ASGI config for GlitchGuru project.
It exposes the ASGI callable as a module-level variable named application.
For more information on this file, see https://docs.djangoproject.com/en/4.2/howto/deployment/asgi/
GlitchGuru.settings module
Django settings for GlitchGuru project.
Generated by ‘django-admin startproject’ using Django 4.2.6.
For more information on this file, see https://docs.djangoproject.com/en/4.2/topics/settings/
For the full list of settings and their values, see https://docs.djangoproject.com/en/4.2/ref/settings/
GlitchGuru.urls module
URL configuration for GlitchGuru project.
The urlpatterns list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/4.2/topics/http/urls/ Examples:
- Function views
Add an import: from my_app import views
Add a URL to urlpatterns: path(‘’, views.home, name=’home’)
- Class-based views
Add an import: from other_app.views import Home
Add a URL to urlpatterns: path(‘’, Home.as_view(), name=’home’)
- Including another URLconf
Import the include() function: from django.urls import include, path
Add a URL to urlpatterns: path(‘blog/’, include(‘blog.urls’))
GlitchGuru.views module
Module: views.py
This module contains views for handling the common pages in the overall Glitch Guru Django project.
- class GlitchGuru.views.Custom404View(**kwargs)[source]
Bases:
TemplateViewThis class defines the customized view for the custom 404 error page for the ‘/404/’ URL.
- get_context_data(**kwargs)[source]
Prepares context data for the view. Typically overridden to customize the data passed to the template for rendering.
- Parameters:
kwargs (dict) – Additional keyword arguments.
- Returns:
Dictionary with context data.
In this implementation, an ‘exception’ key is added to the context, representing an instance of Django’s Http404 exception with a “Page not found” message. :rtype: dict
- template_name = '404.html'
GlitchGuru.wsgi module
WSGI config for GlitchGuru project.
It exposes the WSGI callable as a module-level variable named application.
For more information on this file, see https://docs.djangoproject.com/en/4.2/howto/deployment/wsgi/