Browse Source

change media url

ilya_shyian 1 year ago
parent
commit
e5dd08e441
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