'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] # Internationalization # https://docs.djangoproject.com/en/3.1/topics/i18n/ LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/3.1/howto/static-files/ STATIC_URL = '/static/' STATICFILES_DIRS = [bokehjsdir()] #STATICFILES_DIRS = ['"F:\\Program Files\\Python\\lib\\site-packages\\bokeh\\server\\static"'] THEMES_DIR = os.path.join(MODULE_DIR, "themes") print("THEMES_DIR=", THEMES_DIR) print("STATICFILES_DIRS=", STATICFILES_DIRS)
LANGUAGE_CODE = 'en-us' TIME_ZONE = 'America/Edmonton' USE_I18N = True USE_L10N = True USE_TZ = True CELERY_BROKER_URL = os.environ.get("CELERY_BROKER", "redis://redis:6379/0") CELERY_RESULT_BACKEND = os.environ.get("CELERY_BROKER", "redis://redis:6379/0") CELERY_TASK_TRACK_STARTED = True ################################################################ ################################################################ STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') STATIC_URL = '/static/' STATICFILES_DIRS = [os.path.join(BASE_DIR, "static"), bokehjsdir()] STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' # User uploaded content MEDIA_URL = '/media/' MEDIA_ROOT = os.path.join(BASE_DIR, 'media') USER_DATA = os.path.join(MEDIA_ROOT, 'user-data') CRISPY_TEMPLATE_PACK = 'bootstrap4' INTERNAL_IPS = ['127.0.0.1'] # accounts are not used AUTH_USER_MODEL = 'users.CustomUser' LOGIN_REDIRECT_URL = 'home' ACCOUNT_LOGOUT_REDIRECT_URL = 'home'
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] # Internationalization # https://docs.djangoproject.com/en/2.0/topics/i18n/ LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/2.0/howto/static-files/ STATIC_URL = '/static/' STATICFILES_DIRS = [STATIC_DIR,bokehjsdir()]
{'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator'}, {'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator'}, {'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator'}, ] # Internationalization # https://docs.djangoproject.com/en/2.2/topics/i18n/ LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/2.2/howto/static-files/ STATIC_URL = '/static/' STATICFILES_DIRS = [bokehjsdir(),join(BASE_DIR, 'staticfiles/dist/'),join(BASE_DIR, 'staticfiles/scripts/'),join(BASE_DIR, 'staticfiles/src/')] STATIC_ROOT = join(BASE_DIR, 'static') # STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' THEMES_DIR = join(MODULE_DIR, "themes")