Modify Templates

While django-calingen provides all relevant templates to make the app work in a Django project, the templates are most likely not suitable for real applications.

Note

The templates were created during the development process and are meant to enable development in a minimal setup, as described in Development Setup.

However, the app’s templates can easily be overridden as described in the official documentation: How to override templates.

URLs, Views and Templates

The following table provides a reference of the app’s views, with their corresponding URLs, the URL-names as specified in calingen.urls and the template to be used.

URL

URL Name

View

Template

/

"homepage"

homepage()

no template [1]

event/

"event-list"

EventListView

calingen/templates/calingen/event_list.html

event/<event_id>/

"event-detail"

EventDetailView

calingen/templates/calingen/event_detail.html

event/<event_id>/update/

"event-update"

EventUpdateView

calingen/templates/calingen/event_update.html

event/<event_id>/delete/

"event-delete"

EventDeleteView

calingen/templates/calingen/event_confirm_delete.html

event/add/

"event-add"

EventCreateView

calingen/templates/calingen/event_create.html

<profile_id>/

"profile"

ProfileDetailView

calingen/templates/calingen/profile_detail.html

profile/add/

"profile-add"

ProfileCreateView

calingen/templates/calingen/profile_create.html

<profile_id>/delete/

"profile-delete"

ProfileDeleteView

calingen/templates/calingen/profile_confirm_delete.html

<profile_id>/update/

"profile-update"

ProfileUpdateView

calingen/templates/calingen/profile_update.html

<profile_id>/events/

"calendar-entry-list-year"

CalendarEntryListView

calingen/templates/calingen/calendar_entry_list_year.html

<profile_id>/events/<target_year>/

"calendar-entry-list-year"

CalendarEntryListView

calingen/templates/calingen/calendar_entry_list_year.html

generate/select-layout/

"layout-selection"

LayoutSelectionView

calingen/templates/calingen/layout_selection.html

generate/configure-layout/

"layout-configuration"

LayoutConfigurationView

calingen/templates/calingen/layout_configuration.html

generate/compilation/

"compilation"

CompilerView

no template [2]