Skip to content

Commit

Permalink
fix: static folder
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Dec 1, 2024
1 parent 61f5f08 commit af1fc43
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .deploy/static.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"artifactUrl": "REPLACE_IN_PIPELINE",
"assetsPrefix": "REPLACE_IN_PIPELINE"
"assetsPrefix": "REPLACE_IN_PIPELINE",
"bucket": "REPLACE_IN_PIPELINE"
}
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

## ℹ️ HOW-TO: Make the python-package editable.
#
# 1. Comment out the non-editable codeforlife package under [packages].
Expand All @@ -25,6 +24,7 @@ name = "pypi"
[packages]
codeforlife = "==0.23.0"
# 🚫 Don't add [packages] below that are inherited from the CFL package.
django-storages = {version = "==1.14.4", extras = ["s3"]}

[dev-packages]
codeforlife = {version = "==0.23.0", extras = ["dev"]}
Expand Down
13 changes: 12 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,8 @@
# https://docs.djangoproject.com/en/3.2/howto/static-files/

STATIC_ROOT = get_static_root(BASE_DIR)

# TODO: move to cfl package
AWS_STORAGE_BUCKET_NAME = "use1-static-dev-725778237416"
STATIC_URL = f"https://{AWS_STORAGE_BUCKET_NAME}.s3.amazonaws.com/assets/v1/dev/atm/cflcontributorbackend"
DEFAULT_FILE_STORAGE = "storages.backends.s3.S3Storage"

0 comments on commit af1fc43

Please sign in to comment.