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_MEMBER_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.1.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

django_ghost-0.1.0-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_ghost-0.1.0.tar.gz
  • Upload date:
  • Size: 9.9 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.1.0.tar.gz
Algorithm Hash digest
SHA256 e4a93a2a817cceb3877a9cae1b3bcfc70ff2270a2f8cb0cda18b7e1231400635
MD5 ff3c884ea300e8ce08727c0399ba5cf0
BLAKE2b-256 b10ab02fee20ca3c8a1abb3227bca2a00a811cb5fb043b20ad712a7e2f813497

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_ghost-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.2 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c39cbc5fa3d8ddb35316fee15b7a87ceb99b6d33bbb43689cecd5881c45351c9
MD5 0245972ce5db8dbbd0f89a716214cb0a
BLAKE2b-256 9698c254de44aaf27a439ff944589201cce2b096a727386a3a5087473162a622

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