from django conf urls defaults import url as url_ def url regex args k

1
2
3
from django.conf.urls.defaults import url as url_
def url(regex, *args, **kwargs):
return url_(regex[:-1] + r'pages/(\d+)/$', *args, **kwargs)