django-orchestra-test/orchestra/contrib/orders/settings.py

39 lines
1012 B
Python
Raw Normal View History

2015-04-26 13:53:00 +00:00
from orchestra.settings import Setting
2014-05-08 16:59:35 +00:00
2015-04-27 14:54:17 +00:00
ORDERS_BILLING_BACKEND = Setting('ORDERS_BILLING_BACKEND',
'orchestra.contrib.orders.billing.BillsBackend',
validators=[Setting.validate_import_class],
help_text="Pluggable backend for bill generation.",
)
2014-09-08 14:23:06 +00:00
2015-04-27 14:54:17 +00:00
ORDERS_SERVICE_MODEL = Setting('ORDERS_SERVICE_MODEL',
'services.Service',
validators=[Setting.validate_model_label],
2015-04-27 14:54:17 +00:00
help_text="Pluggable service class.",
)
2014-10-01 21:03:16 +00:00
2015-04-27 14:54:17 +00:00
ORDERS_EXCLUDED_APPS = Setting('ORDERS_EXCLUDED_APPS',
(
'orders',
'admin',
'contenttypes',
'auth',
'migrations',
'sessions',
'orchestration',
'bills',
'services',
),
help_text="Prevent inspecting these apps for service accounting."
)
2015-04-27 14:54:17 +00:00
ORDERS_METRIC_ERROR = Setting('ORDERS_METRIC_ERROR',
0.01,
help_text=("Only account for significative changes.<br>"
2015-04-27 14:54:17 +00:00
"metric_storage new value: <tt>lastvalue*(1+threshold) > currentvalue or lastvalue*threshold < currentvalue</tt>."),
)