annotations.utils module

General-purpose helper functions.

annotations.utils.basepath(request)[source]

Generate the base path (domain + path) for the site.

TODO: Do we need this anymore?

Parameters:request (django.http.request.HttpRequest) –
Returns:
Return type:str
annotations.utils.help_text(text)[source]

Remove excess whitespace from a string. Intended for use in model and form fields when writing long help_texts.