Browse Source

change media url

ilya_shyian 2 years ago
parent
commit
4a8cda69b4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      store_back/settings.py

+ 1 - 1
store_back/settings.py

@@ -158,7 +158,7 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'static')
 STATIC_URL = '/static/'
 
 MEDIA_ROOT = os.path.join(BASE_DIR, 'media').replace('\\', '/')
-MEDIA_URL = '/media/'
+MEDIA_URL = '/api/media/'
 
 
 # Default primary key field type