Skip to content

Commit

Permalink
chore: STATICFILES_DIRS 설정 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertImKr committed Oct 3, 2024
1 parent f4d4c65 commit a2b1140
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion weaverse/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,12 @@

STATIC_URL = "static/"
STATIC_ROOT = os.getenv("STATIC_ROOT", BASE_DIR / "static")
STATICFILES_DIRS = os.getenv("STATICFILES_DIRS", [BASE_DIR / "staticfiles"])

STATICFILES_DIRS = os.getenv("STATICFILES_DIRS")
if STATICFILES_DIRS:
STATICFILES_DIRS = [path.strip() for path in STATICFILES_DIRS.split(",")]
else:
STATICFILES_DIRS = [BASE_DIR / "staticfiles"]

CSRF_TRUSTED_ORIGINS = [
"https://www.weaverse.site",
Expand Down

0 comments on commit a2b1140

Please sign in to comment.