development:python:django
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
development:python:django [2024/08/29 08:09] – [Django Views] tungnt | development:python:django [2024/08/29 08:32] (current) – [Django Views] tungnt | ||
---|---|---|---|
Line 299: | Line 299: | ||
from . import views | from . import views | ||
+ | |||
+ | app_name = " | ||
urlpatterns = [ | urlpatterns = [ | ||
Line 316: | Line 318: | ||
<ul> | <ul> | ||
{% for question in latest_question_list %} | {% for question in latest_question_list %} | ||
- | < | + | |
+ | < | ||
{% endfor %} | {% endfor %} | ||
</ul> | </ul> | ||
Line 325: | Line 328: | ||
<file html polls/ | <file html polls/ | ||
- | {{ question }} | + | <h1>{{ question.question_text |
+ | < | ||
+ | {% for choice in question.choice_set.all %} | ||
+ | < | ||
+ | {% endfor %} | ||
+ | </ul> | ||
</ | </ | ||
+ | |||
+ | ====== Django Form ====== | ||
+ | |||
+ | https:// | ||
+ |
development/python/django.1724918995.txt.gz · Last modified: 2024/08/29 08:09 by tungnt