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,11 +1,11 @@
|
||||||
from django.conf.urls import url
|
from django.urls import path
|
||||||
from . import views
|
from . import views
|
||||||
|
|
||||||
app_name = 'lemonauth'
|
app_name = 'lemonauth'
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url('^login$', views.login, name='login'),
|
path('login', views.login, name='login'),
|
||||||
url('^logout$', views.logout, name='logout'),
|
path('logout', views.logout, name='logout'),
|
||||||
url('^indie$', views.IndieView.as_view(), name='indie'),
|
path('indie', views.IndieView.as_view(), name='indie'),
|
||||||
url('^indie/approve$', views.indie_approve, name='indie_approve'),
|
path('indie/approve', views.indie_approve, name='indie_approve'),
|
||||||
url('^token$', views.TokenView.as_view(), name='token'),
|
path('token', views.TokenView.as_view(), name='token'),
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.conf.urls import url
|
from django.urls import path
|
||||||
|
|
||||||
from .views import unshort
|
from .views import unshort
|
||||||
|
|
||||||
app_name = 'lemonshort'
|
app_name = 'lemonshort'
|
||||||
urlpatterns = tuple(
|
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()
|
for k, m in settings.SHORTEN_MODELS.items()
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
from django.conf.urls import url
|
from django.urls import path
|
||||||
from . import views
|
from . import views
|
||||||
|
|
||||||
app_name = 'micropub'
|
app_name = 'micropub'
|
||||||
urlpatterns = (
|
urlpatterns = (
|
||||||
url('^$', views.micropub, name='micropub'),
|
path('', views.micropub, name='micropub'),
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
from django.conf.urls import url
|
from django.urls import path
|
||||||
|
|
||||||
from . import views
|
from . import views
|
||||||
|
|
||||||
app_name = 'wellknowns'
|
app_name = 'wellknowns'
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^keybase.txt$', views.keybase, name='keybase'),
|
path('keybase.txt', views.keybase, name='keybase'),
|
||||||
url(r'^host-meta$', views.host_meta_xml, name='host-meta'),
|
path('host-meta', views.host_meta_xml, name='host-meta'),
|
||||||
url(r'^host-meta.json$', views.host_meta_json, name='host-meta.json'),
|
path('host-meta.json', views.host_meta_json, name='host-meta.json'),
|
||||||
url(r'^manifest.json$', views.manifest, name='manifest'),
|
path('manifest.json', views.manifest, name='manifest'),
|
||||||
url(r'^webfinger$', views.webfinger, name='webfinger'),
|
path('webfinger', views.webfinger, name='webfinger'),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue