Adjustment in application config

This commit is contained in:
Khanh Ngo
2016-04-13 11:13:59 +07:00
parent 454dce2d71
commit 53b4fe2f8b
4 changed files with 24 additions and 8 deletions

View File

@ -5,7 +5,10 @@ import requests
import urlparse
from app import app
TIMEOUT = app.config['TIMEOUT']
if 'TIMEOUT' in app.config.keys():
TIMEOUT = app.config['TIMEOUT']
else:
TIMEOUT = 10
def auth_from_url(url):
auth = None