Idea

122 views
Skip to first unread message

Jet Ezra

unread,
Sep 18, 2021, 7:00:16 PM9/18/21
to Django developers (Contributions to Django itself)
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?

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??

Adam Johnson

unread,
Oct 20, 2021, 11:16:26 AM10/20/21
to django-d...@googlegroups.com
Check out htmx as a way to avoid needing JavaScript in your Django applications: https://htmx.org/


--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/bdefe58e-b26f-434e-a83f-36917b81f936n%40googlegroups.com.

Jet Ezra

unread,
Oct 21, 2021, 7:31:49 AM10/21/21
to django-d...@googlegroups.com
Well, this looks like a cool attempt but still lacking the python part. I would like to update the DOM just with Python not anything like Javascript. From what I have read from the links above, I have realised that we are writing HTML that has already been covered up with JS, but in my issue, we are trying to run independent of JS just like we see in C# where one writes C# instead of JS in .NET





--
jet

Christian González

unread,
Oct 21, 2021, 3:26:34 PM10/21/21
to django-d...@googlegroups.com


Am 21.10.21 um 13:31 schrieb Jet Ezra:
Well, this looks like a cool attempt but still lacking the python part. I would like to update the DOM just with Python not anything like Javascript. From what I have read from the links above, I have realised that we are writing HTML that has already been covered up with JS, but in my issue, we are trying to run independent of JS just like we see in C# where one writes C# instead of JS in .NET

Dttempts like djhtmx and django-htmx to add that python functionality, but they are far from perfect. With bare HTMX, you need no extra Js.
Django-htmlx is just a small wrapper to help including htmx into Django, does nothing more. And djhtmx adds a few helpers to create a "components" system, similar to django-unicorn. But when it comes to bigger projects, this is error prone as it lacks interactions between components.

But fo rmy part, I would *love* to see HTMX "included" in Django, as it seems to be the perfect couple, if done right.

Christian





On Wed, Oct 20, 2021 at 6:16 PM 'Adam Johnson' via Django developers (Contributions to Django itself) <django-d...@googlegroups.com> wrote:
Check out htmx as a way to avoid needing JavaScript in your Django applications: https://htmx.org/


On Sun, 19 Sept 2021 at 00:00, Jet Ezra <ezra...@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?

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??

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/bdefe58e-b26f-434e-a83f-36917b81f936n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAMyDDM2N6zFK7p0VA8e-Y-DwpCSsePH3O5q3g1P7O8O8-Vi5kA%40mail.gmail.com.


--
jet
--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages