-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
14e8eb7
commit fe3ab3b
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
learning_log/learning_logs/templates/learning_logs/base.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
--> |