Comments (2)
补充一下,是admin管理页面被403,不知道能不能在admin页面中加入csrf验证
from djangoueditor.
这个问题可以有几种办法解决:
1、去修改ueditor的源码,这样子如果升级uedit升级就比较麻烦,而且还得去分析其源码,要怎么改都是个问题,不推荐。
2、将settings里面的CSRF中间件去掉,当然也就没有csrf保护了,也没有这个问题了。一般小应用也无所谓的
3、修改DjangoUedit的views.py,加上@csrf_exempt,类似这样:
from django.views.decorators.csrf import csrf_exempt
@csrf_exempt
def UploadFile(request,uploadtype,uploadpath):
@csrf_exempt
def RemoteCatchImage(request,imagepath):
发件人: Leonardo Hu
发送时间: 2012-10-23 14:53
收件人: zhangfisher/DjangoUeditor
主题: Re: [DjangoUeditor] 上传图片出现问题! (#2)
补充一下,是admin管理页面被403,不知道能不能在admin页面中加入csrf验证
—
Reply to this email directly or view it on GitHub.
from djangoueditor.
Related Issues (20)
- DjangoUeditor (1.8.143) model字段名字为content时ueditor界面才能正常显示
- 可以差评么?
- 1.9下不可用
- django新版本兼容建议 HOT 2
- readme中的UEditorWidget示例初始化参数不对
- serverUrl配置问题
- 上传图片报403错误 CSRF验证失败
- 附件-在线附件-“OSError at /ueditor/controller/”
- 图片在线管理问题
- 建立一个 DjangoUeditor 小组吧,我愿意一起维护 DjangoUeditor HOT 2
- 代码高亮问题
- 我开发了一个分支版本
- python3 中贴图无法显示 HOT 1
- DjangoUeditor3 插件不支持上传附件到网络存储 HOT 1
- 在表单中使用DjangoUeditor时报错 'UEditorField' object has no attribute 'is_hidden'
- 兼容django2啦 HOT 1
- include报错
- 支持Python3和Django2.1 HOT 1
- 编辑器的宽度可以设置成自适应吗
- 关于图片下载目录的问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from djangoueditor.