From 14643edabedd0f03639c72fa1c068912e6f128cd Mon Sep 17 00:00:00 2001 From: Bryan Date: Sun, 16 Aug 2015 19:55:54 -0400 Subject: [PATCH] correcting note on static file hosting for dev closes #442 --- .env.example | 2 ++ README.md | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 2156d8c..cc33009 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,7 @@ DATABASE_URL='postgres://:@:/' +DEFAULT_FILE_STORAGE='django.core.files.storage.FileSystemStorage' + #DEFAULT_FILE_STORAGE='storages.backends.s3boto.S3BotoStorage' #AWS_ACCESS_KEY_ID='ASCIINONSENSE' #AWS_SECRET_ACCESS_KEY='AlphaNumerics+OtherCharacters' diff --git a/README.md b/README.md index 73fbefa..70034ec 100644 --- a/README.md +++ b/README.md @@ -363,7 +363,7 @@ environment variables `TWITTER_CONSUMER_KEY`, `TWITTER_CONSUMER_SECRET`, ## Configuring foreman -KarmaNotes runs on Heroku as a webapp and thus makes use of a Procfie. While +KarmaNotes runs on Heroku as a webapp and thus makes use of a Procfile. While not strictly necessary, KarmaWorld can use the same basic Procfile which is convenient and consistent. @@ -439,8 +439,8 @@ desired. archives. On Debian-based systems, this entails `apt-get install p7zip-full` If using `DJANGO_SETTINGS_MODULE='karmaworld.settings.dev'` in `.env`, static -file hosting is done by local files and completely ignores the -`DEFAULT_FILE_STORAGE` setting in `.env`. +file hosting should be done by local files. `DEFAULT_FILE_STORAGE` should be +set to `django.core.files.storage.FileSystemStorage`. If using `DJANGO_SETTINGS_MODULE='karmaworld.settings.prod'` in `.env`, static file hosting is done by `DEFAULT_FILE_STORAGE` defined in `.env`. -- 2.25.1