반응형

이전 포스팅에서 localhost:8000/polls/ 로 접속하면 index.html 이라는 템플릿을 보여줬습니다. index.html은 이렇게 구현되어있습니다. 그래서 저 목록 아이템을 누르면 polls > urls.py 에 있는 urlpatterns 중, "/polls/question.id/" 에 매칭되는 detail함수를 불러주고 polls > views.py에 있는 detail 함수는 이렇게 생겼기 때문에 이런 화면을 보여주게 되는거죠 index함수를 템플릿을 만들어서 연결시켜줬던 것 처럼 detail함수도 작업을 시작하겠습니다. polls/templates/polls 디렉토리에 가서 detail.html 파일을 만들어주세요. 템플릿 문서에 보면 {{ }} 는 변수를 의미하고 context로 부..
🐍/Django
2020. 2. 11. 22:46
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Flutter Clipboard
- Sketch 누끼
- 구글 Geocoding API
- METAL
- 장고 Custom Management Command
- Django FCM
- cocoapod
- Python Type Hint
- ribs
- Flutter 로딩
- flutter 앱 출시
- PencilKit
- 플러터 싱글톤
- Flutter getter setter
- Watch App for iOS App vs Watch App
- ipad multitasking
- drf custom error
- SerializerMethodField
- flutter deep link
- flutter dynamic link
- Django Firebase Cloud Messaging
- 장고 URL querystring
- DRF APIException
- Dart Factory
- github actions
- flutter build mode
- Django Heroku Scheduler
- 플러터 얼럿
- Flutter Text Gradient
- Flutter Spacer
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함