Port the urls for lemonauth, lemonshort, micropub, and wellknowns to path()
This commit is contained in:
parent
e9c46f23db
commit
70e57e4155
4 changed files with 16 additions and 16 deletions
|
@ -1,10 +1,10 @@
|
|||
from django.conf import settings
|
||||
from django.conf.urls import url
|
||||
from django.urls import path
|
||||
|
||||
from .views import unshort
|
||||
|
||||
app_name = 'lemonshort'
|
||||
urlpatterns = tuple(
|
||||
url(r'^{0!s}(?P<tiny>\w+)$'.format(k), unshort, kwargs={'model': m})
|
||||
path('{0!s}<tiny>'.format(k), unshort, name=m, kwargs={'model': m})
|
||||
for k, m in settings.SHORTEN_MODELS.items()
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue