added config - form csrf tag

This commit is contained in:
Jakub Senderák
2020-04-21 13:12:21 +02:00
parent e851da47ce
commit a43a7c4881
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -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'):
+2
View File
@@ -0,0 +1,2 @@
class Config(object):
SECRET_KEY = 'nbusr123'