mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-13 14:22:16 +00:00
Autodetect media locations for debug
This commit is contained in:
@@ -39,7 +39,7 @@ USE_I18N = True
|
||||
|
||||
# Absolute path to the directory that holds media.
|
||||
# Example: "/home/media/media.lawrence.com/"
|
||||
MEDIA_ROOT = './media'
|
||||
MEDIA_ROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'media')
|
||||
|
||||
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
|
||||
# trailing slash if there is a path component (optional in other cases).
|
||||
|
||||
Reference in New Issue
Block a user