Jump to content

Django for ISchoolers: Difference between revisions

imported>Aldeka
imported>Aldeka
Line 797:
Ah. There’s no template yet. Let’s make one!
 
* Make a qandabear/templates/qandabear directory where templates will live., Rightright alongside the views.py for the qandabear app. This is what I would do:
 
<source lang="python">
mkdir -p qandabear/templates/qandabear
</source>
Edit qandabear/templates/qandabear/index.html to contain.
 
Edit qandabear/templates/qandabear/index.html to contain.:
 
<source lang="python">
{% if latest_qs %}
<ul>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.