I have a DjangoREST-Nginx-Gunicorn build, and I am using angular as the frontend.
This is the first time I work with this stack together, although I'm very familiar with Django.
From what I'm used to, I'm serving pages using render with django templating.
Since I am using REST and angular, the project build is kind of different and I wonder how should I serve the angular app through this stack.
This is my project build
├── client
│ ├── client-app
│ └── index.html
├── gunicorn_start.sh
├── run
│ └── gunicorn.sock
└── server
├── config
├── __init__
├── manage.py
├── __pycache__
├── requirements.txt
├── static
├── urls.py
└── views.py
What I wish to do, is to serve client/index.html and let the angular app handle everything from there on.
What would be the right way to do so?
EDIT:
I have in views.py
def index(request):
return render(request, 'client/index.html')
But I get an exception
TemplateDoesNotExist at /