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
do
Could you share the full stack trace you get when trying to run the server ?
The attribute error should come with a ton of information like the
file and the line where the error occur.
2016-08-25 16:57 GMT+02:00 Neil Hunt :
> I've beem working on a simple banking app based on the Django tutorial.
Thanks for your speedy reply, I've attached the stack trace
On Thursday, August 25, 2016 at 4:00:16 PM UTC+1, ludovic coues wrote:
>
> Could you share the full stack trace you get when trying to run the server
> ?
> The attribute error should come with a ton of information like the
> file and t
The stacktrace is helpful, thanks!
The specific message with the AttributeError is helpful here:
`AttributeError: 'module' object has no attribute 'DepositView'`
The line above it is ` File
"/home/soupdragon/DJapps/banking/mybank/banking/urls.py", line 8, in
url(r'^deposit/$', views.Deposit
Thank you so much Andromeda. I didn't know you could use class based views.
I'll have a look at the documents. I don't know why I was trying to use
them when I didn't need to.
On Thu, Aug 25, 2016 at 4:23 PM, Andromeda Yelton <
andromeda.yel...@gmail.com> wrote:
> The stacktrace is helpful, thank
Hello Neil,
It is nota problem to use Class based view. Could you please update your
views.py with next code.
Look like you would like to have detail of the deposit in this case add
next string to the header
from django.views.generic import DetailView
from models import Account1, Person
Hello Serge,
I can't believe that's all I have to add to get the class based views to
work. It seems easier to get it to work than I thought it would be. Now
that you've explained it. Thank you so much for that.
Kind regards,
Neil
On Fri, Aug 26, 2016 at 11:46 AM, Sergiy Khohlov wrote:
> Hel
Never mind.
Few 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 wrote:
> Hello Serge,
>
> I can't believe that's all I have to
heh heh. I don't fully appreciate the usefulness of CBV at the moment.
Getting a simple example working helps as much as reading the tutorial.
Thanks again for your help,
Neil
On Fri, Aug 26, 2016 at 2:24 PM, Sergiy Khohlov wrote:
> Never mind.
> Few year ago I was thinking that moving to CBV
In my experience, CBVs are useful when the view you want to write is
basically a create, read, update, or delete operation on a single database
item, or a bunch of instances of the same model (...and it turns out a lot
of web app pages are just that). And they're useful because they let you do
that
On Fri, Aug 26, 2016 at 10:29:16AM -0400, Andromeda Yelton wrote:
> In my experience, CBVs are useful when the view you want to write is
> basically a create, read, update, or delete operation on a single database
> item, or a bunch of instances of the same model (...and it turns out a lot
> of web
I've read the tutorial but I didn't fully appreciate how useful CBV are.
Amazing as well that sometimes you can write almost no code. Thanks a lot
for explaining that.
On Fri, Aug 26, 2016 at 3:29 PM, Andromeda Yelton <
andromeda.yel...@gmail.com> wrote:
> In my experience, CBVs are useful when t
I can help with this one. But I m not ready to write code over weekend. It
is a nice to have used django auth model. You can extend it and this can
cut a lot of your code. Early versions had a problem with correct author
model but now situation is better.
Try to catch me at the beginning of the wee
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 Yelto
14 matches
Mail list logo