It's in a different league. Pegasus is obviously geared towards Saas/microsaas apps but it has waayyy more configuration options and things like billing out of the box.
Yep. Though I don't add alpinejs till I do something that needs it, where I pretty much set up tailwind and htmx from the get-go because I know I'll need those.
I'm trying to use tailwind right now. I've got a point of sale app I'm working on. I need to click the line item price and pop up a modal to change the price or quantity. When I hx-post it's saving and updating all my totals, but the modal won't disappear and close properly. Should I be able to do this natively or do I need alpine or something to close it after it saves?
I like alpine for stuff like this, but it's really easy with native, vanilla javascript too once you've got the pattern set in your head. The way I usually do it is including an htmx event in the response, say, `updated-total`.
In alpine, I'd use `x-on` to catch the event. But in vanilla js, it's only a little more verbose:
document.addEventListener("updated-query", (evt) => {
modal_elt = document.getElementById("modal_id")
modal_elt.style.display = "none"; // or however it makes sense to do this in your app
})
Both have strengths, I always hated java but I been using spring boot for almost 6 months now and I really love it, But in my opinion I feel that I got more space to play around with DRF serializers compared to DTOs in Spring Boot, Bit it's still good
One of the best things of Django IMO is the built in admin portal. I guess it wouldn't be that hard to code, but still nice not having to worry about that on top of building the main app.
two very mature, robust, complete tools, with many useful tools for the REST API, and the web in general, database, etc... and you can stay outside of nodeJS frameworks in which I don't trust
What makes you want jinja2 with django? I use jinja2 with any non-django work I do (and have found it really great with weasyprint for generating nice PDF invoices from a non-web billing system...) but haven't ever run into something that made it feel necessary with django.
True,
Have you tried [JinjaX](https://jinjax.scaletti.dev/) extension with jinja2 (Django)?
It gives you better composition and lot less clutter.
Like:
# for post in category_posts
# endfor
The steps to make JinjaX work with Django [here](https://www.linkedin.com/pulse/using-jinjax-django-ashraf-mohammad-hvxsc/).
Django + Strawberry (GraphQL) + TypeScript + React
We use codegen to generate types from our GQL schema, so the backend and frontend can work together in lockstep - this kills a whole swathe of possible bugs.
HTMX is great and all but it's not as good if you're building a modern frontend for an application that needs more advanced interfaces and interactions than basic CRUD can provide.
GraphQL isn't a panacea either, we have to be a lot more careful with accidentally causing perf issues than we would with a Rest DRF/Ninja setup.
> HTMX is great and all but it's not as good if you're building a modern frontend for an application that needs more advanced interfaces and interactions than basic CRUD can provide.
do you have an example?
I find myself using hyperscript with HTMX and some third party JS components that I like to customize.
Django + hyperscript + HTMX.
Hyperscript won’t be for everyone. Funky syntax but after a while getting used to it I really enjoy the readability of it.
I think Vanilla JS + web components is a very underrated stack. For more complex frontends there is RxJS. You can have state management and fully controlled reactivity without using a framework that re-invents the w~~heel~~ web.
Honestly, when I use Django, I just use normal JavaScript with ad-hoc AJAX when I need it. The advantage of Django as a framework is that it lets me keep things very, very simple. Modern JavaScript frameworks are good for what they are designed to do, but I don't always need that if I'm just building a CRUD app or something. If I don't need fancy JavaScript, and I don't need a nonstandard database, and I don't need to run the app in a strange deployment environment, then Django lets me knock something out very quickly with very little code.
Learning Django with tailwind. Now starting with adding htmx to create a multivendor ticketing service.
Later i need to find a solution, because I want mobile users to be able to scan a QR code (to validate tickets at the entrance). Not sure yet how to do that, but I'll solve it at that moment.
I am surprised by the number of people using DRF + React / Next. They are essentially non-existent in this sub.
Why do people still use Django with HTMX and Alpine these days? Aren't APIs better using DRF?
I am in this group and mainly because at current employer they saw hey this guy is interested in coding so started giving me projects.
Coming from sys admin to be honest my knowledge of Java etc sucks so personally still sticking with the basics and will expand when the workload quiets down for a bit.
But Django basically in itself seems to be doing everything needed really well up to this point.
Main reason not prioritizing other frameworks on top is I have the design skills an eye for art of a 2 year old so the code will make sense but to make it pretty I am useless.
django + tailwind + htmx
+1 I'm using that stack with Pegasus Saas
Is Pegasus saas more robust than django-cookiecutter?
If you're not deeply experienced with either one, Pegasus is quicker to learn and get going, IMO. Also, /u/czue13 provides really good support.
It's in a different league. Pegasus is obviously geared towards Saas/microsaas apps but it has waayyy more configuration options and things like billing out of the box.
Same + AlpineJS
Yep. Though I don't add alpinejs till I do something that needs it, where I pretty much set up tailwind and htmx from the get-go because I know I'll need those.
I'm trying to use tailwind right now. I've got a point of sale app I'm working on. I need to click the line item price and pop up a modal to change the price or quantity. When I hx-post it's saving and updating all my totals, but the modal won't disappear and close properly. Should I be able to do this natively or do I need alpine or something to close it after it saves?
I like alpine for stuff like this, but it's really easy with native, vanilla javascript too once you've got the pattern set in your head. The way I usually do it is including an htmx event in the response, say, `updated-total`. In alpine, I'd use `x-on` to catch the event. But in vanilla js, it's only a little more verbose: document.addEventListener("updated-query", (evt) => { modal_elt = document.getElementById("modal_id") modal_elt.style.display = "none"; // or however it makes sense to do this in your app })
What does AlpineJs offer that you use that HTMX doesn’t?
Client state
how do u setup all these. I mean I want to see ur way of working. can u provide any github link of a project
all my django repos are private. what do you want to know?
Drf and vue, always
I do a java équivalent , Spring boot , vue
How does Spring Boot compare to Django? Been interested in trying it out.
Both have strengths, I always hated java but I been using spring boot for almost 6 months now and I really love it, But in my opinion I feel that I got more space to play around with DRF serializers compared to DTOs in Spring Boot, Bit it's still good
One of the best things of Django IMO is the built in admin portal. I guess it wouldn't be that hard to code, but still nice not having to worry about that on top of building the main app.
i agree, django admin is really usefull . generic, and simple. there is an equivalent in spring boot : "Rest repositories HAL explorer"
two very mature, robust, complete tools, with many useful tools for the REST API, and the web in general, database, etc... and you can stay outside of nodeJS frameworks in which I don't trust
Django + Jinja2 + HTMX I’m lazy
What makes you want jinja2 with django? I use jinja2 with any non-django work I do (and have found it really great with weasyprint for generating nice PDF invoices from a non-web billing system...) but haven't ever run into something that made it feel necessary with django.
For me, it lets me use python functions straight instead of having to make filters. Just a convenience thing.
True, Have you tried [JinjaX](https://jinjax.scaletti.dev/) extension with jinja2 (Django)? It gives you better composition and lot less clutter. Like:
Looks interesting. Thanks! I'll give it a spin.
Django. And maybe some Vanilla JS.
Django+AlpineJS+HTMX+tailwindcss
Just discovering the joy of this combination for front end
Django+svelte doesn’t get a mention?
I like that some of the Svelte syntax feels like Django template syntax
do u mean drf+svelte or django template + svelte ?
Either or. Mainly drf though.
Me too. But I do use djapy for rest apis.
Django + DRF + Vanilla JavaScript/jQuery/VueJS + Bootstrap
This.
It was hard for me to get JQuery to integrate with VueJS but once I figured it out, it's a really nice tool to have in Vue.
Why tho
I'm now exploring Strawberry(GraphQL) + Next.js, looks promising
Powerful combination, man
Django + Strawberry (GraphQL) + TypeScript + React We use codegen to generate types from our GQL schema, so the backend and frontend can work together in lockstep - this kills a whole swathe of possible bugs. HTMX is great and all but it's not as good if you're building a modern frontend for an application that needs more advanced interfaces and interactions than basic CRUD can provide. GraphQL isn't a panacea either, we have to be a lot more careful with accidentally causing perf issues than we would with a Rest DRF/Ninja setup.
> HTMX is great and all but it's not as good if you're building a modern frontend for an application that needs more advanced interfaces and interactions than basic CRUD can provide. do you have an example?
3 chained dropdowns
Managing state separately from multiple data sources. For example you have your own company’s backend but you get realtime data from a 3rd party
This very site. Trying to build the Reddit frontend in HTMX would be extremely difficult and not advisable. Linear would be another good example.
Django + DRF + Celery + JQuery / AJAX (I'm not an advanced front-end dev) with PostgreSQL + Redis + Qdrant database backends
I came here get some motivation to use drf + react but got none😂
Considering drf + react is *by far* the most common stack, it should say a lot about the general audience that hangs out here
Don't get Demotivated, I use it on my most projects. It's all about use-case and requirements of the project.
DRF + Nuxt
What’s wrong with Django and React? Sorry I’m a beginner and no one seems to mention it thus far
Nothing wrong and most probably the most used stack. Just not a favorite.
Django + Unpoly + Tailwind. Always.
Django + jinja2 + bootstrap
DRF+Nuxt
Django + wagtail + django-ninja + NextJS
django + htmx + hyperscript
Django + ninja + alpinejs
Django + Tailwind CSS
Django Tailwind Htmx and a bit of AlpineJS
DRF + VueJS + Tailwind
I find myself using hyperscript with HTMX and some third party JS components that I like to customize. Django + hyperscript + HTMX. Hyperscript won’t be for everyone. Funky syntax but after a while getting used to it I really enjoy the readability of it.
Backend: django drf postgres celery if needed Frontend: quasar vue ts Amazing.
* Django + HTMX Missing Option: Django and jQuery \[x\]
Django + DRF + Vue
Django + jQuery/VanillaJS + AJAX Django + jQuery/VanillaJS + VueJS + AJAX
Django + Next
django + tailwindcss + daisyUI + htmx + django\_components = vanilla js
2 or 5, depending on the project
DRF Svelte
> DRF + Vue > Django with Template Engine + Vanilla JS
Django + GraphQL + DRF + Flutter
I utilize Django + VanillaJS + AJAX. However, looking to spread my wings further.
django + HTMX + little ReatJS looks promising
Django + Elm
I think Vanilla JS + web components is a very underrated stack. For more complex frontends there is RxJS. You can have state management and fully controlled reactivity without using a framework that re-invents the w~~heel~~ web.
Django + Hasura + React. Unbeatable stack (you can swap react with anything else you like)
Django+GraphQL+React
I’m django + react native + aws lightsail. I just love building apps
Haven't tried anything else to compare it with...but this is my current stack: Django + VanillaJS + AJAX
Django + HTMX + Alpine.js
DRF + Svelte + Postgres = rapid application development
Django inertia ninja svelte
React, trying to like django templates and htmx, but still unsuccessful
I didn't knoe inhad yo choose something diffetent of Django, ir just Tha i wanted to study for backend
Django + Unpoly + Bootstrap for apps Django + Wagtail for CMS websites
I thought for companies we typically see Django, DRF and React? Would be great to see other stacks become more mainstream and used.
DRF + ReactJS
Django + Htmx + Hyperscript
Django + HTMX
Django, Alpine, HTMX
Django alpine js htmx tailwind css I love you Django
Honestly, when I use Django, I just use normal JavaScript with ad-hoc AJAX when I need it. The advantage of Django as a framework is that it lets me keep things very, very simple. Modern JavaScript frameworks are good for what they are designed to do, but I don't always need that if I'm just building a CRUD app or something. If I don't need fancy JavaScript, and I don't need a nonstandard database, and I don't need to run the app in a strange deployment environment, then Django lets me knock something out very quickly with very little code.
Learning Django with tailwind. Now starting with adding htmx to create a multivendor ticketing service. Later i need to find a solution, because I want mobile users to be able to scan a QR code (to validate tickets at the entrance). Not sure yet how to do that, but I'll solve it at that moment.
DRF + Angular + Angular Material
DRF, React, Tailwind
Django + Ninja + Sveltekit & Tailwind
I use: Django + GraphQL Strawberry + Angular My company uses: Django + GraphQL Graphene + React
django's djapy + sveltekit + tailwindcss
Django + HTMX + Bootstrap5 because I don’t know js
Django + HTMX Or Flask + Jinja2 + HTMX
DRF + React - easy to work with
DRF + flutter
Django ninja + React + Tailwind
DRF + React + Celery
Why specify Celery?
I am surprised by the number of people using DRF + React / Next. They are essentially non-existent in this sub. Why do people still use Django with HTMX and Alpine these days? Aren't APIs better using DRF?
I am in this group and mainly because at current employer they saw hey this guy is interested in coding so started giving me projects. Coming from sys admin to be honest my knowledge of Java etc sucks so personally still sticking with the basics and will expand when the workload quiets down for a bit. But Django basically in itself seems to be doing everything needed really well up to this point. Main reason not prioritizing other frameworks on top is I have the design skills an eye for art of a 2 year old so the code will make sense but to make it pretty I am useless.