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.2.13.tar.gz
.
File metadata
- Download URL: django_ghost-0.2.13.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c091429b9b94e049f88b248743bdcb68828f1077d6860f82fafac0cdc9ac2ec |
|
MD5 | d303377d67e261756c4902b49b30f7e0 |
|
BLAKE2b-256 | 947a57a840f0285fb5c55ac4528a81732ec76d5709c7333410dc800a732ca3e7 |
File details
Details for the file django_ghost-0.2.13-py3-none-any.whl
.
File metadata
- Download URL: django_ghost-0.2.13-py3-none-any.whl
- Upload date:
- Size: 12.9 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 | a4213901ae68eee1f229a9c49cdf07c2cb1703f56fa08912b14aba6189730741 |
|
MD5 | 7a75bf3617d87322d0a264962fef41cc |
|
BLAKE2b-256 | b66b39713309662f19d01f843ed6d0cd6f59e36942604af8fc79711635024cdb |