{"id":26923,"library":"edx-django-sites-extensions","title":"edx-django-sites-extensions","description":"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.","status":"active","version":"6.0.0","language":"python","source_language":"en","source_url":"https://github.com/openedx/edx-django-sites-extensions","tags":["django","sites","open-edx","configuration"],"install":[{"cmd":"pip install edx-django-sites-extensions","lang":"bash","label":"Standard install"}],"dependencies":[],"imports":[{"wrong":"from django_sites_extensions.models import SiteConfigurationModel","symbol":"SiteConfigurationModel","correct":"from django_sites_extensions.models import SiteConfigurationModel"}],"quickstart":{"code":"from django.contrib.sites.models import Site\nfrom site_config_client.models import SiteConfigurationModel\n\nsite = Site.objects.get_current()\nconfig, created = SiteConfigurationModel.objects.get_or_create(site=site)\nconfig.values = {'key': os.environ.get('SAMPLE_KEY', 'default')}\nconfig.save()","lang":"python","description":"Retrieve or create a SiteConfigurationModel for the current site and set a key."},"warnings":[{"fix":"Upgrade to Django 3.2+ and update to edx-django-sites-extensions>=4.0.0.","message":"Version 4.0.0 dropped support for Django 2.2 and earlier. Upgrade your Django version if pinning to older versions.","severity":"breaking","affected_versions":"<4.0.0"},{"fix":"Use Python 3.9+ or pin to <5.1.0.","message":"Python 3.8 support was dropped in version 5.1.0. Python 3.8 users must stay on <5.1.0.","severity":"deprecated","affected_versions":"5.1.0+"},{"fix":"Ensure you have the required Open edX app set up, or use django.contrib.sites directly.","message":"The library is tightly coupled to Open edX and may not be directly usable in standalone Django projects without additional configuration.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'2024':26 '6.0.0':23 'cadenc':28 'configur':42 'current':20 'custom':6 'django':3,10,37 'edx':2,18,41 'edx-django-sites-extens':1 'extens':5,7 'framework':12 'irregular':30 'minor':33 'occasion':32 'open':17,40 'open-edx':39 'patch':35 'platform':19 'primarili':13 'releas':24,27,36 'site':4,11,38 'use':14 'version':21","created_at":"2026-05-01T17:43:35.103305+00:00","updated_at":"2026-05-01T17:43:35.103305+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/tmptdtrvj5i/venv/lib/python3.12/site-packages/django_sites_extensions/models.py\", line 6, in <module>\n    from django.contrib.sites import models\n  File \"/tmp/tmptdtrvj5i/venv/lib/python3.12/site-packages/django/c"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/openedx/edx-django-sites-extensions","docs":null,"changelog":null,"pypi":"https://pypi.org/project/edx-django-sites-extensions/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework","database","auth-security"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}