It's typically relative to the CWD unless you specify an absolute path
like data_dir=%(here)s/data which was pretty common. In production I
certain would put a real absolute path to a directory with
write-access by the web server.
On Wed, Aug 1, 2012 at 1:41 PM, Jonathan Vanasco <jonat...@findmeon.com> wrote:
> this is puzzling me...
> under my previous Pylons + Paster experience, the 'data' directory
> ( where sessions, templates, dogpile, etc ) would always happen within
> the module
> as i've moved to Pyramid and uwsgi , this seems to occur not there --
> but in whatever directory i spawned the uwsgi server from
> can anyone point me in a direction that will let me force/consolidate
> the data directory to my choosing ?
> --
> You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
> To post to this group, send email to pylons-discuss@googlegroups.com.
> To unsubscribe from this group, send email to pylons-discuss+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
On Wed, Aug 1, 2012 at 4:01 PM, Jonathan Vanasco <jonat...@findmeon.com> wrote:
> thanks!
> is there a guide to what %(here) and other variables are available on
> the ini ?
> --
> You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
> To post to this group, send email to pylons-discuss@googlegroups.com.
> To unsubscribe from this group, send email to pylons-discuss+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
Well %(here)s is the only special one. Other than that you can specify
anything and then fill it in at the command line (e.g. %(http_port)s
-> pserve foo.ini http_port=5000). This is old PasteScript
functionality that was ported to pserve. You can also reference other
settings you've defined in the file in a similar fashion.
On Wed, Aug 1, 2012 at 3:01 PM, Jonathan Vanasco <jonat...@findmeon.com> wrote:
> thanks!
> is there a guide to what %(here) and other variables are available on
> the ini ?
> --
> You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
> To post to this group, send email to pylons-discuss@googlegroups.com.
> To unsubscribe from this group, send email to pylons-discuss+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
global_config['here'] and global_config['__file__'] exist when
PasteDeploy invokes your app's entry point (def main(global_config,
**settings) usually).
On Tue, Aug 7, 2012 at 11:46 AM, Jonathan Vanasco <jonat...@findmeon.com> wrote:
> is this 'here' dir available in the request.settings ? didn't see it
> in there, and it seems like it would be useful.
> --
> You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
> To post to this group, send email to pylons-discuss@googlegroups.com.
> To unsubscribe from this group, send email to pylons-discuss+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
would anyone know how to access the 'here' off a request object ? is it possible? If not, would someone know how/where to patch the settings to support this?
looking through the source, I only see 'here' value being set during logging setup.
> would anyone know how to access the 'here' off a request object ? is it
> possible? If not, would someone know how/where to patch the settings to
> support this?
> looking through the source, I only see 'here' value being set during
> logging setup.
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pylons-discuss+unsubscribe@googlegroups.com.