Django-blog is a Django application for publishing a blog. Supports creating posts as drafts and programming publication for a future date/time.
- Add
django_blogand dependencies to your INSTALLED_APPS setting:INSTALLED_APPS = [ ..., 'crispy_forms', 'crispy_bootstrap5', 'tinymce', 'django_blog', ] - Include the polls URLconf in your project urls.py:
path('blog/', include('django_blog.urls')), - For
crispy-forms, add the following settings:CRISPY_ALLOWED_TEMPLATE_PACKS = 'bootstrap5' CRISPY_TEMPLATE_PACK = 'bootstrap5' CRISPY_FAIL_SILENTLY = not DEBUG - Run
python manage.py migrateto create the models in your database. - By default posts are paginated by 4. You can change this adding to your settings:
DJANGO_BLOG_PAGINATE_BY = 6 - Set title and description for rss feed adding to your settings:
DJANGO_BLOG_FEED_TITLE = "My custom title" DJANGO_BLOG_FEED_DESCRIPTION = "My custom description"