Skip to main content

Django Ghost is a Django app to sync a Django model with Ghost CMS newsletter subscribers

Project description

Django Ghost

image image image image image image image image

Automatically sync a Django model with Ghost's member model. Ghost is a CMS for content creators.

  1. pip install django-ghost

  2. Add to your INSTALLED_APPS settings:

    INSTALLED_APPS = [
        "django_ghost",
    ]
    
  3. Run python manage.py migrate to create the NATS organizationals models

Contributor's Guide

  1. Create a development environment (requires docker & docker-compose):

    make docker-up
    
  2. Run tests and generate a coverage report:

    make pytest
    
  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_ghost-0.2.14.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

django_ghost-0.2.14-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

Details for the file django_ghost-0.2.14.tar.gz.

File metadata

  • Download URL: django_ghost-0.2.14.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

Hashes for django_ghost-0.2.14.tar.gz
Algorithm Hash digest
SHA256 748b689635eff0d7a20782e6306bb989b99bd4dc477d33e25ef59467825f7f2f
MD5 a97f16e790308582b8329fba5de77c13
BLAKE2b-256 88ac441da66d8b103819c5ce62bd2c1f157a4696c06062ace3272814cd05c088

See more details on using hashes here.

File details

Details for the file django_ghost-0.2.14-py3-none-any.whl.

File metadata

File hashes

Hashes for django_ghost-0.2.14-py3-none-any.whl
Algorithm Hash digest
SHA256 ad2e74f32b97d6c9e0117560d3419bea0b47f215bf9b6eae528e73b0a039351e
MD5 297808d5501bfed753d5dd5f4d272e7b
BLAKE2b-256 a58bd4f27adaa6dbac80f05cdd53f44d77b2f53553b5d5431bb48c3108d06e26

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page