Registry / web-framework / edx-django-sites-extensions

edx-django-sites-extensions

JSON →
library6.0.0pypypiunverified

Custom extensions for the Django sites framework, primarily used in the Open edX platform. Current version is 6.0.0, released in 2024. Release cadence is irregular, with occasional minor and patch releases.

pip install edx-django-sites-extensions
INSTALL
IMPORT
SIG · EDX-DJANGO-SITES-E
E
edx-django-sites-extensions
web-frameworkpythonv6.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SiteConfigurationModel
✓ from django_sites_extensions.models import SiteConfigurationModel
✗ from django_sites_extensions.models import SiteConfigurationModel

Retrieve or create a SiteConfigurationModel for the current site and set a key.

from django.contrib.sites.models import Site from site_config_client.models import SiteConfigurationModel site = Site.objects.get_current() config, created = SiteConfigurationModel.objects.get_or_create(site=site) config.values = {'key': os.environ.get('SAMPLE_KEY', 'default')} config.save()
Debug
Known issues
breakingVersion 4.0.0 dropped support for Django 2.2 and earlier. Upgrade your Django version if pinning to older versions.
fix
Upgrade to Django 3.2+ and update to edx-django-sites-extensions>=4.0.0.
affects: <4.0.0
deprecatedPython 3.8 support was dropped in version 5.1.0. Python 3.8 users must stay on <5.1.0.
fix
Use Python 3.9+ or pin to <5.1.0.
affects: 5.1.0+
gotchaThe library is tightly coupled to Open edX and may not be directly usable in standalone Django projects without additional configuration.
fix
Ensure you have the required Open edX app set up, or use django.contrib.sites directly.
affects: all
Upgrade
Version history
6.0.0latest on PyPI · released Mar 11, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
34
OpenAI (training)
1
Resources
edx-django-sites-extensions — pip install edx-django-sites-extensions · libregistry