📺 Develpreneur YouTube Episode

Video + transcript

Learn Python And Django Day 55

2021-05-06 •Youtube

Detailed Notes

We continue using the application as a way to track the tasks we have chosen for bug fixing and improving the user experience. This session is aimed at changing requirements and displaying more information in our interface.

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

Transcript Text
[Music]
well hello and welcome back
we are continuing working through our
lists and we've actually
made a couple things that we're going to
update this little bit
one of the things we fixed along the way
i think because of our
default time frame is that we had
create tasks from task list broken and i
think now
if we go to our task list and we can
pick
you know whatever it is we create a task
boom so we're able to and i think it was
because
of our time frame setup so now that
we've got that
we can go back here we can go to
immediate and so that's actually
fixed uh create tasks from tesla's
broken
let's do the edit on the time frame list
that's another that's a
fix so let's get that out of the way so
if we go to the time frame
list and we do an edit
and so we don't actually have a time
frame list i don't think we get to so
let's just check that real quick so if i
go to
uh let's go to this one
and so we had one that we had let's see
so let's just do create tasks that works
great time frame that works
i think we had something on it let's go
back so if we go back to what was that
for
edit that may be something that's now
fixed as well
uh edit on a time frame list
so let's look here
and that seems to be working okay so
professional goals
uh let's just change that and save it
and make sure that works okay
it does oh now here's what it does is it
does come back to this all
time frames which we really don't want
to do
so probably what we want to do is on all
time on a
edit which that alone is a little bit of
a problem here
is we want to actually change this tfs
which we don't really have
it's a good question since we don't use
this anywhere
we probably don't need to change this
but what we did do is we want to do
here on a save for a time frame
is when we save it we want to return to
either the parent
or probably we'll just stay on that so
we'll probably just go to that time
frame
so this is on tf so we're going to come
here to our view
oh sorry for our urls and tf
it is create time frame and there's
probably yeah or
edit time frame so there's actually two
of those
now create let's see what those do
so if we go to create time frame
it does not take a post so it looks like
when we do
yeah so it's gonna come to time frame
edit so they both come from time frame
edit
so edit time frame when it gets a post
this redirect here
if it's saved
see this is where we've got this this is
we don't want to actually redirect to
tfs we want to actually either redirect
to
itself or it's parent
so we're going to do
i'm just going to call this target id
we're just going to call it tid and so
tid equals
let's see it will be this guy's id
so it's either going to be that and
we're going to do if
let's see let's go ahead and grab it
so here
so current equals that but we're not
going to delete
and then we're going to say if current
dot
parent
not equal to none then
tid equals
parent dot id whoops
so it either stays here or goes to the
parent
let's see tid tid and let's see how that
works out
so now if i go to a road map
let's see so here doesn't have a parent
so if i do save
it saves here uh let's see let's go down
here first quarter
now it should go up to annual personal
goals and there's a problem there
let's see reference before assignment
okay whoops so i probably didn't set it
right
oh equals current dot parent my mistake
so now there we go so if i go first
quarter it's going to return me to
annual personal goals
bam okay so
if i go back here immediate
so edit on the time frame list
uh let's see so that's a fix
we're gonna wait on our background
that's going to be a little episode
we'll do
by itself a little bit uh child time
frame on tile frame
time frame edit no child count so
let's look at that so if we go to a time
frame so this says he has eight
children uh maybe okay let's see
uh we need any personal goals here we go
so this one
is not showing lists uh showing counts
so we want to take in our roadmap where
we do our lists
we're going to do the same thing in our
child time frames so let's go to our
roadmap
list and it says here for item in items
and we're gonna essentially do the same
thing
i bet we're gonna be able to do that in
our uh time frame
edit
so if we look here child time frames
let's take a look at that
so instead this one's going to be time
frame
and time frame except for here
so we're going to need to change this a
little bit so timeframe and children so
it's going to be
instead it's going to call a time frame
uh let's see class is going to be time
frame
whoop no that's not what i want to do so
let's take a look at this real quick
uh child time frames oh it just has a
name
so let's change this a little bit so
it's going to be a name and it's going
to have
i'm just going to add this
so i don't need that except for it's
going to be
let's do children
and now let's look here if we look at
edit time frame
that's gonna be a little tricky because
it has
it's gonna get its children
so i'm gonna have to actually change
tweak my count uh tweak my
query a little bit
uh so this is in edit time frame
children here we go so children equals
that
let's see filter parent equals data
so i need to do
this will be a little bit different
that's a good question do i care this
gets really detailed into that do i have
to
do i care about the children i may not i
may actually bail on this one because
if i go here i get to see it so
i think i'm going to leave it i'm
actually going to bail on that one
because i don't think i need to know the
number
so if i go back to see this where we can
say sometimes we can change our scope
it's not task list that was time frame
edit
so i'm going to go back to where i
started
i think that's what i want right
oh no i do want my slim that was still
in there
so let's get that
there okay
i don't think i need any more
information on that one so let's go back
oh wait i gotta fix the views maybe
actually i think i'm good let's see
there we go so i'm just gonna leave that
one that way
because i don't really care enough about
it to do the
child count there shall count off for
road map
let's take a look at that he has eight
children
so he has three oh i think he's good
because we fixed that one we looked at
that we found that our numbers were
actually correct
so we can go back here oops sorry to do
and we did fix that one uh let's see
show time frame parent
in the task list this is on the report
so time frame parent and task list for
probably that one
oh that's what it was uh so if we do by
timeline
let's see roadmap just shows our
roadmaps timeline
just shows our timelines but it doesn't
show apparent so let's go for this
little when we build this guy
uh let's see that was in reports pay
let's report generate here we go
uh task by time frame
so we're probably actually pretty good
with this so we build the selector
here we go report parameters so timeline
here
we're just using the name for the time
frame
but let's actually change this a little
bit so we're gonna do
i think we just up dot parent
and let's look at that
so now if we do by
timeline oh it's breaking
so we're going to look here
it's probably dying here
can currently concatenate string
so let's take a look at that that may
not be the right uh
if we go to let's go to reviews
time frame does it have a parent let's
go look at our model
actually let's close a few of these
things out
if we look at our models
uh where to go where to go where to go
models for time frame time frame
is
let's see oh that's task by mistake time
frame does have a parent
so if we look here
so he should have a parent
oh i wonder if so if we go back to our
models
it should be the name
so let's see what string it may be
showing an id i think it's not showing
so it should be a parent
i think we call it display
that may be what we need oh
well let's call here because i think
it's not actually passing it all the way
through so let's just do opt.parent.name
is that right opt id that
that that let's try that
let's go back to our timeline
so we are getting an error here
and so it is it doesn't like that
oh it doesn't have an apparent doesn't
have an option of name so let's go look
uh models time frame uh
it should
oh because it's sometimes none
so we do need to do this so we need to
do uh
if uh
dot parent
equals none
else
that's our that's our mistake
so if equals none then we don't do
anything
otherwise uh we do opt out parent.name
okay so let's try that
nope doesn't like that oh
because we lost a plus there
so let's go back to that and now if we
do
my roadmap by timeline there we go
so annual personal goals or here we can
see that those the first quarters by
that and immediate
there and then what we can do is we can
actually go by road map
if we want to do that so here it's going
to be
let's see let's play with this a little
bit
so opt dot road map
and let's um
we'll just wrap him
so we're going to do that uh let's see
i've got room app and then we get
a name or
ah let's do that let's see how that
looks
so now if we do by uh roadmap because i
said if go by timeline
up it's breaking so we probably missed
something oh we want roadmap.name
i bet
uh because it did not like
yeah so it doesn't convert it to a
string there so if we do this
or we could do i'm sorry
where let's go back to our views i'll
show you the other way to do it because
that's the other thing it's complaining
about if we force this to a string
then it's going to do
what we want i think
otherwise it's going to think that it's
trying to convert
the it's going to try to use the class
itself so if i do that
roadmap timeline boom
now this is using that string so i don't
really want to use that i've got that
complicated string so let's actually go
back in this case
and i'm just going to use the name
because normally with that string we
added
the time frame in it
i don't have to duplicate the code quite
the way i did so now here we go
we can see what the roadmap is we can
see what the time frame is in
within it so that is
done and so the next time we're going to
come back we're going to play around
with
our uh background colors and time frame
does not show
child count when deleted i think we're
just gonna
s oh it does need to show i bet we're
gonna have to do something there
and we'll think about that so we'll come
back to that one next time around we're
getting close to the end
and uh the big one here will be cleaning
some stuff up a little bit in the
display
and we'll wrap this thing up so as
always go out there and have yourself
a great day and we will talk to you next
you
Transcript Segments
0.46

[Music]

26.08

well hello and welcome back

27.76

we are continuing working through our

29.279

lists and we've actually

31.199

made a couple things that we're going to

32.88

update this little bit

34.719

one of the things we fixed along the way

37.12

i think because of our

38.719

default time frame is that we had

41.92

create tasks from task list broken and i

43.92

think now

45.44

if we go to our task list and we can

48.719

pick

49.12

you know whatever it is we create a task

50.879

boom so we're able to and i think it was

52.96

because

53.6

of our time frame setup so now that

56.239

we've got that

57.76

we can go back here we can go to

59.44

immediate and so that's actually

61.92

fixed uh create tasks from tesla's

64.239

broken

66

let's do the edit on the time frame list

68.56

that's another that's a

69.6

fix so let's get that out of the way so

71.84

if we go to the time frame

73.6

list and we do an edit

76.64

and so we don't actually have a time

78.479

frame list i don't think we get to so

80.479

let's just check that real quick so if i

83.84

go to

86

uh let's go to this one

89.2

and so we had one that we had let's see

91.759

so let's just do create tasks that works

94.88

great time frame that works

98.72

i think we had something on it let's go

100.24

back so if we go back to what was that

102.079

for

102.399

edit that may be something that's now

105.92

fixed as well

107.28

uh edit on a time frame list

