diff --git a/backend/django.py b/backend/django.py index 50f53bd..0f0436f 100644 --- a/backend/django.py +++ b/backend/django.py @@ -118,3 +118,48 @@ django-admin version # display the current django version # 8. $ django-admin startproject myproject # 9. $ django-admin startapp myapp # 10. $ python manage.py runserver + +# ***************************************************************************** +# Templates Tags +# ***************************************************************************** + +# {% extends "base.html "%} --> Base template forms basis for other templates + +# {% block content %} --> Content tags extend templates to reduce repeated code +# ... +# {% endblock %} + +# or + +# {% block content %} +# ... +# {% endblock content %} + +# {% load static "styles.css" %} --> Used in header of HTML file to load static files + +# {{ variable_name }} --> Varriable tags used to display template varriables + +# {% if condition %} --> Templates can include logic using if statements. +# {% elif condition %} +# {% else %} +# {% endif %} + +#