A
A
aLap2021-09-20 11:45:24
Django
aLap, 2021-09-20 11:45:24

How to restrict access to files or directories in Django in static?

There was a need to restrict access to static files for users. For example, there is a user foo, for him, in the static folder, a directory (/static/foo) is created, files from which only this user should have access. Is it possible to organize it somehow? Django standard authentication is used.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2021-09-20
@sergey-gornostaev

It is forbidden. What's more, the problem statement looks like you're misusing statics.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question