美文网首页python程序员
PermissionError: [Errno 13] Perm

PermissionError: [Errno 13] Perm

作者: huisheng | 来源:发表于2017-10-12 11:34 被阅读434次

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

相关文章

网友评论

    本文标题:PermissionError: [Errno 13] Perm

    本文链接:https://www.haomeiwen.com/subject/qumnyxtx.html