Skip to content
A simple Flask app for publishing Pelican blags from Draft (http://draftin.com)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
draftin_a_flask
scripts
tests
.gitignore
.travis.yml
AUTHORS.rst
CONTRIBUTING.rst
HISTORY.rst
LICENSE
MANIFEST.in
Makefile
README.rst
requirements.txt
setup.py
tox.ini

README.rst

Draft in a Flask

https://badge.fury.io/py/draftin_a_flask.png https://travis-ci.org/waynew/draftin-a-flask.png?branch=master https://pypip.in/d/draftin_a_flask/badge.png

A simple Flask server that allows you to publish Pelican blogs from http://draftin.com using WebHooks

Usage

$ pip install draftin_a_flask
$ env DIF_CONTENT=/path/to/content \
DIF_OUTPUT=/path/to/output \
DIF_PELICAN=/path/to/pelican_binary draftican
Listening at endpoint QRFky1tR0KqHGM3cJoitwEi8tTpknaNnMpNHHiTIm8
* Running on http://0.0.0.0:5678/
* Restarting with reloader
Listening at endpoint QRFky1tR0KqHGM3cJoitwEi8tTpknaNnMpNHHiTIm8

(Yes, it displays the print twice :-\ I'm sure there's a way to get around it. If it bothers you too much, I accept pull requests!)

Setup your WebHook from within Draft, and now you can write your blog posts in Draft and easily publish.

Future Features

  • Automatic uploads using rsync/ssh/file copy
  • Settings provided in a file
  • Improved error handling (e.g. missing title, etc.)

Known Bugs

  • If you're missing important fields (like title and date) it probably will skip publishing that doc.
You can’t perform that action at this time.