📺 Develpreneur YouTube Episode

Video + transcript

Learn Python And Django Day 52

2021-04-27 •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 UX improvements.

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

Transcript Text
[Music]
all right welcome back
we are cranking our way through our
to-do list
wrapping up our application doing some
uat and things like that finding some
bugs
along the way so let's start with
uh completing a task goes to the edit
so for some reason when we click
complete on our task list we're going
out to edit so let's take a look at task
list
and what happens when we do complete is
it calls complete task with an id
and it just comes in and uh
let's see it should simply be making a
request oh
but we do we have a form on here
we do not so interestingly enough
as it comes through it does a send it
updates
uh it gets that task it's a display to
none
and then it just does a return
oh which is because it's the i'm sorry
that's where our problem is and the
problem is because
on click we're actually doing a go
page and so we would need to do here
is because we're clicking the complete
is actually within
that dip so we need to change
essentially where
our click is for the edit
and so we want to do here is move this
click
outside of this div
and we'll probably go ahead and do it
for either of these others so let's just
go ahead
and say it's either going to be here or
here
but or due date
so if they click in
any of these sections but not if they
click in the complete button section
so if we do that and now
reset a complete task goes to edit
there we go now what it's doing here is
interesting
is we managed to lose something what did
we lose oh
probably because we got rid of the
element by task id so we need to do here
that id we don't
want there i want the id up on the
overall
we just wanted to move the on click so
we move too much that's all right
so now um
[Music]
and we'll just reload it there we go
so we're down to 12. so let's go take a
couple here oh let's see
we had here our about page is broken
uh so we need and that was on the login
so let's um
well we'll log out and we'll see here
that we've got about and it's trying to
hit
about so we can do that fairly easily
right we can come in
we are going to create
an about
and we're going to do our about page
and we're going to make a view for it
and we don't need to worry about being
authenticated
up in here so he's just going to
uh let's just grab
do that we don't really have any params
i guess
oop where is about home oh here we go
about page
and we're going to render i don't really
need to send params
and we're just going to do about that
html
and actually we don't even need to do
that
uh we're just going to do
and we'll leave it like that yeah we'll
keep it like that so we're going to
do that way we can always add to it
later if we want to do something sort of
interesting
so let's take our
now let's take our register page and
we're going to duplicate him
call him about
and so here we're going to leave uh we
don't need to do a login
and we'll just sort of drag dress this
one up a little bit so this is going to
be
the uh call it the goals manager
application we don't need a form
we don't need a button
and what we're going to do is let's see
we'll have
let's do a little thing here
welcome to the
goals oops goals manager
version 1.0
[Music]
and then let's see oops i should pray
spell version right
and we'll just say uh check out
developpreneur
dot com for more information
or follow
our or
let's see our
youtube channel
and we'll create a link here
for our channel uh let's see
let's just do it this way we're gonna do
it like
this and we'll make youtube channel the
link
and right now we're just gonna do it
like this we're just gonna create
something simple
boom now we have a you know we have an
about page we could go to about
uh the log out was something we wanted
to fix so let's fix that
so uh if we go to
what was that was that that was an
internal
let's go look at that guy so about uses
base
okay so base is here and what we need to
do is we need to check
if they are logged in or not
so we're going to do a little if here
and an end if
and we're going to need to do based on
that
is we're going to have an else
because what we want to do is they are
either going to log out
oh internally there oh i'm sorry so this
is actually this is only going to show
here
so it's either home about
or register
and then this is going to be i believe
we call it register
uh where did that go i thought we did a
register page somewhere
oh see
oh i'm sorry actually we're good because
it's not
there it's in the whoa it's in the
admin so it was what
uh accounts
register i believe that's how we set it
up
so let's take a look back here so we get
our home
got that register
its accounts profile oops
and that's not spelled right it is
accounts register
oh we don't need to do that i guess we
just do register
there we go okay
so now we're gonna be able to register
and we've got all of those guys figured
out
so home about register let's log in
and so now we've got to go to our
roadmap
immediate got our home we've got 12
but we went in and fixed a couple things
so uh
shows log out when logged out we don't
need that and the about page broken we
got that
so let's do a slimmer display of tasks
in the time frame
so let's go back over to our time frame
and so here like we've got oh yeah we've
got tasks are pretty
fat so let's try to cut these down to
one
row and this is going to be in our time
frame edit
and here so let's see what happens if we
just get rid of
our line break
okay so we shrunk it up a little bit
there
and let's take that
that class is called tasks but let's
call it tasks
slim
and we're going to move our button a
little bit we'll push that little
further out
and here we oh we need to move our on
click here as well
so it's going to be here so we don't run
into
issues with a completion
there and actually with our task list
uh let's see we can take that same thing
and we go over here and we're gonna fix
our complete button here
and let's see we've got it within the
div
there we go
so we'll take that and now we're not
going to see our complete if they're
already complete
on the time frame edit
and so now we lost a bunch of stuff so
what we need to do
is create our slam wherever we put that
class class class class class class
there task
slim so now
we want to do and this is something that
we've run into this problem before it
doesn't always
reset stuff properly so we may not be
able to see it
but we want to look for tat there's
tasks
and this is going to be tasks slim
and we'll base it off of tasks
but let's shrink this up a little bit
so let's take the padding and cut that
down
by a lot so instead of two let's go to
two and three instead of ten
uh the margin bottom we're gonna drop
that to 4 margin left
we'll leave the margin left and right
there
[Music]
and let's see actually let's shrink this
down just a little
as well
and whoop
so we'll have to reload the um
reload the style and this thing has been
sort of picky about that so let's see if
we can get it to work otherwise we have
to see it next time actually what we can
do
there we go so what we're going to do is
go to
tasks slim which is here
we're going to take all of that
and we're going to do an inspect just so
we can show it
let's see inspect here
so task slim
if we do that
and this is going to be
this is going to be tasks well
okay so second last it so if we do that
then it does allow us to
slim those things up quite a bit so we
will go with that
and uh also let's see
a description fee oh let's get rid of
this so i can read this a little bit
better
and what did we want to do we wanted to
slim that up
so
slimmer display of tasks there we go so
we'll complete it
oh we don't have it working right so
let's see what did we break there so if
we go to time frame edit
complete it should be complete task
oh we don't have complete task over here
so let's go back to that
task list and we're going to take that
same little script
actually we're going to take that and
well
we'll keep it here i was going to say we
could move it up and we might be able to
that's something we may want to at some
point do is actually
take those scripts and and have like
maybe a task related scripts or
something like that
from the javascript side but for now
we're going to leave it like this
and we're going to come to the slimmer
hit complete there it's completed
and this is going to look better next
time around i promise
so that'll wrap it up this time we're
getting our our
task list down here we're starting to
get down uh it doesn't have our account
though oh because that's the wrong one
so we still got some bugs that we've got
to you know work out here
but we're definitely getting better
and working our lists down and even
though we've have added a few
as we've gone so that'll wrap it up this
time
as always go out there and have yourself
a great day a great week
and we will talk to you next time
you
Transcript Segments
0.97

