aboutsummaryrefslogtreecommitdiffstats
path: root/django_skaschool
diff options
context:
space:
mode:
authorWeitian LI <liweitianux@gmail.com>2014-04-21 23:31:08 +0800
committerWeitian LI <liweitianux@gmail.com>2014-04-21 23:31:08 +0800
commit39f939d39ee6fc796baf2ce7848ed5e920f5d128 (patch)
tree90b03385d650f1730f844d5865d8bc1472054edf /django_skaschool
parenta8e2d41bd7e9e647391ff5d675f66cd59eee851a (diff)
downloaddjango-skaschool-39f939d39ee6fc796baf2ce7848ed5e920f5d128.tar.bz2
* added 'MEDIA_ROOT' to settings.py
* implemented 'Notice', 'NoticeCategory', 'NoticeAttachment' models * implemented 'NoticeAdmin' with 'NoticeAttachmentInline'
Diffstat (limited to 'django_skaschool')
-rw-r--r--django_skaschool/settings.py2
1 files changed, 2 insertions, 0 deletions
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/'