From the course: Building a Personal Portfolio with Django

Unlock the full course today

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

Collectstatic in Django

Collectstatic in Django

From the course: Building a Personal Portfolio with Django

Start my 1-month free trial

Collectstatic in Django

- [Male Narrator] So we've gone through a lot of effort to get this picture of ourselves up and running on the website. We have this static folder here in our app. This Nick.jpg is just ready for the world to see, but it's not quite there yet but we're fixing it right now. What we need to do is with any static files that we have a Django project is that they need to be collected. And Django's pretty great about this, that you can have static in a bunch of different apps and that's gonna bring them to all one central location. And this makes it really easy if you ever have new static files that you bring in that they can all be updated very quickly. So let's move over to our terminal here. We're gonna quit out of the server that's running, and we're gonna type out python three manage.py. And what we're gonna type is collect static. And essentially what this does is it searches through the entire Django project and sees if there's any folders named static where it needs to add things…

Contents