📺 Develpreneur YouTube Episode

Video + transcript

Learn Python And Django Day 51

2021-04-22 •Youtube

Detailed Notes

Part IV of our walk-through/UAT testing. We will be testing the application for usability and features to make our experience a productive one.

You can view source for today and all prior days by reviewing the tag Day 51 at this GitHub: https://github.com/robbroadhead/develpreneur-pythontutorial

Transcript Text
[Music]
well hello and welcome back
we're continuing working through our
list here of things that we need to fix
and sort of bootstrapping our
application as we go
so let's just sort of continue we're
looking at some
task related stuff so i think i want to
go now to
add description field to task so this is
going to be the one that's actually
going to be
because of this pretty simple
we're going to go into our model
and here we're going to add a
description do we have a description so
we do not have a description elsewhere
so all we're going to do
is uh we'll make it much like name
and we're going to come in and call it
description and let's make it and not
too big so
man we'll make it 500. uh verse
verbose name is description
and a lot of little
details about the task
and that will work so we'll take that
and we can actually
see
now we can go in and we're just going to
use our
[Music]
manage.py we're going to make migrations
oops
let's take that one and we're going to
do it this way
and so it's going to add we see here add
field description to
task so we're just going to go ahead and
do the migration
so migrate
and now it's coming and done it so now
what we should be able to do is actually
go right back into our application
and uh we have not picked that one up
yet so let's see
uh we may have to restart i bet we do
so let's go to our app uh i did say
reloaded
oh it's because our form i'm sorry we
got to add it now to our forms
[Music]
so task form let's put it right after
name
and this is going to be
text input
and the size is going to be 500.
and if we do that here
there you go now what we can see here is
this thing is incredibly long so we want
to use
a multi-text a multi-line
text field and there is a way to do that
based on our where'd it go
based here on our widgets and this
is actually pretty easy because we're
going to make it a text area instead of
text input
and that instead has instead of a size
it has a columns
and so let's do
uh let's do 50 times 10. so let's be
sort of big but we'll do that
and so we have columns and then we have
rows
and so we're going to do there and then
so we're going to do instead of
sorry 500 is going to be 10
times 50 i'm sorry whoops
columns is 50. rows is going to be 10.
let's see this is going to be input text
and that will probably work because i
think i had an input text class
somewhere
we're going to find out momentary let's
see forms text area
should be able to pick that up so let's
see what happens
whoop i better broke it
it doesn't have text area so let's take
a better closer look at that
oh my mistake there we go
and that was why it had us all red let's
see yeah it even told me what it was
so now let's see did it reset yes it did
so i got a description that's probably
well depending on the normal screen size
and that's still
pretty big and we still have some space
so
let's uh extend that out a little bit
so instead of 10 by 50 uh let's
jump to
oh let's say we're gonna do let's cut
down those rows a couple
let's cut them probably in half so let's
do five rows
and let's see if we do 80 let's see how
that looks
that's not too bad so we'll do that it's
not quite our full 500 but that's okay
because now we can go in here
and we can just start cranking through
but that's our default size and we can
open it if we need to as well so there
we go
so that has been done and we can do a
completed date
which is going to be whatever today is
let's assume that's the day and we're
going to make it complete
and time spent i mean we spent five
minutes on it
and so now it's complete
and this is our all task so it's going
to be out of our
task list oops
let's set my current
here and so here's my oh
so let's go back to
this one uh annual goals oh that's about
road map
ah that'll work
so i had my time was automatically set
so i've got that one completed
oop not sorry that's not what it was oh
that's a due date not a completed date
so i've got a few but let's go back
here
immediately and let's take a look at our
tasks
uh these are now here's an interesting
bug
i don't know that we fixed this one we
need to remove the complete from tasks
in our time frame and if we look
at time frame
so child tame i'm going to edit whoops
uh let's see delete time frame returns
to the time frame list
i don't think we did we get this one
fixed let's go find out real quick so if
we go in here
create a time frame delete me
save and now if we go back to we can
just go to rtfs
and that's delete me oh edit
and that was one of the things we wanted
to fix
so if we delete him he still goes back
to
our list so what we want to do is go to
that's a good question what do we want
to do if we delete a time frame
then probably what we want to do is go
back to either its parent
or the roadmap so let's work that task
uh so we're gonna go to our views
and we do oh i think it's an edit tab oh
there it was delete task
so delete task is just going to go back
to the task list
instead what we want to do is let's go
to uh the time frame
for that guy so instead of that we're
going to go to
the time frame list
let's see where'd that go
so that's test by time frame oh let's
see
uh let's see create tasks nope nope
well let's just go look at it here whoop
whoop there we go
so if we go roadmap
and then select the time frame so it's
going to be tf
so if we go to delete
delete tasks there we go oh that's for
delete all tasks
this is an edit task so here the
redirect is not going to be there it's
going to be tf
and then we're going to do a string of
its parent
which we don't have so we're going to
have to store it real quick
oh we do have parent there we go the
data type time frame
so parent dot
id
and let's see we're going to do that
same
thing so where did we have the
other task
oh that may be our only one we're
actually deleting a task so now oh i'm
sorry we're doing delete time frame
is going to be the same thing so
deleting a task will return to
its parent so if i come in and delete a
task
let's create a task this is going to be
delete me
again
and it's part of immediate so if i go
here oh
okay record save returned immediate
probably at the bottom
delete me again so if we come in here
and now if we delete
so boom we're back to what we wanted
time frame for immediate
and then let's go ahead and do this for
also for our delete
um delete i don't want tasks
i want
time frame and so here
and so he's got one he's either gonna do
um oh if we delete a time frame let's
just go back
to the road map
so now if we come in here
and we go to a road map when we have one
so easy enough
and let's create a time frame
we're gonna call it kill this and we're
gonna save
and now let's go back if we go here
kill this and if we delete it it's gonna
should oh
uh roadmap it's not oh i'm sorry it
should be roadmap
so this should be
roadmap
and so i've got to fix it here i'm just
going to go back to that
because and so there we go so we're back
to our double map so boom we got those
things done so let's go take a look at
our task list
real quick and
let's see did we get
delete task returns to the task list we
got that completed
now that's an interesting thing we hit
complete we're actually going over to
headed task which we don't really want
to do
but it is completing um it is completing
it
uh let's get rid of that one got
completed
and so we're going to create a task
whoops
this is one of those bugs that we ran
into so let's go back here
anal goals and immediate
and we're going to create a complete
task
goes to edit
and status is new
save the record let's go back to our
task list is there something else we
want to complete
uh error message on create new tab we
did get that one done
let's go back to our task list and so we
want to get remember we want to get some
of these probably removed so we're going
to actually work off of
uh do we have like a to do i think we
don't so we probably want to
want to change our all tasks to the to
do
which we actually lost somewhere
oh because they have to be uh to do is
based off a to-do date so let's change
that real quick
and then we'll be set up for the next
time around so if we go to to do
and our urls to do is active tasks
whoops whoops whoops there we go
so if we go to active tasks what we want
to do here
is where the
oh because we did it for the current
time frame so we get remember we've got
to set our current time frame so that's
one of the things we're going to
fix which i've forgotten about so if i
go into map
here immediate
and then home now i get it okay
and so this is what we're going to be
working on uh let's see fix
edit in the time frame list login about
page broken login report report
so i think we're good complete task goes
to edit we'll fix that
all right so we got our list we're
working our way here's something we want
to add
we're going to probably want to add a
little count so we can see where we're
at so let's just
do that real quick
[Music]
and we'll just call it count and it's
going to be count
and count equals tasks dot
actually i think we can do length of
tasks i think it's like that
we're going to find out in a minute
and we need to put in our page which is
to do which is our list i think it's our
task list
and we're just going to put that up
let's see where does it want to go so
create tab let's put it next create task
tasks count
and that's just going to be count
and here we go oh length is not
it's probably size one oh sorry it's not
linked that's as always i forget it is
actually len
and there it goes so now
so test counts 13. so let's see how we
do next time around we're going to try
to continue working through these things
and see if we can knock some out
until next time have yourself a great
day a great week
and we'll talk to you then
you
Transcript Segments
0.46

