merge
This commit is contained in:
14
app_settings/apps.py
Normal file
14
app_settings/apps.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from django.apps import AppConfig, apps
|
||||
|
||||
class AppSettingsConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'app_settings'
|
||||
|
||||
def ready(self):
|
||||
# Проверяем, что приложения готовы
|
||||
if not apps.ready:
|
||||
return
|
||||
try:
|
||||
import app_settings.signals # Регистрация сигналов
|
||||
except ImportError as e:
|
||||
print(f"Ошибка импорта signals: {e}")
|
||||
Reference in New Issue
Block a user