show all urls django extensions 1

show all urls django extensions

./manage.py show_urls

Here is what the above code is Doing:
1. We’re importing the path function from the django.urls module.
2. We’re assigning a view called post_list to the root URL.
3. We’re assigning a view called post_detail to the URL /post//, where is a placeholder for a primary key.

Similar Posts