Re: Attribute error, with a very basic banking app

2016-08-26 Thread Neil Hunt
Thanks for that Michal, I see what you mean. I've bookmarked it. Thanks to everyone for all the detailed replies it really helps make sense of CBV :) On Fri, Aug 26, 2016 at 3:48 PM, Michal Petrucha < michal.petru...@konk.org> wrote: > On Fri, Aug 26, 2016 at 10:29:16AM -0400, Andromeda

Re: Attribute error, with a very basic banking app

2016-08-26 Thread Neil Hunt
the inheritance tree and so > forth. It took me a while to get over this hurdle too, but now that I have > I use CBVs exclusively. > > On Fri, Aug 26, 2016 at 10:13 AM, Neil Hunt <hunt.n...@gmail.com> wrote: > >> heh heh. I don't fully appreciate the usefulness of CBV a

Re: Attribute error, with a very basic banking app

2016-08-26 Thread Neil Hunt
w year ago I was thinking that moving to CBV is bad idea, but suddenly > BUUUHHH !! in my head and everything was clear. > > Many thanks, > > Serge > > > +380 636150445 > skype: skhohlov > > On Fri, Aug 26, 2016 at 3:40 PM, Neil Hunt <hunt.n...@gmail.com> wrote: > &

Re: Attribute error, with a very basic banking app

2016-08-26 Thread Neil Hunt
> P.S. Look like better way is adding auth and receive person using auth > data. In this case every authorized person can connect to his account > using auth info and account id > > Many thanks, > > Serge > > > +380 636150445 > skype: skhohlov > > On Th

Re: Attribute error, with a very basic banking app

2016-08-25 Thread Neil Hunt
> different classes are, and what options they provide you. > > Alternately, your urls.py could reference views.deposit (which does exist) > instead of views.DepositView (which does not). > > Hope this helps! > > On Thu, Aug 25, 2016 at 11:14 AM, Neil Hunt <hunt.n...@gmail.co

Re: Attribute error, with a very basic banking app

2016-08-25 Thread Neil Hunt
the > file and the line where the error occur. > > 2016-08-25 16:57 GMT+02:00 Neil Hunt <hunt...@gmail.com >: > > I've beem working on a simple banking app based on the Django tutorial. > > Thanks to your help it almost works now. It was working using templates >

Attribute error, with a very basic banking app

2016-08-25 Thread Neil Hunt
I've beem working on a simple banking app based on the Django tutorial. Thanks to your help it almost works now. It was working using templates but after making some changes to get HttpResponseRedirect to work I changed what was in the urls file like it shows in the tutorial. Now, the server

Re: Testing an object

2016-08-01 Thread Neil Hunt
43 GMT+02:00 Neil Hunt <hunt...@gmail.com >: > > I've read and reread the tutorial and I'm working on writing a very > simple > > banking app by copying and modifying what's in the tutorial. I've > started a > > new project and copied what was on the first two page

Testing an object

2016-08-01 Thread Neil Hunt
I've read and reread the tutorial and I'm working on writing a very simple banking app by copying and modifying what's in the tutorial. I've started a new project and copied what was on the first two pages of the tutorial and I've written a new models file. Make migrations works okay with the

Re: Stuck on tutorial your first Django app part 2

2016-06-10 Thread Neil Hunt
. The next bit works now, hurray. Sorry to ask such a stupid question. Thanks a lot for your speedy reply. On Thursday, June 9, 2016 at 10:03:18 PM UTC+1, ke1g wrote: > > What is the definition of your __str__() method? > > On Thu, Jun 9, 2016 at 4:11 PM, Neil Hunt <hunt...@gmail

Stuck on tutorial your first Django app part 2

2016-06-09 Thread Neil Hunt
Hello, I'm enjoying the tutorial and now I'm stuck on the second page (writing your first Django app part 2), shortly after this paragraph. 'It’s important to add __str__() methods to your models,