Django 2 URLs Tutorial For Beginners (2018)

preview_player
Показать описание
In this video you will learn how to work with urls in django.

7 Tips For Getting Better At Django:

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:

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.
Рекомендации по теме
Комментарии
Автор

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.

kanishkvishwakarma
Автор

One word for you: Awesome !

The only channel on YouTube to cover Django topics from scratch to end.

Thesrik
Автор

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

paulthompson
Автор

Awesome tutorial dude! So much of useful info in 10 min video.

MrBytmin
Автор

thanks mate, you really helped, i was struggly to understand this .

ziyadkader
Автор

How can I call the path which you have not given any name on 0:42 ie the home page

nayannandakumar
Автор

How to use frameset in django please help

satwikawasthi
Автор

I came after watching sentdex's dajngo playlist. I feel more educated now

kushalgupta
Автор

great tutorial series, my des go grey!

dricard
Автор

Great tutorials👍 Are you going to be making any more in the near future?

adante
Автор

6:15 line 9 return HttpResponse(f' snippet....) Can you please explain what the meaning of that f' thanks!

kkymigl
Автор

Sería mejor este video si aparecieran subtítulos en español.

alejandrocardenas
Автор

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?

antipov
Автор

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'))
]

napoleonb
Автор

Prepare a diagram and show us what's going on, bcz we can't visualise things clearly

kvnagendra
Автор

looks messy when swtiching over from one to another.

looploop