Skip to main content

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

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-node-assets-0.9.4.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

django_node_assets-0.9.4-py2-none-any.whl (6.1 kB view details)

Uploaded Python 2

File details

Details for the file django-node-assets-0.9.4.tar.gz.

File metadata

  • Download URL: django-node-assets-0.9.4.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for django-node-assets-0.9.4.tar.gz
Algorithm Hash digest
SHA256 c8a37bad6dc9f2cc7a7eecff3eee2d41a2bb3104e39c03efeddd8a7b27ed39cf
MD5 cc09f01710e974332fd5aac8da8205ad
BLAKE2b-256 e18d8af88527e5d4e6a619d761d438c28b95df58148572830f8da9985080d057

See more details on using hashes here.

File details

Details for the file django_node_assets-0.9.4-py2-none-any.whl.

File metadata

File hashes

Hashes for django_node_assets-0.9.4-py2-none-any.whl
Algorithm Hash digest
SHA256 c994d3dd30b1c6c55a204bcc98629f58084ec0bdf0db3935cf12b20e3362a088
MD5 fc606a13a4e681663e8a6476180dfdf5
BLAKE2b-256 fea1bb0307279427f84d252ca840a37a2eb21fe81f0196042320c0b7e0823e3e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page