Explorar o código

change media url

ilya_shyian %!s(int64=2) %!d(string=hai) anos
pai
achega
944056789c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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/'
+STATIC_URL = '/'
 
 MEDIA_ROOT = os.path.join(BASE_DIR, 'media').replace('\\', '/')
-MEDIA_URL = '/api/media/'
+MEDIA_URL = '/'
 
 
 # Default primary key field type