GraphQL-python-archive / graphql-django-view

[DEPRECATED | Use graphene-django package] A django view that will execute a GraphQLSchema using a given Executor.
http://graphene-python.org/
MIT License
23 stars 7 forks source link

set cookie #10

Open HelloYie opened 8 years ago

HelloYie commented 8 years ago

How can i set cookie through HttpReponse? for exmaple:

response = HttpReponse('something')
reponse.set_cookie('my_cookie', 'cookie_value')
return reponse