V
V
Viktor Yurchenko2019-03-28 17:43:09
Django
Viktor Yurchenko, 2019-03-28 17:43:09

How to get file name from session?

I have the following code:

session = request.session
self.file = session.get('admin_price_import_file')

I need to get the name of the file that was placed throughout the session.
If I specify so, I will get the name of the new file already serialized.
self.file.title
I'm not strong in sessions, tell me how to do it right.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question