Added admin control page
This commit is contained in:
@@ -127,3 +127,8 @@ MEDIA_URL = '/media/'
|
||||
|
||||
LOGIN_REDIRECT_URL = '/'
|
||||
LOGOUT_REDIRECT_URL = '/'
|
||||
|
||||
ZENDESK_ROLES = {
|
||||
'engineer': '360005209000',
|
||||
'light_agent': '360005208980',
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ from django.urls import path, include
|
||||
|
||||
from access_controller import settings
|
||||
from access_controller.settings import DEBUG
|
||||
from main.views import main_page, profile_page, CustomRegistrationView
|
||||
from main.views import main_page, profile_page, CustomRegistrationView, AdminPageView
|
||||
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls, name='admin'),
|
||||
@@ -30,4 +30,5 @@ urlpatterns = [
|
||||
path('accounts/login/', LoginView.as_view(extra_context={}), name='login'), # TODO add extra context
|
||||
path('accounts/', include('django.contrib.auth.urls')),
|
||||
path('accounts/', include('django_registration.backends.one_step.urls')),
|
||||
path('control/', AdminPageView.as_view(), name='control')
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user