PermissionError: [Errno 13] Permission denied: '/static'
在django 中 收集static 静态文件不可以
python manage.py collectstatic
收集文件一直不可以
--------------start----------------
STATIC_URL ='/static/'
STATIC_ROOT = os.path.join(BASE_DIR,"/static/")
STATICFILES_FINDERS = (
"django.contrib.staticfiles.finders.FileSystemFinder",
"django.contrib.staticfiles.finders.AppDirectoriesFinder"
)
--------------end----------------
to
--------------start----------------
STATIC_URL ='/static/'
STATIC_ROOT = os.path.join(BASE_DIR,"static/")
STATICFILES_FINDERS = (
"django.contrib.staticfiles.finders.FileSystemFinder",
"django.contrib.staticfiles.finders.AppDirectoriesFinder"
)
--------------end----------------
见: https://stackoverflow.com/questions/5543641/django-media-upload-errno-13-permission-denied