Skip to content

Latest commit

 

History

History
49 lines (39 loc) · 1.54 KB

README.md

File metadata and controls

49 lines (39 loc) · 1.54 KB

ezBlog

An easy Blog written by python, flask, flask-blogging and using maupassant theme.

Example

My blog

index page

index

post page

post-1 post-2

archives page

archives

login page

login

writing post page

write

Introduce

快速搭建属于自己的博客

How to use

  1. virtualenv is recommanded.

  2. install requirements

pip install -r requirements.txt
  1. create user
python manage_user.py <command> <username> <password>

command: create or delete
  1. modify app config
    app config is mainly in ezBlog.py file. modify app.config["BLOGGING_SITEURL"] to your own site url. and modify app listen ip and port at the bottom.

  2. start the app

python ezBlog.py (or you can make it run in background)
  1. login and write blog
    Open app.config["BLOGGING_SITEURL"]/login/ (for example, http://example.com/login/) and input your username and password (app.config["BLOGGING_SITEURL"] is set in ezBlog.py)
    if you want logout, use app.config["BLOGGING_SITEURL"]/logout/ url.

  2. Enjoy it!