- http://flask.pocoo.org/docs/0.10/blueprints
- https://exploreflask.com/organizing.html
- https://realpython.com/blog/python/python-web-applications-with-flask-part-i/
- https://github.com/imwilsonxu/fbone
- https://github.com/mattupstate/overholt
- use
requirements.txt
, notsetup.py
because it would not be a module...
- unittest directory is
tests
, nottest
- use py.test or standard unittest module
- absolute_import를 쓰면 좋을 것 같다. 하지만 욕심인 것 같기도.
- deploy: fabric
- blueprints: app, celery-worker-mail-sender, celery-worker-google-auth, celery-worker-apns, celery-worker-apns, ...
/
myapp/
__init__.py
# holds app
tests/
__init__.py
test_basic.py
requirements.txt
# minimal requirements, with versions.requirements-dev.txt
# requirements for development (py.test
,flake8
, ...)requirements-freeze.txt
# store current working (proven) versions (frompip freeze
)