def redirect(app):
Status = 'Status: 301 Moved Permanently'
HOST = 'www.aregg.com'
if os.environ.get('HTTP_HOST').endswith(HOST) and
os.environ.get('HTTPS') == 'off' and os.environ.get('X-AppEngine-
Cron') is None:
sys.stdout.write(Status + '\nLocation: htt
Help me.
On 5月17日, 下午12时39分, 筱枫 wrote:
> My application needs to use 301 to my APP domain.
>
> if not os.environ.get('HTTP_HOST').endswith(domain) and
> os.environ.get('HTTPS') == 'off' and os.environ.get('X-AppEngine-
> Cron') is None:
&
My application needs to use 301 to my APP domain.
if not os.environ.get('HTTP_HOST').endswith(domain) and
os.environ.get('HTTPS') == 'off' and os.environ.get('X-AppEngine-
Cron') is None:
But why Cron is 301?
os.environ.get('X-AppEngine-Cron') is None :Ineffective?
--
You received this messa
def test(i = 100):
t = datetime.datetime.now()
while i:
i -= 1
'喔喔'.decode('utf-8')
print datetime.datetime.now()-t
test()
B8 time: 0:00:01.520756
B4 time: 0:00:01.524307
B2 time: 0:00:02.342202
B1 time: 0:00:03.492686
B8 = B4 ?
-
我的:application: the-world
version: 1和version: 2都出了问题
version: 1
--- begin server output ---
Another transaction by user qq112864670 is already in progress for
this app and major version. That user can undo the transaction with
appcfg.py's "rollback" command.
--- end server output ---
2011-03-18 1