title: Run Angular SPA inside Django
body: <p>We had a standalone frontend server, which just served static AngularJS files. For SEO, we want to use a service such as Prerender, and hence need to run a server which can route URLs.<br>
  We are planning to Django backend with Prerender middleware for the same(since have a server running Python).</p>
  
  <p>I can serve static file for all URLs using:  </p>
  
  <pre><code>    urlpatterns += patterns('',
                      url(r'^$', 'django.views.static.serve',
                          kwargs={'path': 'index.html',
                                  'document_root':settings.STATIC_ROOT}),
      )
  </code></pre>
  
  <p>Now, my question is:<br>
  1- The Angular app uses local paths such for Static files, such as styles/f.css, what would be the easiest way to serve it(with routing) through Django? Any alternatives to using Django's Static keyword everywhere?<br>
  2- Django doesn't recommend serving static files directly. So, what would you use to serve the SPA through App engine(with the routing)? </p>