Ask Your Question
1

change css directly to server without need to install again?

asked 2012-03-16 20:10:17 -0500

alexandros.z gravatar image alexandros.z
620 13 10 31

updated 2012-03-17 07:53:21 -0500

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

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-03-17 08:29:16 -0500

Evgeny gravatar image Evgeny flag of Chile
11314 50 84 183
http://askbot.org/

updated 2012-03-17 08:30:15 -0500

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.

link publish delete flag offensive edit

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 ( 2012-03-17 09:42:22 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow
1 follower

subscribe to rss feed

Stats

Asked: 2012-03-16 20:10:17 -0500

Seen: 114 times

Last updated: Mar 17 '12