Re: Please Assist Learning Programming and Python with Django Framework and Stuck

2012-06-16 Thread yak-man
On Saturday, June 16, 2012 5:10:34 AM UTC-5, cmac0tt wrote: > > So python is what I chose to learn, using the Django framework. > > I had this project working, then it just stopped out of nowere when I was > about to show one of my two bosses. Anyone able to give any insight? I put >

Re: Please Assist Learning Programming and Python with Django Framework and Stuck

2012-06-16 Thread Cal Leeming [Simplicity Media Ltd]
Just to echo on advice already given, your indenting is a real mess here. You can't get away with bad indenting like you can in other languages, because Python relies on indenting for the flow of code. (i.e. you use intends rather than brackets). You are also using mixed indents (some are 4

Re: Please Assist Learning Programming and Python with Django Framework and Stuck

2012-06-16 Thread cmac0ttlazytologin
P.S Python 2.7 with Django 1.4 on Ubuntu 12.04lts On Saturday, June 16, 2012 6:10:34 AM UTC-4, cmac0tt wrote: > > So python is what I chose to learn, using the Django framework. > > I had this project working, then it just stopped out of nowere when I was > about to show one of my two bosses.

Re: Please Assist Learning Programming and Python with Django Framework and Stuck

2012-06-16 Thread kenneth gonsalves
On Sat, 2012-06-16 at 03:26 -0700, cmac0tt wrote: > I was told by someone I had to use print() then write() then save.page > to > pass the data permanently as opposed to just printing the data and > losing > it. It didnt logically make sense to me, which is why I kind was > hoping > people

Re: Please Assist Learning Programming and Python with Django Framework and Stuck

2012-06-16 Thread kenneth gonsalves
On Sat, 2012-06-16 at 15:52 +0530, kenneth gonsalves wrote: > > > > what does write() do? > > btw, line 56 in models needs to be indented > lines 54 and 55 have a double indent. Why? > lines 21, 22 and 32 will never be executed. oh, and your indents in 17 and 18 are not consistent with 21-22.

Re: Please Assist Learning Programming and Python with Django Framework and Stuck

2012-06-16 Thread cmac0tt
I was told by someone I had to use print() then write() then save.page to pass the data permanently as opposed to just printing the data and losing it. It didnt logically make sense to me, which is why I kind was hoping people could explain their answers a little if possible rather than just

Re: Please Assist Learning Programming and Python with Django Framework and Stuck

2012-06-16 Thread cmac0tt
P.S Python 2.7 with Django 1.4 ON Ubuntu 12.04lts On Saturday, June 16, 2012 6:10:34 AM UTC-4, cmac0tt wrote: > > So python is what I chose to learn, using the Django framework. > > I had this project working, then it just stopped out of nowere when I was > about to show one of my two bosses.

Re: Please Assist Learning Programming and Python with Django Framework and Stuck

2012-06-16 Thread kenneth gonsalves
On Sat, 2012-06-16 at 03:10 -0700, cmac0tt wrote: > here is the dpaste: > > http://dpaste.com/760213/ > > what does write() do? btw, line 56 in models needs to be indented lines 54 and 55 have a double indent. Why? lines 21, 22 and 32 will never be executed. -- regards Kenneth Gonsalves --

Please Assist Learning Programming and Python with Django Framework and Stuck

2012-06-16 Thread cmac0tt
So python is what I chose to learn, using the Django framework. I had this project working, then it just stopped out of nowere when I was about to show one of my two bosses. Anyone able to give any insight? I put everything in a DPASTE. First it kept telling me that line 45 (which didnt exist