Installation

Requirements

Optional dependencies (required only for the modules that use them):

Package

Used by

djangorestframework

serializers, routers, authentication

django-rq

jobs, managers (background email), rqscheduler command

fpdf2

FPDFMixin

requests, PyPDF2

PdfDetailMixin

django-select2

AutoSlugResponseView

django-map-widgets

AutocompleteGooglePointFieldWidget, AutocompleteCityWidget

django-debug-toolbar

SQLPanel

elastic-apm

apm_custom_context (optional, gracefully absent)

icecream

clean_migrations management command

python-dateutil

add_months template filter

Install

pip install django-pragmatic

Add pragmatic to INSTALLED_APPS:

INSTALLED_APPS = [
    ...
    'pragmatic',
]

Run migrations to create the DeletedObject table (only needed if you use DeletedObject):

python manage.py migrate pragmatic