[Django]-Can I use react router in django project?

8👍

Dude I am having the same problem. From I have researched the answer is actually to throw a catch all at the end of your urls in django. I can only find the old way of doing it.

url(r'^(%s)?$' % '|'.join(routes), TemplateView.as_view(template_name='index.html'))

I am not sure how to do it with path but I had found it earlier. It might be

re_path(r'.*', views.index)

Just let me know if that works so I can go home and use it 🙂

Leave a comment