python程序员

PermissionError: [Errno 13] Perm

2017-10-12  本文已影响434人  huisheng

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

上一篇下一篇

猜你喜欢

热点阅读