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.3.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

django_node_assets-0.9.3-py2-none-any.whl (5.8 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for django-node-assets-0.9.3.tar.gz
Algorithm Hash digest
SHA256 3ee4eee9d8accffa9b91ef303f5ffe9392564a312d58b985fcf7d3a0f81c3c48
MD5 a1d5a37f95cf43fe0aa766e31715087c
BLAKE2b-256 cb0a0785a633d3d3cf6d7d678ea0f47c97df4959a34bb00feb35e394444e2f83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_node_assets-0.9.3-py2-none-any.whl
Algorithm Hash digest
SHA256 c16e180e3e6615f3f10a30c2f7bda8e5f6eea48fd2d77e3141b0cc4eaf715e36
MD5 b97c956997f5998c8ceacc2cd4c0649e
BLAKE2b-256 e6ba040e68b136373ef843ae4555fccf8e5ece17e29b4f09b7b51a41cd0d8eb7

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