Automatically sync a Django model with Ghost's member model. Ghost is a CMS for content creators.
-
pip install django-ghost
-
Add to your INSTALLED_APPS settings:
INSTALLED_APPS = [ "django_ghost", ]
-
Run
python manage.py migrate
to create the NATS organizationals models
-
Create a development environment (requires docker & docker-compose):
make docker-up
-
Run tests and generate a coverage report:
make pytest
-
Run
black
linter:make lint
GHOST_SYNC_MODEL
(default: return value of django.contrib.auth.get_user_model()
)
GHOST_NEWSLETTER_IDS
(default: []) - newsletter ids to subscribe to
GHOST_ADMIN_API_APP_ID
GHOST_ADMIN_API_APP_SECRET
GHOST_API_URL
(default: "http://localhost
or $GHOST_API_URL
environment var)