Comments (1)
The new syntax supports type coercion of URL parameters. In the example, the view will receive the year keyword argument as an integer rather than as a string. Also, the URLs that will match are slightly less constrained in the rewritten example. For example, the year 10000 will now match since the year integers arenβt constrained to be exactly four digits long as they are in the regular expression.
The django.conf.urls.url() function from previous versions is now available as django.urls.re_path(). The old location remains for backwards compatibility, without an imminent deprecation.
The old django.conf.urls.include() function is now importable from django.urls so you can use from django.urls import include, path, re_path in your URLconfs.
from book2-exercises.
Related Issues (20)
- improper csv encoding in sql repo
- form.validate_on_submit is not recognized
- Latest Update(13.06.2015)- Part 2, page 342 HOT 1
- Real Python Part 2/flasktaskr-01 404 error HOT 1
- Book 2, p. 117 [7.10 (Add posts)] - Routes Order Clarification HOT 1
- About web-crawling in hackernews HOT 5
- web2py section 22.11 Notes HOT 5
- django-ecommerce stripe test payments are not working HOT 2
- Real Python Part 2 page 37 typo. HOT 2
- page 120 inconsistensies HOT 1
- missing line of code? HOT 3
- typo, <div> should be </div> HOT 1
- Incrementing before declaring HOT 5
- Real Python Python Part 2, Page 38 (typo) HOT 1
- Real Python Python Part 2, Page 58 (typo) HOT 1
- Rotten Tomatoes "Movie Suggester" β Cannot Get API Key (p. 427 et seq.) HOT 4
- Scrapy Shell example needs SSL connection (p. 477) HOT 2
- Socrata scraping and crawling examples need to be updated (p. 482 &seq.) HOT 7
- stock_download.py doesn't (seemingly) function as it should (p. 489) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from book2-exercises.