112.159

so let's look here

116.88

and that seems to be working okay so

118.96

professional goals

122.64

uh let's just change that and save it

124.88

and make sure that works okay

128.879

it does oh now here's what it does is it

131.12

does come back to this all

132.8

time frames which we really don't want

134.959

to do

135.92

so probably what we want to do is on all

138.16

time on a

139.52

edit which that alone is a little bit of

142.4

a problem here

144.72

is we want to actually change this tfs

148.239

which we don't really have

149.68

it's a good question since we don't use

151.84

this anywhere

153.92

we probably don't need to change this

155.04

but what we did do is we want to do

158.08

here on a save for a time frame

163.12

is when we save it we want to return to

165.44

either the parent

167.68

or probably we'll just stay on that so

170.959

we'll probably just go to that time

172.239

frame

174.16

so this is on tf so we're going to come

176.879

here to our view

177.92

oh sorry for our urls and tf

180.959

it is create time frame and there's

183.04

probably yeah or

184

edit time frame so there's actually two

187.36

of those

189.04

now create let's see what those do

193.44

so if we go to create time frame

196.879

it does not take a post so it looks like

199.12

when we do

200.4

yeah so it's gonna come to time frame

203.12

edit so they both come from time frame

204.959

edit

206.239

so edit time frame when it gets a post

209.519

this redirect here

213.2

if it's saved

216.319

see this is where we've got this this is

218.239

we don't want to actually redirect to

219.76

tfs we want to actually either redirect

222.319

to

223.92

itself or it's parent

228.879

so we're going to do

232

i'm just going to call this target id

235.12

we're just going to call it tid and so

238.72

tid equals

243.439

let's see it will be this guy's id

250.48

so it's either going to be that and

253.28

we're going to do if

257.919

let's see let's go ahead and grab it

263.44

so here

272

so current equals that but we're not

274.56

going to delete

277.44

and then we're going to say if current

280.24

dot

280.84

parent

285.36

not equal to none then

289.28

tid equals

292.96

parent dot id whoops

297.199

so it either stays here or goes to the

299.28

parent

300.24

let's see tid tid and let's see how that

303.28

works out

305.44

so now if i go to a road map

310

let's see so here doesn't have a parent

313.199

so if i do save

314.639

it saves here uh let's see let's go down

318.24

here first quarter

320

now it should go up to annual personal

322.84

goals and there's a problem there

326.24

let's see reference before assignment

330.56

okay whoops so i probably didn't set it

333.039

right

335.44

oh equals current dot parent my mistake

342.88

