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
  1. Add an import: from my_app import views

  2. Add a URL to urlpatterns: path(‘’, views.home, name=’home’)

Class-based views
  1. Add an import: from other_app.views import Home

  2. Add a URL to urlpatterns: path(‘’, Home.as_view(), name=’home’)

Including another URLconf
  1. Import the include() function: from django.urls import include, path

  2. 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: TemplateView

This 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'
class GlitchGuru.views.HomePageView(**kwargs)[source]

Bases: TemplateView

This class defines the view for the homepage of the web application.

template_name = 'home.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/