Not at all a "new" topic :-)

On Sun, Sep 19, 2021 at 8:11 AM Jet Ezra <ezraj...@gmail.com> wrote:

> I know this may not be necessary at the moment because we are comfortable
> depending on front-end frameworks, but I have my two ideas here:
> 1. what if django alone without any framework can be used to design
> progressive web apps, with routers that do not reload the page, we
> currently have one of the best routing but what if they support SPAs this
> time?
>

https://htmx.org/

Dynamic pages without having to write (much) javascript.  As a PWA, not
sure, but it may be possible. Theoretically, HTMX would provide the ability
to do a SPA in your template(s) and definitely worthy of more attention.


> 2. what if we could instead of Javascript in the templates, we write
> python, case in example is forexample how we write C# in .NET withing our
> templates not writing JavaScript. Currently DJango is requiring its
> developer to again go ahead and learn JS too, what if we remove that??
>

Until (and if ever) browsers support it. This is the bottom line.

This is almost the same case that nodejs users have put forward since it
was invented - why learn 2 languages when 1 will do?  node backend and js
front end, one language.

(not that I think this is a Good Thing :-))

TBH I don't consider learning multiple programming languages a particularly
difficult thing, and one might argue that there are significant benefits in
doing so.


Regards, David

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAE5VhgUt%2BApwzmK6TmZ%3D3Kt7MMcK7-t%3DJB5RQqRT%3DhR7CRTFbQ%40mail.gmail.com.

Reply via email to