[Answer]-How override default admin static files?

1๐Ÿ‘

โœ…

I would say that it depends on how much you want to overwrite.

If you create an admin directory under your static directory those files will be read before the actual admin files.

if this is your structure:

root
  appname
    static
      css
      js

you should create it like this:

root
  appname
    static
      admin
        img
          icon_success.gif
      css
      js

Name has to be exact.

0๐Ÿ‘

The django package is hosted on your server. Have you considered changing the images for icon_error.png and icon_success.png, then resaving them with the same name on your filesystem?

The location where you can find the static image files within the django package is:

/ django / django / contrib / admin / static / admin / img /

๐Ÿ‘คNick

Leave a comment