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

35 lines
775 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-03-29 16:10:07 +00:00
# Pluggable backend for bill generation.
2015-04-26 13:53:00 +00:00
ORDERS_BILLING_BACKEND = Setting('ORDERS_BILLING_BACKEND',
2015-04-05 10:46:24 +00:00
'orchestra.contrib.orders.billing.BillsBackend'
)
2014-09-08 14:23:06 +00:00
2015-03-29 16:10:07 +00:00
# Pluggable service class
2015-04-26 13:53:00 +00:00
ORDERS_SERVICE_MODEL = Setting('ORDERS_SERVICE_MODEL',
'services.Service'
)
2014-10-01 21:03:16 +00:00
2015-03-29 16:10:07 +00:00
# Prevent inspecting these apps for service accounting
2015-04-26 13:53:00 +00:00
ORDERS_EXCLUDED_APPS = Setting('ORDERS_EXCLUDED_APPS', (
2014-10-01 21:03:16 +00:00
'orders',
'admin',
'contenttypes',
'auth',
'migrations',
'sessions',
'orchestration',
'bills',
2014-11-18 13:59:21 +00:00
'services',
2014-10-01 21:03:16 +00:00
))
2015-03-29 16:10:07 +00:00
# Only account for significative changes
# metric_storage new value: lastvalue*(1+threshold) > currentvalue or lastvalue*threshold < currentvalue
2015-04-26 13:53:00 +00:00
ORDERS_METRIC_ERROR = Setting('ORDERS_METRIC_ERROR',
0.01
)