Skip to main content

Angular resource generator for DRF

Project description

Command for django that generates AngularJS services, compatible with ngResource.$resource, that provide client-side representation of the models and remote methods in angular-application. For more info:

Quick start

  • install using pip:

pip install django-rest-framework-angular-resource-generator
  • add “drf_ng_generator” to your INSTALLED_APPS setting like this:

  • run next command to create ngResource-file from drf views:

python ./ drf_ng ./path-to-my-static-dir/resources.js

or (to generate the coffee-script file):

python ./ drf_ng ./path-to-my-static-dir/

For more info:

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

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page