Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图片在线管理问题 #73

Open
willhunger opened this issue Dec 7, 2016 · 0 comments
Open

图片在线管理问题 #73

willhunger opened this issue Dec 7, 2016 · 0 comments

Comments

@willhunger
Copy link

有一个分支下的https://github.com/wsqy/DjangoUeditor
再点击图片在线管理问题后,出现如下错误:

Internal Server Error: /ueditor/controller/
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/exception.py", line 39, in inner
response = get_response(request)
File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.5/dist-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
return view_func(*args, **kwargs)
File "/home/will/PycharmProjects/hnwcd/DjangoUeditor/views.py", line 63, in get_ueditor_controller
return reponseActionaction
File "/usr/local/lib/python3.5/dist-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
return view_func(*args, **kwargs)
File "/home/will/PycharmProjects/hnwcd/DjangoUeditor/views.py", line 92, in list_files
files = get_files(root_path, root_path, allowFiles[action])
File "/home/will/PycharmProjects/hnwcd/DjangoUeditor/views.py", line 116, in get_files
item = unicode(item)
NameError: name 'unicode' is not defined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant