Skip to content

Commit 13cb953

Browse files
committed
feat: specify the static url prefix
1 parent 4dbef2e commit 13cb953

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -218,4 +218,6 @@ DB_USER = 'postgres'
218218
DB_PASSWORD = ''
219219
DB_HOST = ''
220220
DB_PORT = ''
221+
# prefix of url to access static files
222+
DJANGO_STATIC_URL = 'static/'
221223
```

baidupcsleecher/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
# Static files (CSS, JavaScript, Images)
189189
# https://docs.djangoproject.com/en/4.1/howto/static-files/
190190

191-
STATIC_URL = "static/"
191+
STATIC_URL = getenv("DJANGO_STATIC_URL", "static/")
192192
STATIC_ROOT = BASE_DIR / "staticfiles"
193193
STATICFILES_DIRS = [
194194
BASE_DIR / "static",

0 commit comments

Comments
 (0)