Exemplo n.º 1
0
# -*- coding: utf-8 -*-
"""
    runserver
    ~~~~~~~~~

    로컬 테스트를 위한 개발 서버 실행 모듈.

    :copyright: (c) 2013 by 4mba.
    :license: MIT LICENSE 2.0, see license for more details.
"""

from photolog import create_app

application = create_app()

if __name__ == '__main__':
    print("starting test server...")

    application.run(host='0.0.0.0', port=5000, debug=True)
Exemplo n.º 2
0
#-*- coding:utf-8 -*-
import sys

from flask.templating import render_template

from photolog import create_app

reload(sys)
sys.setdefaultencoding('utf-8')

app = create_app()


@app.errorhandler(404)
def page_not_found(e):
    return render_template('/404.html'), 404


if __name__ == '__main__':
    print "starting test server"
    app.run(port=2323, debug=True)
Exemplo n.º 3
0
from photolog import create_app

applilcation = create_app()

if __name__ == '__main__':
    print("starting test server...")

    application.run(host='0.0.0.0', port=5000, debug=True)
Exemplo n.º 4
0
# -*- coding: utf-8 -*-
"""
    runserver
    ~~~~~~~~~

    로컬 테스트를 위한 개발 서버 실행 모듈.

    :copyright: (c) 2013 by 4mba.
    :license: MIT LICENSE 2.0, see license for more details.
"""

import sys

from photolog import create_app

reload(sys)
sys.setdefaultencoding('utf-8')

application = create_app()    

if __name__ == '__main__':
    print "starting test server..."

    application.run(host='0.0.0.0', port=5000, debug=True)

Exemplo n.º 5
0
 def setUp(self):
     self.photolog_app = create_app(
         '/Users/keatonh/project/photolog/test/config.cfg')
     self.photolog_app.testing = True
     self.app = self.photolog_app.test_client()
Exemplo n.º 6
0
 def setUp(self):
     self.photolog_app = create_app('/Users/keatonh/project/photolog/test/config.cfg')
     self.photolog_app.testing = True
     self.app = self.photolog_app.test_client()