conf Package

conf Package

This is ported from django.conf Settings and configuration for Tic.

Values will be read from the module specified by the TIC_SETTINGS_MODULE environment variable, and then from tic.conf.global_settings; see the global settings file for a list of all possible variables.

class tic.conf.LazySettings[source]

Bases: tic.utils.functional.LazyObject

A lazy proxy for either global Django settings or a custom settings object. The user can manually configure settings prior to using them. Otherwise, Django uses the settings module pointed to by DJANGO_SETTINGS_MODULE.

configure(default_settings=<module 'tic.conf.global_settings' from '/Users/selkhateeb/Development/Projects/tic/src/tic/conf/global_settings.pyc'>, **options)[source]

Called to manually configure the settings. The ‘default_settings’ parameter sets where to retrieve any unspecified values from (its argument must support attribute access (__getattr__)).

configured[source]

Returns True if the settings have already been configured.

class tic.conf.Settings(settings_module)[source]

Bases: object

class tic.conf.UserSettingsHolder(default_settings)[source]

Bases: object

Holder for user configured settings.

SETTINGS_MODULE = None

global_settings Module

Table Of Contents

Previous topic

tic Package

Next topic

db Package

This Page