Y
Y
Yeldos Adetbekov2016-11-12 08:49:48
Django
Yeldos Adetbekov, 2016-11-12 08:49:48

What to choose for SPA in django?

Greetings, I would like something new, and I came across SinglePageApplications. Looked at reactJS. Of course, it is great for small tasks where you need to load or execute a small fragment on the site. And if you want the links to work without reloading, as I understand it, you need to use routes inside the react. It was difficult to understand Babel + Webpack => I abandoned and use the Babel JSX transformer (not very correct, as I understand it). I took a closer look at it, and noticed that such wonderful features of django-templates with its cool filters cannot be used here.
I also realized that React inserts html into the house by rendering through js, and Angular, on the contrary, pulls js into html. So I think it’s convenient to type up the project itself in Angular, since it is laid out on the shelves, as usual. But I heard there are some nuances, such as:
-Linked pages are not rendered if you open a new page and type in a link.
-csrf
-Forms
-{{}}
etc.
And now I need advice. What should I choose so as not to give up the charms of django (urls, views, templates)?
====================
PS:
And I would like a normal dzhangovsky routing.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
OnYourLips, 2016-11-12
@dosya97

You need to create a separate API for passing the list of routes so that the JS code can use them.
But you should refuse to render templates on the side of the backend /

O
Oleg Gamega, 2016-11-12
@gadfi

It was difficult to understand Babel + Webpack => I abandoned and use the Babel JSX transformer (not very correct, as I understand it).

create-react-app

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question