File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ webmention for Django projects.
88
99* Add ` webmention ` to ` INSTALLED_APPS `
1010* Run ` manage.py migrate webmention `
11- * Add ` (r'^webmention', include('webmention.urls') , namespace='webmention') ` to top-level ` urls.py `
11+ * Add ` url (r'^webmention', include('webmention.urls', namespace='webmention') )` to top-level ` urls.py `
1212* Run ` manage.py test webmention ` to ensure unit tests all pass
1313
1414## Usage
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Installation
1111- Add ``webmention `` to ``INSTALLED_APPS ``
1212- Run ``manage.py migrate webmention ``
1313- Add
14- ``(r'^webmention', include('webmention.urls') , namespace='webmention') ``
14+ ``url (r'^webmention', include('webmention.urls', namespace='webmention') ) ``
1515 to top-level ``urls.py ``
1616- Run ``manage.py test webmention `` to ensure unit tests all pass
1717
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def receive(request):
2525
2626 response_body = fetch_and_validate_source (source , target )
2727 webmention .update (source , target , response_body )
28- return HttpResponse (' webmention successful ' )
28+ return HttpResponse (status_code = 202 , reason_phrase = 'The webmention was successfully received ' )
2929 except (SourceFetchError , TargetNotFoundError ) as e :
3030 webmention .invalidate ()
3131 return HttpResponseBadRequest (str (e ))
You can’t perform that action at this time.
0 commit comments