- Using pip: pip install pyninjas-blog
- Using source code: python setup.py install
Add pyninjas.blog to INSTALLED_APPS:
INSTALLED_APPS = [
# django apps
'django.contrib.humanize',
# other apps
'pyninjas.blog',
]
Add pyninjas.blog.urls to your project's urls:
urlpatterns = [
# other urls
path('blog/', include('pyninjas.blog.urls', namespace='blog')),
]
By default pyninjas-blog has all templates needed for the blog. However it uses simple template for a demo. You can enhance it with your current template by rewriting them:
- templates/blog/base.html
- templates/blog/index.html
- templates/blog/article.html
- [x] Use of HTML as article format
- [] Atom and RSS feeds
- [x] Preview for blog posts before publishing
- [x] slug only tag and article urls
- [] OpenGraph meta data
- [] Multilevel comments (replies)
- [] Loding comment contents using ajax
Copyright (c) 2018 Emin Mastizada and contributors. MIT License.