so now there we go so if i go first

345.199

quarter it's going to return me to

346.96

annual personal goals

348.8

bam okay so

352

if i go back here immediate

355.84

so edit on the time frame list

359.44

uh let's see so that's a fix

363.28

we're gonna wait on our background

364.72

that's going to be a little episode

365.919

we'll do

366.56

by itself a little bit uh child time

368.96

frame on tile frame

370.72

time frame edit no child count so

373.919

let's look at that so if we go to a time

375.68

frame so this says he has eight

378.84

children uh maybe okay let's see

384.639

uh we need any personal goals here we go

386.96

so this one

387.84

is not showing lists uh showing counts

393.28

so we want to take in our roadmap where

395.12

we do our lists

396.4

we're going to do the same thing in our

399.44

child time frames so let's go to our

401.84

roadmap

402.56

list and it says here for item in items

408.319

and we're gonna essentially do the same

409.84

thing

411.52

i bet we're gonna be able to do that in

413.28

our uh time frame

415.199

edit

418.56

so if we look here child time frames

424.96

let's take a look at that

428.4

so instead this one's going to be time

434.84

frame

438.16

and time frame except for here

446.88

so we're going to need to change this a

448.24

little bit so timeframe and children so

449.919

it's going to be

451.52

instead it's going to call a time frame

458.16

uh let's see class is going to be time

462.84

frame

464.319

whoop no that's not what i want to do so

466.319

let's take a look at this real quick

471.12

uh child time frames oh it just has a

473.919

name

475.28

so let's change this a little bit so

476.96

it's going to be a name and it's going

478.639

to have

483.039

i'm just going to add this

488.16

so i don't need that except for it's

490.479

going to be

500

let's do children

507.36

and now let's look here if we look at

510.24

edit time frame

520.24

that's gonna be a little tricky because

522.24

it has

524.88

it's gonna get its children

535.04

so i'm gonna have to actually change

536.959

tweak my count uh tweak my

541.12

query a little bit

544.399

uh so this is in edit time frame

549.36

children here we go so children equals

552.08

that

555.6

let's see filter parent equals data

563.839

so i need to do

569.36

this will be a little bit different

575.36

that's a good question do i care this

577.519

gets really detailed into that do i have

579.6

to

580

do i care about the children i may not i

582.16

may actually bail on this one because

584.56

if i go here i get to see it so

591.12

i think i'm going to leave it i'm

593.2

actually going to bail on that one

594.48

because i don't think i need to know the

596

number

596.8

so if i go back to see this where we can

599.92

say sometimes we can change our scope

605.36

it's not task list that was time frame

608.24

edit

613.279

so i'm going to go back to where i

616.839

started

619.68

i think that's what i want right

624.64

oh no i do want my slim that was still

627.36

in there

632.32

so let's get that

637.12

there okay

641.6

i don't think i need any more

642.56

information on that one so let's go back

644.959

oh wait i gotta fix the views maybe

650.64

actually i think i'm good let's see

653.68

there we go so i'm just gonna leave that

656.079

one that way

657.04

because i don't really care enough about

659.12

it to do the

661.12

child count there shall count off for

664.48

road map

665.519

let's take a look at that he has eight

667.279

children

670.24

so he has three oh i think he's good

673.12

because we fixed that one we looked at

674.56

that we found that our numbers were

676

actually correct

677.92

so we can go back here oops sorry to do

684.32

and we did fix that one uh let's see

686.32

show time frame parent

688.079

in the task list this is on the report

695.12

so time frame parent and task list for

698.079

probably that one

700.079

oh that's what it was uh so if we do by

702.8

timeline

704.8

let's see roadmap just shows our

706.16

roadmaps timeline

709.2

just shows our timelines but it doesn't

712.72

show apparent so let's go for this

714.48

little when we build this guy

718.639

uh let's see that was in reports pay

721.519

let's report generate here we go

726.16

uh task by time frame

729.2

so we're probably actually pretty good

730.32

with this so we build the selector

737.44

here we go report parameters so timeline

740.24

here

740.88

we're just using the name for the time

743.36

frame

744.48

but let's actually change this a little

746.16

bit so we're gonna do

750.48

i think we just up dot parent

757.68

and let's look at that

