asked 2012-11-01 09:45:51 -0500
This post is a wiki. Anyone with karma >100 is welcome to improve it.
If I specify
STATIC_URL = "http://static.example.com/media"
in the html I will get
http:/static.example.com/media
(the double / of http:// is replaced by one)
After investigation it seems to me that the problems come from this line in ./askbot/skins/utils.py:
url = os.path.normpath(url).replace('\\', '/')
(line 163 on the current source code) , normpath may replace the // by /
answered 2012-11-01 10:10:05 -0500
This post is a wiki. Anyone with karma >100 is welcome to improve it.
If that's a CDN, and probably also if it's not, just do this:
STATIC_URL = '//static.example.com/media/'
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-11-01 09:45:51 -0500
Seen: 40 times
Last updated: Nov 01 '12
Internal Server Error when trying to edit personal pro
Where are the badges in a fresh install? [fixed]
HTML Tags in titles getting eaten <fixed/>
Unknown column 'auth_user.is_approved' in 'field list' [fixed]
email for comments: link missing a href [fixed]
Bug: Horizontal Rule in Comment breaks stylesheet [fixed]
"Related questions" section shows deleted questions?
error on upvote: "Sorry, something is not right here..." [fixed]
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.