Y
Y
Yurez12016-10-27 23:58:21
JavaScript
Yurez1, 2016-10-27 23:58:21

How to integrate Django and jQuery File Upload?

I'm just starting in Django, tell me please I

found (for example https://toster.ru/q/22836 ) an example of integrating a multi- upload file,
I start runserver, everything is uploaded, media_root works, etc. everything is fine

the question is: how to bind these uploaded files to the model? if possible, so that the form is displayed on the page, there is such an uploader under it, it uploads files, and then the form can be filled with other data and sent to the model,

i.e. in which field of the model do these same URLs of the downloaded files fall? tell me who faced?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mixolapus, 2016-10-29
@Mixolapus

Create a CharField type field in the model and store a link to the uploaded file there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question