Skip to main content

Angular forms for django rest framework

Project description

This repo provides Django mixins and Angular library for rapid development of create/edit dialogs for django rest framework. It depends on Angular5 together with Material UI.

On the django side, extend your Viewset to use AngularFormMixin and optionally configure the mixin by providing either layout information or field defaults (such as css classes).

On angular side, simply point the library to Viewset URL to display either editable dialog or display the form in-page and subscribe to get notification when a resource is created/saved.

Demo and sample source files

See demos at http://mesemus.no-ip.org:12569

docs/demo.png

Installation

Django side:

pip install django-angular-dynamic-forms

Angular side:

npm install –save django-angular-dynamic-forms

and add DjangoFormModule to imports. You will need to provide your own ErrorService for showing communication errors back to the user. See the demo/angular/src/app/mat-error.service.ts for an example implementation.

Project details


Download files

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

Files for django-angular-dynamic-forms, version 0.5.14
Filename, size File type Python version Upload date Hashes
Filename, size django-angular-dynamic-forms-0.5.14.tar.gz (7.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page