Skip to content

Commit

Permalink
Fix wrong (deprecated) url mapper (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandernst authored Oct 18, 2024
1 parent 52434a3 commit 545f8ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,12 @@ To set this up, install `django-ses` with the `events` extra::

Then add a event url handler in your `urls.py`::

from django.urls import re_path
from django_ses.views import SESEventWebhookView
from django.views.decorators.csrf import csrf_exempt
urlpatterns = [ ...
url(r'^ses/event-webhook/$', SESEventWebhookView.as_view(), name='handle-event-webhook'),
...
re_path(r'^ses/event-webhook/$', SESEventWebhookView.as_view(), name='handle-event-webhook'),
...
]

SESEventWebhookView handles bounce, complaint, send, delivery, open and click events.
Expand Down

0 comments on commit 545f8ac

Please sign in to comment.