First time here? Check out the FAQ!
1

change css directly to server without need to install again?

Hello to all. I am a newbie in python/django and I guess probably this is the reason I am facing this problem. I successfully installed askbot 0.7.39 locally and now I want to start editing askbot\skins\default\media\style\style.css and run some experiments.

What I would like to do is to directly edit this css inside my project (btw, when I installed askbot another style.css was created inside build folder) and refresh the page and see my changes applied. But nothing changes :(

The only workaround I found until now is to delete build folder, re-install and then see my changes. But this is very time consuming.

Do you have any suggestions? As I said before, I am a newbie, so probably I am missing something very fundamental here.

Thanx for any help

alexandros.z's avatar
596
alexandros.z
asked 2012-03-16 20:10:17 -0600, updated 2012-03-17 07:53:21 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

Please take a look at the skin documentation. To avoid the trouble please do not edit the style.css file.

It is best to create a blank custom skin (do not copy any files there, but the directory structure must be the same as in the default skin) in a separate directory and in that skin edit file extra.css. If your changes are very substantial, then instead create a file style.less and edit that and read about using .less files in askbot.

Do not forget to run command python manage.py collectstatic to copy the edited files to the server's static files directory.

Evgeny's avatar
13.2k
Evgeny
answered 2012-03-17 08:29:16 -0600, updated 2012-03-17 08:30:15 -0600
edit flag offensive 0 remove flag delete link

Comments

Thank you so much for your answer. I will try what you suggested to me and I will let you know. Hope in future be able to ask more expert question or even better contribute to the sources by fixing bugs or adding features.

alexandros.z's avatar alexandros.z (2012-03-17 09:42:22 -0600) edit
add a comment see more comments