home app and home view and some verbose name

This commit is contained in:
Parsa Nazer
2025-01-27 21:11:26 +03:30
parent f72b5b2d0e
commit e507fd95a5
11 changed files with 100 additions and 15 deletions
+6
View File
@@ -109,6 +109,7 @@ INSTALLED_APPS = [
'ticket',
'chat',
'order',
'home',
]
MIDDLEWARE = [
@@ -279,6 +280,11 @@ UNFOLD = {
"icon": "dashboard",
"link": reverse_lazy("admin:index"),
},
{
"title": _("اسلایدر"),
"icon": "home",
"link": reverse_lazy("admin:home_slidermodel_changelist"),
},
],
},
+2 -2
View File
@@ -6,7 +6,7 @@ from django.conf import settings
from rest_framework_simplejwt.views import TokenObtainPairView,TokenRefreshView
from product import views
from account.views import CustomTokenObtainPairView
from home.views import HomeView
urlpatterns = [
@@ -14,7 +14,7 @@ urlpatterns = [
# path('auth/', include('djoser.urls')),
# path('auth/', include('djoser.urls.jwt')),
path('home', HomeView.as_view()),
path('token/', CustomTokenObtainPairView.as_view(), name='token_obtain_pair'),
path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
path('admin/', admin.site.urls),