[Music]

26.48

all right welcome back

27.599

we are cranking our way through our

29.76

to-do list

30.8

wrapping up our application doing some

32.32

uat and things like that finding some

34.16

bugs

34.8

along the way so let's start with

38

uh completing a task goes to the edit

41.2

so for some reason when we click

43.12

complete on our task list we're going

45.36

out to edit so let's take a look at task

47.52

list

49.44

and what happens when we do complete is

52.079

it calls complete task with an id

54.879

and it just comes in and uh

58.239

let's see it should simply be making a

61.039

request oh

62.64

but we do we have a form on here

67.119

we do not so interestingly enough

72.64

as it comes through it does a send it

74.88

updates

77.759

uh it gets that task it's a display to

80.32

none

82.56

and then it just does a return

89.36

oh which is because it's the i'm sorry

93.04

that's where our problem is and the

94.64

problem is because

96.479

on click we're actually doing a go

99.6

page and so we would need to do here

105.119

is because we're clicking the complete

108.56

is actually within

110

that dip so we need to change

112.079

essentially where

113.119

our click is for the edit

116.799

and so we want to do here is move this

119.759

click

120.159

outside of this div

125.36

and we'll probably go ahead and do it

127.92

for either of these others so let's just

129.759

go ahead

131.52

and say it's either going to be here or

133.68

here

134.8

but or due date

138.8

so if they click in

142.16

any of these sections but not if they

144.8

click in the complete button section

147.52

so if we do that and now

151.599

reset a complete task goes to edit

