From the course: Learning Django

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Integrate CSS and JavaScript

Integrate CSS and JavaScript

From the course: Learning Django

Start my 1-month free trial

Integrate CSS and JavaScript

- [Tutor] Our site is in good working order now, but I'd like to add some JavaScript and address how we're currently loading in our CSS and images. Django refers to these kinds of assets as static files. Integrating these kinds of assets is a common task with any web project. Since we aren't focusing on CSS or JavaScript in this course, I provided these files for you in the downloadable exercise files. I'll now open the downloadable exercise files and beside it I'll open our repo folder. I've placed our static assets in a photo called static, which should be placed at the top level of our project where manage.py is located. So, I'll now right click on static, click copy, and then on wisdompet, I'll right click and click paste. Let's navigate into this folder to see what we have. Inside of wisdompets, I'll now click static and I see that we have a main.js and a style.css file. There's also a folder called images that…

Contents