AttributeError: 'Feed' object has no attribute 'contenty_type' (solved)

https://github.com/django/django/commit/5c125f63f77e169a459c11bab0f639c83fabc6e2


I had this problem when I try to upgrade my system from django 1.8 to 1.10.3

- response = HttpResponse(content_type=feedgen.mime_type)
+ response = HttpResponse(content_type=feedgen.content_type)



    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File ..../lib/python2.7/site-packages/django/contrib/syndication/views.py", line 43, in __call__
    response = HttpResponse(content_type=feedgen.contenty_type)

AttributeError: 'Feed' object has no attribute 'contenty_type'


mime_type is dead so replace mime_type with content_type in your Feed.py to resolve this issue for django 1.10

Comments

Popular posts from this blog

How to add pagination to django comments for your model

overlay filesystem and containers

Raspberry pi zero and pi3 gstreamer streaming without latency