R
R
RandomProgrammer2021-07-15 21:44:01
Django
RandomProgrammer, 2021-07-15 21:44:01

How does the file system work in Django?

I am new to Django.
I have already learned the basics, such as models and templates. I want to be able to upload an image to the server. But it turned out not to be so simple. The files are not stored in the database. And somewhere in a special storage. And in a DB only the link. In general, I am confused with this topic. In short, I want to understand how files are uploaded to the server, how they are stored and how they are processed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2021-07-16
@dimonchik2013

https://docs.djangoproject.com/en/3.2/ref/models/f...
https://docs.djangoproject.com/en/3.2/ref/models/f... Google
immediately examples on ImageField and FileField, there's plenty

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question