CSV Parser added, interactive table with bind utilization
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -39,6 +39,7 @@ INSTALLED_APPS = [
|
||||
'django.contrib.staticfiles',
|
||||
'corsheaders',
|
||||
'rest_framework',
|
||||
'rest_framework.authtoken',
|
||||
'wg_api'
|
||||
|
||||
]
|
||||
@@ -65,6 +66,13 @@ CORS_ORIGIN_WHITELIST = [
|
||||
CSRF_TRUSTED_ORIGINS = ['https://wg.nnag.me']
|
||||
CSRF_COOKIE_SECURE = True
|
||||
|
||||
|
||||
REST_FRAMEWORK = {
|
||||
'DEFAULT_AUTHENTICATION_CLASSES': [
|
||||
'rest_framework.authentication.TokenAuthentication', # <-- And here
|
||||
],
|
||||
}
|
||||
|
||||
ROOT_URLCONF = 'wgweb.urls'
|
||||
|
||||
TEMPLATES = [
|
||||
@@ -133,6 +141,8 @@ USE_TZ = True
|
||||
|
||||
STATIC_URL = 'static/'
|
||||
|
||||
# LOGIN_REDIRECT_URL = '/admin/dashboard'
|
||||
|
||||
# Default primary key field type
|
||||
# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field
|
||||
|
||||
|
||||
@@ -26,7 +26,11 @@ urlpatterns = [
|
||||
path('api2/wgLogin', views.wgLogin.as_view()),
|
||||
path('api2/wgLogs', views.wgViewLogs),
|
||||
path('api2/wgClients', views.wgViewClients),
|
||||
path('api2/wgFilterClients', views.wgFilterClients),
|
||||
path('api2/wgEditState', views.get_EditState),
|
||||
path('api2/wgSysApply', views.get_ApplyConfig),
|
||||
path('api2/wgBulkReg', views.wgBulkReg),
|
||||
path('api2/wgUserRecommendations', views.get_user_param_recommendation),
|
||||
path('api2/wgCheckAuth', views.wgCheckAuth),
|
||||
path('api2/wgEditClient', views.get_EditClient)
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user