Blueprint 패턴을 사용하여 구현 된 간단한 Flask 프로젝트를 상상해보십시오. 이제청사진에서 패키지를 가져 오는 방법은 무엇입니까?
app
+-blueprint_1
| +-__init__.py
| +-views.py
|
+-utils.py
, 내가 여기에 가장 좋은 방법 사용하여 내 blueprint_1
뷰에서 utils
을 가져올 상상 : http://docs.python-guide.org/en/latest/writing/structure/#modules
즉, 단순히 import foo
보다는 from foo import too_lazy, to_type, bunch_of, names
을하고 싶습니다 어떻게 할 수 청사진에서 이러한 수입 양식을 수행합니까?