Hi Kevin and Nigel,

Thought you might like to know what I did for static content:

[global]
 staticFilter.root = ".."
 
[/static]
staticFilter.on = True
staticFilter.dir = "static"

Then I made a static directory outside of the application package (i.e.
beside the <app>-start.py, etc.)

The Cherrpy docs I used were the in the What's New as it describes the
changes in CherryPy 2.1.

Hope this helps.

Krys (The very happy TG user). :-)

P.S. I am migrating my Django code over it it has issues on windows and
is just more complicated, IMHO. :-)

Great work Kevin!

Kevin Dangoor wrote:

>Hi Nigel,
>
>Yeah, sorry about that. The quickstart in 0.6 gets you running with a
>static directory, whereas 0.5 (the current version) kinda leaves you
>hanging in that regard.
>
>I'm going to give you the simplified CherryPy answer. The final 0.6
>answer is a little more complex due to packaging and installation
>issues... (or, rather, it's not going to be complex to use... just
>more complex to explain :)
>
>The general idea is here:
>http://www.cherrypy.org/trunk/docs/book/chunk/ch03.html#id3367048
>
>Oh, actually, now that I read that, they implemented relative
>directories differently that I thought they had. The way they did it
>will work while developing and installed (but won't work if you make
>one app part of a larger site).
>
>So, for clarity's sake:
>
>in your config file, put this:
>[/static]
>staticFilter.on = True
>staticFilter.dir = "static"
>
>
>And then put a directory called "static" next to your controllers.py file.
>
>Kevin
>
>On 9/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>  
>
>>Great Application-I am on my second useful web application they
>>generally seem so easy to understand. I have come across something
>>where I cannot fathom the documentation. I need to be able to load
>>images and I am sure this is simple.
>>
>>Preferably I want to access these images from a folder called images
>>and yet have a file such as <img src="temp.png"> in the kid file.
>>
>>I feel sure that an addition to the .cfg file is what is required.
>>
>>TIA
>>
>>Nigel King
>>
>>
>>    
>>
>
>
>--
>Kevin Dangoor
>Author of the Zesty News RSS newsreader
>
>email: [EMAIL PROTECTED]
>company: http://www.BlazingThings.com
>blog: http://www.BlueSkyOnMars.com
>
>  
>

Reply via email to