Skip to content

g-fabiani/django-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django-blog

Django-blog is a Django application for publishing a blog. Supports creating posts as drafts and programming publication for a future date/time.

Quick start

  1. Add django_blog and dependencies to your INSTALLED_APPS setting:
    INSTALLED_APPS = [
        ...,
        'crispy_forms',
        'crispy_bootstrap5',
        'tinymce',
        'django_blog',
    ]
    
  2. Include the polls URLconf in your project urls.py:
    path('blog/', include('django_blog.urls')),
    
  3. For crispy-forms, add the following settings:
    CRISPY_ALLOWED_TEMPLATE_PACKS = 'bootstrap5'
    
    CRISPY_TEMPLATE_PACK = 'bootstrap5'
    
    CRISPY_FAIL_SILENTLY = not DEBUG
    
  4. Run python manage.py migrate to create the models in your database.
  5. By default posts are paginated by 4. You can change this adding to your settings:
    DJANGO_BLOG_PAGINATE_BY = 6
    
  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"
    

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published