Created
May 7, 2019 11:51
-
-
Save jayhale/cb40954762c32b13e1f6cf7733d4a6bc to your computer and use it in GitHub Desktop.
Django staticfiles on Zeit Now: settings.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# now_app/settings.py | |
import os | |
BASE_DIR = os.path.dirname(os.path.dirname(os.abspath(__file__))) | |
# ... | |
STATIC_URL = '/static/' | |
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles_build', 'static') | |
# ... |
No, WhiteNoise is not needed. Static files are served by Zeit directly, no need to host them in the lambda.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do I have to use WhiteNoise