From 39f939d39ee6fc796baf2ce7848ed5e920f5d128 Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Mon, 21 Apr 2014 23:31:08 +0800 Subject: * added 'MEDIA_ROOT' to settings.py * implemented 'Notice', 'NoticeCategory', 'NoticeAttachment' models * implemented 'NoticeAdmin' with 'NoticeAttachmentInline' --- django_skaschool/settings.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'django_skaschool') diff --git a/django_skaschool/settings.py b/django_skaschool/settings.py index 6d2c867..6297455 100644 --- a/django_skaschool/settings.py +++ b/django_skaschool/settings.py @@ -138,6 +138,8 @@ STATIC_URL = '/static/' ## media root # absolute filesystem path to the directory that hold user-uploaded files #MEDIA_ROOT = '/var/www/example.com/media/' +MEDIA_ROOT = os.path.join(BASE_DIR, 'media_root') + # media url MEDIA_URL = '/media/' -- cgit v1.2.2