Skip to content

Commit 57bd9b7

Browse files
committed
fix: new cfl package
1 parent dd8bbf0 commit 57bd9b7

File tree

3 files changed

+9
-48
lines changed

3 files changed

+9
-48
lines changed

Pipfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ name = "pypi"
2222
# 5. Run `pipenv install --dev` in your terminal.
2323

2424
[packages]
25-
codeforlife = "==0.24.17"
25+
codeforlife = "==0.24.18"
2626
# 🚫 Don't add [packages] below that are inherited from the CFL package.
2727

2828
[dev-packages]
29-
codeforlife = {version = "==0.24.17", extras = ["dev"]}
29+
codeforlife = {version = "==0.24.18", extras = ["dev"]}
3030
# codeforlife = {file = "../codeforlife-package-python", editable = true, extras = ["dev"]}
3131
# 🚫 Don't add [dev-packages] below that are inherited from the CFL package.
3232

Pipfile.lock

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

settings.py

-39
Original file line numberDiff line numberDiff line change
@@ -56,42 +56,3 @@
5656
# https://docs.djangoproject.com/en/3.2/topics/http/sessions/
5757

5858
SESSION_ENGINE = "api.models.session"
59-
60-
61-
s3_storage = {
62-
"BACKEND": "storages.backends.s3.S3Storage",
63-
# https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html#settings
64-
"OPTIONS": {
65-
"bucket_name": os.getenv("S3_STORAGE_BUCKET_NAME"),
66-
"default_acl": os.getenv("S3_STORAGE_DEFAULT_ACL"),
67-
"location": os.getenv("S3_STORAGE_LOCATION", ""),
68-
"region_name": os.getenv("S3_STORAGE_REGION_NAME"),
69-
"custom_domain": os.getenv("S3_STORAGE_CUSTOM_DOMAIN"),
70-
"addressing_style": os.getenv("S3_STORAGE_ADDRESSING_STYLE"),
71-
"querystring_auth": bool(
72-
int(os.getenv("S3_STORAGE_QUERYSTRING_AUTH", "1"))
73-
),
74-
"querystring_expire": int(
75-
os.getenv("S3_STORAGE_QUERYSTRING_EXPIRE", "3600")
76-
),
77-
},
78-
}
79-
80-
81-
# TODO: delete
82-
STORAGES: t.Dict[str, t.Any] = { # type: ignore[no-redef]
83-
"default": (
84-
{
85-
"BACKEND": "django.core.files.storage.FileSystemStorage",
86-
}
87-
if ENV == "local"
88-
else s3_storage
89-
),
90-
"staticfiles": (
91-
{
92-
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage",
93-
}
94-
if ENV == "local"
95-
else s3_storage
96-
),
97-
}

0 commit comments

Comments
 (0)