News for hackers. Stuff that matters.
Re:Django 3.2 by nickjj on Tuesday April 06, 2021 @07:05AM (#26710432)
If anyone is curious I just updated my Docker / Django starter project to use 3.2. It uses Docker Compose + Django + Celery + PostgreSQL + Redis + Webpack + TailwindCSS and it's available at: https://github.com/nickjj/docker-django-example

As an aside it's also using TailwindCSS 2.1 with the JIT compiler enabled.

Re:Django 3.2 by dopeboy on Tuesday April 06, 2021 @11:48AM (#26713321)
This is awesome, thanks for sharing. I maintain a similar boilerplate (graphene + semantic ui).

What's your take on Tailwind so far? I've found the lack of a react offering has really slowed me down.

Re:Django 3.2 by nickjj on Tuesday April 06, 2021 @01:44PM (#26714985)
> What's your take on Tailwind so far? I've found the lack of a react offering has really slowed me down.

It's working out well for the most part, but I don't use React.

I mainly develop server rendered apps and sprinkle in JS as needed.

The only weak link with Tailwind IMO is the lack of JS for doing common things like hiding / showing menus, tooltips, modals, tabs and other stuff you'd find baked into Bootstrap. I know there's some JS included in the TailwindUI components but it's not for JS libraries that I use. I prefer using StimulusJS which isn't something they support at the moment.

Fortunately there's a bunch of StimulusJS Tailwind examples provided by the community so it's not too bad in the end.

I imagine it's hard for Adam because there's React, Vue, Alpine and StimulusJS, all of which are popular enough where there's a good amount of users using them. I'm optimistic that he'll think of a way to cater to all of these users in some way, it'll only be a matter of time. NOTE: This is just speculation, I'm not affiliated with Tailwind in any way.

Re:Django 3.2 by babelfish on Tuesday April 06, 2021 @12:30PM (#26713911)
The creators of TailwindCSS also have a paid offering called TailwindUI (just pre-created components with documentation for your application and marketing site) that has React support. It also comes with Figma mockups for each component. It's a bit pricy but very high quality.
Re:Django 3.2 by tracyhenry on Tuesday April 06, 2021 @03:06PM (#26715984)
I never used Tailwind but given its popular modern look, I wonder why there is a lack of open source React components built on top of it?
Re:Django 3.2 by httgp on Wednesday April 07, 2021 @02:23PM (#26728839)
Re:Django 3.2 by tracyhenry on Wednesday April 07, 2021 @03:10PM (#26729564)
This React library doesn't seem to be based on Tailwind?
Re:Django 3.2 by sgt on Wednesday April 07, 2021 @07:07AM (#26723149)
I went back to this thread to find the docker-django-example. I have to say, this is really solid work, and thank you for sharing it. Tailwind is commercial I see, is there a free way to get set up with a nice looking "dashboard + sidebar" UI without buying the Tailwind UI?
Re:Django 3.2 by nickjj on Wednesday April 07, 2021 @07:14AM (#26723194)
Thanks.

TailwindCSS is open source and free. It's at https://tailwindcss.com/.

TailwindUI is an optional paid product that has a bunch of pre-made TailwindCSS components created by the makers of TailwindCSS. Basically pre-made widgets and layouts.

TailwindUI has a few free components too (no signups required) at https://tailwindui.com/preview.

And if you Google around for Tailwind components and themes you'll be able to find a bunch. It's just CSS at the end of the day so there's lots of community driven examples. For example here's a bunch of free ones at https://tailwindcomponents.com/components, https://www.tailwindtoolbox.com/starter-templates and more at https://github.com/aniftyco/awesome-tailwindcss#ui-libraries....

Re:Django 3.2 by sgt on Wednesday April 07, 2021 @01:09PM (#26727748)
I see TailwindUI is only about $170, so I went ahead and purchased it. It's of course CSS only, with templates for dashboards and things.
Re:Django 3.2 by danjac on Tuesday April 06, 2021 @07:31AM (#26710595)
Just upgraded my side project to both Django 3.2 and Tailwind 2.1 (with Jit enabled). No issues at all, other than some deprecation warnings on some 3rd party packages that will probably be fixed soon.
Re:Django 3.2 by sgt on Tuesday April 06, 2021 @10:01AM (#26711841)
Looks really good. What made you choose Tailwind over the alternatives?
Re:Django 3.2 by ehou on Tuesday April 06, 2021 @10:37AM (#26712292)
We use TailwindUI - combined with Django gives a really nice kickstart on new projects. Just made a Proof of Concept last two weeks for an internal business app for a new customer and did impress them easy with a working app + login + responsive nice looking layout. Used VUEjs for menu's, keyboard events and a location picker.
Re:Django 3.2 by danjac on Tuesday April 06, 2021 @10:14AM (#26711995)
I've used more component-based frameworks like Bootstrap before, but I've found it's easier to have a set of utilities and build my own components on top of that.
Re:Django 3.2 by fatsdomino001 on Tuesday April 06, 2021 @10:26AM (#26712142)
Why celery and redis? Couldn’t you consolidate with just redis? Love the stack though
Re:Django 3.2 by williamdclt on Tuesday April 06, 2021 @02:41PM (#26715647)
Celery describes itself as a "task queue" but I find it a bit confusing: it's a job manager, which needs a queue from which to pull/push jobs. Redis is this queue
Re:Django 3.2 by number6 on Tuesday April 06, 2021 @10:43AM (#26712376)
Django_Q instead of Clerery