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! =:)

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)
updated 7 years ago
This post is a wiki. Anyone with karma >100 is welcome to improve it.

Comments

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.

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)
nyceyes's avatar
61
nyceyes
answered 7 years ago
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 (6 years ago)
see more comments