__init__.py 364 Bytes
Newer Older
1 2 3 4
#!/usr/bin/env python3
from pathlib import Path

from flask import Flask
Pierre Dittgen's avatar
Pierre Dittgen committed
5
import validata_core
6

7
from validata_ui.validate_helper import ValidatorHelper
8 9

# Schemas settings
Pierre Dittgen's avatar
Pierre Dittgen committed
10
schemas_config = validata_core.get_schemas_config()
Christophe Benz's avatar
Christophe Benz committed
11
ValidatorHelper.init(schemas_config)
12 13 14 15 16

# Flask things
app = Flask(__name__)
app.secret_key = 'MyPr3ci0u5$€cr€t'

17
import validata_ui.views