Organizations¶
Organizations are the top-level containers in Django Email Learning that group courses, learners, and users together. This section provides comprehensive management of organizational structures within your learning platform.
Overview¶
The Organizations section is accessible via the platform interface at /email-learning/platform/organizations/. This area allows platform administrators to create and manage different organizations, each with their own isolated set of courses, content, and user permissions.
Use Cases¶
Organizations are particularly useful for:
- Educational Institutions
Create separate organizations for different departments, schools, or campuses, each managing their own curriculum and learners.
- Corporate Training
Set up organizations for different business units, subsidiaries, or regional offices, allowing decentralized course management.
- Multi-Tenant Platforms
Provide completely isolated learning environments for different clients or customers.
Default Organization¶
When Django Email Learning is first installed, a default organization called “My Organization” is automatically created. This ensures you can immediately start creating courses without additional setup.
You can: - Rename this default organization to match your needs - Use it as your primary organization - Create additional organizations as your platform grows
Creating Organizations¶
To create a new organization:
Navigate to the Organizations section
Click the “Add Organization” button
Fill in the required information: - Name: The organization’s display name - Description: A detailed description of the organization’s purpose - Logo: Upload a logo image (optional)
The organization’s public address (its slug) is generated from the name when it is created. See Organization slug.
Note
Ensure your Django MEDIA_ROOT and MEDIA_URL settings are properly configured to handle logo uploads.
Managing Organizations¶
Organization Details¶
When editing an organization, you can modify:
- Basic Information
Organization name and description
Logo image (supported formats: JPG, PNG, GIF)
Organization Tabs¶
The organization page is split into tabs: General Info, Members, and - when the matching features are enabled for you - Newsletters and API Keys. The page opens on General Info.
To link straight to another tab, append a tab query parameter to the URL:
/organizations/<organization_id>/?tab=members
Accepted values are general_info, members, newsletters, and
api_keys. An unknown value, or one naming a tab you do not have access to,
opens General Info instead.
Organization Actions¶
Each organization in the table displays three action icons:
Icon |
Action |
Description |
|---|---|---|
🌐 Globe |
Public View |
Opens the organization’s public enrollment page where learners can discover and enroll in available courses. This page is accessible without authentication. |
✏️ Edit |
Edit Organization |
Opens the organization edit form where you can modify name, description, logo, and other settings. |
🗑️ Delete |
Delete Organization |
Permanently removes the organization and ALL associated data including courses, learners, enrollments, and content. This action cannot be undone. |
Warning
Deletion is Permanent: Deleting an organization removes all associated courses, learner data, enrollments, and content. Ensure you have backups before proceeding with deletion.
Organization Users and Roles¶
Organizations support role-based access control with three permission levels:
- Admin Role
Full access to all organization features
Can create, edit, and delete courses
Manage learners and enrollments
Modify organization settings
Assign roles to other users
- Editor Role
Create and modify courses
Manage course content and lessons
View and manage learner enrollments
Cannot modify organization settings or user roles
- Viewer Role
Read-only access to courses and learner data
Can view reports and analytics
Cannot create or modify any content
Cannot access organization settings
Creating Organization Users¶
To add a user to an organization: 1. Open the organization details page by clicking its name in the organizations list. 2. You will see the “Organization Users” list, and also a button to add new users. 3. Click the “Add User” button to open the user creation form. 4. Enter the user’s email address and select their role (Admin, Editor, Viewer). 5. Click “Add User” to create the user and send them an invitation email with the instruction to set their password.
Note
If the email address already exists in the system, the existing user will be added to the organization with the specified role.
Important
Django email learning uses Django Auth built-in URLs and views for password resets. Ensure that you have configured those URLs and views correctly in your Django project settings. please check the official Django documentation for more details: https://docs.djangoproject.com/en/6.0/topics/auth/default/#module-django.contrib.auth.views
Public Organization Pages¶
Each public organization has a page at its slug, and each of its public courses a page below it:
/email-learning/public/@<organization_slug>//email-learning/public/@<organization_slug>/courses/<course_slug>/
The organization page:
Lists all publicly available courses for the organization
Allows anonymous users to enroll in courses
Displays organization branding (name, logo, description)
Provides course enrollment forms and information
A host project can serve these pages at a different address, such as the site root
(https://yourdomain.com/@acme/), by mounting the views itself and naming its routes in
the PUBLIC_URL_NAMES setting. See PUBLIC_URL_NAMES.
Organization slug¶
The slug is the organization’s public address. It is generated from the name when the organization is created:
The name is lowercased and reduced to letters, numbers and hyphens: Acme Academy becomes
acme-academy.When that slug is already taken, or is reserved, the first free one of
acme-academy-2,acme-academy-3, … is used instead.A name with nothing left to keep, such as one written entirely in a non-Latin script, becomes
organization(ororganization-2, and so on).Slugs are at most 50 characters long.
A few slugs are reserved so that no organization’s page can pass itself off as the platform’s
own: admin, administrator, api, help, official, platform, public,
staff, support and system. The RESERVED_ORGANIZATION_SLUGS setting replaces
this list.
The slug does not change when the organization is renamed, so links already shared keep working. Staff can change it in the Django admin, where a blank slug is generated again from the current name. Changing a slug breaks links to the old address.
Old addresses¶
Before organizations had slugs, the public pages lived at
/email-learning/public/organizations/<organization_id>/ and
/email-learning/public/organizations/<organization_id>/courses/<course_slug>/. Those
addresses still work: they answer with a permanent (301) redirect to the slug address, keeping
any query string. They redirect only while the organization (and course) is public, and
return 404 otherwise, so a private organization’s slug is never revealed.