User Registration In Django

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ม.ค. 2025

ความคิดเห็น • 7

  • @visrut7
    @visrut7 3 ปีที่แล้ว

    Thank you sir I need it in my project thanks.
    Sir also I have question like what are some web applications strategies or design patterns that companies follows like django provide list view and detail view also they now provide class based view I mean it make difference to make scalable web app? And all web application framework like django ,spring , laravel, rail follow some standard strategies?

    • @jerinjose4220
      @jerinjose4220  3 ปีที่แล้ว +1

      Umm.. There are different "ways" to make a web app. I will discuss two of them - MVC and APIs. These are the ones I have worked on and hence I can comment.
      In an MVC framework, there are Models, Views and Controllers. Django is an example of MVC based framework. However, in Django it's called MVT - Models, Views and Templates.
      Models - DB Schema
      Views - Logic behind what happens in the backend
      Templates - What you see in the browser - HTML, CSS, JS
      So using just one framework like Django you can build a complete web app.
      The second way is using a separate Front End and Back End framework.
      Front End frameworks - React, Vue, Angular etc.
      Backend frameworks - Node, Django, FastAPI, Laravel etc.
      The front end will take care of what you see in the browser. The front end get and post data to a Database by querying APIs provided by the backend. The data transfer happens in JSON.

    • @jerinjose4220
      @jerinjose4220  3 ปีที่แล้ว +1

      One of the main decisions a company take before starting to build a app is whether to go for MVC / Fully API based

    • @jerinjose4220
      @jerinjose4220  3 ปีที่แล้ว +1

      Both have pros and cons. Depends entirely on the project

    • @visrut7
      @visrut7 3 ปีที่แล้ว

      @@jerinjose4220 yes sir I see two different django website one for official django and other is djangorestframework , sir can we use single page application in simple django or we have to write pure AJAX request to decrease server traffic?

    • @jerinjose4220
      @jerinjose4220  3 ปีที่แล้ว +1

      @@visrut7 we can build an SPA using the "normal" Django method with a lot of AJAX calls in the templates part. We can also use the Django Rest Framework to create APIs which will be used by the front end framework like react.
      We can do both.
      Server traffic will depend on the functionality of the application. To perform a particular activity, if we need to get lots of data from the backend, we need to write multiple APIs and call them thereby increasing the server traffic. Managing that is all together a different domain and will include factors such as deployment mechanism, scalability etc. More from an operational perspective