Skip to content Skip to sidebar Skip to footer

Errno 13 Permission Denied With Django On A Directory I Don't Want To Use

I have this error appearing in my Django app on my production server : [Errno 13] Permission denied: '/var/www/.config' I never asked to access to this unexisting file or directo

Solution 1:

In facts, Entrez.parse is calling the DataHandler objects. This objects try to write in the user directory with something like :

home = os.path.expanduser('~')
directory = os.path.join(home, '.config', 'biopython')
local_xsd_dir = os.path.join(directory, 'Bio', 'Entrez', 'XSDs')
os.makedirs(local_xsd_dir)

Because biopython user is the httpd user, the home directory is /var/www/.

The solution is here to allow apache to write into /var/www or to move it to a different place.

Post a Comment for "Errno 13 Permission Denied With Django On A Directory I Don't Want To Use"