My suggestion for future videos like this one is to show fully functional project/website that we are going to build throughout tutorial on the beginning of the video, so it may be more exciting following along :) Other than that, thanks, awesome as always !
@giraffes28155 жыл бұрын
I'm glad you kept the mishaps in because it helps us understand how to read errors!
@jirikadlec10586 жыл бұрын
Nice hands-on tutorial! I liked that your code did not always work from the start and that you experienced various errors. I like how you explained the reason for each error and how to fix it.
@ryanzwaagstra66067 жыл бұрын
@Traversy Media... This was an absolutely amazing guide. I am new to both Python and Django. You made so much extremely clear and easily understood. Thank you so much for your time. You even showed how to troubleshoot a little. I ran into a few mistakes on my own doing and was able to work through them in the same fashion you worked through yours. Thanks again.
@pedromondragon66317 жыл бұрын
All new people wanting to learn django, first go to another video and install django with a virtual environment, because Brad doesnt do it, then you can come back and continue watching the lesson, which is great, but you may want to install the virtual environment first.
@JesusGil906 жыл бұрын
I also recommend using Pycharm IDE
@abbyadams73004 жыл бұрын
I'm glad I'm not the only one that has to adjust the urls routing multiple times.
@redsnakeintown7 жыл бұрын
You can open any code editor by shotcuts , in the project folder type atom . This will open atom on the project folder, this works for other text editors too..
@xx4827 жыл бұрын
I am very happy that you have done a video on Python Django .. Awesome .. I have learned JS by watching your videos .. Thanks a lot , you inspired me to learn Javascript
@ytSpoiler7 жыл бұрын
Very good tutorial. In my opinion best part is create own 'add form'.
@marktwain30837 жыл бұрын
Instead of running atom and opening your project folder, you could simply run "atom ." in your terminal while being in your project's folder.
@eugenenovikov6717 жыл бұрын
спасибо за инфу.
@beatalert1234 жыл бұрын
@@eugenenovikov671 definitely would agree with you only if I could understand what you have written :) The community would appreciate if we all communicated in a common language :) Cheers!
@eugenenovikov6714 жыл бұрын
@@beatalert123 namaste. just use google translate. "thanks for info" it should translate
@beatalert1234 жыл бұрын
@@eugenenovikov671 too much effort for information buddy. I'd pass it! Thanks for the tip.. I never knew Google Translate could do that 😆 That enlightenment feeling 😌😇
@LewraAzad3 жыл бұрын
Come on. Make an updated version of react django todo app for us. We really need this who are trying to learn django. I love your teaching style
@hardikmodi82347 жыл бұрын
this is the tutorial which makes me understood the Django.Thank you very much.
@domothepilot7 жыл бұрын
i am new in programming and i understood almost everything. thanks so much for your time. great stuff.
@ShahnawazSayyad7 жыл бұрын
Very nice ... you explained with so much clarity and simplicity... keep up your good work.
@alexanderbergkvist92247 жыл бұрын
Took a noob like me 3 long days to get through this xD including getting all the installs to work.. But damn good tutorial :D
@dipeshjain86306 жыл бұрын
how did you run this on windows and did you download the zip file and then imported it
@JD-oj1hr4 жыл бұрын
I can't get the request to install for the def index on the views.py file. For some reason Pycharm does not like it. Can only access localhost:8000 and the admin page. Please help!
@codybythesea7 жыл бұрын
excellent vid on Django. Maybe to complete the Todo list, we can try to implement a delete button
@MallikaKhullar7 жыл бұрын
Hey Brad, thanks for these awesome videos! Just one suggestion: it would be so great if you could incorporate some explanation with the video. For example, when you're doing the "def __str__(self): return self" bit, it would have been nice to understand what __str__ is actually.
@alexyap36597 жыл бұрын
you probably already know this by now but if i understand correctly (mind you, i'm new to django) the __str__() function is a built-in django function that when defined creates a string representation of your object
@Floflox7 жыл бұрын
Just what I needed to understand django's basic, thanks a lot !
@akofa130397 жыл бұрын
if i will start learning web development as a back-end developer .. which framework you recommend me to learn .. django or nodejs .. i am good in dealing with both python and javascript .. thanks in advance
@alexf62482 жыл бұрын
Man, did this just help me. Thank you
@jerehme_gayle7 жыл бұрын
Wow this was a great tutorial a lot better than some paid sites! Easy to follow and understand. Please do another Django tutorial maybe expanding this project user registration/ login/ and a profile page would really great addition. Thank you so much for the excellent cont
@briancrane76347 жыл бұрын
Brad Many thanks for another excellent video! I've been one of your students both here and on U for a year or so. I'll give you the same compliment that I always wanted to hear from my customers in my engineering career. You do good work! 86
@mnop27 жыл бұрын
Great tutorial. Some explanation missing though. I think one should do it after going over the Django starting tutorial.
@siddharthsr20006 жыл бұрын
Awesome.. i saw both the tutorials.. In this one the view and add functionality is very easy. Can U make a video for the Update n delete segments please.
@gligom7 жыл бұрын
Hi, Nice videos and good work! You can tell what is your favorite web dev "stack"? What you will choose for front-end and what for back-end if you will start a new project? Thank you!
@shubhambiniwale96236 жыл бұрын
Thank you sir! I followed complete tutorial of yours...and it was great!
@24junar7 жыл бұрын
Hi Brad, you are the best! Please make a tutorial of Django rest api with Angular 4. Thanks
@coding_ss6327 жыл бұрын
1:53 :p
@tonyagenbroad21967 жыл бұрын
that made me laugh out loud when I was watching haha
@TraversyMedia7 жыл бұрын
:) Some youtube commenters are just stuck up assholes that want to prove everyone wrong. Fortunately I seem to get the best and most respectable ones though, so I'm happy about that
@abdulelahaljeffery62347 жыл бұрын
there is also the dislike-and-leave-without-contributing-any-useful-comment kind of assholes too!
@TraversyMedia7 жыл бұрын
Ah yes, I got one here. And honestly I think its the same douchbag in all my videos. I get 1 - 2 dislikes. Its like dude, your not paying for it so unless it is absolutely unbearable why dislike? and LEAVE SOME FEEDBACK so I can fix it!
@jebbush29647 жыл бұрын
Thank you for the video tutorials @TraversyMedia. Don't mind those who envy you. You are an excellent instructor.
@Colstonewall7 жыл бұрын
Very nice tutorial! Only thing I would've changed is putting the header and footer in index.html, then using {% extend 'index.html' %} in your other templates. . .And I wouldn't use hard coded URL's in the templates either. Name them in urls.py, then in the templates use . Anyways, thank you!!
@TraversyMedia7 жыл бұрын
Yeah I figured a layout was a better than what I did with the partials. I almost changed it but said screw it. Its easy enough for people to figure out
@prasad36737 жыл бұрын
can you make more videos of Django ...
@md.alauddinal-amin98427 жыл бұрын
good complete tutorial.. in a nutshell al most everything you have shown..
@CoryTheSimmons7 жыл бұрын
Try Conda instead of Pip/virtualenv for environment isolation.
@karthikeyanrajendran60046 жыл бұрын
Nice video. Understood all codes clearly..!
@saqibhussain13546 жыл бұрын
Can you do a course on TDD as well? Awesome content bro!
@ComptGeorges5 жыл бұрын
I have one issue : at 48:00 roughly. My posts won't add. I thought there could be an issue with add.html or veiws but I have no errors, no crashes, it just won't add, like a submit button isn't working. I have no idea why. I copied your code from the start until the end. I am using Django v1.11.7. Could the problem be there? Do I need to downgrade to 1.10? Or there is a workaround? Cheers.
@sweinvestidor7 жыл бұрын
Which do you like more, Django or Ruby on Rails?
@clyt96367 жыл бұрын
Vitor Vezani given that ror could implement all this stuff in just under 3 minutes using scaffolding, ror is the clear winner in that area
@noidentify31745 жыл бұрын
nice video, how to build view deatils for each data ? example if click "to do list one" or " to do list two" i got a paga that containt detail information about them not CRUD page
@DennisIvy5 жыл бұрын
Retrieve the item in the view and pass it into the template like this: def itemDetail(request, obj): item = Item.objects.get(id=obj) context = {'item':item} return render(request, 'app/template.html, context) Pass in the item id into the url: path(''item/'/, views.itemDetail)
@noidentify31745 жыл бұрын
@@DennisIvy thank you so much bruh, im gonna try it
@kingsleyfelix7 жыл бұрын
Should i focus on Ruby or Python or PHP (already on this)
@vic0de7 жыл бұрын
just do atom . in the terminal to open atom with the current folder in it. thanks for the tutorial. do u just go with the flow while making tutorials or do u prepare and pre record vedios?
@TraversyMedia7 жыл бұрын
I usually just prepare the application or something that resembles the app ill be building and then do a run through. I dont usually need to edit unless I really mess up. I do prepare the powerpoint presentations much more than the coding
@zlatkoiliev89276 жыл бұрын
Awesome tutorial as always! Thank you for your effort on doing these tuts! :)
@saitaro7 жыл бұрын
Thanks for the lesson! What accent do you have, is it Boston?
@p2nl6 жыл бұрын
Great Tutorial. I work in a newer version of pyton and django and I'm half way the tutorial and get stuck to this syntax error: url('^details/(?P\w{0,50})/$', views.details) In the newer version the r at the beginning is not used anymore. What went wrong?
@p2nl6 жыл бұрын
its in todos/urls.py
@p2nl6 жыл бұрын
I found out what went wrong: I forgot to add a comma at the end of the line above. Sorry.
@tezdrive81906 жыл бұрын
hey i am having the same problem. I am stuck here. I still can't find my mistake. And in the newer version I use path instead of url.
@oscardavid87176 жыл бұрын
did you fix it?
@oscardavid87176 жыл бұрын
im using path too , and im stuck :(
@markolivancic6 жыл бұрын
Love your stuff man! Keep up the awesome work you do my friend.
@chesterholt55516 жыл бұрын
Dude, you're an absolute legend. Thank you!
@LiaAdzumi5 жыл бұрын
Hi, How to create database-driven multiple dropdown menu using django? Can you do it? Thanks for the tutorial.
@hendrjl5 жыл бұрын
Hello , i know is to late. But i really really love your Channel for free Tutorials. Hihi btw , i have watch many of your video and i say thanks for It. Keep sharing
@assmaal-adawi78966 жыл бұрын
Hi! Great tutorial but I keep getting an error that no module called "todos.url" (around the 10 minute mark). How do I troubleshoot that?
@ChristopherAdams17 жыл бұрын
I had to use True instead of true for created_at = models.DateTimeField(default=datetime.now, blank=True) stackoverflow.com/questions/30095032/nameerror-name-true-is-not-defined
@rogerwang25547 жыл бұрын
Yep ur right it seems it was corrected automatically by his IDE in the video
@nishowsan38077 жыл бұрын
you should use timezone.now() from the "from django.utls import timezone"
@JesseFisher-can-has-coffee7 жыл бұрын
thank you
@TheBurningofSolomon6 жыл бұрын
had the same error. thanks!
@mmathenge59697 жыл бұрын
Traversy Media thanks, you should make a live tutorial ;)
@leaoaugusto7 жыл бұрын
Nice tutorial. Thanks so much!
@ericespino73617 жыл бұрын
Shouldn't be better using Python 3.5 instead of Python 2.7. Years passed and we continue to use an "obsolete" version.
@everythingisnothing81377 жыл бұрын
2.7 is the best version!
@empyrerhomann67437 жыл бұрын
2.7 is never obsolete ... Please know what you say!!!!
@Artificial_Intelligence_AI7 жыл бұрын
I don't know much but Python 2.7 still comes with the latest mac OSX (high sierra) as the unique python version installed (I think you can also install python 3 but you can't remove python 2.7) so it has to be because they consider that is not obsolete yet.
@evilface10101016 жыл бұрын
Python3 was released in 2008 or 2009 and the community was very resistant since it was not backwards compatible with Python2. There were some significant syntax changes. For example, in Python2 the following code ... print "Hello, World" is completely legal. However, in Python3 this would return an error... as the correct syntax is ... print("Hello, World") You can see how this would be extremely difficult to maintain in even the smallest of projects. With that said, many packages still support Python2 and it has taken some time for some to get on board with Python3. The community is making great steps in adopting Python3 over the next few years but Python2 is by no means, "Obsolete"
@alaskacitygirl6 жыл бұрын
2.7 is currently being deprecated and will no longer be maintained as of 2020. Anyone who's afraid to use the word 'obsolete' is being overly sensitive 😜 pythonclock.org/
@icegreenedits45535 жыл бұрын
Hello! I have been stuck for hours in creating the details page.. I get "Page not found (404)" and "127.0.0.1:8000/todo/details/1"... any suggestions?
@Sourcedeep17 жыл бұрын
I often feel like website built with django are slow (at least on my system - maybe it's specific to the ways my computer and system is configured)
@naimislamantor37814 жыл бұрын
Hey how can write python code for web without a framework please make a detail video.
@uditsaurabh20915 жыл бұрын
Kindly make a tutorial on Django class based views
@UCBCteam7 жыл бұрын
increase the font size of your text editor, please ... thanks
@yanl.37766 жыл бұрын
when I run pip install Django, it says"Cannot fetch index base URL pypi.python.org/simple/ Could not find any downloads that satisfy the requirement django.No distributions at all found for django"
@mashaandbeer14726 жыл бұрын
Brilliant Tutorial Man!
@huxixi41206 жыл бұрын
Sorry, but I really wonder that why after "python manage.py startapp todos" I don' t have the apps.py file??? I use Django 1.8
@victorogonyo56176 жыл бұрын
please do a whole course on django on udemy and add features such as login,image processing google maps search admin
@Bircalences7 жыл бұрын
Nice tutorial. I tried to follow using atom.io but I think it sucks, it can't see the object names in imported py modules, so it can't help with the syntax. I even installed atom-django packages, but they didn't help either. I'll return to use PyCharm. Coding python with PyCharm is x times faster than with atom, because it handles the syntax without pain. Atom is good with html/css/js but not with python, imho.
@rodrigososa52817 жыл бұрын
Try VsCode it works like a charm
@yashbansal88712 жыл бұрын
When i run show tables after doing migration it shows empty set. why?
@redabakr7 жыл бұрын
Thanks, This is an excellent tutorial
@goldilockszone43897 жыл бұрын
would learn this or Flask for simple todo apps ?
@Joopez17 жыл бұрын
flask
@adsbix53377 жыл бұрын
Thank u so much , i have question about menu bar like mac , how to do that ? i have backbox (ubuntu) !!
@adsbix53377 жыл бұрын
thanks bro
@sudiptodebu21555 жыл бұрын
mentor we need a complete django project course medium level.plz try to help us
@joydeeproychowdhury53536 жыл бұрын
can we use 'path' instead of 'url'???
@michaeldicicco64317 жыл бұрын
This was fantastic.
@ibex40486 жыл бұрын
'todos.apps.TodosConfig', dude from where u got that TodosConfig?? You should have more detailed.
@Official_TMC5 жыл бұрын
it looks like the django im using is different from your django
@brunojesus54447 жыл бұрын
Great tutorial, thanks
@cybex75 жыл бұрын
what is version of your django in this tutorial?
@deerew235 жыл бұрын
This is really helpful!
@malcs37583 жыл бұрын
Excellent, thanks
@wayandanyaeleco49696 жыл бұрын
SO USEFUL THANK YOU !!! GODBLESS !
@adamkenton25857 жыл бұрын
What do you use to record your screen ?
@TraversyMedia7 жыл бұрын
I use Camtasia on Windows. This tutorial was done in a VM
@vic0de7 жыл бұрын
Traversy Media kazam is good for Ubuntu
@TraversyMedia7 жыл бұрын
Ill check that out. Its really the only thing holding me back from going full on Linux
@adamkenton25857 жыл бұрын
I understand you Brad
@rajiththennakoon73927 жыл бұрын
exactly..only thing i use windows for screen recording
@soubhagyapradhan36246 жыл бұрын
how to use mysql database which i have already with xampp for php
@saikirankummari6317 жыл бұрын
hey I got struck at 36:36 where we are passing (id=id) as get objects..but it is showing an error as pagenot found
@tezdrive81906 жыл бұрын
hey i have the same problem. were you able to solve it?
@CarlosRojas-zk1ic7 жыл бұрын
This is aCTUALLy cool ! thanks so much
@channachannu6 жыл бұрын
I'm getting an error "No module named 'MySQLdb' " When I tried to run the server
@JD-oj1hr4 жыл бұрын
Me either! Did you ever solve it?
@GauravMishra05094 жыл бұрын
bro he fooled you. he used used sqllite3 but has changes the name to mysql in settings.py line no.77 very cunning
@GauravMishra05094 жыл бұрын
@@JD-oj1hr bro he fooled you. he used use d sqllite3 but has changes the name to mysql in settings.py line no.77 very cunning
@MohamedAyman-li6rp7 жыл бұрын
Hi, Brad, Why we get this .pyc after running the server.
@jeffrey1525 жыл бұрын
It's a compilated python file used by python to run faster. Read more here (of course in case you still don't know what it is 1y later) : stackoverflow.com/questions/2998215/if-python-is-interpreted-what-are-pyc-files
@louiewilson67545 жыл бұрын
Great video!
@buchdev7 жыл бұрын
Tu velocidad de descarga es mayor a 4Mb/s, impresionante, aqui en venezuela la mayor es 1Mb/s y muy raro
@34fagomes7 жыл бұрын
So Helpful!! Tks!!
@victorogonyo56176 жыл бұрын
Build a social network with django
@yalgret6 жыл бұрын
I was told SQLLite can handle terabytes of data...
@MathieuBourmaud7 жыл бұрын
Very good tutorial as usual ;)
@JacksonWelch5 жыл бұрын
Mark Wahlberg is that you?
@abdullahatif78544 жыл бұрын
Dude, you have to updtae this tutorial by using new django versions.
@MHP27385 жыл бұрын
at minute 11:51 i get this error ModuleNotFoundError: No module named 'todos'
@giraffes28155 жыл бұрын
why is it todos.apps.TodosConfig at 22:40 ?
@jiandeng85956 жыл бұрын
how to deploy this app
@cruisemissle877 жыл бұрын
That banging upstairs?
@meesiphht27696 жыл бұрын
Just another tutorial that really ought to be sound only and no, I never did see the final result. WOT
@humanrights44986 жыл бұрын
Thanx bro
@ihorslavinskyi98237 жыл бұрын
I am new in programming, and i understand nothing. Can you recommend to me some textbook about Django?
@ronborneo19757 жыл бұрын
It's not smart to begin with frameworks. Instead, you should try learning the language behind Django which is Python. There are plenty of books for Python.
@ihorslavinskyi98237 жыл бұрын
Ok
@faresgeek-dz56927 жыл бұрын
plz more django practic lick ecomerce blog social media
@horvathlg7 жыл бұрын
...or a grammar checker for my buddy.
@faresgeek-dz56927 жыл бұрын
krumplilovag hhhh yes why not...
@GoofyChaiLoverGirl7 жыл бұрын
1.11.4
@FootballForThePeople3 жыл бұрын
Doing a BA in web development and the lecture is so poor. Everytime I come for you instead.
@omar662777 жыл бұрын
command prompts??? what is this 1985!!
@ndemou7 жыл бұрын
:-) I totally get your feeling. Heck command prompts (CLI's) are even more old-fashioned than that (like in 1965 instead of 1985). However make no mistake: fashion has nothing to do with functionality. Both the GUI and the CLI have their role their strengths and their weaknesses. Heavily graphical oriented programs from every part of the spectrum (like AutoCad and Minecraft) have a CLI. There's a reason. Invest time in the CLI and you'll find the reason (just skip the awful windows command prompt -- all the ugliness of a CLI and none of its powers -- bash and the GNU utils are a grate start that I know of and I hear good words about power shell but haven't tried it). It worths repeating anyway: don't let fashion dictate such choices.