Stet is a simple blogging application powered by git and django.
You push to a remote git repository which stores your posts in plain text files and a post-receive hook takes care of the rest:
- it converts the plain text to HTML using Markdown,
- it updates the database with the new HTML and meta data.
Then, stet
serves the blog posts via django, adding some nice feature, like
tagging and comments.
-
Install
stet
withpip install -e git+git://github.com/stasm/stet.git#egg=stet
-
Add
stet
and the dependencies toINSTALLED_APPS
INSTALLED_APPS = ( # ...your other apps go here... 'django.contrib.comments', 'taggit', 'stet', )
-
Enable the meta-data extension for Markdown by editing your settings.py file and adding the following setting:
MARKDOWN_EXT = ( 'meta', )
You can also add other extensions as well, if you wish, for instance:
MARKDOWN_EXT = ( 'meta', 'abbr', 'def_list', 'fenced_code', 'footnotes', 'headerid', )
-
Copy
hooks/post-receive
into thehooks
directory of the remote repository in which you store your posts. -
Configure the
ROOT
variable in thepost-receive
hook to match the root of your Django project (the directory in whichmanage.py
is located).