Re: HOW TO Configure url and view for filter between two dates

2014-12-15 Thread Efe
Excelent!! I´ll try it and I´ll tell you the results. Thanks in advance (sorry for my poor english) El lunes, 15 de diciembre de 2014 14:36:08 UTC-3, Efe escribió: > > Hello, don't know to how configure views.py and urls.py in myapp. for > filter a list between dates from an input date in a tem

Re: HOW TO Configure url and view for filter between two dates

2014-12-15 Thread Héctor Urbina
I'm sorry, I missleaded you, what you really want to use is a ModelChoiceField in a custom form. So you can create a form with the following code: from django import forms class pacienteConsultasForm(forms.Form): fecha

Re: HOW TO Configure url and view for filter between two dates

2014-12-15 Thread Efe
Hi Hector, thanks for replying. Because I'm starting with Django I don´t know how to do a class ModelForm with parameters. Can you help me? Thank you very much (sorry for my poor english) El lunes, 15 de diciembre de 2014 14:36:08 UTC-3, Efe escribió: > > Hello, don't know to how configure view

Re: HOW TO Configure url and view for filter between two dates

2014-12-15 Thread Héctor Urbina
Hello, In urls.py you define the url that serves the page you're building, something like this would work: from django.conf.urls import patterns, url from import views urlpatterns = patterns('.views', url(r'^$',views.index, name="index"), url(r'^listarConsultas/$', views.listarConsult