<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>豆瓣相册 &#8211; 李辉 / Grey Li</title>
	<atom:link href="https://greyli.com/tag/%E8%B1%86%E7%93%A3%E7%9B%B8%E5%86%8C/feed/" rel="self" type="application/rss+xml" />
	<link>https://greyli.com</link>
	<description>一个编程和写作爱好者的在线记事本</description>
	<lastBuildDate>Thu, 06 Nov 2025 11:36:11 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.9.26</generator>

<image>
	<url>https://greyli.com/wp-content/uploads/2025/03/avatar-500-compressed-144x144.jpg</url>
	<title>豆瓣相册 &#8211; 李辉 / Grey Li</title>
	<link>https://greyli.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>用Flask从零实现豆瓣相册</title>
		<link>https://greyli.com/use-flask-from-zero-to-achieve-double-albums/</link>
		<comments>https://greyli.com/use-flask-from-zero-to-achieve-double-albums/#respond</comments>
		<pubDate>Sun, 12 Feb 2017 07:46:31 +0000</pubDate>
		<dc:creator><![CDATA[李辉]]></dc:creator>
				<category><![CDATA[计算机与编程]]></category>
		<category><![CDATA[Flask]]></category>
		<category><![CDATA[豆瓣相册]]></category>

		<guid isPermaLink="false">http://greyli.com/?p=1363</guid>
		<description><![CDATA[这是我在知乎专栏 &#8211; Hello, Flask!上连载的一个教程，这篇作为目录会持续更新。 被新年 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>这是我在<a class="internal" href="https://zhuanlan.zhihu.com/flask" target="_blank">知乎专栏 &#8211; Hello, Flask!</a>上连载的一个教程，这篇作为目录会持续更新。</p>
<p>被新年绑架，一个月忙忙碌碌，现在终于有时间继续写专栏。本来想先写其他的实践，比如便签本、个人博客，但这些都和《Flask Web开发》的Flasky差不多，没什么好写的。想着干脆先把这个相册实现了。</p>
<h2><b>为什么是豆瓣相册</b></h2>
<p>当然，最主要的原因是豆瓣相册比较简单，容易实现。而且用一个东西用久了，总想改造一下。</p>
<p>页面逻辑和豆瓣相册相同：用户相册主页——相册页——图片页——大图</p>
<p>主要的功能点：</p>
<ol>
<li>相册与图片</li>
<li>添加喜欢</li>
<li>图片上传</li>
<li>批量编辑</li>
<li>拖拽排序</li>
<li>图片浏览</li>
<li>图片处理</li>
<li>隐私设置</li>
<li>自定义头像</li>
<li>相册增强插件</li>
</ol>
<p>&nbsp;</p>
<h2><b>系列目录</b></h2>
<ol>
<li><a class="internal" href="https://zhuanlan.zhihu.com/p/25197858">相册与图片</a></li>
</ol>
<p>&nbsp;</p>
<h2><b>相关项目</b></h2>
<p>上面的功能实现在这个项目里都可以看到，后面的文章也会基于这个项目。因为这也是个实验场，有很多代码和实现方法需要重新考量。如果发现问题，欢迎提issue和贡献代码~</p>
<p><a class=" wrap external" href="https://github.com/greyli/fanxiangce" target="_blank" rel="nofollow noreferrer">github.com/greyli/fanxiangce<i class="icon-external"></i></a></p>
<h2><b>部分截图</b></h2>
<p><div id="attachment_1369" style="width: 1332px" class="wp-caption aligncenter"><a href="http://greyli.com/wp-content/uploads/2017/02/user.png" rel="attachment wp-att-1369"><img class="size-full wp-image-1369" src="http://greyli.com/wp-content/uploads/2017/02/user.png" alt="user page" width="1322" height="961" srcset="https://greyli.com/wp-content/uploads/2017/02/user.png 1322w, https://greyli.com/wp-content/uploads/2017/02/user-150x109.png 150w, https://greyli.com/wp-content/uploads/2017/02/user-300x218.png 300w, https://greyli.com/wp-content/uploads/2017/02/user-1024x744.png 1024w, https://greyli.com/wp-content/uploads/2017/02/user-624x454.png 624w" sizes="(max-width: 1322px) 100vw, 1322px" /></a><p class="wp-caption-text">用户主页</p></div> <div id="attachment_1366" style="width: 1186px" class="wp-caption aligncenter"><a href="http://greyli.com/wp-content/uploads/2017/02/album.png" rel="attachment wp-att-1366"><img class="size-full wp-image-1366" src="http://greyli.com/wp-content/uploads/2017/02/album.png" alt="相册页面" width="1176" height="973" srcset="https://greyli.com/wp-content/uploads/2017/02/album.png 1176w, https://greyli.com/wp-content/uploads/2017/02/album-150x124.png 150w, https://greyli.com/wp-content/uploads/2017/02/album-300x248.png 300w, https://greyli.com/wp-content/uploads/2017/02/album-1024x847.png 1024w, https://greyli.com/wp-content/uploads/2017/02/album-624x516.png 624w" sizes="(max-width: 1176px) 100vw, 1176px" /></a><p class="wp-caption-text">相册页面</p></div> <div id="attachment_1367" style="width: 1237px" class="wp-caption aligncenter"><a href="http://greyli.com/wp-content/uploads/2017/02/edit.png" rel="attachment wp-att-1367"><img class="size-full wp-image-1367" src="http://greyli.com/wp-content/uploads/2017/02/edit.png" alt="批量编辑页面" width="1227" height="958" srcset="https://greyli.com/wp-content/uploads/2017/02/edit.png 1227w, https://greyli.com/wp-content/uploads/2017/02/edit-150x117.png 150w, https://greyli.com/wp-content/uploads/2017/02/edit-300x234.png 300w, https://greyli.com/wp-content/uploads/2017/02/edit-1024x800.png 1024w, https://greyli.com/wp-content/uploads/2017/02/edit-624x487.png 624w" sizes="(max-width: 1227px) 100vw, 1227px" /></a><p class="wp-caption-text">批量编辑页面</p></div> <div id="attachment_1368" style="width: 1242px" class="wp-caption aligncenter"><a href="http://greyli.com/wp-content/uploads/2017/02/photo.png" rel="attachment wp-att-1368"><img class="size-full wp-image-1368" src="http://greyli.com/wp-content/uploads/2017/02/photo.png" alt="photo page" width="1232" height="948" srcset="https://greyli.com/wp-content/uploads/2017/02/photo.png 1232w, https://greyli.com/wp-content/uploads/2017/02/photo-150x115.png 150w, https://greyli.com/wp-content/uploads/2017/02/photo-300x231.png 300w, https://greyli.com/wp-content/uploads/2017/02/photo-1024x788.png 1024w, https://greyli.com/wp-content/uploads/2017/02/photo-624x480.png 624w" sizes="(max-width: 1232px) 100vw, 1232px" /></a><p class="wp-caption-text">图片浏览页</p></div></p>
<h2><b>做个新的相册网站</b></h2>
<p>等这个系列结束，你就可以自己做个相册网站，找一些厉害的插件改造它，再起个好名字。然后到豆瓣里发篇日记，就叫《我做了个更好的豆瓣相册》。当然，那时它可能叫西红柿相册，或是袋鼠相册……</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://greyli.com/use-flask-from-zero-to-achieve-double-albums/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
