I just wanted to upload my django project on digitalocean, but ran into multiple problems, of which I can not solve the last one.
I am using a restframework. After getting an error, that there is
No module named rest_framework.views
I installed it, but get the next error:
AttributeError at /
'module' object has no attribute 'JSONField'
Simply installing JSONField does not change anything. I think it still has to do with the restframework module.
/usr/local/lib/python2.7/dist-packages/rest_framework/serializers.py in <module>
ModelSerializer.serializer_field_mapping[postgres_fields.JSONField] = JSONField
I have been trying to solve it for hours already but nothing helps...
Has someone had the same problem or knows how to fix it?