From fb828607f979393f57732f1843128a90838ae437 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 18 Dec 2017 13:11:44 +0000 Subject: [PATCH] fix photos --- camp/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/camp/settings.py b/camp/settings.py index 2b917b1..9b57c0c 100644 --- a/camp/settings.py +++ b/camp/settings.py @@ -136,12 +136,14 @@ STATIC_ROOT = '' STATICFILES_DIRS = (os.path.join(SITE_ROOT, 'static'), ) MARKDOWNX_MEDIA_PATH = os.path.join(BASE_DIR, 'data/images') +MARKDOWNX_MEDIA_PATH = os.path.join(BASE_DIR, 'static/images') MARKDOWNX_EDITOR_RESIZABLE = True -MEDIA_URL = '/images/' +MEDIA_URL = '/static/images/' MEDIA_ROOT = os.path.join(BASE_DIR, 'data/images') +MEDIA_ROOT = os.path.join(BASE_DIR, 'static/images') IMAGE_PREFIX = 'http://studio.camp/images/'