Re: How to use modpython in django version 1.5

2013-11-25 Thread Daniel Roseman
On Monday, 25 November 2013 06:01:35 UTC, Russell Keith-Magee wrote: > > > On Mon, Nov 25, 2013 at 1:39 PM, nobody >wrote: > >> Hi, >> >> After version 1.5, django has disabled mod_python. Can we still use the >> modpython instead of mod_wsgi? If so, how can we install the mod_python, >> doesn

Re: Form cleaned_data

2013-11-25 Thread Daniel Roseman
On Sunday, 24 November 2013 18:46:21 UTC, Timothy W. Cook wrote: > > On Sun, Nov 24, 2013 at 4:38 PM, Daniel Roseman > > > wrote: > > Hmm, I tried to post an answer to your original question earlier but it > never appeared. > > > > Thanks Daniel. Your help is very much appreciated. > > > Th

Re: Form cleaned_data

2013-11-25 Thread Timothy W. Cook
On Mon, Nov 25, 2013 at 8:22 AM, Daniel Roseman wrote: > On Sunday, 24 November 2013 18:46:21 UTC, Timothy W. Cook wrote: >> >> On Sun, Nov 24, 2013 at 4:38 PM, Daniel Roseman >> wrote: > > No, `f` is now an unsaved instance of the Review model, rather than a form > (you should probably make tha

Filtering by month doesn't work

2013-11-25 Thread Vojtěch Tranta
Hi, do you have any clue why this does not work? def index(request): if request.method == 'POST' and request.POST: event_form = EventForm(request.POST) event = event_form.save() today = datetime.date.today(); year = int(today.strftime('%Y')) month = int(today.strftime('%m')) events = Event.object

Re: Filtering by month doesn't work

2013-11-25 Thread Начаров Михаил
Hi Tranta. In my projects this functionality works fine. What version of django did you used? Do you sure that field end in Event table contains November dates? Also, you can use *today.month* instead of *int(today.strftime('%m')*) and* today.year *instead of *int(today.strftime('%Y')).* And

Re: How to fix URL link redirecting from login?

2013-11-25 Thread nobody
Thanks for your advice and all responses, that works well. Kind regards. On Monday, November 25, 2013 12:14:23 AM UTC+11, Vibhu Rishi wrote: > > Its the @login_required decorator. > https://docs.djangoproject.com/en/1.2/topics/auth/#the-login-required-decorator

Re: Filtering by month doesn't work

2013-11-25 Thread Leonardo Giordani
May you please post your Event model? Leonardo Giordani Author of The Digital Cat My profile on About.me - My GitHub page- My Coderwall profile 2013/11/26 Начаров Мих