python学习
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import time
|
||||
from application import app
|
||||
class UrlManager(object):
|
||||
def __init__(self):
|
||||
pass
|
||||
@@ -10,6 +11,7 @@ class UrlManager(object):
|
||||
|
||||
@staticmethod
|
||||
def buildStaticUrl(path):
|
||||
ver = "%s"%( 22222222 )
|
||||
release_version = app.config.get('RELEASE_VERSION')
|
||||
ver = "%s" % (int(time.time())) if not release_version else release_version
|
||||
path = "/static" + path + "?ver=" + ver
|
||||
return UrlManager.buildUrl( path )
|
||||
Reference in New Issue
Block a user