You've defined your class-based view as a function:
def PozoList(ListView):
You should be defining it as a class:
class PozoList(ListView):
And you should be calling the to_view() method for the PozoList class from
your urls.py.
Please post your urls.py and any traceback and error messages you
Hmmm... Try and post your urls.py and views.py (the correct one)
On Mon, Feb 2, 2015 at 5:20 PM, Dan Gentry wrote:
> This is a bit of a stumper!
>
> I don't see any big glaring issues. A couple of housekeeping things: Is
> there data in the table? Are you certain that you are using the correct
This is a bit of a stumper!
I don't see any big glaring issues. A couple of housekeeping things: Is
there data in the table? Are you certain that you are using the correct
template?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubsc
Soory, it's a class, but it doesn't work properly neither. Do I have to
introduce anything in urls.py? I haven't put anything because I want the
listview in a url already created.
El lunes, 2 de febrero de 2015, 13:29:53 (UTC+1), elcaiaimar escribió:
>
> Hello everybody,
>
> I'm working in a web
> views.py:
>
> def PozoList(ListView):
> model = Pozo
> template_name = 'cuencas/edicioncuenca.html'
>
Is your view a function or a class?
--
$ gpg --recv-key da5098a7
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe fr
5 matches
Mail list logo