Python Django Tutorial: Full-Featured Web App Part 2 – Applications and Routes

///Python Django Tutorial: Full-Featured Web App Part 2 – Applications and Routes

Python Django Tutorial: Full-Featured Web App Part 2 – Applications and Routes

FavoriteLoadingAdd to favorites

In this Python Django Tutorial, we will be creating a blog application within our Django project. We will also learn how to create URL patterns that are handled by our application views. Let’s get started…

The code for this series can be found at:

✅ Support My Channel Through Patreon:

✅ Become a Channel Member:

✅ One-Time Contribution Through PayPal:

✅ Cryptocurrency Donations:
Bitcoin Wallet – 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet – 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet – MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey’s Public Amazon Wishlist

✅ Equipment I Use and Books I Recommend:

▶️ You Can Find Me On:
My Website –
My Second Channel –
Facebook –
Twitter –
Instagram –

#Python #Django

source

By |2020-02-20T01:53:35+00:00February 20th, 2020|Python Video Tutorials|48 Comments

48 Comments

  1. Bob Silit February 20, 2020 at 1:53 am - Reply

    infinite times more clear than my uni lecturers, thanks

  2. Demi February 20, 2020 at 1:53 am - Reply

    9:35 For some reason, my blog/urls.py was named blog/url.py after blog creation. So just include("blog.url") instead.

  3. Jacob Vinson February 20, 2020 at 1:53 am - Reply

    Went through multiple django tutorials and none of them are nearly as good as this. Thanks for loads of help my friend 🤙🏼

  4. TEDDY Talks February 20, 2020 at 1:53 am - Reply

    Thanks Corey

  5. Slick Willie February 20, 2020 at 1:53 am - Reply

    Great video!

  6. Franky Hang February 20, 2020 at 1:53 am - Reply

    THANK YOU FOR THESE KIND SIR. Your walk-throughs & explanations make for very clear understanding

  7. 빅토리주식TV February 20, 2020 at 1:53 am - Reply

    Thank you

  8. Zen Yoshida February 20, 2020 at 1:53 am - Reply

    1st like

  9. raj kumar bondada February 20, 2020 at 1:53 am - Reply

    #ModuleNotFoundError…….Help!!!!

  10. JoshuaDueck February 20, 2020 at 1:53 am - Reply

    18:15 so then why do we need to put a trailing slash if both get redirected to the blog route anyways?

  11. Yahia Shams February 20, 2020 at 1:53 am - Reply

    Honestly the best is an understatement. Thank you.

  12. azin sf February 20, 2020 at 1:53 am - Reply

    Tnx for video👊It was great👏🏻👏🏻

  13. Ethio Denver February 20, 2020 at 1:53 am - Reply

    Does anyone know why my 127.0.0.1:8000/blog/about displays Blog home even though I have the followings
    urls.py
    from django.conf.urls import url, include
    from django.contrib import admin

    urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^blog/', include('blog.urls')),

    ]

    views.py

    # –– coding: utf-8 –
    from _future_ import unicode_literals

    from django.http import HttpResponse
    from django.shortcuts import render

    # Create your views here.
    def home(request):
    return HttpResponse('<h1> Blog Home </h1>')

    def about(request):
    return HttpResponse('<h1> Blog About </h1>')

    from django.conf.urls import url
    from . import views

    urlpatterns = [
    url('', views.home, name = 'blog-home'),
    url('about/', views.about, name = 'blog-about'),

    ]

    AND
    from django.conf.urls import url
    from . import views

    urlpatterns = [
    url('', views.home, name = 'blog-home'),
    url('about/', views.about, name = 'blog-about'),

    ]

    Note:
    python 3.7
    pip version 19.0.3
    Django 3.0.2

    Thank you

  14. xB4R7x February 20, 2020 at 1:53 am - Reply

    Damn dude – this has got to be one of the most clear and concise coding tutorials I've ever watched. Bravo.

  15. saurav Sunil February 20, 2020 at 1:53 am - Reply

    Import error: cannot import name path…

    What should i do sir

  16. George Kimutai February 20, 2020 at 1:53 am - Reply

    Also don not forget to be saving your files before running them you might have made some changes and forgotten to save.

  17. Mike Wheeler February 20, 2020 at 1:53 am - Reply

    Your explanations are very clear. I look forward to watching the rest of the videos in your Django series 🙂

  18. Patrick Chao February 20, 2020 at 1:53 am - Reply

    Such a good series! You make it so easy to learn Django! Thank You!

  19. Tonderai C Chinya February 20, 2020 at 1:53 am - Reply

    hi
    on my about page its still displaying Blog Home instead of Blog About. i checked the code is the same as yours. what could be the problem?

  20. Austin Hallett February 20, 2020 at 1:53 am - Reply

    Anyone know how to download the tree command??

  21. Test User February 20, 2020 at 1:53 am - Reply

    Man, you explain very well and clearly, I understood everything, despite my relatively level of English, thank you

  22. FASTAnswers February 20, 2020 at 1:53 am - Reply

    can someone please answer me why the call for the fucntion view is. 'view.home' instead of 'view.home()'?
    my IDE automatically added the brackets and it raised me an errror and took a while to figure where the problem is. but i don't know why this is an error. please explain to me

  23. derek kidking February 20, 2020 at 1:53 am - Reply

    you skipped how you solved the 404 error @ 10:12

  24. ライオRaıo February 20, 2020 at 1:53 am - Reply

    hi can pls help me with cmd when i create blog folder the cmd throw in error "blog" is not define

  25. Infinity Developer February 20, 2020 at 1:53 am - Reply

    You are too good. You explain each and every thing why we are writing this line in our project and what it does for us. Thank you so for this awesome Django series ❤️.

  26. VIKASH KUMAR JYOTI February 20, 2020 at 1:53 am - Reply

    Using the URLconf defined in Assignment_of_panorbit.urls, Django tried these URL patterns, in this order:

    admin/
    otplogin/ [name='otplogin-home']

    The current path, otplogin/, didn't match any of these.

    can you check please .

  27. Nicholas Hickam February 20, 2020 at 1:53 am - Reply

    At 9:45 I get 'No module named 'blog'' (using PyCharm) I will find a solution to this and post here if I can

    EDIT: Make sure you are in the django_project directory when you run 'Python manage.py startapp blog'

  28. Abhinav Ghosh February 20, 2020 at 1:53 am - Reply

    AttributeError: module 'blog.views' has no attribute 'home' this is the error i am getting

  29. Dev Super February 20, 2020 at 1:53 am - Reply

    top class video!

  30. _reddy r February 20, 2020 at 1:53 am - Reply

    You are awesome 😀

  31. Jocimar Lopes February 20, 2020 at 1:53 am - Reply

    Thanks Corey! You are a great teacher. It's amazing to see how you make learning so simple. Thank you, thank you 🙂

  32. Md. Shafiqul Islam February 20, 2020 at 1:53 am - Reply

    Excellent tutorial…

  33. James Brown February 20, 2020 at 1:53 am - Reply

    Really enjoying this series. I've said this already but your tutorials for Python, for any topic you've posted on, are by far the best I've found. Thank you for providing these resources!

  34. techkri February 20, 2020 at 1:53 am - Reply

    I wish all other people who are making tutorial should learn from this guy on how to make a tutorial.

  35. Young Kurupt February 20, 2020 at 1:53 am - Reply

    thanks

  36. Jawad February 20, 2020 at 1:53 am - Reply

    Anyone who thinks there is a lot of files should look at the angular project file structure.

  37. Anjali Santosh Ambat February 20, 2020 at 1:53 am - Reply

    best teacher. Loving your django series

  38. Chaitanya Sai February 20, 2020 at 1:53 am - Reply

    I am getting this error in command prompt… Please Help
    I followed the whole video

    96, in url_patterns

    raise ImproperlyConfigured(msg.format(name=self.urlconf_name))

    django.core.exceptions.ImproperlyConfigured: The included URLconf '<module 'blog.urls' from 'C:\Users\Chaitanya\Desktop\django_corey_prjct\blog\urls.py'>' does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably caused by a circular import.

  39. Ritik Malik February 20, 2020 at 1:53 am - Reply

    absolutely wonderful

  40. Lyt Ray February 20, 2020 at 1:53 am - Reply

    …. this is amazing!

  41. Elijah Mayorov February 20, 2020 at 1:53 am - Reply

    awesome explanations ! very detailed and very clear. The link between views.py and url files is much clearer than in other tuts

  42. dilzo999 February 20, 2020 at 1:53 am - Reply

    dajnk you

  43. brijesh vora February 20, 2020 at 1:53 am - Reply

    love your videos, keep uploading good stuff

  44. Glam by HA February 20, 2020 at 1:53 am - Reply

    Man you are amazing, i have never seen a single video with so clear, step by step explanation thumbs up

  45. Muhammad Talal February 20, 2020 at 1:53 am - Reply

    Man , U have made my concepts 😍.
    I have been watching from other channels , but your explanation is way better than those..

    Loved it
    Referring to my friends.❤

  46. Soumya Ranjan Das February 20, 2020 at 1:53 am - Reply

    Thank you Corey for your time and effort. Keep spreading the knowledge.

  47. sqeedward February 20, 2020 at 1:53 am - Reply

    I like when i'm learning programming to not just copy a code , to play with!!!
    And u explained that well that i was able to do it!!
    Ty

  48. yousuf raza dogar February 20, 2020 at 1:53 am - Reply

    I have tried a few other tutorials but idk how this guy explains it so simply. I don't even have to think about it again. You just make it settle in mind . Hats off champ 🙂

Leave A Comment

*