evennia.web.utils.general_context

This file defines global variables that will always be available in a view context without having to repeatedly include it.

For this to work, this file is included in the settings file, in the TEMPLATES[“OPTIONS”][“context_processors”] list.

evennia.web.utils.general_context.set_game_name_and_slogan()[source]

Sets global variables GAME_NAME and GAME_SLOGAN which are used by general_context.

Notes

This function is used for unit testing the values of the globals.

evennia.web.utils.general_context.set_webclient_settings()[source]

As with set_game_name_and_slogan above, this sets global variables pertaining to webclient settings.

Notes

Used for unit testing.

evennia.web.utils.general_context.general_context(request)[source]

Returns common Evennia-related context stuff, which is automatically added to context of all views.