Skip to content

Commit 0838dac

Browse files
committed
fix: reverting few changes.
1 parent 66ca851 commit 0838dac

File tree

3 files changed

+5
-27
lines changed

3 files changed

+5
-27
lines changed

credentials/settings/base.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@
230230
TIME_ZONE = "UTC"
231231
TIME_ZONE_CLASS = timezone.utc
232232

233-
# https://docs.djangoproject.com/en/4.2/releases/4.0/#zoneinfo-default-timezone-implementation
234233

235234
USE_I18N = True
236235

@@ -419,9 +418,6 @@
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
426422
RATELIMIT_VIEW = "credentials.apps.records.views.rate_limited"
427423

@@ -460,16 +456,7 @@
460456
FILE_STORAGE_BACKEND = {}
461457
EXTRA_APPS = []
462458
SESSION_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"
473460
CACHES = {
474461
"default": {
475462
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",

credentials/settings/devstack.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@
4343
EMAIL_BACKEND = "django.core.mail.backends.filebased.EmailBackend"
4444
EMAIL_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")
4747
MEDIA_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")
5250
STATIC_URL = os.environ.get("STATIC_URL", "/static/")
5351

5452
# OAuth2 variables specific to social-auth/SSO login use case.

credentials/settings/test.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,7 @@
3535

3636
# Local Directories
3737
TEST_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"
4739
MEDIA_ROOT = str(TEST_ROOT / "uploads")
4840
MEDIA_URL = "/static/uploads/"
4941

@@ -57,6 +49,7 @@
5749
"JWT_AUDIENCE": SOCIAL_AUTH_EDX_OAUTH2_KEY,
5850
}
5951
)
52+
STATICFILES_STORAGE = "django.contrib.staticfiles.storage.StaticFilesStorage"
6053

6154
# Verifiable Credentials
6255
ENABLE_VERIFIABLE_CREDENTIALS = True

0 commit comments

Comments
 (0)