Move ef/endpoints/common.py to ef/common.py
Decided it doesn't belong with the endpoints files.
This commit is contained in:
parent
f7dcb489c5
commit
c6a396c658
9 changed files with 12 additions and 14 deletions
|
@ -1,6 +1,7 @@
|
||||||
|
from . import common
|
||||||
from . import decorators
|
from . import decorators
|
||||||
from . import endpoints
|
from . import endpoints
|
||||||
from . import jsonify
|
from . import jsonify
|
||||||
from . import sessions
|
from . import sessions
|
||||||
|
|
||||||
site = endpoints.site
|
site = common.site
|
||||||
|
|
|
@ -7,11 +7,11 @@ import etiquette
|
||||||
|
|
||||||
from voussoirkit import pathclass
|
from voussoirkit import pathclass
|
||||||
|
|
||||||
from .. import jsonify
|
from . import jsonify
|
||||||
from .. import sessions
|
from . import sessions
|
||||||
|
|
||||||
|
|
||||||
root_dir = pathclass.Path(__file__).parent.parent.parent
|
root_dir = pathclass.Path(__file__).parent.parent
|
||||||
|
|
||||||
TEMPLATE_DIR = root_dir.with_child('templates')
|
TEMPLATE_DIR = root_dir.with_child('templates')
|
||||||
STATIC_DIR = root_dir.with_child('static')
|
STATIC_DIR = root_dir.with_child('static')
|
|
@ -1,16 +1,12 @@
|
||||||
import flask; from flask import request
|
import flask; from flask import request
|
||||||
import random
|
|
||||||
|
|
||||||
from . import album_endpoints
|
from . import album_endpoints
|
||||||
from . import basic_endpoints
|
from . import basic_endpoints
|
||||||
from . import bookmark_endpoints
|
from . import bookmark_endpoints
|
||||||
from . import common
|
|
||||||
from . import photo_endpoints
|
from . import photo_endpoints
|
||||||
from . import tag_endpoints
|
from . import tag_endpoints
|
||||||
from . import user_endpoints
|
from . import user_endpoints
|
||||||
|
|
||||||
site = common.site
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
#site.run(threaded=True)
|
#site.run(threaded=True)
|
||||||
|
|
|
@ -7,7 +7,7 @@ import etiquette
|
||||||
|
|
||||||
from .. import decorators
|
from .. import decorators
|
||||||
from .. import jsonify
|
from .. import jsonify
|
||||||
from . import common
|
from .. import common
|
||||||
|
|
||||||
site = common.site
|
site = common.site
|
||||||
session_manager = common.session_manager
|
session_manager = common.session_manager
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import flask; from flask import request
|
import flask; from flask import request
|
||||||
|
import random
|
||||||
|
|
||||||
from . import common
|
from .. import common
|
||||||
|
|
||||||
site = common.site
|
site = common.site
|
||||||
session_manager = common.session_manager
|
session_manager = common.session_manager
|
||||||
|
|
|
@ -4,7 +4,7 @@ import etiquette
|
||||||
|
|
||||||
from .. import decorators
|
from .. import decorators
|
||||||
from .. import jsonify
|
from .. import jsonify
|
||||||
from . import common
|
from .. import common
|
||||||
|
|
||||||
site = common.site
|
site = common.site
|
||||||
session_manager = common.session_manager
|
session_manager = common.session_manager
|
||||||
|
|
|
@ -7,7 +7,7 @@ import etiquette
|
||||||
|
|
||||||
from .. import decorators
|
from .. import decorators
|
||||||
from .. import jsonify
|
from .. import jsonify
|
||||||
from . import common
|
from .. import common
|
||||||
|
|
||||||
site = common.site
|
site = common.site
|
||||||
session_manager = common.session_manager
|
session_manager = common.session_manager
|
||||||
|
|
|
@ -4,7 +4,7 @@ import etiquette
|
||||||
|
|
||||||
from .. import decorators
|
from .. import decorators
|
||||||
from .. import jsonify
|
from .. import jsonify
|
||||||
from . import common
|
from .. import common
|
||||||
|
|
||||||
site = common.site
|
site = common.site
|
||||||
session_manager = common.session_manager
|
session_manager = common.session_manager
|
||||||
|
|
|
@ -5,7 +5,7 @@ import etiquette
|
||||||
from .. import decorators
|
from .. import decorators
|
||||||
from .. import jsonify
|
from .. import jsonify
|
||||||
from .. import sessions
|
from .. import sessions
|
||||||
from . import common
|
from .. import common
|
||||||
|
|
||||||
site = common.site
|
site = common.site
|
||||||
session_manager = common.session_manager
|
session_manager = common.session_manager
|
||||||
|
|
Loading…
Reference in a new issue