annot-server/webapp/__init__.py
author rougeronj
Tue, 14 Apr 2015 11:30:51 +0200
changeset 148 21634b2d7609
parent 108 082b64a5c699
permissions -rw-r--r--
'gulp server' to copy the js to the server

#
# See LICENCE for detail
# Copyright (c) 2014 IRI
#

import uuid
import json


from flask import Flask
from flask.ext.cors import CORS

import config
import database

app = Flask(__name__)
app.secret_key = str(uuid.uuid4())
app.debug = config.DEBUG
app.config.from_object(config)
CORS(app)

import webapp.views
import webapp.api
import webapp.admin