Hi Alex,

On Thu, Dec 10, 2009 at 11:20 AM, Alex Popescu <
[email protected]> wrote:

> Hi Nick,
>
> On Dec 9, 1:58 pm, "Nick Johnson (Google)" <[email protected]>
> wrote:
> > Hi Alex,
> >
> > The standard way to determine if you are running on the development
> server
> > is this:
> > DEBUG = os.environ['SERVER_SOFTWARE'].startswith('Dev')
> >
>
> Awesome! That's exactly what I was looking for.
>
> > Are you sure there has been a change in behaviour with regards to ignored
> > files? Are you able to provide a test case for this?
> >
>
> Unfortunately I don't have a test case. But here is what I had working
> for a long time:
>
> - settings.py (constants, URI mappings, etc. for production)
>
> - _localsettings.py (overridding constants, etc. for local
> dev_appserver)
>
> - in settings.py
>
> try:
>  from _localsettings import *
>  logging.info('running with localsettings')
> except ImportError:
>  pass
>
> Then there is the following log line:
>
> WARNING  2009-12-10 02:10:19,624 dev_appserver.py:1083] Blocking
> access to skipped file "/Users/alex/workspace/python/twimblr/
> _localsettings.py"
>
> and my overridden local constants not taking effect.
>

What is the skip files regex you're using in app.yaml?

-Nick Johnson


>
>
> I must confess that I don't know how recent is this change as there
> have been a gap for me in using the SDK. But I'm pretty sure that
> around version 1.1.9 this wasn't happening.
>
> Now, considering the above solution the fact that this behavior
> changed is no big deal. And I do understand the reasons for
> introducing this behavior (avoiding people surprise that something is
> working with the SDK but not in production).
>
> ./. alex
>
> > -Nick Johnson
> >
> > On Tue, Dec 8, 2009 at 11:25 PM, Alex Popescu <
> >
> >
> >
> >
> >
> > [email protected]> wrote:
> > > Hi guys,
> >
> > > I am wondering if there is a 'recommended' solution for enabling a set
> > > of URIs when the app is running locally for testing purposes.
> >
> > > Until recently I had a setup which was defining additional URI
> > > mappings in a _localsettings.py module and this was set for exclusion
> > > in app.yaml.
> > > But it looks like a change in the SDK is now ignoring all modules
> > > excluded in app.yaml so I lost this feature.
> >
> > > Any ideas?
> >
> > > tia,
> >
> > > ./alex
> >
> > > --
> >
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google App Engine" group.
> > > To post to this group, send email to [email protected]
> .
> > > To unsubscribe from this group, send email to
> > > [email protected]<google-appengine%[email protected]><google-appengine%2Bunsubscrib
> [email protected]>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine?hl=en.
> >
> > --
> > Nick Johnson, Developer Programs Engineer, App Engine
> > Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
> Number:
> > 368047
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=en.


Reply via email to