[Music]

26.24

well hello and welcome back

27.76

we're continuing working through our

29.76

list here of things that we need to fix

32.32

and sort of bootstrapping our

34

application as we go

36

so let's just sort of continue we're

37.92

looking at some

39.44

task related stuff so i think i want to

41.68

go now to

43.52

add description field to task so this is

45.92

going to be the one that's actually

46.96

going to be

47.76

because of this pretty simple

51.36

we're going to go into our model

56.719

and here we're going to add a

57.84

description do we have a description so

59.6

we do not have a description elsewhere

61.12

so all we're going to do

63.12

is uh we'll make it much like name

68.799

and we're going to come in and call it

72

description and let's make it and not

74.64

too big so

75.52

man we'll make it 500. uh verse

79.04

verbose name is description

84.84

and a lot of little

87.92

details about the task

93.36

and that will work so we'll take that

97.92

and we can actually

101.119

see

104.159

now we can go in and we're just going to

105.84

use our

106.47

[Music]

107.799

manage.py we're going to make migrations

113.92

oops

115.36

let's take that one and we're going to

116.799

do it this way

122.88

and so it's going to add we see here add

124.64

field description to

125.92

task so we're just going to go ahead and

128

do the migration

130.239

so migrate

133.28

and now it's coming and done it so now

