Skip to content

cega/django-angular

 
 

Repository files navigation

django-angular

Let Django play well with AngularJS

Build Status PyPI version Python versions Software license Twitter Follow

Breaking News

On 2017-08-14 django-angular version 1.1 has been released.

This version introduces file- and image uploads through Ajax form submissions.

Backward Incompatibility

If you create Angular forms from Django models, nothing changes.

If you create Angular forms using the provided mixin classes, then you must use the corresponding fields as provided by django-angular. This keeps the API cleaner and prevents dynamic class tweaks.

Documentation

Detailed documentation on ReadTheDocs.

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

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.

Future Plans

A next big change to django-angular is to add support for Angular2 and/or 4. This will require additional development time from my side, so please consider to fund this and other upcoming features using Gratipay.

Latest Changes

1.1 (2017-08-17)

  • Instead of adding extra functionality to Django's form fields via inheritance magic, now one must use the corresponding field classes from djng.forms.fields if its own form class inheritis from NgForm or NgModelForm.
  • Added support to upload files and images via Ajax.

License

Copyright © 2017

MIT licensed

About

Let AngularJS play well with Django

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 54.0%
  • JavaScript 40.9%
  • HTML 2.9%
  • CSS 2.2%