Hello,
I have installed Askbot with Nginx but while I use for production site, CSS and image not loaded. I have followed instruction on http://askbot.org/en/question/677/location-of-media-folder and http://askbot.org/en/question/3138/location-of-media-folder but not correct.
Whatever page is work but only when I access Django Administration is not work.
This is some information of my AskBot site:
1) Askbot forum folder = /home/mysite/forum --> Work fine
2) Location /m/ = /usr/lib/python2.6/site-packages/askbot-0.7.43-py2.6.egg/askbot/skins/ --> Work fine
3) Location /admin/media/ = /usr/lib/python2.6/site-packages/Django-1.3.1-py2.6.egg/django/contrib/admin/media/ --> Not work
4) Location /upfiles/ = /home/mysite/forum/askbot/upfiles/
Please see link image for details:
http://i50.tinypic.com/35m30pd.png
Anyone help me please?
After you run command python manage.py collectstatic (it's in the manual), you'll get a directory called static, which will contain static media for all apps included into your project (as defined in the INSTALLED_APPS setting. Admin is just one of those apps.
Do re-run the collectstatic command each time you upgrade the software - that way you will rebuild contents of the static directory to match the latest version of the software.
In the webserver configuration you just need to make sure that urls to all static resources are mapped to the path to those files on the file system.
If you are using the current (at the time of this answer) settings.py template, you'll just need to map /m/ to the static directory.
For example:
location ^~ /m/ {
alias /srv/mysite1/static/;
}
That should work, assuming that your settings.py file is in /srv/mysite1/, and that you're using the default settings.py template (the media-path values inside matter).
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 siteAsked: 2012-06-15 01:33:33 -0500
Seen: 82 times
Last updated: Jun 15 '12
Standard file locations and permissions
user creation "screen name" vs "username" in admin page
Cannot delete a user in the django admin UI : table follow_follow does not exist
CSRF token missing or incorrect
make default for email subscriptions configurable
Should I create an admin user on my first syncdb?
On first Settings page login, error: "Database is locked"
Karma thresholds always reset to default when edited
HTML escaped incorrectly on Data entry and display rules admin page
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.