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.
8
8
9
9
* Add ` webmention ` to ` INSTALLED_APPS `
10
10
* 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 `
12
12
* Run ` manage.py test webmention ` to ensure unit tests all pass
13
13
14
14
## Usage
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Installation
11
11
- Add ``webmention `` to ``INSTALLED_APPS ``
12
12
- Run ``manage.py migrate webmention ``
13
13
- Add
14
- ``(r'^webmention', include('webmention.urls') , namespace='webmention') ``
14
+ ``url (r'^webmention', include('webmention.urls', namespace='webmention') ) ``
15
15
to top-level ``urls.py ``
16
16
- Run ``manage.py test webmention `` to ensure unit tests all pass
17
17
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def receive(request):
25
25
26
26
response_body = fetch_and_validate_source (source , target )
27
27
webmention .update (source , target , response_body )
28
- return HttpResponse (' webmention successful ' )
28
+ return HttpResponse (status_code = 202 , reason_phrase = 'The webmention was successfully received ' )
29
29
except (SourceFetchError , TargetNotFoundError ) as e :
30
30
webmention .invalidate ()
31
31
return HttpResponseBadRequest (str (e ))
You can’t perform that action at this time.
0 commit comments