When I call url_for('index')
it will generate '/'
but there are times where I'd like it to generate 'domain.tld/'
instead. I can't find in the documentation where I would specify this. Do I just need to do 'domain.tld/%s' % url_for('index')
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…