Skip to main content

A platform for creating and delivering learning materials via email within a Django application. It provides tools for content management, user role-based administration, and scheduler integration for automated content delivery.

Project description

Django Email Learning Logo

Django Email Learning

A Django package for creating email-based learning platforms with IMAP integration and React frontend components.

Sponsorship

Support our open-source work and community projects by sponsoring us through GitHub Sponsors. Depending on your sponsorship tier, we can feature your logo and link on the project’s README and documentation.

Sponsor us

What is django-email-learning?

django-email-learning is an open-source Django app, designed to provide a complete email-based learning platform. It is inspired by the Darsnameh email-learning service, which unfortunately shut down in July 2017. This library aims to revive that concept and make it accessible to anyone who wants to launch a similar service.

If you find this project useful, a ⭐ on GitHub helps others discover it.

Want to try it online first? Create a free account on InboxAcademy, our hosted platform built on top of django-email-learning.

Why an email learning platform?

An email learning platform is a type of e-learning system where course content is delivered directly to learners’ inboxes. Platform admins can create courses, lessons, and quizzes, and configure the timing rules that determine when each next lesson or quiz is sent.

The system exposes management commands and/or API endpoints that can be triggered by cron jobs or cloud schedulers to:

  • Track learner progress

  • Send lessons and quizzes via email

  • Handle automated transitions between course steps

Additionally, the platform can issue online completion certificates that learners can verify using a QR code.

Why use email for e-learning?

While modern e-learning platforms often rely heavily on video content and complex web interfaces, email remains a powerful and inclusive channel. Some of the reasons:

  • Low bandwidth requirement: Email works well in regions with slow or unstable internet.

  • High accessibility: No need to install apps or log into a portal—lessons arrive directly in the inbox.

  • Resilience to censorship: Emails are often less likely to be blocked than certain websites or platforms under restrictive governments.

  • Simplicity: Email is universal, familiar, and works on virtually any device.

Documentation

Comprehensive documentation is available at django-email-learning.readthedocs.io, including:

  • Installation Guide: Step-by-step setup instructions
  • Platform Management: Creating organizations, courses, and managing learners
  • Technical Reference: Management commands and configuration
  • Usage Examples: Real-world implementation scenarios

Installation

Quick Start

The fastest way to get a working development environment is the interactive setup command:

pip install django-email-learning
django-email-learning-init

This sets up a new Django project with django_email_learning pre-configured — virtual environment, secrets, migrations, and a superuser — in one go. See the Installation Guide for the full walkthrough.

Manual Installation

For existing Django projects, follow these steps.

1. Install the Package

pip install django-email-learning

2. Add to INSTALLED_APPS

Add django_email_learning to your INSTALLED_APPS in the Django settings file:

INSTALLED_APPS = [
    ...
    'django_email_learning',
]

3. Configure Settings

Add the required configuration for the site base URL in your Django settings:

DJANGO_EMAIL_LEARNING = {
    "SITE_BASE_URL": "<YOUR_SITE_BASE_URL_STARTING_WITH_HTTP>",
    "ENCRYPTION_SECRET_KEY": "<LONG_RANDOM_STRING>",
    "JWT_SECRET_KEY": "<LONG_RANDOM_STRING>",
}

ENCRYPTION_SECRET_KEY should be a long random string used to protect sensitive values such as stored API Keys.

4. Configure Media Files

This app uses Django's MEDIA files to save organization logos. Ensure your media settings are configured correctly. See the MEDIA_URL setting for details.

5. Run Migrations

python manage.py migrate

6. Add URLs

Include the app URLs in your main Django URLs configuration:

from django.urls import path, include
from django_email_learning import urls as email_learning_urls

urlpatterns = [
    ...
    path('your_preferred_path/', include(email_learning_urls, namespace='django_email_learning')),
]

The platform will be accessible at your_preferred_path/platform/.

Access Control Notes

  • Platform Access: You need to be logged in to access the /platform sub-URL, which is used for managing courses and viewing learner progress.

Usage

Newsletters

django-email-learning includes a built-in newsletter system. Platform admins can create newsletters per organisation, grow a subscriber list, and schedule email campaigns (sendouts) that are delivered automatically. See the Newsletter documentation for the full configuration reference and usage guide.

Optional: auto-subscribe on course enrollment

Link a newsletter to a course in the platform UI (or via API). When a learner enrolls in that course they are automatically subscribed to the linked newsletter. Learners have the option to opt out by unchecking the subscription checkbox during enrollment.

Content Delivery

This app uses the email backend defined in Django settings to deliver course content. Assuming you have active courses and enrollments, you need to schedule a job that runs the content delivery management command periodically (e.g., using cron or a cloud scheduler).

Execute the content delivery job using:

python manage.py deliver_contents

You can also trigger this job via API, which is useful when running from an external scheduler (for example, cloud scheduler services):

GET /your_preferred_path/api/jobs/deliver_contents/
Authorization: Bearer <API_KEY>

This endpoint requires an API key. You can generate and manage API keys from Platform Settings > API Keys in the platform UI.

Contributing

We welcome contributions! Please read our Contributing Guide to learn about our development process, how to set up the development environment, and how to submit pull requests.

License

This project is licensed under the BSD 3-Clause License - see the LICENSE file for details.

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

django_email_learning-2.4.0.tar.gz (796.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_email_learning-2.4.0-py3-none-any.whl (945.4 kB view details)

Uploaded Python 3

File details

Details for the file django_email_learning-2.4.0.tar.gz.

File metadata

  • Download URL: django_email_learning-2.4.0.tar.gz
  • Upload date:
  • Size: 796.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.14.3 Darwin/25.5.0

File hashes

Hashes for django_email_learning-2.4.0.tar.gz
Algorithm Hash digest
SHA256 a2dcb3a567c0feea6740f10afda4ed3983cd3afdd83572a785818d990c83e40a
MD5 6bc815a0250d95c7cf07cefb415cd90e
BLAKE2b-256 9bba011993174b7c5fb0c883f907def1b48d816674f608f846b8357c30c40bfb

See more details on using hashes here.

File details

Details for the file django_email_learning-2.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_email_learning-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d0a60fc90abaf668c3812aa3810785b7fe9f4f38c55666422e728a2d08f8a7e
MD5 7d0483b6d32e76ca630cc873dd7f2e93
BLAKE2b-256 ca1a6848def9a14108843e33374268f9a860e9a33fabb765966c011a923b7eaa

See more details on using hashes here.

Supported by

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