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

35 lines
809 B
Python
Raw Normal View History

2014-05-08 16:59:35 +00:00
from django.conf import settings
2015-03-29 16:10:07 +00:00
# Pluggable backend for bill generation.
ORDERS_BILLING_BACKEND = getattr(settings, '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
ORDERS_SERVICE_MODEL = getattr(settings, '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
2014-10-01 21:03:16 +00:00
ORDERS_EXCLUDED_APPS = getattr(settings, 'ORDERS_EXCLUDED_APPS', (
'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
ORDERS_METRIC_ERROR = getattr(settings, 'ORDERS_METRIC_ERROR',
0.01
)