Absolute paths in settings.py
Into settings.py:
1 import os
2 PROJECT_DIR = os.path.abspath(os.path.dirname(__file__))
3
4 MEDIA_ROOT = os.path.join(PROJECT_DIR, 'media')
5 STATIC_ROOT = os.path.join(PROJECT_DIR, 'static')
SamatsWiki: Django (last edited 2013-03-15 10:30:49 by SamatJain)