135.04

what we should be able to do is actually

136.319

go right back into our application

140.64

and uh we have not picked that one up

143.12

yet so let's see

144.56

uh we may have to restart i bet we do

147.68

so let's go to our app uh i did say

150.64

reloaded

152

oh it's because our form i'm sorry we

153.68

got to add it now to our forms

158.39

[Music]

160

so task form let's put it right after

168.84

name

170.239

and this is going to be

173.68

text input

180.08

and the size is going to be 500.

188.56

and if we do that here

193.599

there you go now what we can see here is

195.28

this thing is incredibly long so we want

197.519

to use

198.64

a multi-text a multi-line

201.68

text field and there is a way to do that

206.72

based on our where'd it go

210.239

based here on our widgets and this

214.08

is actually pretty easy because we're

216.56

going to make it a text area instead of

218.319

text input

221.2

and that instead has instead of a size

224.879

it has a columns

228.799

and so let's do

231.92

uh let's do 50 times 10. so let's be

234.959

sort of big but we'll do that

237.04

and so we have columns and then we have

239.68

rows

246

and so we're going to do there and then

248.799

so we're going to do instead of

250.159

sorry 500 is going to be 10

253.2

times 50 i'm sorry whoops

256.72

columns is 50. rows is going to be 10.

263.28

let's see this is going to be input text

273.919

and that will probably work because i

277.28

think i had an input text class

279.04

somewhere

280.16

we're going to find out momentary let's

282

see forms text area

285.199

should be able to pick that up so let's

287.04

see what happens

289.84

whoop i better broke it

296.08

it doesn't have text area so let's take

297.52

a better closer look at that

302.72

oh my mistake there we go

308.639

and that was why it had us all red let's

310.24

see yeah it even told me what it was

312.96

so now let's see did it reset yes it did

315.52

so i got a description that's probably

317.759

well depending on the normal screen size

320.639

and that's still

322.24

pretty big and we still have some space

324.08

so

325.84

let's uh extend that out a little bit

329.759

so instead of 10 by 50 uh let's

333.52

jump to

336.88

oh let's say we're gonna do let's cut

340.08

down those rows a couple

343.36

