© Daniel Rubio 2017

Daniel Rubio, Beginning Django, https://doi.org/10.1007/978-1-4842-2787-9_2

2. Django Urls and Views

Daniel Rubio

(1)F. Bahia, Ensenada, Baja California, Mexico

In Chapter 1 you learned about the core building blocks in Django, inclduing what are views, models, and urls. In this chapter, you’ll learn more about Django urls, which are the entry point into a Django application workflow. You’ll learn how to create complex url regular expressions, how to use url values in view methods and templates, how to structure and manage urls, and how to name urls.

After urls, Django views represent the next step in almost all Django workflows, where views are charged with inspecting requests, executing business logic, querying a database and ...

Get Beginning Django: Web Application Development and Deployment with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.