Code

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#16463 closed Bug (invalid)

comment_form_target throws "Could not import django.contrib.syndication.views.feed" error, no such reference to feed found

Reported by: jasper@… Owned by: nobody
Component: contrib.comments Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I'm getting the following when trying to render a template with {% comment_form_target %} in it.

"Caught ViewDoesNotExist while rendering: Could not import django.contrib.syndication.views.feed. View does not exist in module django.contrib.syndication.views."

The log is here http://dpaste.com/hold/568080/

I have replaced all references to the deprecated

from django.contrib.syndication.views import Feed

and replaced it with

from django.contrib.syndication.feeds import Feed

I also can't find any references to the old Feed, this is why I believe this to be a bug. Will provide more information if needed of course.

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by Jasper Kennis <jasper@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

I found that there was a typo in my code; django.contrib.syndication.views.feed should have been django.contrib.syndication.views.Feed. However, I got this code from an svn source I have access to, from an existing site I'll be going to manage soon. I'm running svn, while the server the site is on currently runs django v1.2.something, on the same code, with .feed instead of .Feed. Shouldn't there be some kind of deprecation warning here too?

comment:2 Changed 3 years ago by jezdez

Yeah, see the deprecation timeline under 1.4.

comment:3 Changed 3 years ago by Jasper Kennis <jasper@…>

I understand, but the error Django returns gives very little information. Or has there been a deprecation error in 1.3 but did I mis it because I just got the code and moved to svn right away?

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.