First time here? Check out the FAQ!
1

Static files at webfaction not served

I deployed askbot on webfaction server by following the instructions at http://community.webfaction.com/questions/8400/need-help-for-askbot-installation. I also have done to run python2.7 manage.py collectstatic and the DEBUG setting are False

When I visit my website (androidterengganu.com) it looks like the following image: http://dl.dropbox.com/u/750152/askbot.png

All the css & image rendering is gone. Am I missing some step ?

updated 2012-10-17 06:47:13 -0600
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

2

You have to create another app in Webfaction - a Static Only app. And point it to say /m to serve the site Static content.

answered 2012-10-17 12:33:44 -0600
This post is a wiki. Anyone with karma >100 is welcome to improve it.
edit flag offensive 0 remove flag delete link

Comments

ah yes, I forget to add a static symlink and point to /m. thanks pajju

pije76's avatar pije76 (2012-10-18 13:26:33 -0600) edit
1

You could also create another one to serve /upfiles - the user-uploaded files more efficiently.

Evgeny's avatar Evgeny (2012-10-18 15:35:56 -0600) edit

@Evgeny isn't uploads be handled by django only? Because we have some django logic that checks for each user, whether he is allowed to upload files (there is a check for minimum reputation points to have before uploading and that is to be handled by django app) And so just because of this logic the front-end server in this case nginx should not be used for that. Please correct me if I'm wrong somewhere. :)

pajju's avatar pajju (2012-10-18 16:59:41 -0600) edit
1

Uploads are handled by django, but serving of the uploaded files is better done directly by the webserver (nginx/apache, etc.)

Evgeny's avatar Evgeny (2012-10-18 17:01:36 -0600) edit
add a comment see more comments