We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 850a035 commit dc70efaCopy full SHA for dc70efa
fastapi_django/constants.py
@@ -1,13 +0,0 @@
1
-import os
2
-from enum import StrEnum
3
-
4
5
-class EnvironmentEnum(StrEnum):
6
- LOCAL = "LOCAL"
7
- DEV = "DEV"
8
- STAGE = "STAGE"
9
- PROD = "PROD"
10
11
- @classmethod
12
- def get_environment(cls):
13
- return cls(os.environ.get("ENVIRONMENT", "LOCAL"))
pyproject.toml
@@ -10,7 +10,7 @@ check_untyped_defs = true
[tool.poetry]
name = "fastapi-django"
-version = "0.18.0"
+version = "0.19.0"
14
description = ""
15
authors = ["albertalexandrov <albert-ugatu@list.ru>"]
16
packages = [{include = "fastapi_django"}]
0 commit comments