First time here? Check out the FAQ!
2

Custom skin not loading

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.

RobotBen's avatar
21
RobotBen
asked 2021-10-25 16:54:29 -0500
Evgeny's avatar
13.2k
Evgeny
updated 2022-02-19 17:34:05 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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:

STATICFILES_DIRS = (
    <other values>,
    ASKBOT_EXTRA_SKINS_DIR
)

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

Evgeny's avatar
13.2k
Evgeny
answered 2022-02-19 17:33:37 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments