thaliawebsite package¶
The main module for the Thalia website.
This module defines settings and the URI layout. We also handle some site-wide API stuff here.
Subpackages¶
- thaliawebsite.api package
- thaliawebsite.settings package
- thaliawebsite.templatetags package
- Submodules
- thaliawebsite.templatetags.alert module
- thaliawebsite.templatetags.baseurl module
- thaliawebsite.templatetags.bleach_tags module
- thaliawebsite.templatetags.fieldtype module
- thaliawebsite.templatetags.grid_item module
- thaliawebsite.templatetags.menu module
- thaliawebsite.templatetags.pick_header_image module
Submodules¶
thaliawebsite.admin module¶
Settings for the admin site
thaliawebsite.context_processors module¶
These context processors can be used to expand the context provided tos views.
thaliawebsite.forms module¶
Special forms
-
class
thaliawebsite.forms.
AuthenticationForm
(request=None, *args, **kwargs)[source]¶ Bases:
django.contrib.auth.forms.AuthenticationForm
Override the authentication form provided by Django
-
base_fields
= {'password': <django.forms.fields.CharField object>, 'username': <django.contrib.auth.forms.UsernameField object>}¶
-
declared_fields
= {'password': <django.forms.fields.CharField object>, 'username': <django.contrib.auth.forms.UsernameField object>}¶
-
property
media
¶ Return all media required to render the widgets on this form.
-
thaliawebsite.sitemaps module¶
Defines site maps.
thaliawebsite.urls module¶
Thalia’s root URL Configuration
The urlpatterns
list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/dev/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.conf.urls import url, include
Add a URL to urlpatterns:
path('blog/', include('blog.urls'))
thaliawebsite.views module¶
General views for the website
-
class
thaliawebsite.views.
IndexView
(**kwargs)[source]¶ Bases:
django.views.generic.base.TemplateView
-
template_name
= 'index.html'¶
-
-
class
thaliawebsite.views.
TestCrashView
(**kwargs)[source]¶ Bases:
django.views.generic.base.View
Test view to intentionally crash to test the error handling.
thaliawebsite.wsgi module¶
WSGI config for thaliawebsite 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/dev/howto/deployment/wsgi/