let's cut them probably in half so let's

344.88

do five rows

347.919

and let's see if we do 80 let's see how

350.32

that looks

353.039

that's not too bad so we'll do that it's

354.72

not quite our full 500 but that's okay

356.479

because now we can go in here

360.72

and we can just start cranking through

362.4

but that's our default size and we can

365.28

open it if we need to as well so there

368.479

we go

370.4

so that has been done and we can do a

373.919

completed date

374.88

which is going to be whatever today is

378.56

let's assume that's the day and we're

381.919

going to make it complete

385.039

and time spent i mean we spent five

388.319

minutes on it

390.8

and so now it's complete

394.8

and this is our all task so it's going

397.039

to be out of our

399.84

task list oops

406

let's set my current

409.52

here and so here's my oh

418.96

so let's go back to

423.36

this one uh annual goals oh that's about

426.72

road map

428.639

ah that'll work

432.24

so i had my time was automatically set

434.56

so i've got that one completed

436.479

oop not sorry that's not what it was oh

438.8

that's a due date not a completed date

440.8

so i've got a few but let's go back

444.639

here

448.84

immediately and let's take a look at our

451.12

tasks

451.919

uh these are now here's an interesting

455.68

bug

456.08

i don't know that we fixed this one we

457.68

need to remove the complete from tasks

460.479

in our time frame and if we look

464.16

at time frame

469.84

so child tame i'm going to edit whoops

477.84

uh let's see delete time frame returns

480.24

to the time frame list

484.56

i don't think we did we get this one

485.919

fixed let's go find out real quick so if

487.84

we go in here

489.199

create a time frame delete me

496.319

save and now if we go back to we can

499.84

just go to rtfs

504.479

and that's delete me oh edit

507.84

and that was one of the things we wanted

509.039

to fix

512.159

so if we delete him he still goes back

515.12

to

515.599

our list so what we want to do is go to

519.12

that's a good question what do we want

520.32

to do if we delete a time frame

523.279

then probably what we want to do is go

525.36

back to either its parent

527.76

or the roadmap so let's work that task

534.48

uh so we're gonna go to our views

540

and we do oh i think it's an edit tab oh

542.48

there it was delete task

544.56

so delete task is just going to go back

547.92

to the task list

549.839

instead what we want to do is let's go

553.12

to uh the time frame

557.36

for that guy so instead of that we're

560.56

going to go to

563.36

the time frame list

567.519

let's see where'd that go

572.72

so that's test by time frame oh let's

575.44

see

582.399

uh let's see create tasks nope nope

586.64

well let's just go look at it here whoop

589.279

whoop there we go

590.88

so if we go roadmap

594.8

and then select the time frame so it's

597.279

going to be tf

601.12

so if we go to delete

605.2

delete tasks there we go oh that's for

607.76

delete all tasks

613.2

this is an edit task so here the

615.12

redirect is not going to be there it's

616.72

going to be tf

621.68

and then we're going to do a string of

625.04

its parent

629.04

which we don't have so we're going to

630.48

have to store it real quick

632.16

oh we do have parent there we go the

633.68

data type time frame

636

so parent dot

639.6

id

643.76

and let's see we're going to do that

646.56

same

647.04

thing so where did we have the

650.64

other task

657.04

oh that may be our only one we're

658.32

actually deleting a task so now oh i'm

659.92

sorry we're doing delete time frame

662.16

is going to be the same thing so

665.279

deleting a task will return to

667.12

its parent so if i come in and delete a

669.92

task

671.68

let's create a task this is going to be

674.16

delete me

675.839

again

680.56

and it's part of immediate so if i go

682.88

here oh

686.24

okay record save returned immediate

689.44

probably at the bottom

696.8

delete me again so if we come in here

699.36

and now if we delete

700.72

so boom we're back to what we wanted

704.32

time frame for immediate

709.76

and then let's go ahead and do this for

712

also for our delete

716.8

