My goal is to create an Angular project from the root of my development server. Files will be completely static with respect to Django, processing of Django templates is not required. The Angular project then calls the resource calls to the Django project located in / api / on the same development server, which then returns the json results created from the view for the Angular project for processing.
I suggested that it would be easy to add the following to the urls.py file:
url(r'^/', 'django.views.static.serve', {
'document_root':'/Users/kyle/Development/project/site/app',
}),
or
+ static("^/$", document_root="/Users/kyle/Development/project/site/app")
To the end of the urls.
With / project / site / app being the directory with Angularjs files.
However, both of them leave me 404 errors.
I can change the structure of the project if there is a more obvious solution.