Skip to content

Commit

Permalink
Added base.html
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebCheptumo committed Feb 12, 2024
1 parent 14e8eb7 commit fe3ab3b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions learning_log/learning_logs/templates/learning_logs/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<p>
<a href="{% url 'learning_logs:index %}">Learning Log</a>
</p>

{% block content %}{% endblock content %}

<!--to generate a link we use template tag- which is indicated by braces and percentage sign ({% %})
a template tag generate information to be displayed on a page.
the template tag {% url 'learning_logs:index' %} generates the URL matching the URL pattern defined in learning_logs.urls.py with the name index
learning_logs is a namespace and index is a uniquely named URL pattern in that namespace.
the namespace comes from the value we assigned to app_name in learning_logs/urls.py
-->

0 comments on commit fe3ab3b

Please sign in to comment.