Skip to content

Commit

Permalink
Settings: MEDIA ROOT added for storing media files (#456)
Browse files Browse the repository at this point in the history
* Settings: MEDIA ROOT added for storing media files

* MEDIA URL added to dev config file
  • Loading branch information
deshraj authored Jan 15, 2017
1 parent 5abaa4c commit 26dffb1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,7 @@ bower_components/

# Challenge data files
challenge_data/*

# Media Files
media/

2 changes: 2 additions & 0 deletions settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@

STATIC_URL = '/static/'

MEDIA_ROOT = os.path.join(BASE_DIR, 'media')

SITE_ID = 1

REST_FRAMEWORK = {
Expand Down
2 changes: 2 additions & 0 deletions settings/dev.sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
}
}

MEDIA_URL = "/media/"

0 comments on commit 26dffb1

Please sign in to comment.