correct import
This commit is contained in:
parent
2256435c3f
commit
8680792300
@ -1,6 +1,6 @@
|
|||||||
from flask import Blueprint, jsonify, request,make_response,redirect,url_for,render_template
|
from flask import Blueprint, jsonify, request,make_response,redirect,url_for,render_template
|
||||||
from chainetv.Jsonfile import JSONfile
|
from .Jsonfile import JSONfile
|
||||||
from chainetv import emission
|
from . import emission
|
||||||
data= JSONfile("chaine.json")
|
data= JSONfile("chaine.json")
|
||||||
|
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ def create_app(app_name=__name__):
|
|||||||
app.config.from_object('chainetv.config.BaseConfig')
|
app.config.from_object('chainetv.config.BaseConfig')
|
||||||
#app.wsgi_app = ReverseProxied(app.wsgi_app)
|
#app.wsgi_app = ReverseProxied(app.wsgi_app)
|
||||||
CORS(app)
|
CORS(app)
|
||||||
from chainetv.api import api
|
from .api import api
|
||||||
app.register_blueprint(api, url_prefix="/api/v1")
|
app.register_blueprint(api, url_prefix="/api/v1")
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
@app.route('/<path:path>')
|
@app.route('/<path:path>')
|
||||||
|
Loading…
Reference in New Issue
Block a user