Friday, December 27, 2019

Re: angular setup for django (routes not working)

you doing something strange.
usually, when you want to setup angluar with django, you just using `ng serve` to handle all the interface, and just use django for data and api. it's not a good idea to render angular app with django

On Thursday, December 26, 2019 at 4:05:14 PM UTC+3, nitish kumar wrote:

I am trying to integrate angular8 with Django (2.2.4).

Django side:

URL and view will load angular 'index.html'


some router-links.
based on URL pattern page is getting loaded.

problem statement:

if host only angular code using 'ng serve' router-link only load's particular component instead of loading all links in the index.html file
but when I host in Django router-link is loading the entire page again (i can see this in developers tools network tab)

can some please help..

You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

No comments:

Post a Comment