title: Django csrf token + Angularjs
body: <p>I have django running on an apache server using mod_wsgi, as well as an angularjs app served directly by apache, not by django. I would like to make POST calls to the django server (running rest_framework) but I am having problems with the csrf token. </p>
  
  <p>Is there someway to set the token from the server without putting <code>{% csrf token %}</code> as part of the template (since these pages aren't going through django)? </p>
  
  <ol>
  <li>I would like to be able to get a csrf token through a GET request as a cookie.</li>
  <li>I would like to be able to then make POST requests to the django server with the csrf token cookie value.</li>
  </ol>