Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
5250101cd7
|
@ -4,10 +4,12 @@ import uuid
|
||||||
from django.core.cache import cache
|
from django.core.cache import cache
|
||||||
from rest_framework.decorators import api_view
|
from rest_framework.decorators import api_view
|
||||||
from rest_framework.response import Response
|
from rest_framework.response import Response
|
||||||
|
from django.conf import settings
|
||||||
|
|
||||||
|
|
||||||
@api_view(['POST'])
|
@api_view(['GET', 'POST'])
|
||||||
def manage_items(request, *args, **kwargs):
|
def manage_items(request, *args, **kwargs):
|
||||||
|
if request.method == 'POST':
|
||||||
# Define a timeout value (in seconds)
|
# Define a timeout value (in seconds)
|
||||||
timeout = 5
|
timeout = 5
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue