I am working on Angular5 with Django rest framework.

I am trying to integrate the Django url with angular5. it is working only for index page. and if we change the state by clicking on any Button its working good but on page load it showing "**Page not found (404)**".

The url for index page is:

```
url(r'^$',TemplateView.as_view(template_name="index.html"),name="index")

```

Before load :

[enter image description here](https://i.stack.imgur.com/b7qF1.png)

After Load page:

[enter image description here](https://i.stack.imgur.com/m086B.png)

Cab anyone help me.