Browse Source

change media url

ilya_shyian 2 years ago
parent
commit
d0f9d82490
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 = '/api/media/'
+MEDIA_URL = '/media/'
 
 
 # Default primary key field type