Тёмный

Django Tutorial - Templates & Custom HTML 

Tech With Tim
Подписаться 1,5 млн
Просмотров 108 тыс.
50% 1

This django template tutorial will talk about how to create salable dynamic html to display on your web pages. I will discuss template inheritance, blocks and code embedded in your templates.
Text-Based Tutorial: techwithtim.net/tutorials/dja....
Playlist: • Django Tutorial - Setu...
◾◾◾◾◾
💻 Enroll in The Fundamentals of Programming w/ Python
tech-with-tim.teachable.com/p...
📸 Instagram: / tech_with_tim
🌎 Website techwithtim.net
📱 Twitter: / techwithtimm
⭐ Discord: / discord
📝 LinkedIn: / tim-rusci. .
📂 GitHub: github.com/techwithtim
🔊 Podcast: anchor.fm/tech-with-tim
💵 One-Time Donations: www.paypal.com/donate/?token=...
💰 Patreon: / techwithtim
◾◾◾◾◾◾
⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡
Tags:
- Tech With Tim
- Django Tutorial
- Python django
- Django templates tutorial
- Django Templates
- Python Tutorials

Опубликовано:

 

25 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 86   
@ahmedyasser8416
@ahmedyasser8416 3 года назад
actually your tutorials make me so happy as it feels so realistic and just represent my pain while learning specially that i'm so beginner and errors that face you and the way that you deal with it is just similar to us.. not like these professionals who made every single line looks so easy and they just want us to type faster and follow them along the tutorial I don't mean that you're not professional but just seeing you facing the same issues that we pass through is very satisfying
@anakinskywalkerrr
@anakinskywalkerrr 5 лет назад
Yes! full website tutorial till deployment :), my boy actually answer the comments
@mavrik077
@mavrik077 3 года назад
I got hooked on your videos so started binge watching them. I have now unintentionally learnt how to code a website. You're awesome
@Optimus333
@Optimus333 4 года назад
"Awesome" You're awesome Tim! Amazingly well structured and explained!
@lecomtegaetan8120
@lecomtegaetan8120 Месяц назад
thank you for all your videos , they are always great !
@livecoderepeat7036
@livecoderepeat7036 5 лет назад
Cant wait to catch up! Thank you for this, really helping me elevate
@ankitaburman5406
@ankitaburman5406 2 года назад
Wow Tim u r amazing, learning a lot from you
@abdulrahmankhaldi6697
@abdulrahmankhaldi6697 3 года назад
Tim is a LEGEND! thanks bro, i really appreciate ur hard work
@cyberspider78910
@cyberspider78910 4 года назад
very nicely explained....by the way, when you make mistakes and corrects it - it is totally human. Actually, many people may will like it that way (yours truly included) because that gives a real touch to your tutorial....keep it up...
@AnnaIsHere
@AnnaIsHere 2 года назад
I definitely want to look at real debugging.
@brutalshiteater
@brutalshiteater 4 года назад
This tutorial is super awesome! Thanks so much for doing it!
@domingoalvarez3984
@domingoalvarez3984 3 года назад
The error that you got in minute 9:35 is because in the past video you deleted the record with Id 1
@mejiab19
@mejiab19 3 года назад
Yes!! The ID auto increment does not reset back to 1 so even though he deleted items and then added two other records Id 1 will not be used again it will start from id 2 and forward. There is a way I believe to reset the Id but usually not something you would want to do with a database.
@snartgaming4922
@snartgaming4922 9 месяцев назад
@@mejiab19 hey bro just lettin you know you out here savin souls
@addtrash7983
@addtrash7983 4 года назад
I love your content Tim! Keep going you're helping a lot i really thank you !
@stefanmiloradovic3341
@stefanmiloradovic3341 3 года назад
actually, it's: "I love your {% block content %}{endblock} Tim!"... :) :D B)
@brendanglancy1268
@brendanglancy1268 4 года назад
Great tutorials
@rajatparab8116
@rajatparab8116 5 лет назад
Eagerly waiting for future videos of django .Nice explanation 👍👍 Love from India
@TechWithTim
@TechWithTim 5 лет назад
Well thank you
@RonnieLutaro
@RonnieLutaro 4 года назад
This guy is good
@pillowrabbit8324
@pillowrabbit8324 3 года назад
@@RonnieLutaro he is not good , he is a god
@Jonnhy0989
@Jonnhy0989 4 года назад
Awesome!
@shiva34490
@shiva34490 3 года назад
You are awsome mannnnnnn
@manish93channel
@manish93channel 5 лет назад
This is amazing content!
@grandorigins6682
@grandorigins6682 3 года назад
Hi Tim, assuming I have multiple apps. When creating a templates folder to store my base.html is it okay to store this folder within an application and inherit across other applications or should I add it to BASE_DIR and have its hierarchy be equal to that of the project folder. Thank you. Your RU-vid channel is great btw.
@AnnaIsHere
@AnnaIsHere 2 года назад
I like that you explain things just enough for not making mistakes. Not like "do like I do", but "you should name this folder the same as your app, it's important for django to work"
@cake4822
@cake4822 2 года назад
thank you sir :D
@RetryMarchel
@RetryMarchel 4 года назад
Thank you for this tutorial bro !
@Unknown007x
@Unknown007x 5 лет назад
Great video looking forward for the next ones 👍
@TechWithTim
@TechWithTim 5 лет назад
Thank you :)
@ericgutierrez347
@ericgutierrez347 4 года назад
Yo, I'm learning alot about Django from your vids. I was just wondering if you mind sharing any references of how you learned Django, like books, websites, whatever. I'm going to stick through your series, I'm just wondering how you learned.
@2tiddies404
@2tiddies404 3 года назад
this was good and I actually learned stuff from it. Thanks tim.
@MrKayraKan
@MrKayraKan 4 года назад
omg i just saw ur "text-based tutorial" man really ty. I followed so many channel udemy courses etc but u are amazing. Ty for everything. Hi from Turkey and srry for my bad english btw. :)
@nakorns320
@nakorns320 3 года назад
Cleary, thank you for your teaching.
@congthanhtran1894
@congthanhtran1894 3 года назад
i noticed we can also add item to the to do list through admin dashboard, that is so cool, thanks for the awesome tutorial!!
@armandtvanzyl4544
@armandtvanzyl4544 4 года назад
sup Tim. Im getting a postitional argument follows keyword argument when i try and create a new item in the item sets. I ONLY get this error when I add the complete == False. Can you assist please?
@pabloyanez9469
@pabloyanez9469 4 года назад
keep the good work :) saludos de chile y muchas gracias ! much thx !
@PRIYANKAARDU
@PRIYANKAARDU Год назад
at 8:57 my server is running well but it isn't displaying the base.html contents like the output that you've got, but instead i'm getting the output page of - the install worked successfully
@user-wb1yh8sm1w
@user-wb1yh8sm1w Месяц назад
you just need to add 'main' to installedapps[ ] in settings so html could render
@sawohnmar1111
@sawohnmar1111 Год назад
Wooo What just happened in my life! cuteee 😄😄
@AnnaIsHere
@AnnaIsHere 2 года назад
WHy is the parameter for the functions like index and home is "response". Is it not a request, or something that goes IN the function (like a question), not OUT like a response?
@sainco3036
@sainco3036 5 лет назад
thanks.
@paia6447
@paia6447 Год назад
Can I name the block content and endblock as anything i want?
@labibmimon2668
@labibmimon2668 3 года назад
You could insert items from admin.
@josefranciscoramirezrodrig1726
@josefranciscoramirezrodrig1726 4 года назад
Hi Tim! Very nice explanations, I have a question, could you make a video of how to use graphs from matplotlib in Django for a site? Thanks
@Ushq_QgA
@Ushq_QgA 7 месяцев назад
No he won't
@shyren_more
@shyren_more 3 года назад
Yeah please, it would be awesome to learn Django down to deployment!!!
@cloudcraft2862
@cloudcraft2862 3 года назад
For some reason it comes up as an error, saying that "list() missing 1 required positional argument: 'id'" in the index function(I named is list instead of index), can someone please help me :(
@weixiangzhao561
@weixiangzhao561 Год назад
Hi Tim, do we have the github link for the code in this tutorial?
@tolstoievski4926
@tolstoievski4926 4 года назад
In my view file, in the index fonction, it doesn't recognize th id parameters. There's also another problem, the id of my entries in my database begins at 2 which is strange
@cloudcraft2862
@cloudcraft2862 3 года назад
I have the same problem, so can someone help us please?
@AnnaIsHere
@AnnaIsHere 2 года назад
That was cool, indeed! Took me 2 days, but was very interesting
@rezaabdolahi3092
@rezaabdolahi3092 2 года назад
thanks for sharing. you are best!
@simoncarter3541
@simoncarter3541 2 года назад
Very helpful tutorial 👍
@SafikMaster
@SafikMaster 4 года назад
at 22:44 When I enter ls = ToDoList.objects.get(id=2) it comes back saying that ToDoList is not defined, but I do have an item from that list displayed on 127.0.0.1:8000/1. What can I do? Does my list have a different name somehow? Is there a way to check it?
@rashaad2431
@rashaad2431 4 года назад
Hello, I have the same problem. Do you have a solution for it?
@shyren_more
@shyren_more 3 года назад
Way to check it in your shell, check how many todolist are present, by typing from main.models import ToDoList ls = ToDoList.objects.all() ls Hopefully your queryset will have only one item, since you are getting that ToDoList at id=2 does not exist else that is multiple list exist in your ToDoList Model, define another function which will return the id for particular list def get_id(self): return str(self.id) By using this function you can get the appropriate id Hope this helps !!
@theruralstruggles64
@theruralstruggles64 3 года назад
can't we add items and todolist from django admin page
@michsx1234
@michsx1234 2 года назад
Hello, can somebody explain what means "item_set"?? is this some kind function or what ?
@efamir8225
@efamir8225 2 года назад
thank you for this tutorials
@khandakerzoadpial453
@khandakerzoadpial453 2 года назад
Can anyone help me about how can I grab next next element of for loop in the template?
@gunahawk6893
@gunahawk6893 4 года назад
Tim make a Odoo tutorial it's just like Django
@baptistaguivala4791
@baptistaguivala4791 Год назад
Greetings I ask for your help I have a problem here can I share my problem?
@TheBigCheezeIt
@TheBigCheezeIt 3 года назад
For anyone coming to this video directly, not sure if it was covered in the lessons prior, but you may need to modify your settings.py file. In the INSTALLED_APPS array, add 'main', to the end of the array so it searches in the right place. I was having a TemplateNotFound error before I did that.
@Linuxovert
@Linuxovert 3 года назад
clarify please, i'm facing the same issue
@TheBigCheezeIt
@TheBigCheezeIt 3 года назад
@@Linuxovert Find INSTALLED_APPS and just add a line to it that says 'main',
@mejiab19
@mejiab19 3 года назад
adding 'main.apps.MainConfig' at the end of the INSTALLED_APPS also works which is what Tim added in previous videos
@ashleymutenha5093
@ashleymutenha5093 2 года назад
thank you you helped me
@kennethlourisombrog2149
@kennethlourisombrog2149 4 месяца назад
Hey, I am a beginner aspiring programmer. May I ask on why did we say complete=False (capital F coz f doesn't work) in this First Item at 23:06? Thank you.
@nikolettakotora4642
@nikolettakotora4642 3 месяца назад
In Python, that's how you define a false boolean value with a capital F, otherwise, you'll have an error.
@AnnaIsHere
@AnnaIsHere 2 года назад
The page below "Enroll in THe Fundamentals..." doesn't work
@idineshroy
@idineshroy 4 года назад
We don't need another directory named as the app name in the template ('main' as in this tutorial). Just template directory will do.
@hjluna7760
@hjluna7760 4 года назад
why I keep havinf the error someone advice me plz OperationalError at /3 no such table: main_todolist
@amankaushik5833
@amankaushik5833 4 года назад
because you need to run makemigrations and migrate on your database.....
@TheWronboy
@TheWronboy 2 года назад
i cant parse my block from home to base.html, helpppp
@siamahmed8287
@siamahmed8287 3 года назад
Tim I need your help.
@xxxxxGhostBoyxxxxx
@xxxxxGhostBoyxxxxx 2 года назад
12:58 HAHAAHAHAHAHAHHAHAAHA i'm sorry. I just had to make this comment. Okay. Back to Tim With Tech tutorial.
@annadonts
@annadonts 9 месяцев назад
I get a TemplateDoesNotExist error, can anyone help please 😭
@Meenimie
@Meenimie Год назад
Comment.
@ratnavelmakesan4072
@ratnavelmakesan4072 5 лет назад
How do u make an online 2 player gun game?
@js-0018
@js-0018 3 года назад
:)
@crustindanglade6036
@crustindanglade6036 4 года назад
Dude this is such a good explanation, is there a place where I can send you a shekel or 2, I get paid 2moro.
@TechWithTim
@TechWithTim 4 года назад
I have a Patreon! Or u can always send stuff through PayPal to my email which can be found in the description and the about page of my channel
@ratnavelmakesan4072
@ratnavelmakesan4072 5 лет назад
Plz leave a tutorial on this!
@michaele2826
@michaele2826 3 года назад
The 3 people who voted down, accidently deleted their trash bin.
@annujolly3024
@annujolly3024 4 года назад
This is amazing content!
Далее
Django Tutorial - Simple Forms
21:56
Просмотров 76 тыс.
FastAPI, Flask or Django - Which Should You Use?
9:49
это самое вкусное блюдо
00:12
Просмотров 1,2 млн
Кошка-ГОНЧАР #шортс #shorts
00:28
Просмотров 324 тыс.
Create a clean, modern navigation with HTML & CSS
25:17
Python Django App & Templates tutorial
23:07
Просмотров 11 тыс.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
Просмотров 911 тыс.
How to Render Django Templates with HTML
12:04
Просмотров 5 тыс.
Using CSS custom properties like this is a waste
16:12
Просмотров 159 тыс.
это самое вкусное блюдо
00:12
Просмотров 1,2 млн