Created config module to avoid circular import

This commit is contained in:
Vivek Santayana 2022-06-12 20:50:57 +01:00
parent da821bcadb
commit 4431564304
3 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
from main import Config
from config import Config
from os import path
from pathlib import Path

1
ref-test/config.py Normal file
View File

@ -0,0 +1 @@
from app.config import DevelopmentConfig as Config

View File

@ -1,5 +1,5 @@
from app.modules import bootstrap, csrf, db, login_manager, mail
from app.config import DevelopmentConfig as Config
from config import Config
from flask import Flask
from flask_wtf.csrf import CSRFError