Django Ghost is a Django app to sync a Django model with Ghost CMS newsletter subscribers
Project description
Django Ghost
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
Contributor's Guide
-
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
Settings
Basic Settings
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django_ghost-0.3.0.tar.gz
.
File metadata
- Download URL: django_ghost-0.3.0.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4230822b0a8fa2ac9d5b1fabed762b61681b3a567fce6f5592fd2d89d9971e1b |
|
MD5 | e4c18c3c5eb1f485385eb6b75e5b9665 |
|
BLAKE2b-256 | 4b41ffd139db87988bb039b988a4c0f800bde5fb5ac089f38b61c09441789878 |
File details
Details for the file django_ghost-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: django_ghost-0.3.0-py3-none-any.whl
- Upload date:
- Size: 182.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad7914391c6b7e645f5703372399a324cbf03415913ad4cf8e0bd793de113117 |
|
MD5 | 7a7ba00ca7007410fc0710d8edfc6a09 |
|
BLAKE2b-256 | 3fa87073110b4a94df8e15c0b4209050f234b95b5d2202ba34d7b36a5c75e4c6 |