3 ms·
Flask lets you share state between requests; just have the route methods reference some global variable. You could also apply the route decorator to an instance
by weberc2 10y ago
Flask lets you share state between requests; just have the route methods reference some global variable. You could also apply the route decorator to an instance method (although probably not using the decorator syntax).
- deleted 10y ago[deleted]