Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
'data' directory
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jonathan Vanasco  
View profile  
 More options Aug 1 2012, 2:41 pm
From: Jonathan Vanasco <jonat...@findmeon.com>
Date: Wed, 1 Aug 2012 11:41:47 -0700 (PDT)
Local: Wed, Aug 1 2012 2:41 pm
Subject: 'data' directory
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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Merickel  
View profile  
 More options Aug 1 2012, 2:47 pm
From: Michael Merickel <mmeri...@gmail.com>
Date: Wed, 1 Aug 2012 13:47:48 -0500
Local: Wed, Aug 1 2012 2:47 pm
Subject: Re: 'data' directory
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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Vanasco  
View profile  
 More options Aug 1 2012, 4:01 pm
From: Jonathan Vanasco <jonat...@findmeon.com>
Date: Wed, 1 Aug 2012 13:01:13 -0700 (PDT)
Local: Wed, Aug 1 2012 4:01 pm
Subject: Re: 'data' directory
thanks!

is there a guide to what %(here) and other variables are available on
the ini ?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Rossi  
View profile  
 More options Aug 1 2012, 4:03 pm
From: Chris Rossi <ch...@archimedeanco.com>
Date: Wed, 1 Aug 2012 16:03:42 -0400
Local: Wed, Aug 1 2012 4:03 pm
Subject: Re: 'data' directory
I think that's the only one.  You can use variables you define in the ini:

foo = bar
some_setting = %(foo)s stool

Chris


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Merickel  
View profile  
 More options Aug 1 2012, 4:04 pm
From: Michael Merickel <mmeri...@gmail.com>
Date: Wed, 1 Aug 2012 15:04:54 -0500
Local: Wed, Aug 1 2012 4:04 pm
Subject: Re: 'data' directory
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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Vanasco  
View profile  
 More options Aug 7 2012, 12:46 pm
From: Jonathan Vanasco <jonat...@findmeon.com>
Date: Tue, 7 Aug 2012 09:46:41 -0700 (PDT)
Local: Tues, Aug 7 2012 12:46 pm
Subject: Re: 'data' directory
is this 'here' dir available in the request.settings ?  didn't see it
in there, and it seems like it would be useful.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Merickel  
View profile  
 More options Aug 7 2012, 1:02 pm
From: Michael Merickel <mmeri...@gmail.com>
Date: Tue, 7 Aug 2012 12:02:20 -0500
Local: Tues, Aug 7 2012 1:02 pm
Subject: Re: 'data' directory
global_config['here'] and global_config['__file__'] exist when
PasteDeploy invokes your app's entry point (def main(global_config,
**settings) usually).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Vanasco  
View profile  
 More options Apr 19, 6:13 pm
From: Jonathan Vanasco <jonat...@findmeon.com>
Date: Fri, 19 Apr 2013 15:13:25 -0700 (PDT)
Local: Fri, Apr 19 2013 6:13 pm
Subject: Re: 'data' directory

resurrecting this back from the dead...

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Orr  
View profile  
 More options Apr 20, 12:58 am
From: Mike Orr <sluggos...@gmail.com>
Date: Fri, 19 Apr 2013 21:58:28 -0700
Local: Sat, Apr 20 2013 12:58 am
Subject: Re: 'data' directory

In Pylons it's in the global config, not the app config. Maybe Pyramid is
the same?

On Fri, Apr 19, 2013 at 3:13 PM, Jonathan Vanasco <jonat...@findmeon.com>wrote:

--
Mike Orr <sluggos...@gmail.com>

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »