Updated django restframework.
Fixed CORS issue the django way instead of the nginx way.