forked from CGM_Public/pretix_original
* Remove is_superuser everywhere * Session handling * List of sessions, relative timeout * Absolute timeout * Optionally pseudo-force audit comments * Fix failing tests * Add tests * Add docs * Rebsae migration * Typos * Fix tests
32 lines
883 B
Python
32 lines
883 B
Python
from django.apps import AppConfig
|
|
from django.conf import settings
|
|
|
|
|
|
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 .services import auth, export, mail, tickets, cart, orders, invoices, cleanup, update_check, quotas, notifications # NOQA
|
|
|
|
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
|