Yes you need multiple keys. Here is how I solved the problem:

def google_geo_key():
    # This happens on remote_api case
    if not 'SERVER_NAME' in os.environ:
        return ''
    if os.environ['SERVER_NAME'].endswith('appspot.com'):
        return
'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
    elif  os.environ['SERVER_NAME'] == 'kos':
        return "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY"
    else:
        logging.error('No Google maps key for %s' % os.environ
['SERVER_NAME'] )
        return ''

On Jun 8, 1:47 pm, herbie <[email protected]> wrote:
> Hi
>
> I'm developing an app (python) that uses the Google Earth Plugin api.
> If I want to access my app via both myappid.appspot.com and
> mydomainname.com  do I need two Google Maps API Keys in my html? If
> only one map api key is allowed how do I serve the correct one?
>
> Thanks for the help
--~--~---------~--~----~------------~-------~--~----~
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