gas-drf/gas_drf/apps.py

14 lines
341 B
Python

from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class GASDRFConfig(AppConfig):
default_auto_field = 'django.db.models.AutoField'
name = 'gas_drf'
verbose_name = _('GAS DRF')
def ready(self):
from .sites import drfsite
super().ready()
drfsite.autodiscover()