Add missing MEDIA config in test settings

Change-Id: Idc6c9cae9feb9e8fd504b777502f98a382dd19f8
Closes-Bug: #1501158
This commit is contained in:
lin-hua-cheng 2015-09-29 21:24:11 -07:00
parent 3d156f0475
commit 3648163704

View File

@ -22,6 +22,8 @@ STATICFILES_DIRS = get_staticfiles_dirs()
TEST_DIR = os.path.dirname(os.path.abspath(__file__))
ROOT_PATH = os.path.abspath(os.path.join(TEST_DIR, ".."))
MEDIA_ROOT = os.path.abspath(os.path.join(ROOT_PATH, '..', 'media'))
MEDIA_URL = '/media/'
STATIC_ROOT = os.path.abspath(os.path.join(ROOT_PATH, '..', 'static'))
STATIC_URL = '/static/'
WEBROOT = '/'