title: Dealing with Django model forms + REST Framework with Angularjs Single Page Application
body: <p>I'm trying to implement a <a href="http://en.wikipedia.org/wiki/Single-page_application" rel="nofollow">SPA</a> in my existing Django project with <a href="https://angularjs.org/" rel="nofollow">Angularjs</a>. I have setup the start of a API using <a href="http://www.django-rest-framework.org/" rel="nofollow">Django Rest Framework</a> to retrieve my data in angular.</p>
  
  <p>Some of my django model forms have a lot of complexity in them and would love to somehow pass it to the client side.</p>
  
  <p>I could be wrong here but since I'm setting this project up as a SPA, once I send the user to the project from my django <code>urls.py</code>, then the angular routing via <code>$routeProvider</code> take over and talk to all my angular stuff to get data (controllers, services, etc.,) via the REST api. This then prevents me from sending my form over via context.</p>
  
  <p>Every example I've seen with angularjs and django forms always explicitly writes out each field in the form. Is there anyway for me to get my django model form that has a bunch of code in its <code>__init__</code> method, over to the client side without having to set each field manually?</p>