First time here? Check out the FAQ!
1

AskBot v0.10.2: How to update footer.html ...

Hello Friends:

I'm trying AskBot v0.10.2.

Just FYI that I saw this solution from a long while ago, but maybe it no longer works:

If you activate the OpenStack theme/skin, the footer is located here (after running python manage.py collectstatic):

${ASKBOT_HOME}/static/openstack/templates/widgets/footer.html
  1. When I edit that file, it doesn't change on the site no matter what I do. I have tried clearing caches everywhere, too. (By the way, I'm using nginx and uWSGI).
  2. Next, I tried using the custom footer LIVESETTINGS option, and pasting in a trivially edited version of that same footer.html file, and again absolutely nothing changes on the site.

(Note: I'm open to suggestions on clearing out nginx, uWSGI and askbot's caches, in case I did something incorrectly).

What am I missing on how to change the footer? It refuses to update.

Thank you! =:)

updated 2017-10-10 17:40:07 -0500
This post is a wiki. Anyone with karma >100 is welcome to improve it.
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

I figure it out. Answer:

I personally use the ASKBOT_EXTRA_SKINS_DIR and STATICFILES_DIRS to add additional templates, including the OpenStack template. So with that said, the solution is:

  1. vi ${ASKBOT_EXTRA_SKINS_DIR}/openstack/templates/widgets/footer.html (Make your modifications).
  2. cd ${ASKBOT_HOME}
  3. python manage.py collectstatic --settings live (Note: I inherit from settings.py into live.py).

And that works. Note that every time you make an update (i.e. perform step-1), you'll have to follow it up by doing steps 2 and 3, as well.

nyceyes's avatar
61
nyceyes
answered 2017-10-10 19:09:46 -0500
edit flag offensive 0 remove flag delete link

Comments

You should accept your answer by clicking the accept button (tick mark) next to the answer. This will mark your question as answered and your answer as solving the question.

slelievre's avatar slelievre (2018-04-17 16:32:45 -0500) edit
add a comment see more comments