profile end points user model otp stuff base

This commit is contained in:
Parsa Nazer
2024-12-13 23:02:19 +03:30
parent eef8263869
commit 259099cb9e
16 changed files with 425 additions and 7 deletions
+25 -3
View File
@@ -94,7 +94,9 @@ INSTALLED_APPS = [
'rest_framework.authtoken',
'djoser',
# custom apps
'product'
'product',
'account',
'entertainment',
]
MIDDLEWARE = [
@@ -278,7 +280,7 @@ UNFOLD = {
{
"title": _("محصولات"),
"icon": "redeem",
"link": reverse_lazy("admin:product_product_changelist"),
"link": reverse_lazy("admin:product_productmodel_changelist"),
},
# esm category model ro lower case bezar inja amir
@@ -296,12 +298,32 @@ UNFOLD = {
],
},
{
"title": _("بخش کاربران و مشتریان"),
"separator": True,
"collapsible": True,
"items": [
{
"title": _("users"),
"icon": "person",
"link": reverse_lazy("admin:account_user_changelist"),
},
],
},
],
},
}
AUTH_USER_MODEL = 'account.User'
def environment_callback(request):
return ["Development", "warning"]