If I understand you correctly, I've done this by specifying that 
directory name in the dev.cfg / prod.cfg configuration files.  I've 
added the line:

motion.uploaddir = '/pywork/turbogears/motion/motion/static/files/'

in the [global] section and then accessed it in my controller using the 
following:

uploaddir = cherrypy.config.get('motion.uploaddir')

Is that what you were looking for?


nossatv_sd wrote:
> Hi Guys,
>
> I have been using TG for about 2+ months now and I have run into this
> issue where I need to serve images on the website from local
> filesystem. The problem is the images are not under the webpath for
> the project but rather under a different location on the filesystem.
> For example, the project is under [PROJECTNAME] under /projects/
> [PROJECTNAME] where as the images are under /resources/images/
> [IMAGE_NAMES]. How do I configure the webserver (built into
> turbogears) to be able to access the images also. Normally I would
> create Alias or add Directory tag on the Apache webserver, what about
> if I am using TG webserver instead.
>
> Thanks
>
>
> >
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to