Locked lesson.
About this lesson
Once you download and install the files for your theme, you can begin to make changes to personalize the design. In this lesson, we'll discuss how to modify the theme for your own needs.
Exercise files
Download this lesson’s related exercise files.
Modify The Theme To Suit Our Needs.docx57.4 KB 29 - Modify The Theme To Suit Our Needs SOLUTION.docx
59 KB
Quick reference
Modify The Theme To Suit Our Needs
Now that we've added the theme files to our Django project's static directory, we need to modify the html of the web page.
When to use
Do this whenever you use theme files that need to be accessed from a web page.
Instructions
Our theme comes with an html page, but the code needs to be modified. We'll need to go through and change all of the css references, javascript references, and image references to static tags like we learned how to do earlier.
Don't forget to use the "load static" tag at the top of every html page that will reference theme files.
Hints & tips
- {% load static %}
- Use static tags to reference any css, javascript, or image files in the theme
Lesson notes are only available for subscribers.