Fix ValueError: astimezone() cannot be applied to a naive datetime
Add hook to create api_key automatically