Re: angular setup for django (routes not working)

2019-12-30 Thread Andréas Kühne
Hi, You can't have the routes for the frontend and the backend. For example: /clients/1/ in urls.py and in the angular routes. Then it all goes back to who gets the route first. For this example the frontend should have: /clients/:id/ and the backend should: /api/clients/id/ Regards, Andréas

Re: angular setup for django (routes not working)

2019-12-29 Thread nitish kumar
we have a web app which is hosted in apache mod_wsgi. I am trying to update some of the app functionality/UI with angular 8. everything works of but angular routes are not working , which is important for single-page app On Friday, 27 December 2019 20:50:42 UTC+5:30, lemme smash wrote: > > y

Re: angular setup for django (routes not working)

2019-12-27 Thread lemme smash
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 w

angular setup for django (routes not working)

2019-12-26 Thread nitish kumar
Hi I am trying to integrate angular8 with Django (2.2.4). *Django side*: URL and view will load angular 'index.html' *angular:* 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 partic