forked from CGM_Public/pretix_original
* API: Allow to access event settings * Convert most "general" settings * Smaller fixes * Add more settings * Relative dates, nulling * Fix a test failure * Fix wrong attribute access
33 lines
959 B
Python
33 lines
959 B
Python
from django.apps import AppConfig
|
|
|
|
|
|
class PretixBaseConfig(AppConfig):
|
|
name = 'pretix.base'
|
|
label = 'pretixbase'
|
|
|
|
def ready(self):
|
|
from . import exporter # NOQA
|
|
from . import payment # NOQA
|
|
from . import exporters # NOQA
|
|
from . import invoice # NOQA
|
|
from . import notifications # NOQA
|
|
from . import email # NOQA
|
|
from .services import auth, checkin, export, mail, tickets, cart, orderimport, orders, invoices, cleanup, update_check, quotas, notifications, vouchers # NOQA
|
|
from django.conf import settings
|
|
|
|
try:
|
|
from .celery_app import app as celery_app # NOQA
|
|
except ImportError:
|
|
pass
|
|
|
|
if hasattr(settings, 'RAVEN_CONFIG'):
|
|
from ..sentry import initialize
|
|
initialize()
|
|
|
|
|
|
default_app_config = 'pretix.base.PretixBaseConfig'
|
|
try:
|
|
import pretix.celery_app as celery # NOQA
|
|
except ImportError:
|
|
pass
|