How to secure a created directory in django so that only django app can access it

40 Views Asked by At

I've created a directory in Django 'mydir' and have few files in it. How to secure these files so that only django can access it and no one else?

1

There are 1 best solutions below

0
Cool Breeze On BEST ANSWER

It can be done by the following:

os.chmod('mydir', 0o400)