Comments (2)
简单的方式:
- 直接用 CKEditor 的编辑框上传图片
复杂的方式:
- 对应模型类加一个图片文件名字段
- 在对应表单类里加一个文件上传字段
- 在对应模板里对应位置渲染图片的
<img>
元素
from bluelog.
- 应表单类里加一个文件上传字段
好的!非常感谢
!
from bluelog.
Related Issues (20)
- 邻接列表关系疑问求解 HOT 1
- 关于 /admin/post/manage delete post出现page not found问题 HOT 1
- 删除文章时,没有删除与文章一同上传的图片 HOT 3
- 请问 Fabric自动化部署 这部分内容在哪里能看到? HOT 1
- 个人博客项目暗色主题导航栏的标签高亮无法正常显示 HOT 1
- centos 部署时候出现 ‘jinja2.exceptions.TemplateNotFound: bootstrap/nav.html’ HOT 5
- edit_link 表单验证未通过时,无法在html表单上保留已做的修改 HOT 1
- 请问Python3在安装requirements.txt依赖时报错怎么办 HOT 6
- 关于fakes.py中fake_comments的疑问 HOT 2
- 如何更改black_swan主题的导航栏颜色 HOT 2
- 管理员登陆后设置页面里面的about编辑框没有上传图片的功能 HOT 1
- 如果想让文章编辑支持markdown语法,该如何做呢? HOT 1
- base.html中引入bootstrap主题的疑问 HOT 1
- pip安装python依赖psycopg2报错 HOT 2
- 图8-3 虚拟文章列表可以实现,但是只有第一篇文章右下角有创建时间. HOT 1
- nav.html 没有啊
- [问题] 如何显示Post的 shortcut ? HOT 2
- 文件上传点没有加入身份验证,并存在目录穿越可能 HOT 2
- macros.html在哪里? 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 bluelog.