Browse Source

Update settings and move commands, fix #1134 #1135

pull/1143/head
Hironsan 3 years ago
parent
commit
33e1ceccf3
5 changed files with 0 additions and 14 deletions
  1. 0
      app/api/management/commands/create_admin.py
  2. 0
      app/api/management/commands/create_role_mapping.py
  3. 0
      app/api/management/commands/create_roles.py
  4. 0
      app/api/management/commands/wait_for_db.py
  5. 14
      app/app/settings.py

app/server/management/commands/create_admin.py → app/api/management/commands/create_admin.py

app/server/management/commands/create_role_mapping.py → app/api/management/commands/create_role_mapping.py

app/server/management/commands/create_roles.py → app/api/management/commands/create_roles.py

app/server/management/commands/wait_for_db.py → app/api/management/commands/wait_for_db.py

14
app/app/settings.py

@ -52,15 +52,12 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'server.apps.ServerConfig',
'api.apps.ApiConfig',
# 'widget_tweaks',
'rest_framework',
'rest_framework.authtoken',
'django_filters',
'social_django',
'polymorphic',
# 'webpack_loader',
'corsheaders',
'drf_yasg'
]
@ -124,17 +121,6 @@ STATICFILES_DIRS = [
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
WEBPACK_LOADER = {
'DEFAULT': {
'CACHE': not DEBUG,
'BUNDLE_DIR_NAME': 'bundle/',
'STATS_FILE': path.join(BASE_DIR, 'server', 'static', 'webpack-stats.json'),
'POLL_INTERVAL': 0.1,
'TIMEOUT': None,
'IGNORE': [r'.*\.hot-update.js', r'.+\.map']
}
}
WSGI_APPLICATION = 'app.wsgi.application'
AUTHENTICATION_BACKENDS = [

Loading…
Cancel
Save