8000 fix sns endpoint with csrf_exempt · mauler/django-elastic-transcoder@9b3e633 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9b3e633

Browse files
committed
fix sns endpoint with csrf_exempt
1 parent 4c5e1e6 commit 9b3e633

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

dj_elastictranscoder/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.9.1'
1+
__version__ = '0.9.2'

dj_elastictranscoder/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import json
22

33
from django.http import HttpResponse, HttpResponseBadRequest
4+
from django.views.decorators.csrf import csrf_exempt
45
from django.core.mail import mail_admins
56

67
from .models import EncodeJob
@@ -10,6 +11,7 @@
1011
transcode_oncomplete
1112
)
1213

14+
@csrf_exempt
1315
def endpoint(request):
1416
"""
1517
Receive SNS notification

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@
2121
"South >= 0.8",
2222
],
2323
classifiers=[
24+
"Intended Audience :: Developers",
25+
"Operating System :: OS Independent",
2426
"Programming Language :: Python",
27+
"Programming Language :: Python :: 2",
2528
"Topic :: Software Development :: Libraries :: Python Modules",
26-
"Framework :: Django",
2729
"Environment :: Web Environment",
30+
"Framework :: Django",
2831
],
2932
keywords='django,aws,elastic,transcoder',
3033
)

0 commit comments

Comments
 (0)
0