tubeshowcase●1,194,391 videos♡ My collection 0
← Learn to Code

Learn to Code11:35

Individual blog pages - Django Web Development with Python 10

sentdex ↗

From the creator

In this 10th Django web development with Python tutorial, we're going to cover creating more dynamic URLs. In our case, we need to have URL handling for a URL that has something like /blog/2/, where the 2 corresponds to the 2nd blog post. As you may have guessed, Django saw this coming, and has you covered. In our case, and in many cases, the 2 is the table's Primary Key. A primary key is a unique identifier per table in a database, no other entry should have the same primary key as another. Because of this, having a Primary Key makes for an easy way to lookup elements and is common practice. Because of this, Django has built this premise in quite deeply. Text-based tutorial and sample code: https://pythonprogramming.net/finished-blog-django-python-tutorial/ https://pythonprogramming.net https://twitter.com/sentdex https://www.facebook.com/pythonprogramming.net/ https://plus.google.com/+sentdex

Published 2016-02-08 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code