Skip to content
  • This project
    • Loading...
  • Sign in

胡边 / WebService-python-framework

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • WebService-python-framework
  • server
  • __init__.py
  • 胡边's avatar
    init git project · 74442389
    胡边 committed 2017-10-18 10:28:07 +0800
    74442389
__init__.py 332 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
# -*- coding: utf-8 -*-

__author__ = 'hubian'

from flask import Flask
from flask_restful import Api


# initialize flask and flask restful
app = Flask(__name__)
app.config['SECRET_KEY'] = "myNameIsHuBian"
app.debug = True

api = Api(app)

from utils import init_factory
init_factory()

from views import init_routes
init_routes()