Registry / web-framework / openedx-django-require

openedx-django-require

JSON →
library3.0.0pypypiunverified

A Django staticfiles post-processor for optimizing JavaScript with RequireJS. Version 3.0.0 is the latest; development appears to be in maintenance mode with sporadic releases.

pip install openedx-django-require
INSTALL
IMPORT
SIG · OPENEDX-DJANGO-REQ
O
openedx-django-require
web-frameworkpythonv3.0.0
Install
1.6s avg
Import
—
Disk
24MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v3.0.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 26.4MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 27MB
24MB installed
● package 24MB
Code
Verified usage

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

OPTIMIZER
✓ from require import OPTIMIZER
✗ from require.settings import OPTIMIZER

Add 'require' to INSTALLED_APPS and set the staticfiles storage to the optimized one.

INSTALLED_APPS = [ ... 'require', ] STATICFILES_STORAGE = 'require.storage.OptimizedStaticFilesStorage' # Optional: configure build profile path REQUIRE_BUILD_PROFILE = 'path/to/build.js'
Debug
Known issues
breakingIn version 2.x, the staticfiles storage was named 'require.storage.OptimizedCachedStaticFilesStorage'. This was removed in 3.0. Use 'require.storage.OptimizedStaticFilesStorage' instead.
fix
Change STATICFILES_STORAGE to 'require.storage.OptimizedStaticFilesStorage'.
affects: >=3.0.0
deprecatedThe management command `compress_require` has been deprecated in favor of Django's native `collectstatic` with the optimized storage.
fix
Use `python manage.py collectstatic` instead of `python manage.py compress_require`.
affects: >=2.0.0
gotchaThe `REQUIREJS_BASE_URL` setting is relative to STATIC_URL. If STATIC_URL is not set correctly, the optimizer may fail to find files.
fix
Ensure STATIC_URL is properly configured in your Django settings.
affects: all
Upgrade
Version history
3.0.0latest on PyPI · released Jun 5, 2025
Audit
Dependencies
DjangorequiredRequired; integrates with Django's staticfiles system.
requirejsoptionalNode.js dependency; used during optimization.
Agent activity
4 hits · last 30 days
node
4
Resources
openedx-django-require — pip install openedx-django-require · libregistry