У нас вы можете посмотреть бесплатно How to Link HTML Templates in Django - Navigating within HTML pages (URLs) - Lesson 7 или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Linking html templates (pages) is very import in web development since you can’t contain everything in a single page. On the a href="#" we replace the # with the following code {% url ‘template name’ %}. E.g for Home template {% url ‘Home’ %} Make sure you include the following at the top of every html template you created; {% extends "base.html" %} {% load static %} The {% extends ‘base.html’ %} enables you to get base.html code on your new templates and the {% load static %} is for getting static files like images, CSS and JavaScript. There is also includes which is used to add required templates to specific templates e.g. you can have footer on a separate html template and then choose to include {% includes ‘footer’ %} it wherever you need it. We may use this later.