Last active
April 9, 2017 13:45
-
-
Save mainroach/92bc3dafd645d865935f7d3c53293f1d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from google.appengine.ext import ndb | |
# a global variable | |
gCDNServer = None | |
def getCDN(): | |
global gCDNServer | |
if gCDNServer==None: | |
gCDNServer = Settings.query(Settings.name == "gCDNServer").value | |
return gCDNServer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment