telegram_bots/bots/apps.py

15 lines
283 B
Python
Raw Normal View History

2019-11-12 17:13:56 +00:00
from django.apps import AppConfig
class BotsConfig(AppConfig):
name = 'bots'
2019-11-24 16:22:30 +00:00
def ready(self):
self.register_config()
def register_config(self):
import djconfig
from .forms import BotsAppConfigForm
djconfig.register(BotsAppConfigForm)