mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
21 lines
449 B
Python
21 lines
449 B
Python
import sys
|
|
|
|
# Django
|
|
from django.apps import AppConfig
|
|
|
|
# from django.core import checks
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
|
|
class ConfConfig(AppConfig):
|
|
name = 'awx.conf'
|
|
verbose_name = _('Configuration')
|
|
|
|
def ready(self):
|
|
self.module.autodiscover()
|
|
|
|
if not set(sys.argv) & {'migrate', 'check_migrations'}:
|
|
from .settings import SettingsWrapper
|
|
|
|
SettingsWrapper.initialize()
|