On Dec 10, 1:33 pm, "Nick Johnson (Google)" <nick.john...@google.com>
wrote:
> Hi Alex,
>
> On Thu, Dec 10, 2009 at 11:20 AM, Alex Popescu <
>
>
>
>
>
> the.mindstorm.mailingl...@gmail.com> wrote:
> > Hi Nick,
>
> > On Dec 9, 1:58 pm, "Nick Johnson (Google)" <nick.john...@google.com>
> > 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
>
>

Well, it was basically excluding all _local modules to make sure they
don't get uploaded:

- ^_local.*\.py

I just remembered that I was using this same trick in a project that
got deployed on GAE around March this year. At that time the trick was
working, so whatever the change was it came in after March.I have
searched through the release notes but I couldn't find any good
reference.


./.alex

>
>
>
>
>
> > 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 <
>
> > > the.mindstorm.mailingl...@gmail.com> 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 google-appengine@googlegroups.com
> > .
> > > > To unsubscribe from this group, send email to
> > > > google-appengine+unsubscr...@googlegroups.com<google-appengine%2Bunsubscrib
> > > >  e...@googlegroups.com><google-appengine%2Bunsubscrib
> > e...@googlegroups.com>
> > > > .
> > > > 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 google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com<google-appengine%2Bunsubscrib 
> > e...@googlegroups.com>
> > .
> > 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 google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.


Reply via email to