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

Uploaded Source

Built Distribution

django_ghost-0.2.9-py3-none-any.whl (132.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_ghost-0.2.9.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.9.tar.gz
Algorithm Hash digest
SHA256 6ac95d8cc236bafa285cf6f517cd1c5581f1b0ddb5607ff5ba9c89d45d881b61
MD5 46f31bd2f35ac8ffe88ddaac5966e860
BLAKE2b-256 56ce8f6b3819dba56715a0b9fff945d7dbd62789e166836996970a7d0a42997d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_ghost-0.2.9-py3-none-any.whl
  • Upload date:
  • Size: 132.8 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.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 a78a0f699b4a627c4d08285522cb4a4c5c1c58243c78ba5ede50afc03b22cf0f
MD5 81b99fd1bc4bbc66b6c7ac2559da51f8
BLAKE2b-256 059949139beb4c3a49b5059f76b766ce8fcf777b1b8be12f867b44c9fb249460

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