Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

304
Views
'[Errno 13] Permission denied: '/static'' even when I have permissions? Django Admin

I recently finished deploying my website using apache2 and django. I was testing everything, including the uploading process. But, when I select a file to upload and hit 'Save', it gives me an error:

PermissionError at /admin/path/path2/add/

[Errno 13] Permission denied: '/static'

I have all the right permissions, since I wrote these commands to allow permissions:

sudo chown -R :www-data project/static
sudo chmod -R 775  project/static
sudo chown :www-data project/db.sqlite3
sudo chmod 664 project/db.sqlite3
sudo chown :www-data project/

This works, since when I do ls -l, the permissions are correct.

This is my apache2 config file (just the static folder part):

Alias /static /home/alexholst/excelsite/static
<Directory /home/alexholst/excelsite/static>
    Require all granted
</Directory>

My settings.py file has this as STATIC_ROOT and STATIC_URL:

STATIC_URL = '/static/'
STATIC_ROOT = '/home/user/project/static'

I dont know if this has to do with anything, but my css does load so i dont think it should have to do with the settings.py.

Any suggestions are very much appreciated!

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!