|
|
@ -23,11 +23,11 @@ app = Flask(__name__)
|
|
|
|
app.config['SECRET_KEY'] = 'super secret key'
|
|
|
|
app.config['SECRET_KEY'] = 'super secret key'
|
|
|
|
#app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/mydatabase.db'
|
|
|
|
#app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/mydatabase.db'
|
|
|
|
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
|
|
|
|
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
|
|
|
|
app.config['SQLALCHEMY_DATABASE_URI'] = 'rqlite+pyrqlite://localhost:4001/'
|
|
|
|
#app.config['SQLALCHEMY_DATABASE_URI'] = 'rqlite+pyrqlite://localhost:4001/'
|
|
|
|
app.config['DEBUG'] = True
|
|
|
|
app.config['DEBUG'] = True
|
|
|
|
app.config['PORT'] = 80
|
|
|
|
app.config['PORT'] = 80
|
|
|
|
|
|
|
|
|
|
|
|
#app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(basedir, 'mydatabase.db')
|
|
|
|
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(basedir, 'mydatabase.db')
|
|
|
|
db = SQLAlchemy(app)
|
|
|
|
db = SQLAlchemy(app)
|
|
|
|
light = not os.path.isdir(UPLOAD_FOLDER)
|
|
|
|
light = not os.path.isdir(UPLOAD_FOLDER)
|
|
|
|
DOMAIN = environ.get('DOMAIN')
|
|
|
|
DOMAIN = environ.get('DOMAIN')
|
|
|
|