155.04

there we go now what it's doing here is

157.44

interesting

158.08

is we managed to lose something what did

159.84

we lose oh

162

probably because we got rid of the

164.879

element by task id so we need to do here

167.92

that id we don't

171.84

want there i want the id up on the

175.2

overall

180.159

we just wanted to move the on click so

182.239

we move too much that's all right

184.8

so now um

186.74

[Music]

188.159

and we'll just reload it there we go

191.92

so we're down to 12. so let's go take a

194.239

couple here oh let's see

195.44

we had here our about page is broken

200.08

uh so we need and that was on the login

202.08

so let's um

203.92

well we'll log out and we'll see here

207.28

that we've got about and it's trying to

209.28

hit

209.76

about so we can do that fairly easily

212.879

right we can come in

214.4

we are going to create

217.44

an about

222.64

and we're going to do our about page

230.08

and we're going to make a view for it

240.4

and we don't need to worry about being

242.4

authenticated

245.76

up in here so he's just going to

250.799

uh let's just grab

255.599

do that we don't really have any params

257.68

i guess

259.519

oop where is about home oh here we go

264.16

about page

269.28

and we're going to render i don't really

271.759

need to send params

276.88

and we're just going to do about that

280.84

html

282.16

and actually we don't even need to do

283.84

that

285.36

uh we're just going to do

289.919

and we'll leave it like that yeah we'll

292.32

keep it like that so we're going to

293.759

do that way we can always add to it

295.12

later if we want to do something sort of

296.639

interesting

298.8

so let's take our

303.039

now let's take our register page and

305.919

we're going to duplicate him

308.88

call him about

312.96

and so here we're going to leave uh we

315.36

don't need to do a login

322.479

and we'll just sort of drag dress this

324.479

one up a little bit so this is going to

325.919

be

326.24

the uh call it the goals manager

330.56

application we don't need a form

335.28

we don't need a button

338.88

and what we're going to do is let's see

341.199

we'll have

344.16

let's do a little thing here

349.199

welcome to the

352.479

goals oops goals manager

355.919

version 1.0

358.14

[Music]

363.199

and then let's see oops i should pray

366

spell version right

371.68

and we'll just say uh check out

378.84

developpreneur

380.16

dot com for more information

384.08

or follow

387.199

our or

390.56

let's see our

394.52

youtube channel

399.52

and we'll create a link here

404.639

for our channel uh let's see

408.319

let's just do it this way we're gonna do

410.96

it like

412

this and we'll make youtube channel the

415.039

link

419.599

and right now we're just gonna do it

420.72

like this we're just gonna create

422

something simple

425.52

boom now we have a you know we have an

427.599

about page we could go to about

429.759

uh the log out was something we wanted

431.28

to fix so let's fix that

432.88

so uh if we go to

437.68

what was that was that that was an

440.16

internal

443.36

let's go look at that guy so about uses

445.84

base

446.4

okay so base is here and what we need to

450.72

do is we need to check

451.759

if they are logged in or not

456.4

so we're going to do a little if here

463.68

and an end if

470.24

and we're going to need to do based on

473.12

that

474

is we're going to have an else

477.12

because what we want to do is they are

479.12

either going to log out

482.4

oh internally there oh i'm sorry so this

484.639

is actually this is only going to show

486.479

here

489.84

so it's either home about

493.039

or register

500.4

and then this is going to be i believe

502.24

we call it register

505.44

uh where did that go i thought we did a

508.24

register page somewhere

516.8

oh see

521.039

oh i'm sorry actually we're good because

523.919

it's not

524.56

there it's in the whoa it's in the

529.6

admin so it was what

532.64

uh accounts

535.76

register i believe that's how we set it

538.08

up

540.399

so let's take a look back here so we get

543.04

our home

544.64

got that register

548.08

its accounts profile oops

551.519

and that's not spelled right it is

553.519

accounts register

558.959

oh we don't need to do that i guess we

560.64

just do register

563.36

there we go okay

568

so now we're gonna be able to register

571.44

and we've got all of those guys figured

573.92

out

575.68

so home about register let's log in

581.92

and so now we've got to go to our

583.519

roadmap

586.399

immediate got our home we've got 12

590

but we went in and fixed a couple things

591.92

so uh

593.279

shows log out when logged out we don't

594.959

need that and the about page broken we

597.839

