--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAECSbOuN%2BBsvoGZ4nBA5D9batL9UAYQ4crZGWmaMxYMJQ5X1sQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO24gqwBgRkr8LYhpHXS2A0o2i4Lcx1WdL%3DqnAuQPtOmtmnXvw%40mail.gmail.com.
Please note that, you could still use Bootstrap to design the materials, while using React, Angular or Vue as your frontend framework.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO24gqwBgRkr8LYhpHXS2A0o2i4Lcx1WdL%3DqnAuQPtOmtmnXvw%40mail.gmail.com.
Hi Balaji,
Here are a few things for you to take note down based on my experience.
The simplest architecture is the best architecture.
Be it Apache or Nginx, you're using Django's wsgi services and using Bootstrap for designing your layout. Probably with some storage solution, either a database or remote servers/cloud, if you're storing file physically.
Things to observe: Django is the core of your stack. Its NOT just backend but serves as your frontend as well (although for small scripting uses, HTML5, CSS/SCSS, JavaScript is also used alongside Django) You're using Bootstrap just for material designing.
Decoupling the services
There is a different framework named "Django Rest Framework", which works in the backend capacity to create API's for your application.
In that case you'd preferably use something else for the frontend, like React, Angular or Vue. They are nothing but frontend frameworks based on JavaScript.Please note that, you could still use Bootstrap to design the materials, while using React, Angular or Vue as your frontend framework.
The main idea behind destructuring the solution in 2-tier; an api builder and a client end, is to decouple the two services. These two services operating independently, can communicate with each other and establish Separation of Concerns (SoC) architecture. Core logic or business function resides in the backend and stored away from the frontend code.The frontend, focuses only on the visual aspects and utilizes api endpoints to display the data.
Using frontend framework is not mandatory.
You're already achieving the desired result from your architecture, which uses Django with plain old JavaScript. However, learning these frameworks, will save you a lot of time while development, testing or deployment your code.
More importantly..
If you're a web developer, I would strongly suggest you to go ahead and pick one framework and start your journey. But if you're NOT a web developer, and this happens to be an automation/service/solution in addition to your main application, then you should skip these frameworks. Probably work on making the architecture more resilient and fault tolerant.
Also PythonAnywhere is not an industrial solution, so you might want to consider Heroku or DigitalOcean or any other enterprise cloud solution.
All the best,
Ronnie
![]() |
sagar ninave
about.me/sagarninave
|
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO24gqwBgRkr8LYhpHXS2A0o2i4Lcx1WdL%3DqnAuQPtOmtmnXvw%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAECSbOuN%2BBsvoGZ4nBA5D9batL9UAYQ4crZGWmaMxYMJQ5X1sQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO24gqwBgRkr8LYhpHXS2A0o2i4Lcx1WdL%3DqnAuQPtOmtmnXvw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP5HUWpd7-Y7cV%3DG6UR1h_sPibr9gFmzBTQ0EDcTT7v0cDTWMg%40mail.gmail.com.