flask-blog:用 Flask 编写的博客应用

时间:2021-07-03 12:45:30
【文件属性】:
文件名称:flask-blog:用 Flask 编写的博客应用
文件大小:106KB
文件格式:ZIP
更新时间:2021-07-03 12:45:30
Python 烧瓶博客 这是我使用 Flask 微网络框架在 Python 中运行的博客。 要求 Python >=2.6 python-flask >=0.8(也可能是 0.7) python-wtforms 烧瓶WTF(来自PyPI) python-sqlite(如果你使用的是sqlite) python-bcrypt(用于密码哈希) 设置 将settings.py.defaults文件复制到settings.py并打开它以设置您的首选项。 将SECRET_KEY更改为任何不可猜测的内容。 最简单的入门方法是首先使用管理员帐户创建一个数据库。 运行create_db.py以设置数据库,如下所示: ./create_db.py Administrator 其中 matt 是您想要知道的管理帐户的用户名。 如果您愿意,它可以是您自己的名字。 然后,系统会要求您为此帐户设置密码。 要运行
【文件预览】:
flask-blog-master
----create_db.py(2KB)
----template.xhtml(4KB)
----apps()
--------accounts.py(1KB)
--------upload.py(2KB)
--------frontpage.py(304B)
--------__init__.py(0B)
--------pages.py(2KB)
--------posts.py(3KB)
----models()
--------base.py(8KB)
--------__init__.py(0B)
--------sqlite.py(8KB)
--------couchdb.py(6KB)
--------forms.py(2KB)
--------interface.py(424B)
----settings.py.defaults(453B)
----logo.svg(33KB)
----decorators.py(670B)
----main.py(3KB)
----parsers()
--------Markdown.py(40B)
--------__init__.py(0B)
----__init__.py(1B)
----favicon.svg(15KB)
----LICENSE(677B)
----README.md(2KB)
----enums.py(102B)
----tests()
--------test_sqlite.py(2KB)
--------__init__.py(0B)
----templates()
--------login.jinja.html(274B)
--------pages.jinja.html(253B)
--------item.jinja.html(518B)
--------sidebar.jinja.html(1KB)
--------items.jinja.html(332B)
--------posts.jinja.html(253B)
--------post.jinja.html(104B)
--------forms.jinja.html(696B)
--------page_list.jinja.html(331B)
--------list.jinja.html(273B)
--------page.jinja.html(106B)
--------post_list.jinja.html(348B)
--------base.jinja.html(3KB)
----.gitignore(35B)
----runtests.py(606B)
----static()
--------img()
--------js()
--------css()

网友评论