home app and home view and some verbose name
This commit is contained in:
@@ -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"),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user