{"id":23602,"library":"django-settings-export","title":"django-settings-export","description":"Django app that allows you to export certain settings to templates via a context processor. Current version 1.2.1. Low maintenance; last release 2020-06-01.","status":"active","version":"1.2.1","language":"python","source_language":"en","source_url":"https://github.com/jkbrzt/django-settings-export","tags":["django","settings","template-context"],"install":[{"cmd":"pip install django-settings-export","lang":"bash","label":"pip"}],"dependencies":[],"imports":[{"note":"Module name is 'SETTINGS_EXPORT' (all caps). Common mistake: using lowercase.","wrong":"from settings_export import settings_export","symbol":"settings_export","correct":"from SETTINGS_EXPORT.settings_export import settings_export"}],"quickstart":{"code":"# settings.py\nINSTALLED_APPS = [\n    ...\n    'SETTINGS_EXPORT',\n]\n\nTEMPLATES = [\n    {\n        'BACKEND': 'django.template.backends.django.DjangoTemplates',\n        'OPTIONS': {\n            'context_processors': [\n                ...\n                'SETTINGS_EXPORT.settings_export.settings_export',\n            ],\n        },\n    },\n]\n\nSETTINGS_EXPORT = [\n    'DEBUG',\n    'SITE_NAME',\n]\n\n# In template:\n# {{ settings.DEBUG }}","lang":"python","description":"Add 'SETTINGS_EXPORT' to INSTALLED_APPS, add the context processor, and define SETTINGS_EXPORT list."},"warnings":[{"fix":"Use exactly 'SETTINGS_EXPORT' (uppercase).","message":"The app name in INSTALLED_APPS and context processor path is 'SETTINGS_EXPORT' (all caps). Many people mistakenly use 'settings_export' or 'django_settings_export'.","severity":"gotcha","affected_versions":"all"},{"fix":"Use SETTINGS_EXPORT_VARIABLE_NAME to set a unique variable name (e.g., 'my_settings').","message":"The context processor adds all settings from SETTINGS_EXPORT list to the template context under a variable named 'settings' (or custom name via SETTINGS_EXPORT_VARIABLE_NAME). This may conflict with other context processors that also add a 'settings' variable.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Add 'SETTINGS_EXPORT' to INSTALLED_APPS (uppercase).","cause":"Missing SETTINGS_EXPORT in INSTALLED_APPS, or wrong app label.","error":"TemplateDoesNotExist at /"},{"fix":"Set SETTINGS_EXPORT_VARIABLE_NAME = 'exported_settings' or similar to avoid conflict.","cause":"The context processor variable name 'settings' conflicts with Django's built-in 'settings' template tag from django.core.context_processors.","error":"django.template.exceptions.TemplateSyntaxError: 'settings' is not a valid tag or filter"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}