prologin.djangoconf module

Utility functions to load Django configuration from profile configs.

prologin.djangoconf.set_admin_title(admin, title)

Monkey-patches the admin header and title using the title string.

prologin.djangoconf.use_profile_config(profile, out=None)

Loads configuration values from a configuration profile some dictionary.

If no dictionary is provided, frame magic is done in order to get the globals of our caller (most likely the globals of settings.py).

Parameters
  • profile – Configuration profile to load values from.

  • out – Dictionary where to store the loaded Django settings.

Returns

The configuration profile so that the caller can load more custom settings if wanted.