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


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

File details

Details for the file django-rest-framework-angular-resource-generator-0.7.0.tar.gz.

File metadata

File hashes

Hashes for django-rest-framework-angular-resource-generator-0.7.0.tar.gz
Algorithm Hash digest
SHA256 31eb76a8c7381977f14c7a220453645679d9f28bbca8ff1c2c0e5db50845c536
MD5 030a5575f073bf0df99b627af3d48740
BLAKE2b-256 20db8030261c013ef626de6c1b8767bea0519c6c2ab8a934abddd1b6ae4564fb

See more details on using hashes here.

File details

Details for the file django_rest_framework_angular_resource_generator-0.7.0-py2-none-any.whl.

File metadata

File hashes

Hashes for django_rest_framework_angular_resource_generator-0.7.0-py2-none-any.whl
Algorithm Hash digest
SHA256 5d4c4b0ea234e955950d955a600ea53db930245ced7133e637661cdb8b0a7292
MD5 417bd35fcf458764b56675bddcc96c7f
BLAKE2b-256 a920a346f5178c77b7b09b8cbaabf74ad5b9677085ad16d0551d219e82dc1de1

See more details on using hashes here.

Supported by

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