I'm new to Python and Django. I added a URLPattern into urls.py as below:
url(r'^address_edit/(\d)/$', views.address_edit, name = "address_edit"),
I want my url accept a parameter of an integer with variable length, E.g. 0, 100, 1000, 99999, for the "id" of a db table. However I found that I only accept only one digits in above pattern. If i pass a integer not 1 digit only (e.g. 999999), it show an error
Reverse for 'address_edit' with arguments '(9999999,)' and keyword arguments '{}' not found. 1 pattern(s) tried: ['address_book/address_edit/(\\d)/$']
How do I construct the URL Pattern that let the program accept any number of digits integer from URL?