762.72

so now if we do by

765.839

timeline oh it's breaking

770.079

so we're going to look here

773.839

it's probably dying here

776.959

can currently concatenate string

783.2

so let's take a look at that that may

784.399

not be the right uh

786.24

if we go to let's go to reviews

791.36

time frame does it have a parent let's

793.839

go look at our model

795.2

actually let's close a few of these

796.399

things out

801.68

if we look at our models

805.2

uh where to go where to go where to go

807.12

models for time frame time frame

809.36

is

812.56

let's see oh that's task by mistake time

816.079

frame does have a parent

821.199

so if we look here

827.839

so he should have a parent

834

oh i wonder if so if we go back to our

836.079

models

838.8

it should be the name

845.6

so let's see what string it may be

847.279

showing an id i think it's not showing

849.44

so it should be a parent

854.399

i think we call it display

858.72

that may be what we need oh

865.44

well let's call here because i think

866.88

it's not actually passing it all the way

868.56

through so let's just do opt.parent.name

870.72

is that right opt id that

874.079

that that let's try that

879.68

let's go back to our timeline

886.959

so we are getting an error here

892.24

and so it is it doesn't like that

897.6

oh it doesn't have an apparent doesn't

900.32

have an option of name so let's go look

903.68

uh models time frame uh

907.04

it should

910.16

oh because it's sometimes none

913.68

so we do need to do this so we need to

916

do uh

916.88

if uh

920.24

dot parent

924.079

equals none

928.8

else

933.6

that's our that's our mistake

939.12

so if equals none then we don't do

941.68

anything

945.279

otherwise uh we do opt out parent.name

949.36

okay so let's try that

953.04

nope doesn't like that oh

956.079

because we lost a plus there

961.839

so let's go back to that and now if we

965.44

do

965.839

my roadmap by timeline there we go

970.56

so annual personal goals or here we can

974.32

see that those the first quarters by

976

that and immediate

977.92

there and then what we can do is we can

980.16

actually go by road map

984.16

if we want to do that so here it's going

988

to be

989.04

let's see let's play with this a little

992.399

bit

994.959

so opt dot road map

1002.639

and let's um

1006.959

we'll just wrap him

1013.12

so we're going to do that uh let's see

1015.44

i've got room app and then we get

1017.12

a name or

1030.72

ah let's do that let's see how that

1032.079

looks

1034.72

so now if we do by uh roadmap because i

1036.799

said if go by timeline

1039.12

up it's breaking so we probably missed

1041.039

something oh we want roadmap.name

1046.959

i bet

1052.72

uh because it did not like

1056.559

yeah so it doesn't convert it to a

1057.919

string there so if we do this

1060.16

or we could do i'm sorry

1063.2

where let's go back to our views i'll

1064.799

show you the other way to do it because

1066.08

that's the other thing it's complaining

1067.12

about if we force this to a string

1069.2

then it's going to do

1072.88

what we want i think

1077.6

otherwise it's going to think that it's

1079.76

trying to convert

1080.72

the it's going to try to use the class

1082.48

itself so if i do that

1086.4

roadmap timeline boom

1090.88

now this is using that string so i don't

1092.799

really want to use that i've got that

1094.16

complicated string so let's actually go

1096

back in this case

1098

and i'm just going to use the name

1101.44

because normally with that string we

1103.2

added

1105.679

the time frame in it

1116.48

i don't have to duplicate the code quite

1118.24

the way i did so now here we go

1120.24

we can see what the roadmap is we can

1122.24

see what the time frame is in

1124

within it so that is

1127.28

done and so the next time we're going to

1130.08

come back we're going to play around

1131.28

with

1131.6

our uh background colors and time frame

1134.16

does not show

1134.88

child count when deleted i think we're

1137.919

just gonna

1138.48

s oh it does need to show i bet we're

1141.679

gonna have to do something there

1145.84

and we'll think about that so we'll come

1147.44

back to that one next time around we're

1148.799

getting close to the end

1150.16

and uh the big one here will be cleaning

1151.919

some stuff up a little bit in the

1152.96

display

1154.08

and we'll wrap this thing up so as

1156.24

always go out there and have yourself

1158

a great day and we will talk to you next

1177.039

you