How to add media files into project?

0
0

 

Put these lines at the end of settings.py file:

MEDIA_ROOT = os.path.join(BASE_DIR, ‘media’)
MEDIA_URL = ‘/media/’

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.