Skip to main content

Django-node-assets

The Django application that allows install and serve assets via Node.js package manager infrastructure.

Installation

$ pip install django-node-assets

Configuration

Add ‘django_node_assets’ to your INSTALLED_APPS:

INSTALLED_APPS = [
    ...
    'django_node_assets',
]

Add NodeModulesFinder to STATICFILES_FINDERS:

STATICFILES_FINDERS = [
    ...
    'django_node_assets.finders.NodeModulesFinder',
]

Specify absolute path to the package.json file:

NODE_PACKAGE_JSON = '/var/assets/package.json'

Specify the absolute path to a directory where the nmpinstall management command will install assets:

NODE_MODULES_ROOT = '/var/assets/node_modules'

Specify path to the nmp executable (optional)

NODE_PACKAGE_MANAGER_EXECUTABLE = '/usr/local/bin/npm'

Usage

Call the nmpinstall management command to install assets specified in the package.json

$ python manage.py npminstall

Metadata

Release files for django-node-assets 0.9.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-node-assets 0.9.3
File Size Uploaded Provenance Actions
django-node-assets-0.9.3.tar.gz 3.1 kB Without provenance Details for django-node-assets-0.9.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-node-assets 0.9.3
File Interpreter ABI Platform Actions
django_node_assets-0.9.3-py2-none-any.whl Python 2 none any Details for django_node_assets-0.9.3-py2-none-any.whl

Total release size: 9.0 kB

Release files / django-node-assets-0.9.3.tar.gz

Download URL django-node-assets-0.9.3.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3ee4eee9d8accffa9b91ef303f5ffe9392564a312d58b985fcf7d3a0f81c3c48
BLAKE2b-256 checksum
How to use checksums
cb0a0785a633d3d3cf6d7d678ea0f47c97df4959a34bb00feb35e394444e2f83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Release files / django_node_assets-0.9.3-py2-none-any.whl

Download URL django_node_assets-0.9.3-py2-none-any.whl
Size 5.8 kB
Tags Python 2
SHA-256 checksum
How to use checksums
c16e180e3e6615f3f10a30c2f7bda8e5f6eea48fd2d77e3141b0cc4eaf715e36
BLAKE2b-256 checksum
How to use checksums
e6ba040e68b136373ef843ae4555fccf8e5ece17e29b4f09b7b51a41cd0d8eb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Security for django-node-assets 0.9.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page