We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dbef2e commit 13cb953Copy full SHA for 13cb953
README.md
@@ -218,4 +218,6 @@ DB_USER = 'postgres'
218
DB_PASSWORD = ''
219
DB_HOST = ''
220
DB_PORT = ''
221
+# prefix of url to access static files
222
+DJANGO_STATIC_URL = 'static/'
223
```
baidupcsleecher/settings.py
@@ -188,7 +188,7 @@
188
# Static files (CSS, JavaScript, Images)
189
# https://docs.djangoproject.com/en/4.1/howto/static-files/
190
191
-STATIC_URL = "static/"
+STATIC_URL = getenv("DJANGO_STATIC_URL", "static/")
192
STATIC_ROOT = BASE_DIR / "staticfiles"
193
STATICFILES_DIRS = [
194
BASE_DIR / "static",
0 commit comments