got that

599.6

so let's do a slimmer display of tasks

602.8

in the time frame

604.72

so let's go back over to our time frame

609.36

and so here like we've got oh yeah we've

612.24

got tasks are pretty

613.36

fat so let's try to cut these down to

615.519

one

617.36

row and this is going to be in our time

620.48

frame edit

623.839

and here so let's see what happens if we

627.92

just get rid of

628.72

our line break

632.72

okay so we shrunk it up a little bit

634.48

there

636.959

and let's take that

640.399

that class is called tasks but let's

642.88

call it tasks

646

slim

649.2

and we're going to move our button a

652.56

little bit we'll push that little

653.68

further out

657.839

and here we oh we need to move our on

660.079

click here as well

663.68

so it's going to be here so we don't run

666.56

into

667.12

issues with a completion

673.36

there and actually with our task list

676.48

uh let's see we can take that same thing

681.519

and we go over here and we're gonna fix

683.279

our complete button here

693.92

and let's see we've got it within the

696.32

div

698.72

there we go

702.32

so we'll take that and now we're not

705.44

going to see our complete if they're

706.72

already complete

707.68

on the time frame edit

712.24

and so now we lost a bunch of stuff so

714.399

what we need to do

717.36

is create our slam wherever we put that

722.399

class class class class class class

724.56

there task

725.44

slim so now

728.48

we want to do and this is something that

730.24

we've run into this problem before it

731.839

doesn't always

733.44

reset stuff properly so we may not be

735.44

able to see it

738.48

but we want to look for tat there's

740.399

tasks

743.76

and this is going to be tasks slim

749.519

and we'll base it off of tasks

753.44

but let's shrink this up a little bit

760.959

so let's take the padding and cut that

763.2

down

764

by a lot so instead of two let's go to

767.12

two and three instead of ten

768.959

uh the margin bottom we're gonna drop

770.399

that to 4 margin left

773.44

we'll leave the margin left and right

774.88

there

775.46

[Music]

776.8

and let's see actually let's shrink this

779.2

down just a little

780.48

as well

784.639

and whoop

788.639

so we'll have to reload the um

793.36

reload the style and this thing has been

795.6

sort of picky about that so let's see if

799.12

we can get it to work otherwise we have

801.92

to see it next time actually what we can

803.2

do

803.839

there we go so what we're going to do is

806.959

go to

807.68

tasks slim which is here

811.839

we're going to take all of that

815.44

and we're going to do an inspect just so

817.68

we can show it

821.519

let's see inspect here

827.839

so task slim

833.519

if we do that

836.8

and this is going to be

847.76

this is going to be tasks well

851.199

okay so second last it so if we do that

853.92

then it does allow us to

855.519

slim those things up quite a bit so we

857.76

will go with that

859.36

and uh also let's see

863.44

a description fee oh let's get rid of

865.44

this so i can read this a little bit

866.639

better

869.68

and what did we want to do we wanted to

871.92

slim that up

873.199

so

876.88

slimmer display of tasks there we go so

878.32

we'll complete it

881.839

oh we don't have it working right so

885.519

let's see what did we break there so if

886.959

we go to time frame edit

889.68

complete it should be complete task

897.68

oh we don't have complete task over here

899.6

so let's go back to that

901.839

task list and we're going to take that

904.959

same little script

906.88

actually we're going to take that and

910.079

well

910.959

we'll keep it here i was going to say we

912.16

could move it up and we might be able to

914.24

that's something we may want to at some

915.6

point do is actually

919.519

take those scripts and and have like

921.04

maybe a task related scripts or

922.639

something like that

923.519

from the javascript side but for now

926.16

we're going to leave it like this

928.16

and we're going to come to the slimmer

930.079

hit complete there it's completed

932.72

and this is going to look better next

934.24

time around i promise

935.839

so that'll wrap it up this time we're

938.959

getting our our

940.8

task list down here we're starting to

942.399

get down uh it doesn't have our account

943.68

though oh because that's the wrong one

946.959

so we still got some bugs that we've got

948.56

to you know work out here

950.399

but we're definitely getting better

954.48

and working our lists down and even

956.959

though we've have added a few

958.32

as we've gone so that'll wrap it up this

960.88

time

961.519

as always go out there and have yourself

963.199

a great day a great week

965.12

and we will talk to you next time

983.44

you