Skip to content
Snippets Groups Projects
Verified Commit 89027f62 authored by Sachin Kamath's avatar Sachin Kamath
Browse files

Create structure for API and secret key warning

parent 30598a05
No related branches found
No related tags found
No related merge requests found
......@@ -2,8 +2,18 @@
__version__ = '0.1'
from flask import Flask
from flask_debugtoolbar import DebugToolbarExtension
from hodor.controllers import *
ENV = 'development'
app = Flask('hodor')
app.config['SECRET_KEY'] = 'random'
api = Api(app)
app.config['SECRET_KEY'] = 'CHANGE_ME_IN_PRODUCTION'
if ENV == 'development':
app.debug = True
toolbar = DebugToolbarExtension(app)
from hodor.controllers import *
else:
app.debug = False
if app.config['SECRET_KEY'] == 'CHANGE_ME_IN_PRODUCTION':
print("[!] Please change your secret key before running in production");
......@@ -4,3 +4,4 @@ Flask-SocketIO==2.9.1
Flask-WTF==0.14.2
Jinja2==2.9.6
virtualenv
flask-restful
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment