mirror of
https://github.com/dnlbauer/django-signposting.git
synced 2026-09-10 14:05:31 +00:00
linting
This commit is contained in:
@@ -14,7 +14,6 @@ Including another URLconf
|
||||
1. Import the include() function: from django.urls import include, path
|
||||
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||
"""
|
||||
from django.contrib import admin
|
||||
from django.urls import path
|
||||
|
||||
from . import views
|
||||
|
||||
@@ -3,9 +3,10 @@ from django_signposting.utils import add_signposts
|
||||
|
||||
from signposting import Signpost, LinkRel
|
||||
|
||||
|
||||
def my_view(request):
|
||||
response = HttpResponse("Hello, world!")
|
||||
|
||||
|
||||
# Add signpostings as string
|
||||
add_signposts(
|
||||
response,
|
||||
@@ -13,4 +14,4 @@ def my_view(request):
|
||||
Signpost(LinkRel.author, "https://orcid.org/0000-0001-9447-460X")
|
||||
)
|
||||
|
||||
return response
|
||||
return response
|
||||
|
||||
Reference in New Issue
Block a user