Get Started in Minutes
Django Spellbook integrates with your project by generating server-side code from markdown content:
pip install django-spellbook
Configure with these essential settings:
INSTALLED_APPS = [
'django_spellbook',
'my_app', # for SPELLBOOK_MD_APP
]
# Necessary for markdown parsing
SPELLBOOK_MD_PATH = BASE_DIR / 'markdown_files'
SPELLBOOK_MD_APP = 'my_app'
# Optional for markdown parsing - customize your base template
SPELLBOOK_MD_BASE_TEMPLATE = 'django_spellbook/bases/base_sidebar_left.html'
Quick Setup Steps
- Install the package using pip
- Add to INSTALLED_APPS in your Django settings
- Configure paths for your markdown content
- Run the command to generate views and templates:
bash python manage.py spellbook_md
- Start writing magical markdown with SpellBlocks!
Pro Tip: Check out our Quick Start Guide for a complete walkthrough with examples!