mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2025-01-18 17:02:35 +00:00
django v flask - online edit of handbook/troggle/trog2030.html
This commit is contained in:
parent
2e23eb67f3
commit
eb81ec4a1a
@ -195,6 +195,14 @@ A GIS db could make a lot of sense. Expo has GIS expertise and we have a lot of
|
||||
|
||||
<p>HTMX now looks like it may evolve into replacing large chunks of what is now done with JavaScript packages (Angular, React, Vue.. and jQuery before them). See <a href="https://testdriven.io/blog/drf-vue-vs-django-htmx/">Django/HTMX</a> article (5 Feb.2024).
|
||||
|
||||
<h3>Django and Flask</h3>
|
||||
<p>The idea that we should replace Django with Flask comes up from time to time: "No! This is a really <em>shit</em> idea":<br>
|
||||
<p style="margin-left:40px">"The true comparison of these web frameworks depends on your project's needs. Are you building a traditional web application that connects to a database, requires CRUD (Create-Read-Update-Delete) functionality, and user authentication? If yes, Django has built-in solutions for all of these needs. By comparison, Flask requires installing multiple third-party libraries: Flask-SQLAlchemy to connect to the database, Flask-Migrate to manage database migrations, Flask-WTF and WTForms for forms, Flask-Login for user authentication, FLask-Mail for email support, Flask-Security for security features, Flask-Admin for an admin interface to manage application data, Flask-Caching for caching support, Flask-BCrypt for password hashing and so on."
|
||||
<br>
|
||||
"The power of Django is that you don't have to worry about any of these things. They are included, tested, and supported by the community. For Flask, the third-party libraries are not as tightly integrated and require more manual installation by the developer. This affords greater flexibility but also requires more programmer expertise."
|
||||
<br>
|
||||
<a href="https://learndjango.com/tutorials/flask-vs-django">flask-vs-django</a>.</p>
|
||||
|
||||
<h3>Postscript</h3>
|
||||
|
||||
<p>Andy Waddington, who wrote the first expo website in 1996, mentioned that he could never get the hang of Django at all, and workinhttps://github.com/Chaoyingz/flect
|
||||
|
Loading…
Reference in New Issue
Block a user