S
S
Stanislav Shabalin2020-09-18 18:32:46
Django
Stanislav Shabalin, 2020-09-18 18:32:46

Should I combine Django and React logic?

Tell me, pliz, what is the best thing to do when developing a site with a portfolio and blog functions.

I'm going to make an exhibition site of completed projects. Projects is a portfolio of works with photos and descriptions.
Projects can be uploaded to the server by registered users, and their work can be commented on and rated. A filter of works by years, participants and nominations will be implemented. A plus will be pages with sponsors, the jury. Participants and the jury have separate rights: the first - CRUD, the second - to evaluate the work of the first.

It seems that the site combines both statics and dynamics, since the database is connected. ssr react is not as preferred as csr.

Question:

1. Does it make sense to pull react with gatsby for statics and pull up the comment form with work evaluation via ajax or use an external application for comments? If you connect your forms, then as I understand it, react takes over the logic of displaying forms, but it could also be implemented through django. Then what is left for janga except for the admin panel and issuing content from the database and in what other form: JSON, HTML?
2. how to separate the logic and rendering between the front and the backend in the proposed situation?
3. or do you get by with Django and not bother with React? Its installation, configuration and study will require a lot of time and nerves (in the beginning, for sure)

Please treat with descent, I'm just studying this topic and I want to start the project right. Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
ediboba, 2020-09-21
@Starck43

2 options:

  1. django does everything (faster and easier)
  2. django makes the admin panel and rest api, react (preferably + ssr) does all the rendering of the web muzzle and communicates with django via api for data (but this one is like something from a sparrow gun)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question