{"id":8975,"library":"enmerkar","title":"Enmerkar","description":"Enmerkar is a Python library providing utilities for integrating Babel, a powerful internationalization and localization toolkit, with Django web applications. It is a fork of `django-babel` and is currently at version 0.7.1, offering compatibility with modern Django and Python versions. Releases are infrequent but target essential Django updates.","status":"active","version":"0.7.1","language":"python","source_language":"en","source_url":"https://github.com/Zegocover/enmerkar","tags":["Django","Babel","localization","internationalization","i18n","l10n"],"install":[{"cmd":"pip install enmerkar","lang":"bash","label":"Install Enmerkar"}],"dependencies":[{"reason":"Core framework for integration (requires >=2.2).","package":"Django"},{"reason":"Internationalization and localization toolkit (requires >=2.0).","package":"Babel"}],"imports":[{"wrong":"from enmerkar import LocaleMiddleware","symbol":"LocaleMiddleware","correct":"from enmerkar.middleware import LocaleMiddleware"}],"quickstart":{"code":"# In your Django settings.py\n\nINSTALLED_APPS = [\n    # ... other apps\n    'enmerkar',\n]\n\nMIDDLEWARE = [\n    # ... other middleware, e.g., SessionMiddleware\n    'enmerkar.middleware.LocaleMiddleware',\n]\n\n# Required Babel settings\nBABEL_DEFAULT_LOCALE = 'en_US'\nBABEL_DEFAULT_TIMEZONE = 'Europe/London'\n\n# In a Django template (e.g., mytemplate.html)\n# {% load babel %}\n# <p>Formatted Date: {{ datetime_obj|babeldate:'full' }}</p>\n# <p>Formatted Time: {{ datetime_obj|babeltime:'long' }}</p>\n# <p>Formatted Number: {{ 12345.67|babelnumber }}</p>","lang":"python","description":"Configure Enmerkar by adding it to `INSTALLED_APPS` and its `LocaleMiddleware` to `MIDDLEWARE`. Crucially, define `BABEL_DEFAULT_LOCALE` and `BABEL_DEFAULT_TIMEZONE` in your `settings.py`. Then, use `{% load babel %}` in your templates to access Babel's formatting filters for dates, times, and numbers."},"warnings":[{"fix":"Ensure your project runs on Python 3.5+ and Django 2.2+ before upgrading to Enmerkar 0.7.1 or newer. Downgrade Enmerkar or upgrade your environment.","message":"Enmerkar dropped support for Python < 3.5 and Django < 2.2 in version 0.7.1.","severity":"breaking","affected_versions":">=0.7.1"},{"fix":"Uninstall `django-babel` and install `enmerkar`. Update all references in `settings.py` (e.g., `INSTALLED_APPS`, `MIDDLEWARE`) and any direct Python imports from `django_babel` to `enmerkar`.","message":"The package was renamed from `django-babel` to `enmerkar` in version 0.7.0.","severity":"breaking","affected_versions":">=0.7.0"},{"fix":"Always define `BABEL_DEFAULT_LOCALE` (e.g., 'en_US') and `BABEL_DEFAULT_TIMEZONE` (e.g., 'Europe/London') in your Django `settings.py` to prevent `ImproperlyConfigured` errors.","message":"The `BABEL_DEFAULT_LOCALE` and `BABEL_DEFAULT_TIMEZONE` settings are mandatory for Enmerkar.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"search_vec":"'0.7.1':35 'applic':21 'babel':11,29,53 'compat':37 'current':32 'django':19,28,40,50,52 'django-babel':27 'enmerkar':1,2 'essenti':49 'fork':25 'i18n':56 'infrequ':46 'integr':10 'internation':14,55 'l10n':57 'librari':6 'local':16,54 'modern':39 'offer':36 'power':13 'provid':7 'python':5,42 'releas':44 'target':48 'toolkit':17 'updat':51 'util':8 'version':34,43 'web':20","created_at":"2026-04-16T18:47:49.557363+00:00","updated_at":"2026-04-16T18:47:49.557363+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/tmpvb88a_9c/venv/lib/python3.12/site-packages/enmerkar/__init__.py\", line 2, in <module>\n    from pkg_resources import get_distribution\nModuleNotFoundError: No module named 'pkg_resources'"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.7.1","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/Zegocover/enmerkar","docs":null,"changelog":null,"pypi":"https://pypi.org/project/enmerkar/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework","aws","database"],"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}}