django_dynamic_theme.middleware =============================== .. py:module:: django_dynamic_theme.middleware .. autoapi-nested-parse:: Middlewares for the dynamic theme app. Classes ------- .. autoapisummary:: django_dynamic_theme.middleware.MissingThemeHandleMiddleware Module Contents --------------- .. py:class:: MissingThemeHandleMiddleware(get_response) Detects if the theme file is missing. .. py:attribute:: get_response .. py:method:: __call__(request) .. py:method:: process_exception(request, exception) If a default theme is set it will export this one. If there is not default theme it will export the first one. If no theme exists it will raise an error. It will only raise a warning in debug mode.