Re: Saving Data To Your DB. Simple?

2009-07-16 Thread Russell Keith-Magee
On Thu, Jul 16, 2009 at 9:27 PM, The Danny Bos wrote: > > So, I'm guessing this is impossible. I'm guessing you need to have a little patience. This is a volunteer list. Sometimes, when you don't get an answer, it's because the people who are in a position to answer your question are busy. It's a

Re: Saving Data To Your DB. Simple?

2009-07-16 Thread The Danny Bos
So, I'm guessing this is impossible. Any ideas would be great ... d On Jul 16, 11:52 am, The Danny Bos wrote: > Hopefully my last question on this, > How do I get back to the page with the form, perhaps with a "Thank > You" message, without having the POST still available if you hit > refres

Re: Saving Data To Your DB. Simple?

2009-07-15 Thread The Danny Bos
Hopefully my last question on this, How do I get back to the page with the form, perhaps with a "Thank You" message, without having the POST still available if you hit refresh. I figured I'd use 'reverse' but not quite sure why it isn't working ... Here's where I am now: #views.py def record_de

Re: Saving Data To Your DB. Simple?

2009-07-15 Thread The Danny Bos
Russ, this makes a lot of sense, thanks so much. I'll give it a go now ... d On Jul 16, 10:49 am, Russell Keith-Magee wrote: > On Thu, Jul 16, 2009 at 8:36 AM, The Danny Bos wrote: > > > Any ideas on this one guys? > > > I gave up on it last night. > > I feel way off ... > > Ok - some back

Re: Saving Data To Your DB. Simple?

2009-07-15 Thread Russell Keith-Magee
On Thu, Jul 16, 2009 at 8:36 AM, The Danny Bos wrote: > > Any ideas on this one guys? > > I gave up on it last night. > I feel way off ... Ok - some back tracking. Your first approach (no forms) should have worked. The reason you didn't get any errors is that your code is explicitly ignoring _al

Re: Saving Data To Your DB. Simple?

2009-07-15 Thread The Danny Bos
Any ideas on this one guys? I gave up on it last night. I feel way off ... d On Jul 15, 11:33 pm, The Danny Bos wrote: > Agreed, I should get used to using Forms. > So I gave it a go, the new problem I have is out of my three fields, > two need to be hidden and have values automatically ass

Re: Saving Data To Your DB. Simple?

2009-07-15 Thread The Danny Bos
Agreed, I should get used to using Forms. So I gave it a go, the new problem I have is out of my three fields, two need to be hidden and have values automatically assigned from the page they're on. This is freaking me out. Now I have: # forms.py class RatingForm(forms.Form): record = for

Re: Saving Data To Your DB. Simple?

2009-07-14 Thread Michael
On Tue, Jul 14, 2009 at 12:15 PM, The Danny Bos wrote: > > Heya, am trying to simply save 3 values to a database, without using > Forms. > > In the Template: > > > > >Rate This: {% for n in numbers %} value="{{ n }}">{{ n }}{% endfor %} > > > > In the View: > > f

Re: Saving Data To Your DB. Simple?

2009-07-14 Thread Lakshman Prasad
> It runs OK (no errors) but doesn't save a single thing It has to run without errors because you have enclosed the whole thing in try. You have to coerce the record_id and user_id into int before assigning to the model fields, for it to save. On Tue, Jul 14, 2009 at 9:45 PM, The Danny

Saving Data To Your DB. Simple?

2009-07-14 Thread The Danny Bos
Heya, am trying to simply save 3 values to a database, without using Forms. In the Template: Rate This: {% for n in numbers %}{{ n }}{% endfor %} In the View: from mysite.rating.models import Rating def critics_rating(request): try: