django: custom Feed takes exactly 1 argument (0 given)

It's one of those silly brain fart moments which takes a while to figure out.

I kept getting this error and kept fiddling with argument variables, trying to get it working.

Luckily, I didn't mess up too much before I realised that I was declaring the feed incorrectly.

I noticed that I had it set as a function using "def", rather than a "class" which it should be.

image

 
Copyright © Twig's Tech Tips
Theme by BloggerThemes & TopWPThemes Sponsored by iBlogtoBlog