Answers for "how to set media path and media root"

0

how to set media path and media root

MEDIA_ROOT = os.path.join(BASE_DIR, 'data/') # 'data' is my media folder
MEDIA_URL = '/media/'
Posted by: Guest on May-18-2021

Browse Popular Code Answers by Language