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.3.0.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

django_ghost-0.3.0-py3-none-any.whl (182.6 kB view details)

Uploaded Python 3

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

Hashes for django_ghost-0.3.0.tar.gz
Algorithm Hash digest
SHA256 4230822b0a8fa2ac9d5b1fabed762b61681b3a567fce6f5592fd2d89d9971e1b
MD5 e4c18c3c5eb1f485385eb6b75e5b9665
BLAKE2b-256 4b41ffd139db87988bb039b988a4c0f800bde5fb5ac089f38b61c09441789878

See more details on using hashes here.

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

Hashes for django_ghost-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad7914391c6b7e645f5703372399a324cbf03415913ad4cf8e0bd793de113117
MD5 7a7ba00ca7007410fc0710d8edfc6a09
BLAKE2b-256 3fa87073110b4a94df8e15c0b4209050f234b95b5d2202ba34d7b36a5c75e4c6

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