Skip to main content

Django Email Learning Logo

Django Email Learning

Build email-based learning platforms with Django.

Django Email Learning is an open-source Django application that provides the foundation for building email-based learning platforms. Create courses, schedule lessons, deliver quizzes, track learner progress, and issue verifiable completion certificates — all through an email-first learning experience.

Whether you're building an educational platform, an internal training system, or a specialized learning solution, Django Email Learning gives you a foundation to build upon.

Try it: Inbox Academy is a hosted learning platform built on Django Email Learning. Start a trial and experience an email-based course firsthand.

Documentation: django-email-learning.readthedocs.io

Installation: pip install django-email-learning


Why email-based learning?

Traditional e-learning platforms often require learners to visit a website, log into an account, or install an application to access their learning materials.

Email-based learning takes a different approach: deliver learning experiences through a channel people already use.

  • Low bandwidth: Text-based lessons require very little data and work well with slow or unstable internet connections.
  • No additional app or account: Learners receive lessons directly in their inbox without needing another platform login.
  • Accessible across devices: Email works on virtually any device with an email client.
  • Resilience in restricted environments: Email can provide an alternative learning channel in environments where access to websites and other platforms is limited.
  • Learning at your own pace: Scheduled delivery helps learners progress through structured learning journeys without having to remember to visit a platform.

What can you build?

Django Email Learning provides the core components for building an email-based learning platform.

  • Courses and lessons: Organize educational content into structured courses and learning journeys.
  • Automated content delivery: Schedule lessons and quizzes based on configurable timing rules.
  • Quizzes and assessments: Deliver quizzes and collect learner responses.
  • Progress tracking: Track learner progress and automate transitions between course steps.
  • Completion certificates: Generate online certificates with QR codes for verification.
  • Newsletters: Manage organization-specific subscriber lists and schedule email campaigns.
  • IMAP integration: Integrate email-based interactions with the platform.
  • API and automation: Trigger platform operations through API endpoints and Django management commands.
  • Frontend components: Use the included React components to build platform interfaces.

Sponsorship

Django Email Learning is an open-source project maintained by AvaCode Solutions.

Maintaining an open-source platform takes time and resources. Your sponsorship helps us continue improving the project, maintaining its documentation, and making email-based learning technology accessible to more developers and organizations.

We welcome support from individuals and companies interested in the future of open-source educational technology.

Depending on your sponsorship tier, we offer:

  • Recognition on the project README and documentation.
  • Company logo and website placement.
  • Visibility in project updates.

Become a sponsor on GitHub

Every contribution helps keep the project moving forward.

Need Help?

Building a platform with Django Email Learning? If you need help with implementation, customization, or integration, get in touch with AvaCode Solutions.

We'd be happy to discuss your project.

Documentation

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

  • Installation Guide: Set up a new project or integrate the package into an existing Django application.
  • Platform Management: Create organizations, courses, and manage learners.
  • Technical Reference: Explore management commands, API endpoints, and configuration.
  • Usage Examples: Learn how to configure and operate the platform.

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, including a virtual environment, secrets, migrations, and a superuser.

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

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 organization, grow a subscriber list, and schedule email campaigns (sendouts) that are delivered automatically.

See the Newsletter documentation for configuration and usage details.

Optional: Auto-subscribe on Course Enrollment

Link a newsletter to a course in the platform UI or through the API. When a learner enrolls in that course, they are automatically subscribed to the linked newsletter. Learners can opt out by unchecking the subscription checkbox during enrollment.

Content Delivery

The app uses the email backend defined in Django settings to deliver course content.

Assuming you have active courses and enrollments, 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:

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

Contributions are welcome!

Whether you're fixing bugs, improving documentation, suggesting features, or contributing code, we'd love to hear from you.

Please read our Contributing Guide to learn about our development process, 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.

Metadata

Release files for django-email-learning 7.25.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-email-learning 7.25.0
File Size Uploaded Provenance Actions
django_email_learning-7.25.0.tar.gz 1.5 MB Without provenance Details for django_email_learning-7.25.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-email-learning 7.25.0
File Interpreter ABI Platform Actions
django_email_learning-7.25.0-py3-none-any.whl Python 3 none any Details for django_email_learning-7.25.0-py3-none-any.whl

Total release size: 3.3 MB

Release files / django_email_learning-7.25.0.tar.gz

Download URL django_email_learning-7.25.0.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
9abbb77e52af5ed2f4721ad13bb173c70ec895fc895d9d75cddc09fe54cae5f0
BLAKE2b-256 checksum
How to use checksums
a46bd3ba00695e0ec7f43dadc136a848508ae44d15bfd5ce89da6b94903ed6b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.14.7 Darwin/25.6.0

Release files / django_email_learning-7.25.0-py3-none-any.whl

Download URL django_email_learning-7.25.0-py3-none-any.whl
Size 1.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
8101f392f0b91360a04213d4f754046c24f57b0b4fcd1309477b595ee58ac713
BLAKE2b-256 checksum
How to use checksums
f574c56e7d3efe6cde847af0863e775c9169a65b0ef454bac98e139de01af3e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.14.7 Darwin/25.6.0

Security for django-email-learning 7.25.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

7.25.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page