Closed teleyinex closed 12 years ago
I'd suggest a simpler solution: just allow a config variable called e.g. site_url or similar and use that to prefix links to site assets. Also I thought if you use url_for style to get links to static it should take account of fact you are not on root domain.
The solution is even more simple, just url_for('static',filename='vendor/bootstrap/whatever.css|js') works! I'll not use the Blueprint for this :-)
Problem: When you install the server in a place like: http://domain.com/pybossa the CSS and JS will fail to load because it will try to load it from the root folder. Solution: Use a blueprint to serve all the assets