Django 2 URLs Tutorial For Beginners (2018)

  Рет қаралды 24,780

The Dumbfounds

The Dumbfounds

Күн бұрын

In this video you will learn how to work with urls in django.
7 Tips For Getting Better At Django:
mailchi.mp/dea...
First, you will learn how to set up basic paths, with and without arguments.
After that, you will learn about the include function which can be used to include another urls file.
Then we will cover names. They can be used to 'reverse engineer' the url of a path, making it more convenient to change the url of a path without breaking all the links in our application (that will be covered in the next part about templates).
Last, we will wrap this off with namespaces that can group names to remove common prefixes and enable you to re-use names through multiple apps.
Github repository for this series:
github.com/Rec...
If you enjoyed this video, make sure to subscribe and share it with anyone you think could enjoy it as well.
I hope to see you inside of the next episode,
Cheers.

Пікірлер: 49
@Thesrik23
@Thesrik23 6 жыл бұрын
One word for you: Awesome ! The only channel on KZbin to cover Django topics from scratch to end.
@thedumbfounds767
@thedumbfounds767 6 жыл бұрын
thank you Srikant, there's a lot more to come!
@Thesrik23
@Thesrik23 6 жыл бұрын
When you'll do the project series videos like the previous two Budget Application, Calendar Application??
@thedumbfounds767
@thedumbfounds767 6 жыл бұрын
I first want to cover django in general so you can start building your own projects without me. After that, we'll see what we can build together! Any suggestions for a project topic?
@Thesrik23
@Thesrik23 6 жыл бұрын
The Dumbfounds Something from production perspective, using Celery and RabbitMQ! Please also cover customizing Default Admin in Django in the ongoing basics of Django series in upcoming videos!
@Skaxarrat
@Skaxarrat 6 жыл бұрын
+1 on Celery!
@kanishkvishwakarma3599
@kanishkvishwakarma3599 4 жыл бұрын
9 Dislikes?!!!? Are you crazy!!! This dude here solved my problem which was going on for days and you're saying that you're not satisfied with this awsome URLs video?!!! @Dumbfounds, you've made my day brother, I've been scratching my head over this problem of mapping my URLs from my Apps, rather than my Project directory's urls.py and you not only solved my problem but also provided me with deep insight about how things like these work. Great job dude.
@paulthompson3156
@paulthompson3156 4 жыл бұрын
Very useful demonstration of URL and view functionality in Django. Especially the reverse function which I was finding difficult to understand until I found this video. Thank you
@kumardubey9202
@kumardubey9202 2 жыл бұрын
very nice explanations. thanx
@nayannandakumar2917
@nayannandakumar2917 4 жыл бұрын
How can I call the path which you have not given any name on 0:42 ie the home page
@satwikawasthi2002
@satwikawasthi2002 3 жыл бұрын
How to use frameset in django please help
@MrBytmin
@MrBytmin 6 жыл бұрын
Awesome tutorial dude! So much of useful info in 10 min video.
@thedumbfounds767
@thedumbfounds767 6 жыл бұрын
Alexius The Magnificent thank you!
@ziyadkader6767
@ziyadkader6767 6 жыл бұрын
thanks mate , you really helped , i was struggly to understand this .
@thedumbfounds767
@thedumbfounds767 6 жыл бұрын
you're welcome Ziyad!
@RajKumar-wq6cj
@RajKumar-wq6cj 5 жыл бұрын
@@thedumbfounds767 hey I got a problem in templates if I click suppose register twice it is taking routing to register/register and it is showing as page not found 404 error how to over come this one can you help me out with this one ?
@fuyuzhang4888
@fuyuzhang4888 5 жыл бұрын
love this video
@kvnagendra5354
@kvnagendra5354 5 жыл бұрын
Osm explanation
@grzesupel
@grzesupel 5 жыл бұрын
awesome tutorial, thanks!
@adante407
@adante407 6 жыл бұрын
Great tutorials👍 Are you going to be making any more in the near future?
@thedumbfounds767
@thedumbfounds767 6 жыл бұрын
Sure, currently doing a series on testing! Are you looking for anything specific?
@adante407
@adante407 6 жыл бұрын
@@thedumbfounds767 Just Starting out with Django. But I always think the best way to learn is to Build. So hopefully in the future you could do some full project tutorials. Would be great.
@thedumbfounds767
@thedumbfounds767 6 жыл бұрын
@@adante407 great to hear! I'm currently working on a paid course for Django beginners who are new to web development. Would that interest you?
@samchaudhry908
@samchaudhry908 5 жыл бұрын
@@thedumbfounds767 I am interested in learning python django framework but i am looking for free quality tutorials so can you give me the tutorials you have on your end because right now i am not in a position to pay you for tutorials , moreover this tutorial is good but the quality of video is lacking in terms of resolution and please change the black back ground to white in Pycharm because its hard to see on black background
@christdeveloper
@christdeveloper 6 жыл бұрын
Good video, congratulations! :D
@thedumbfounds767
@thedumbfounds767 6 жыл бұрын
haha, thanks!
@dricard953
@dricard953 6 жыл бұрын
great tutorial series, my des go grey!
@thedumbfounds767
@thedumbfounds767 6 жыл бұрын
Thanks!
@unixdiver
@unixdiver 6 жыл бұрын
thanks mate !
@thedumbfounds767
@thedumbfounds767 6 жыл бұрын
you're welcome!
@user-kk7ym9ig3l
@user-kk7ym9ig3l 6 жыл бұрын
6:15 line 9 return HttpResponse(f' snippet....) Can you please explain what the meaning of that f' thanks!
@thedumbfounds767
@thedumbfounds767 6 жыл бұрын
y f-strings are new in Python 3.6+. With the f in front, you can interpolate, for example variables, into the string using {} (like I did in the video with the id).
@kushalgupta9613
@kushalgupta9613 5 жыл бұрын
I came after watching sentdex's dajngo playlist. I feel more educated now
@thedumbfounds767
@thedumbfounds767 5 жыл бұрын
Happy to hear that :)
@antipov2
@antipov2 6 жыл бұрын
I keep running into an issue with {id} simply returning "snippet detail with the id of {id}" instead of the int associated with id variable that I am passing. My syntax is identical to yours: return HttpResponse('snippet detail with the id of {id}') Any suggestions?
@thedumbfounds767
@thedumbfounds767 6 жыл бұрын
You need to put an 'f' before the string starts to make it an f-string.
@antipov2
@antipov2 6 жыл бұрын
@@thedumbfounds767 Yes, thank you. I saw that you did that, but this is while running 3.6.x, correct? I am on 3.5.
@thedumbfounds767
@thedumbfounds767 6 жыл бұрын
@@antipov2 Yes, it is. If you're on 3.5, try: return HttpResponse('snippet detail with the id of {}'.format(id))
@antipov2
@antipov2 6 жыл бұрын
@@thedumbfounds767 That worked great. Thank you.
@thedumbfounds767
@thedumbfounds767 6 жыл бұрын
@@antipov2 you're welcome ;)
@napoleonb55
@napoleonb55 6 жыл бұрын
For my include in the main urls.py file, i keep getting TypeError: view must be a callable or a list/tuple in the case of include(). whats the problem? from django.contrib import admin from django.urls import include, path from blog import views urlpatterns = [ path('admin/', admin.site.urls), path('blog/', include('blog.urls')) ]
@thedumbfounds767
@thedumbfounds767 6 жыл бұрын
MOLESTERMAN 69 Are you sure the error is in this file? Check thr blog.urls
@napoleonb55
@napoleonb55 6 жыл бұрын
thanks for the response! Since you're here, I would like to ask of your opinion on reactjs vs django? my friends tell me that its better to start with react now than django, but im so much stronger in python....
@thedumbfounds767
@thedumbfounds767 6 жыл бұрын
MOLESTERMAN 69 reactjs is a javascript framework for the frontend. Django is a python framework for the backend. They serve two different roles. Sometimes they're used together. You use react for what the user "sees", the frontend and Django on the backend. I'd learn HTML, CSS and plain JavaScript before anything else. Then, depending on your goals, you can jump into the backend. Does this clear things up? Also, watch this video of mine about how front end technologies interact with REST APIs on the backend: kzbin.info/www/bejne/qqvPhZKVnd1pqc0
@napoleonb55
@napoleonb55 6 жыл бұрын
Excellent reply sir! Seeing the 'bigger picture now'. Subbed and liked. More content pls!
@thedumbfounds767
@thedumbfounds767 6 жыл бұрын
MOLESTERMAN 69 you're welcome. Make sure to get the basics down and then add on top of that :)
@alejandrocardenas4488
@alejandrocardenas4488 4 жыл бұрын
Sería mejor este video si aparecieran subtítulos en español.
@kvnagendra5354
@kvnagendra5354 5 жыл бұрын
Prepare a diagram and show us what's going on, bcz we can't visualise things clearly
@looploop6612
@looploop6612 5 жыл бұрын
looks messy when swtiching over from one to another.
Django Templates Tutorial For Beginners (2018)
10:49
The Dumbfounds
Рет қаралды 11 М.
Django Forms Tutorial For Beginners - Get Started Fast! (2018)
29:36
The Dumbfounds
Рет қаралды 166 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
Learn the Basics of Django Signals
22:37
Matt Freire
Рет қаралды 51 М.
Django 2 Models Tutorial For Beginners (2018)
9:16
The Dumbfounds
Рет қаралды 6 М.
Django Design Patterns - URLs Best Practises (Part 1)
12:04
The Dumbfounds
Рет қаралды 27 М.
Turn 2 Eggs Into Fluffy Japanese Soufflé Pancakes!
5:26
CookingAtHome
Рет қаралды 3,5 МЛН
Think Fast, Talk Smart: Communication Techniques
58:20
Stanford Graduate School of Business
Рет қаралды 44 МЛН
How Model Queries Work in Django
27:47
Pretty Printed
Рет қаралды 95 М.
OAuth 2.0 and OpenID Connect (in plain English)
1:02:17
OktaDev
Рет қаралды 1,8 МЛН
Power BI Tutorial for Beginners
12:32
Kevin Stratvert
Рет қаралды 2,6 МЛН
Understanding Django Model Relationships
25:56
Pretty Printed
Рет қаралды 95 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН