File tree Expand file tree Collapse file tree 3 files changed +5
-27
lines changed
Expand file tree Collapse file tree 3 files changed +5
-27
lines changed Original file line number Diff line number Diff line change 230230TIME_ZONE = "UTC"
231231TIME_ZONE_CLASS = timezone .utc
232232
233- # https://docs.djangoproject.com/en/4.2/releases/4.0/#zoneinfo-default-timezone-implementation
234233
235234USE_I18N = True
236235
419418 "EXCEPTION_HANDLER" : "credentials.apps.api.v2.views.credentials_throttle_handler" ,
420419}
421420
422- # DRF-YASG Settings
423- SWAGGER_USE_COMPAT_RENDERERS = False
424-
425421# Django-ratelimit Settings
426422RATELIMIT_VIEW = "credentials.apps.records.views.rate_limited"
427423
460456FILE_STORAGE_BACKEND = {}
461457EXTRA_APPS = []
462458SESSION_EXPIRE_AT_BROWSER_CLOSE = False
463-
464- STORAGES = {
465- "default" : {
466- "BACKEND" : "django.core.files.storage.FileSystemStorage" ,
467- },
468- "staticfiles" : {
469- "BACKEND" : "django.contrib.staticfiles.storage.ManifestStaticFilesStorage" ,
470- },
471- }
472-
459+ STATICFILES_STORAGE = "django.contrib.staticfiles.storage.ManifestStaticFilesStorage"
473460CACHES = {
474461 "default" : {
475462 "BACKEND" : "django.core.cache.backends.locmem.LocMemCache" ,
Original file line number Diff line number Diff line change 4343EMAIL_BACKEND = "django.core.mail.backends.filebased.EmailBackend"
4444EMAIL_FILE_PATH = "/tmp/credentials-emails"
4545
46- DEFAULT_FILE_STORAGE = os .environ .get (STORAGES [ "default" ][ "BACKEND" ] , "django.core.files.storage.FileSystemStorage" )
46+ DEFAULT_FILE_STORAGE = os .environ .get ("DEFAULT_FILE_STORAGE" , "django.core.files.storage.FileSystemStorage" )
4747MEDIA_URL = os .environ .get ("MEDIA_URL" , "/media/" )
4848
49- STATICFILES_STORAGE = os .environ .get (
50- STORAGES ["staticfiles" ]["BACKEND" ], "django.contrib.staticfiles.storage.StaticFilesStorage"
51- )
49+ STATICFILES_STORAGE = os .environ .get ("STATICFILES_STORAGE" , "django.contrib.staticfiles.storage.StaticFilesStorage" )
5250STATIC_URL = os .environ .get ("STATIC_URL" , "/static/" )
5351
5452# OAuth2 variables specific to social-auth/SSO login use case.
Original file line number Diff line number Diff line change 3535
3636# Local Directories
3737TEST_ROOT = path ("test_root" )
38-
39- STORAGES = {
40- "default" : {
41- "BACKEND" : "django.core.files.storage.FileSystemStorage" ,
42- },
43- "staticfiles" : {
44- "BACKEND" : "django.contrib.staticfiles.storage.StaticFilesStorage" ,
45- },
46- }
38+ DEFAULT_FILE_STORAGE = "django.core.files.storage.FileSystemStorage"
4739MEDIA_ROOT = str (TEST_ROOT / "uploads" )
4840MEDIA_URL = "/static/uploads/"
4941
5749 "JWT_AUDIENCE" : SOCIAL_AUTH_EDX_OAUTH2_KEY ,
5850 }
5951)
52+ STATICFILES_STORAGE = "django.contrib.staticfiles.storage.StaticFilesStorage"
6053
6154# Verifiable Credentials
6255ENABLE_VERIFIABLE_CREDENTIALS = True
You can’t perform that action at this time.
0 commit comments