Add ui method to check if dev env
This commit is contained in:
parent
e7f1762fb4
commit
d6f2be8fba
@ -1,2 +1,7 @@
|
|||||||
|
import os
|
||||||
|
|
||||||
|
def dev(self):
|
||||||
|
return os.getenv("TORNADO_ENV", "dev") == "dev"
|
||||||
|
|
||||||
def matchesPath(self, href):
|
def matchesPath(self, href):
|
||||||
return self.request.uri.startswith(href)
|
return self.request.uri.startswith(href)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user