moriire commited on
Commit
1b1f1b0
1 Parent(s): 8a03a36

Create config.py

Browse files
Files changed (1) hide show
  1. config.py +9 -0
config.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+
3
+ from pydantic import BaseSettings, Field
4
+
5
+
6
+ class Settings(BaseSettings):
7
+ db_url: str = Field(..., env='DATABASE_URL')
8
+
9
+ settings = Settings()