um delete i don't want tasks

721.12

i want

725.12

time frame and so here

733.2

and so he's got one he's either gonna do

736.72

um oh if we delete a time frame let's

739.92

just go back

740.72

to the road map

751.36

so now if we come in here

754.48

and we go to a road map when we have one

756.56

so easy enough

758

and let's create a time frame

762.16

we're gonna call it kill this and we're

764.48

gonna save

766.72

and now let's go back if we go here

770.16

kill this and if we delete it it's gonna

773.44

should oh

776.8

uh roadmap it's not oh i'm sorry it

779.519

should be roadmap

782.72

so this should be

785.839

roadmap

789.44

and so i've got to fix it here i'm just

791.12

going to go back to that

793.68

because and so there we go so we're back

796.399

to our double map so boom we got those

797.92

things done so let's go take a look at

799.2

our task list

800.079

real quick and

803.2

let's see did we get

807.76

delete task returns to the task list we

809.839

got that completed

811.2

now that's an interesting thing we hit

812.399

complete we're actually going over to

814.32

headed task which we don't really want

815.92

to do

817.68

but it is completing um it is completing

820.399

it

821.6

uh let's get rid of that one got

823.04

completed

825.92

and so we're going to create a task

828.8

whoops

831.76

this is one of those bugs that we ran

833.199

into so let's go back here

835.199

anal goals and immediate

838.32

and we're going to create a complete

840.839

task

843.839

goes to edit

849.519

and status is new

853.279

save the record let's go back to our

855.36

task list is there something else we

856.72

want to complete

858.56

uh error message on create new tab we

862

did get that one done

866.959

let's go back to our task list and so we

870.16

want to get remember we want to get some

871.36

of these probably removed so we're going

872.72

to actually work off of

874.88

uh do we have like a to do i think we

876.72

don't so we probably want to

878.48

want to change our all tasks to the to

881.279

do

882.24

which we actually lost somewhere

888.24

oh because they have to be uh to do is

891.839

based off a to-do date so let's change

893.76

that real quick

895.279

and then we'll be set up for the next

896.48

time around so if we go to to do

899.36

and our urls to do is active tasks

904.88

whoops whoops whoops there we go

908.639

so if we go to active tasks what we want

911.04

to do here

912.56

is where the

917.519

oh because we did it for the current

919.04

time frame so we get remember we've got

920.399

to set our current time frame so that's

921.839

one of the things we're going to

922.8

fix which i've forgotten about so if i

924.56

go into map

926.639

here immediate

930.959

and then home now i get it okay

934.399

and so this is what we're going to be

935.519

working on uh let's see fix

938.079

edit in the time frame list login about

940.88

page broken login report report

944.56

so i think we're good complete task goes

948

to edit we'll fix that

950.72

all right so we got our list we're

952

working our way here's something we want

953.44

to add

954.079

we're going to probably want to add a

955.04

little count so we can see where we're

956.8

at so let's just

959.04

do that real quick

961.4

[Music]

963.759

and we'll just call it count and it's

967.12

going to be count

972.72

and count equals tasks dot

979.04

actually i think we can do length of

980.56

tasks i think it's like that

982.639

we're going to find out in a minute

992.8

and we need to put in our page which is

996

to do which is our list i think it's our

999.519

task list

1002.24

and we're just going to put that up

1006.16

let's see where does it want to go so

1007.759

create tab let's put it next create task

1015.279

tasks count

1019.6

and that's just going to be count

1025.839

and here we go oh length is not

1029.76

it's probably size one oh sorry it's not

1033.039

linked that's as always i forget it is

1034.959

actually len

1035.679

and there it goes so now

1039.52

so test counts 13. so let's see how we

1042

do next time around we're going to try

1043.199

to continue working through these things

1044.72

and see if we can knock some out

1046.959

until next time have yourself a great

1048.48

day a great week

1050.08

and we'll talk to you then

1067.28

you