Introduce some very, VERY basic support for micropub - only h-entry works, and only the name and content properties can actually be set, but it works

This commit is contained in:
Danielle McLean 2017-11-03 20:45:29 +11:00
parent a3f23e3b4d
commit 9a98fcdf4f
Signed by: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
7 changed files with 68 additions and 0 deletions

View file

@ -85,6 +85,7 @@ INSTALLED_APPS = [
'entries',
'home',
'lemonauth',
'micropub',
'users',
'wellknowns',
]

View file

@ -13,6 +13,7 @@
<link rel="authorization_endpoint" href="{{ origin }}{% url 'lemonauth:indie' %}" />
<link rel="token_endpoint" href="{{ origin }}{% url 'lemonauth:token' %}" />
<link rel="micropub_endpoint" href="{{ origin }}{% url 'micropub:micropub' %}" />
<link rel="openid.delegate" href="{{ origin }}" />
<link rel="openid.server" href="https://openid.indieauth.com/openid" />

View file

@ -39,6 +39,7 @@ urlpatterns = [
url('^.well-known/', include('wellknowns.urls')),
url('^admin/', otp_admin_site.urls),
url('^auth/', include('lemonauth.urls')),
url('^micropub', include('micropub.urls')),
url('^s/', include('shorturls.urls')),
url(r'^sitemap\.xml$', sitemap.index, maps, name='sitemap'),