AWS chalice 에서 jinja2 템플릿 활용하기
디렉토리 구조
- app.py
- requirements.txt
- chalicelib/
- tempaltes/
- index.html
- tempaltes/
chalice에는 render_template이 없어서, 직접 jinja2 environment를 생성토록 해봤습니다.
templates 디렉토리는 같이 팩키징이 안 되길래, chalicelib/templates 경로에 넣었습니다.
여러분의 파이썬/장고 페이스메이커가 되겠습니다.
- AskDjango FB Group
- AskDjango VOD
- AskDjango와 함께 장고걸스 튜토리얼 따라하기 : 유데미 강의 (Free)
감사합니다.