I\'d like to use a number with a decimal point in a Django URL pattern but I\'m not sure whether it\'s actually possible (I\'m not a regex expert).
Here\'s what I wa
It can be something like
urlpatterns = patterns('', (r'^item/value/(?P\d+\.\d{2})/$', 'myapp.views.byvalue'), ... more urls )
url should not start with slash.
in views you can have function:
def byvalue(request,value='0.99'): try: value = float(value) except: ...