update for TZ more
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import os
|
||||
import os, pytz
|
||||
|
||||
class Config:
|
||||
DEBUG = False
|
||||
@@ -16,6 +16,10 @@ class Config:
|
||||
OUI_API_LIMIT_PER_SEC = int(os.getenv('OUI_API_LIMIT_PER_SEC', '2'))
|
||||
OUI_API_DAILY_LIMIT = int(os.getenv('OUI_API_DAILY_LIMIT', '10000'))
|
||||
|
||||
# Timezone
|
||||
APP_TIMEZONE = os.getenv('APP_TIMEZONE', 'UTC')
|
||||
TZ = pytz.timezone(APP_TIMEZONE)
|
||||
|
||||
class DevelopmentConfig(Config):
|
||||
"""Development configuration."""
|
||||
DEBUG = True
|
||||
|
||||
Reference in New Issue
Block a user