Django Level One Getting Started with Django!


Django - Templates Let’s learn how to use Templates!


Download 0.73 Mb.
bet11/14
Sana05.01.2022
Hajmi0.73 Mb.
#225180
1   ...   6   7   8   9   10   11   12   13   14
Bog'liq
Django Level One

Django - Templates

Let’s learn how to use Templates!

Django

  • Templates are a key part to understanding how Django really works and interacts with your website.
  • Later on we will learn about how to connect templates with models so you can display data created dynamically.

Django

  • For now, let’s focus on the basics of templates and template tags.
  • The template will contain the static parts of an html page (parts that are always the same)

Django

Django

  • To get started with templates you first need to create a templates directory and then a subdirectory for each specific app’s templates.
  • It goes inside of your top level directory:
    • first_project/templates/first_app

Download 0.73 Mb.

Do'stlaringiz bilan baham:
1   ...   6   7   8   9   10   11   12   13   14




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling