Django Static Files (Images)

Опубликовано: 05 Октябрь 2024
на канале: CodingWithMitch
13,873
173

Free website building course with Django & Python: https://codingwithmitch.com/courses/b...

In this video I explain how to use static files with django.

I show you:
1) STATIC_URL
2) MEDIA_URL
3) STATIC_ROOT
4) MEDIA_ROOT
5) STATICFILE_DIRS

Keep in mind that setting up your static files in a production environment will be different because you'll be using something like Amazon Web Services S3 to save the files.

In a development environment (like in this video), the files are saved locally on your computer.

https://codingwithmitch.com/courses

Instagram:   / codingwithmitch