> On Jul 11, 7:24 pm, Stefan Marr <goo...@stefan-marr.de> wrote:
> > > I was fighting with settings.py and url.py to be able to deploy code
> > > speed in a subfolder instead of a subdomain.
> > Guess, I could be more specific. I think, the main problem are the
> > static resources.
> Ok, I found a solution.
> In settings.py I set: STATIC_URL = '/~user/codespeed/static/'
Right, that tells how to replace STATIC_URL in the templates.
Further url.py in the Django project folder let's you change the URL e. g.
That's a benefit of the Django app separation.
> This does the trick, there is only one detail not working: the image
> which shows that data is loaded via AJAX is broken, since codespeed.js is
> served as static and the embedded URL is not adapted automatically.
Good point. For css you can do relative links such as
url(../images/pix.png) since the link is in respect to the file location of
the css, IIRC. For JS that is more tricky. I just sent a pull request where
I set a global JS variable and that is used in codespeed.js
Frank Becker <f...@alien8.de> (jabber|mail) | http://twitter.com/41i3n8
GnuPG: 0xADC29ECD | F01B 5E9C 1D09 981B 5B40 50D3 C80F 7459 ADC2 9ECD
SILC-Net: a8 | Home: http://www.alien8.de | <<</>> http://www.c3d2.de
"> Freedom is just chaos, with better lighting. <" Alan Dean Foster
2011/7/12 Frank Becker <f...@alien8.de>: