Browse Source

change media url

ilya_shyian 1 year ago
parent
commit
66072a7ad3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      store_back/settings.py

+ 2 - 2
store_back/settings.py

@@ -155,10 +155,10 @@ DATABASES = {
 # https://docs.djangoproject.com/en/4.0/howto/static-files/
 
 STATIC_ROOT = os.path.join(BASE_DIR, 'static')
-STATIC_URL = '/'
+STATIC_URL = '/static/'
 
 MEDIA_ROOT = os.path.join(BASE_DIR, 'media').replace('\\', '/')
-MEDIA_URL = '/'
+MEDIA_URL = '/media/'
 
 
 # Default primary key field type