You can tune a little Django.js behaviour using settings. Django.js provide the following optionnal settings:
Specify the jQuery version to use. If not specififed, default to last version.
Django.js provide the following versions:
Serialized URLs names whitelist. If this setting is specified, only named URLs listed in will be serialized.
Serialized URLs names blacklist. It this setting is specified, named URLs listed in will not be serialized.
Serialized namespaces whitelist. If this setting is specified, only URLs from namespaces listed in will be serialized.
Serialized namespaces blacklist. It this setting is specified, URLs from namespaces listed in will not be serialized.
Serialized translations whitelist. If specified, only apps listed in will appear in the javascript translation catalog.
Serialized translations blacklist. If specified, apps listed in will not appear in the javascript translation catalog.
You could have, in your settings.py:
# Exclude my secrets pages from serialized URLs
JS_URLS_EXCLUDE = (
'my_secret_page',
'another_secret_page',
)
# Only include admin namespace
JS_URLS_NAMESPACES = (
'admin',
)
# Only include my apps' translations
JS_I18N_APPS = ('myapp', 'myapp.other')