这几天试着在pythonanywhere部署自己的django项目,项目起来后,想加点内容进去,结果出问题了,后台admin编辑图片在上传到服务器时候报500错误
这个PillowBackend是下载ckeditor包自带的 功能在及本地可以跑,但是部署上去却不行了,
Traceback (most recent call last):
File "//lib/python3.9/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, callback_args, callback_kwargs)
File "//lib/python3.9/site-packages/django/contrib/auth/decorators.py", line 23, in _wrapped_view
return view_func(request, args, kwargs)
File "//lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(args, kwargs)
File "//lib/python3.9/site-packages/django/views/generic/base.py", line 103, in view
return self.dispatch(request, args, kwargs)
File "///lib/python3.9/site-packages/django/views/generic/base.py", line 142, in dispatch
return handler(request, args, kwargs)
File "///lib/python3.9/site-packages/ckeditor_uploader/views.py", line 95, in post
backend = get_backend()
File "//lib/python3.9/site-packages/ckeditor_uploader/backends/init.py", line 42, in get_backend
return import_string(backend_path)
File "//lib/python3.9/site-packages/django/utils/module_loading.py", line 32, in import_string
raise ImportError(
ImportError: Module "ckeditor_uploader.backends" does not define a "PillowBackend" attribute/class
各种百度都没有找到处理的方法,我也没又发现自己哪里错误了
django de settings.py是直接上传上去的
只有pythonanywhere的static url配置了这个
/static/ckeditor/ /***/lib/python3.9/site-packages/ckeditor/static/ckeditor
希望哪位帮忙解决方法 或者提供思路给老弟