How to set up Django, Htmx and Tailwind (Using Npm)

  Рет қаралды 9,316

Code With Stein

Code With Stein

Күн бұрын

Пікірлер: 53
@omaral-halabiah2851
@omaral-halabiah2851 Жыл бұрын
when I run npm run build @7:31 no classes are copyed to main.min.css although I followed the steps exactly, I dont know why!!! can you help me?
@omaral-halabiah2851
@omaral-halabiah2851 Жыл бұрын
maybe I have to add this line './core/templates/**/*.{html,js}', to "tailwind.config.js" file is it right ?
@CodeWithStein
@CodeWithStein 10 ай бұрын
Did you fix it?
@neohornet1904
@neohornet1904 9 ай бұрын
Can I ask what vscode extensions you are using?
@CodeWithStein
@CodeWithStein 9 ай бұрын
Vue, Vetur, Python, Pylance, Jupyter, isort, flutter, EditorConfig, Django, Dart, C#, awesome flutter. So not very many :-)
@wizziiid
@wizziiid 2 жыл бұрын
This was so helpful! thanks alot
@CodeWithStein
@CodeWithStein 2 жыл бұрын
Thanks 😁
@youbra4267
@youbra4267 Жыл бұрын
thank you ❤
@CodeWithStein
@CodeWithStein Жыл бұрын
You’re welcome :-)
@donaldojinete
@donaldojinete 7 ай бұрын
This is a good stack for people like me that dislike some FE frameworks, could be nice include Daisy UI, Thank you !!
@CodeWithStein
@CodeWithStein 7 ай бұрын
I agree, it is a good stack :-D
@miqbal_sis
@miqbal_sis 11 ай бұрын
Thanks you for this. The admin interface is very out of css, how can we load default styling of admin without sending user to refresh.
@CodeWithStein
@CodeWithStein 11 ай бұрын
Hey, sorry, I don't understand what you mean?
@miqbal_sis
@miqbal_sis 11 ай бұрын
@@CodeWithStein Applying css to admin
@kashaxx
@kashaxx 3 жыл бұрын
This is nice! Enjoyed it. Cheers :D
@CodeWithStein
@CodeWithStein 3 жыл бұрын
Thanks Akash :-D
@sanjaydhande6573
@sanjaydhande6573 2 жыл бұрын
As always, great ! Thanks
@CodeWithStein
@CodeWithStein 2 жыл бұрын
Thanks 😁
@AmoahDevLabs
@AmoahDevLabs 2 жыл бұрын
This is really cool. Thanks for the update
@CodeWithStein
@CodeWithStein 2 жыл бұрын
You’re welcome 😁
@24webdevelopment
@24webdevelopment 10 ай бұрын
it works great on local system, but what about in production? How do I get it working online?
@CodeWithStein
@CodeWithStein 10 ай бұрын
Hey, this should work online as well. You just need to deploy it to a server like digital ocean, i have a few videos on the subject 👍🏻
@joshajiniran
@joshajiniran 2 жыл бұрын
Very nice tutorial and much appreciated, after dabbling with every kind of mechanism, this finally is smooth. Thanks. However, can the content array field in tailwind.config.js contain other *.html paths?
@CodeWithStein
@CodeWithStein 2 жыл бұрын
Thanks 😁😁 sure, you can add as many paths and wildcards there as you like 👍🏻
@sambots22
@sambots22 3 жыл бұрын
I always enjoy your channel. Great work. Another great work yet to see is editing Todo title with HTMX
@CodeWithStein
@CodeWithStein 3 жыл бұрын
Thank you so much :-D I will make more videos with Htmx, so maybe you'll learn that there ;-)
@djtoon8412
@djtoon8412 Жыл бұрын
i like the way you explained it sounds so clear to anyone.But i need to know how can i add alpinejs to this project.
@CodeWithStein
@CodeWithStein Жыл бұрын
Thanks 😁 the procedure is very similar, just search how to install it on Google 😁
@djtoon8412
@djtoon8412 Жыл бұрын
@@CodeWithStein ok thannks.can do a tutorila on how to setup with build tools like webpack or vite
@SmartC2007
@SmartC2007 Жыл бұрын
hey! npm install alpinejs add to the build property "cp node_modules/alpinejs/dist/cdn.min.js static/js/alpine/cdn.min.js" create alpine folder in static/js -> static/js/alpine (in order not to confuse the different js files) npm run build in your base.html (or whatever template you are using) put in the head seaction of the html: and you are all set. :)
@storyofhistory95
@storyofhistory95 2 жыл бұрын
impressive, I keep waiting for your new video mr heheheh
@CodeWithStein
@CodeWithStein 2 жыл бұрын
Great, it's coming tomorrow or friday ;-)
@ermalgashimramori
@ermalgashimramori 2 жыл бұрын
Great explanations. Thank you very much!
@CodeWithStein
@CodeWithStein 2 жыл бұрын
Thanks :-D
@quimmassague1961
@quimmassague1961 2 жыл бұрын
Thanks! How can you deploy this in Heroku?
@CodeWithStein
@CodeWithStein 2 жыл бұрын
I have no idea 😝 never tried heroku 🤷🏼‍♂️
@darwinsterritory
@darwinsterritory 2 жыл бұрын
what do you think about using in place npm, django-tailwind package?
@CodeWithStein
@CodeWithStein 2 жыл бұрын
I'm not a huge fan. I know it can save time. But I like to be in control and do things from scratch :P
@darwinsterritory
@darwinsterritory 2 жыл бұрын
@@CodeWithStein Понял, спасибо)
@ukaszbielecki6545
@ukaszbielecki6545 2 жыл бұрын
In my opinion, this is a really good approach (I might be wrong). Without linking to CDN or anything like that. I was looking for something like that. Thank you! But... Can I ask a question? Which approach is best for you? - django-tailwind installed from pip - your way with using npm or - using CDN
@CodeWithStein
@CodeWithStein 2 жыл бұрын
I agree! My way with cdn is my favorite. Tailwind using CDN should not be used in production at least ☺️
@24webdevelopment
@24webdevelopment 10 ай бұрын
npm run dev gives me an error Missing script: "dev" To see a list of scripts, run: npm run What is the solution?
@CodeWithStein
@CodeWithStein 10 ай бұрын
Hey, try npm run start or npm run serve :-)
@masteriq9787
@masteriq9787 2 жыл бұрын
THANK YOU SO MUCH ! There is just one thing: I need to run always "npm run watch" after having made some changes.. I followed exactly the video..
@CodeWithStein
@CodeWithStein 2 жыл бұрын
You're welcome :-D Hmm, that sounds weird. "npm run watch" is a command that should be running at all times during development :-)
@masteriq9787
@masteriq9787 2 жыл бұрын
@@CodeWithStein I dont know, but somehow it does not refresh by itself. Do you have any sources where you found the code?
@CodeWithStein
@CodeWithStein 2 жыл бұрын
Okay :-s No, sorry I don't remember where I read about it. Are you sure that the paths to where the watcher is set up is correct? It has to watch the correct template files and folders.
@UsedYourName
@UsedYourName 2 жыл бұрын
lol i love ur accent wallahi
@CodeWithStein
@CodeWithStein 2 жыл бұрын
Haha Thanks 😁
@ibrahimoglu
@ibrahimoglu 3 жыл бұрын
👍
@CodeWithStein
@CodeWithStein 2 жыл бұрын
😁
@saolainua4466
@saolainua4466 2 жыл бұрын
for those who follow ecommerce project (not multiple vendor) of Stein, the config tailwind is content: ["./**/templates/**/**/*.html"],
@CodeWithStein
@CodeWithStein 2 жыл бұрын
Nice, great tip 😁
Editing tasks - Django, Htmx and Tailwind Todo Application
5:52
Code With Stein
Рет қаралды 3,2 М.
Django and Htmx Todo Application | Tailwind CSS
25:33
Code With Stein
Рет қаралды 26 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Create a Dependent Select Field in Django With HTMX
14:37
Pretty Printed
Рет қаралды 19 М.
HTMX Post Pagination | Django Project | djblogger | 30
27:27
Very Academy
Рет қаралды 7 М.
Новый год 2025 на ТНТ "ComedyVision!" @ComedyClubRussia
1:16:27
Django, HTMX and Alpine.js - Modals and Forms
23:07
BugBytes
Рет қаралды 14 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19