No Icons Shown in the Django admin with DO Spaces

Posted November 15, 2020 772 views
NginxDjangoUbuntu 18.04DigitalOcean Spaces

After moving my static files to DigitalOcean Spaces. I can’t see django admin icons. But I can see those image files in the Object Storage

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi there @nkindelpitiya,

I could suggest opening the web console in your browser and checking the errors in there. This will give you more information on why the icons are not showing.

It is possible that you need to configure your CORs policy.

Let me know how it goes!

  • GET
    [HTTP/1.1 403 Forbidden 359ms]

    [HTTP/1.1 403 Forbidden 270ms]

    [HTTP/1.1 403 Forbidden 270ms]

    Yeah After Checking the console it gives 403 forbidden how to adjust the cors policy. Since I don’t have a domain I can’t alter CORS policy. I’m running Django rest framework browsable API and I access the admin page using droplet IP.