CSV Parser added, interactive table with bind utilization

This commit is contained in:
infidel
2022-12-14 00:05:05 +07:00
parent caaedfa003
commit 59671130cb
13 changed files with 215 additions and 11 deletions

View File

@@ -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