Стартавая модель авторизации в приложении

This commit is contained in:
adm
2024-02-22 15:16:15 +03:00
parent bbe3fd7892
commit 645bddb07f
22 changed files with 744 additions and 1 deletions

10
system/main/admin.py Normal file
View File

@@ -0,0 +1,10 @@
from django.apps import apps
from django.contrib import admin
#
models = apps.get_models()
# код что отображает все модели всех apps
for model in models:
try:
admin.site.register(model)
except admin.sites.AlreadyRegistered:
pass