Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- onTouchListner
- bruteforce
- boj_15685
- DFS
- boj2252
- springboot
- boj15954
- TDD
- backtracking
- onTouch
- boj15998
- BOJ
- testdb
- BFS
- boj15683
- DP
- Spring
- django
- DynamicProgramming
- boj2239
- 동적계획법
- boj10775
- react
- boj_15684
- boj15654
- nestedjson
- boj10942
- mysql
- boj7579
- euclideanalgorithm
Archives
- Today
- Total
목록템플릿 (1)
이마닷의 블로그

django의 View에서는 Template에서 사용될 context 변수들과 함께 해당 웹 페이지를 띄우게 되고, template에서는 이러한 context들을 웹 페이지 내에 적절히 배치함으로써 웹 페이지를 작성한다. 일반적으로 context 변수들은 object 형태로 주어지게 되는데, 각각의 object는 각각의 Model(class)에 속하게 되므로, 해당 인스턴스에서 클래스 메소드들을 사용할 수 있다. 이를 위해 해주어야 할 작업에 대해 알아보고자 한다. 1. Python의 decorator 기능 def example_decorator(func): def decorated(): print("decorated!") func() return decorated class ExampleDecorato..
python
2020. 1. 15. 19:05