How can I get API image address correctly ?



  • Hello,
    I have a Django API and I try to fetch my data from my api, I can get the text data without problem but image url seems to try from local address and it is wrong in the console:

    "GET http://localhost:8080/media/cache/98/1b/981b6c4b22c284840ee52235228370bb.jpg 404 (Not Found)"
    

    I tried to modify in quasar.conf.js

    devServer: {
          https: false,
          port: 8080,
          //public: 'https://yogavidya.com.tr/',   
          open: true // opens browser window automatically
        },
    

    How can I get my media files url correctly?


Log in to reply