constants — Constants

This module define the main constants of the program, like paths, version...

get_version(release=False)

Return the version in a readable form.

Parameters:release (boolean) – if True, return also the release
Returns:a string of the version
APPNAME

The name of the application.

VERSION

The version of the program.

WEBSITE

Website of the project.

ROOT_DIR

Root directory of Azur files.

RESSOURCES_DIR

Ressources directory for Azur: it contains all media, like images, used by Azur.

TEMPLATES_DIR

This directory contains all the templates which are not associated with a specific module.

STATIC_DIR

This directory contains all static medias used by the Django website, like Javascript code, CSS files, etc.

WHOOSH_INDEX_DIR

This directory is used by Whoosh to store its index.

Previous topic

core — Core modules

Next topic

core.markup — Constants

This Page