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: https://github.com/gerasev-kirill/django-rest-framework-angular-resource-generator

Quick start

  • install using pip:
pip install django-rest-framework-angular-resource-generator
  • add “drf_ng_generator” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = (
    ...
    'drf_ng_generator'
)
  • run next command to create ngResource-file from drf views:
python ./manage.py drf_ng ./path-to-my-static-dir/resources.js

or (to generate the coffee-script file):

python ./manage.py drf_ng ./path-to-my-static-dir/resources.coffee

For more info: https://github.com/gerasev-kirill/django-rest-framework-angular-resource-generator

Project details


Release history Release notifications

This version
History Node

0.7.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_rest_framework_angular_resource_generator-0.7.0-py2-none-any.whl (13.8 kB) Copy SHA256 hash SHA256 Wheel 2.7 Sep 14, 2016
django-rest-framework-angular-resource-generator-0.7.0.tar.gz (8.2 kB) Copy SHA256 hash SHA256 Source None Sep 14, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page