Skip to content

Commit e9dc571

Browse files
committed
fix: S3 URL 변경
Signed-off-by: SaJH <wogur981208@gmail.com>
1 parent d9bf38d commit e9dc571

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

app/cms/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class Media:
135135
"https://unpkg.com/codemirror@5.65.5/lib/codemirror.js",
136136
"https://unpkg.com/codemirror@5.65.5/mode/javascript/javascript.js",
137137
"https://unpkg.com/@babel/standalone/babel.min.js",
138-
"/static/admin/js/editor.js",
138+
"admin/js/editor.js",
139139
)
140140

141141
def render(self, name, value, attrs=None, renderer=None):

app/core/settings.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,8 @@
274274
STATIC_STORAGE_BACKEND = env("DJANGO_STATIC_STORAGE_BACKEND", default="storages.backends.s3.S3Storage")
275275

276276
STORAGE_BUCKET_NAME = f"pyconkr-backend-{API_STAGE}"
277-
278277
STATIC_URL = (
279-
f"https://{STORAGE_BUCKET_NAME}.s3.amazonaws.com/"
278+
f"https://s3.ap-northeast-2.amazonaws.com/{STORAGE_BUCKET_NAME}/"
280279
if STATIC_STORAGE_BACKEND == "storages.backends.s3.S3Storage"
281280
else "static/"
282281
)

0 commit comments

Comments
 (0)