Skip to main content

Let Django play well with AngularJS

Project description

============== django-angular ==============

Let Django play well with AngularJS

0.7.13 (latest)

  • Change for Form’s inheriting from NgFormBaseMixin using field_css_classes as dict: CSS classes specified as default now must explicitly be added to the fields defining their own CSS classes. Before this was implicit.

  • Added AngularJS directive djng-bind-if. See docs for details.

  • Reverted fix for FireFox checkbox change sync issue (#135) since it manipulated the DOM. Instead added scope.$apply() which fixes the issue on FF.

  • In BS3 styling, added CheckboxFieldRenderer to CheckboxInlineFieldRenderer (the default), so that forms with multiple checkbox input fields can be rendered as block items instead of inlines.

  • In BS3 styling, added RadioFieldRenderer to RadioInlineFieldRenderer (the default), so that forms with multiple radio input fields can be rendered as block items instead of inlines.

  • Fixed ‘classic form’ issue whereby ngModel was not being added to select of textarea elements, so returned errors where not displayed.

Demo on how to combine Django with Angular’s form validation.

Detailed documentation on ReadTheDocs.

Please participate at this survey on naming conventions!

Please drop me a line, if and where you use this project.

Features

  • Seamless integration of Django forms with AngularJS controllers.

  • Client side form validation for Django forms using AngularJS.

  • Let an AngularJS controller call methods in a Django view - kind of Javascript RPCs.

  • Manage Django URLs for static controller files.

  • Three way data binding to connect AngularJS models with a server side message queue.

  • Perform basic CRUD operations.

Build status

Build Status Downloads

License

Copyright © 2015 Jacob Rief.

MIT licensed.

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-angular-0.7.13.tar.gz (32.5 kB view hashes)

Uploaded Source

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