boardinghouse.contrib.demo.apps module

class boardinghouse.contrib.demo.apps.BoardingHouseDemoConfig(app_name, app_module)[source]

Bases: django.apps.config.AppConfig

ready()[source]

Override this method in subclasses to run code when Django starts.

boardinghouse.contrib.demo.apps.check_demo_expiry_is_timedelta(app_configs=None, **kwargs)[source]

BOARDINGHOUSE_DEMO_PERIOD should be a timedelta instance.

boardinghouse.contrib.demo.apps.check_demo_prefix_stats_with_underscore(app_configs=None, **kwargs)[source]

Ensure that the prefix for demo schemata internal names starts with underscore.

This is required because a leading underscore is the trigger that the indicated schema is not a “regular” schema, and should not be activated according to the normal rules.

boardinghouse.contrib.demo.apps.ensure_contrib_template_installed(app_configs=None, **kwargs)[source]

boardinghouse.contrib.template must be installed.