added config - form csrf tag
This commit is contained in:
@@ -2,8 +2,10 @@ from flask import Flask
|
|||||||
import os
|
import os
|
||||||
import logging
|
import logging
|
||||||
from logging.handlers import RotatingFileHandler
|
from logging.handlers import RotatingFileHandler
|
||||||
|
from config import Config
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
app.config.from_object(Config)
|
||||||
|
|
||||||
if not app.debug:
|
if not app.debug:
|
||||||
if not os.path.exists('logs'):
|
if not os.path.exists('logs'):
|
||||||
|
|||||||
Reference in New Issue
Block a user