Skip to main content
DjangoKit Log In

Concepts

A DjangoKit app is made of routes and handlers, in addition to the usual Django models, etc.

Routes

Routes are the combination of a Django URLconf and a handler that are wired up automatically. They're discovered in your project's routes directory--the subdirectory names map to segments of the URLconf.

Handlers

Handlers are essentially just Django view functions that are allowed to return a dict, a model instance, or a dict containing a model or queryset for convenience.

Page Handlers

Page handlers render Django page templates. Page handlers are created and wired up automatically when a route includes a page.html template.

Loaders

Loaders load the data for a page. Typically, this is the get handler, but a separate loader can be specified. The data is accessed in the page template via the data object.