Ask Your Question

Custom skin not loading

asked 2021-10-25 16:54:29 -0600

RobotBen's avatar

updated 2022-02-19 17:34:05 -0600

Evgeny's avatar

I'm using askbot 0.11. I've followed the instructions here to create a custom skin:

  • Created a directory for skins <app_dir>/skins/customskin
  • Set the ASKBOT_EXTRA_SKINS_DIR setting to that dir
  • Created <app_dir>/skins/customskin/templates/base.html with some test HTML in there
  • In the /settings UI, set the skin to "customskin" (it shows in the dropdown so it apparently detects the directory)
  • Reloaded the site

The custom skin, however, is not showing. It still shows the default skin.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-02-19 17:33:37 -0600

Evgeny's avatar

There will be a change in the template directory, it must be called jinja2 instead of the templates.

In your context it would be <app_dir>/skins/customskin/jinja2/base.html

Also remember that the ASKBOT_EXTRA_SKINS_DIR must be appended to the STATICFILES_DIRS tuple:

    <other values>,

Otherwise the extra.css file and other theme media will not be found.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2021-10-25 16:53:30 -0600

Seen: 600 times

Last updated: Feb 19 '22