1👍
✅
It seems like the flatten property was introduced to the Context object in the version Django==1.7.
https://docs.djangoproject.com/en/1.7/ref/templates/api/#django.template.Context.flatten
You may need to downgrade your django-crispy-forms version.
Source:stackexchange.com