Sausy 21
Sausy 21

Reputation: 1

How do you use downloaded templates in Django

I have found these really cool templates online and I would like to use them for building my website. Is there any way of not copying the links for bootstrapping but for me to use the templates downloaded and tweak them?

I have looked online and all they suggested was bootstrapping.

Upvotes: 0

Views: 1146

Answers (1)

Dan Swain
Dan Swain

Reputation: 3108

When using html templates, you will probably find that each html file has the same header and footer information. You will need to pull this header/footer information out into a base template (typically base.html). Each page type (html files other than base.html) that has had the header/footer information removed will then extend the base.html template file: https://docs.djangoproject.com/en/2.2/intro/overview/#design-your-templates

If the template has quite a few pages, it will likely take you a while to get everything broken out as it needs to be, especially when you're new.

Upvotes: 1

Related Questions