1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-26 23:51:03 +00:00

Add dotenv

This commit is contained in:
Mo 2022-04-18 17:01:51 +02:00
parent 05de612e23
commit 948499f63e
4 changed files with 31 additions and 1 deletions

11
.env.template Normal file
View file

@ -0,0 +1,11 @@
# Do not share the secret key or the password salt!
SECRET_KEY=
SECURITY_PASSWORD_SALT=
# Database
SQLALCHEMY_DATABASE_URI=sqlite:///../db/advLab.db
# Server URL
SERVER_NAME=
CHECK_EMAIL_DELIVERABILITY=True

3
.gitignore vendored
View file

@ -1,3 +1,6 @@
# Do not commit the environment variables file with the secret key and password salt!
.env
# Python # Python
__pycache__ __pycache__
*.pyc *.pyc

17
poetry.lock generated
View file

@ -335,6 +335,17 @@ python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7"
[package.dependencies] [package.dependencies]
six = ">=1.5" six = ">=1.5"
[[package]]
name = "python-dotenv"
version = "0.20.0"
description = "Read key-value pairs from a .env file and set them as environment variables"
category = "main"
optional = false
python-versions = ">=3.5"
[package.extras]
cli = ["click (>=5.0)"]
[[package]] [[package]]
name = "setuptools-scm" name = "setuptools-scm"
version = "6.4.2" version = "6.4.2"
@ -427,7 +438,7 @@ email = ["email-validator"]
[metadata] [metadata]
lock-version = "1.1" lock-version = "1.1"
python-versions = "^3.10" python-versions = "^3.10"
content-hash = "3d265c460b99f7274132c731168574a22d37878555ade44cd64d3c8c9529fb8a" content-hash = "0863c01d51cfebde7628e9643fc05470ebb1f9d0e6d0db9f40867d65b172197b"
[metadata.files] [metadata.files]
blinker = [ blinker = [
@ -754,6 +765,10 @@ python-dateutil = [
{file = "python-dateutil-2.8.2.tar.gz", hash = "sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86"}, {file = "python-dateutil-2.8.2.tar.gz", hash = "sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86"},
{file = "python_dateutil-2.8.2-py2.py3-none-any.whl", hash = "sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9"}, {file = "python_dateutil-2.8.2-py2.py3-none-any.whl", hash = "sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9"},
] ]
python-dotenv = [
{file = "python-dotenv-0.20.0.tar.gz", hash = "sha256:b7e3b04a59693c42c36f9ab1cc2acc46fa5df8c78e178fc33a8d4cd05c8d498f"},
{file = "python_dotenv-0.20.0-py3-none-any.whl", hash = "sha256:d92a187be61fe482e4fd675b6d52200e7be63a12b724abbf931a40ce4fa92938"},
]
setuptools-scm = [ setuptools-scm = [
{file = "setuptools_scm-6.4.2-py3-none-any.whl", hash = "sha256:acea13255093849de7ccb11af9e1fb8bde7067783450cee9ef7a93139bddf6d4"}, {file = "setuptools_scm-6.4.2-py3-none-any.whl", hash = "sha256:acea13255093849de7ccb11af9e1fb8bde7067783450cee9ef7a93139bddf6d4"},
{file = "setuptools_scm-6.4.2.tar.gz", hash = "sha256:6833ac65c6ed9711a4d5d2266f8024cfa07c533a0e55f4c12f6eff280a5a9e30"}, {file = "setuptools_scm-6.4.2.tar.gz", hash = "sha256:6833ac65c6ed9711a4d5d2266f8024cfa07c533a0e55f4c12f6eff280a5a9e30"},

View file

@ -14,6 +14,7 @@ Flask-Security-Too = ">=4.1.3"
Flask-Admin = ">=1.6.0" Flask-Admin = ">=1.6.0"
matplotlib = ">=3.5.1" matplotlib = ">=3.5.1"
numpy = ">=1.22.3" numpy = ">=1.22.3"
python-dotenv = ">=0.20.0"
[tool.poetry.dev-dependencies] [tool.poetry.dev-dependencies]