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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
RobotBen's avatar
21
RobotBen
asked 3 years ago
Evgeny's avatar
13.2k
Evgeny
updated 3 years ago

Comments

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 3 years ago
link

Comments

see more comments