Skip to content

Commit c3e21ba

Browse files
committed
fix: static
1 parent 61f5f08 commit c3e21ba

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

settings.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,12 @@
5959
# Static files (CSS, JavaScript, Images)
6060
# https://docs.djangoproject.com/en/3.2/howto/static-files/
6161

62-
STATIC_ROOT = get_static_root(BASE_DIR)
62+
# TODO: move to cfl package
63+
# STATIC_ROOT = get_static_root(BASE_DIR)
64+
STATIC_ROOT = os.getenv("STATIC_ROOT", BASE_DIR / "static")
65+
STATIC_URL = os.getenv("STATIC_URL", "/static/")
66+
67+
AWS_STORAGE_BUCKET_NAME = os.getenv("AWS_STORAGE_BUCKET_NAME")
68+
if AWS_STORAGE_BUCKET_NAME:
69+
DEFAULT_FILE_STORAGE = "storages.backends.s3.S3Storage"
70+
STATICFILES_STORAGE = "storages.backends.s3.S3Storage"

0 commit comments

Comments
 (0)