3

I am creating pages from admin in mezzanine and in description of page I want to show some images but when I am giving the images path and trying to save it , the page is throwing this error.

OSError at /admin/pages/richtextpage/3/

[Errno 13] Permission denied: '/static'

As I am using mezzanine so i haven't edit settings file for static root or url . The settings are as follows :

STATIC_URL = "/static/"
STATIC_ROOT = os.path.join(PROJECT_ROOT, STATIC_URL.strip("/"))
MEDIA_URL = STATIC_URL + "media/"
MEDIA_ROOT = os.path.join(PROJECT_ROOT, *MEDIA_URL.strip("/").split("/"))

However in front end everything is working fine.

Inforian
  • 1,716
  • 5
  • 21
  • 42

1 Answers1

2

This error are thrown because your web server (Apache, Nginx, etc.) haven't permission to write in /your_project/static/ directory. You need find out from what user web server process run and set permissions for this user to static directory.

dKen
  • 3,078
  • 1
  • 28
  • 37
Eugene Soldatov
  • 9,755
  • 2
  • 35
  • 43