2022-06-04 08:41:53 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2024-01-15 20:20:10 +00:00
|
|
|
# bthlabs-jsonrpc-django | (c) 2022-present Tomek Wójcik | MIT License
|
|
|
|
from __future__ import annotations
|
|
|
|
|
2022-06-04 08:41:53 +00:00
|
|
|
import importlib
|
|
|
|
|
|
|
|
from django.apps import AppConfig
|
|
|
|
|
|
|
|
|
|
|
|
class BTHLabsJSONRPCConfig(AppConfig):
|
|
|
|
default_auto_field = 'django.db.models.BigAutoField'
|
|
|
|
name = 'bthlabs_jsonrpc_django'
|
|
|
|
verbose_name = 'BTHLabs JSONRPC'
|
|
|
|
|
|
|
|
def ready(self):
|
|
|
|
from django.conf import settings
|
|
|
|
|
|
|
|
for module_path in settings.JSONRPC_METHOD_MODULES:
|
|
|
|
_ = importlib.import_module(module_path)
|