[Answered ]-Django, AttributeError: 'module' object has no attribute

2👍

snippet_list should not be defined inside JSONResponse: unindent it.

Note that Django has provided a JSONResponse class since 1.8, there is no need to define your own.

Leave a comment