[Fixed]-AngularJS and Django: Conflicting routing

1👍

Django have to handle “feed” state same way as “home” state.

url(r'^(feed)?$', "your_app.views.home")

The best way is probably handle all remaining urls by home view and deal with it in angular later. Add this at the last line of your urls.py

url(r'^.*$', "your_app.views.home", name='home'),

And do not forgot activete HTML5 mode

$locationProvider.html5Mode(true);
👤Thran

Leave a comment