#100DaysOfWeb in Python Transcripts
Chapter: Days 29-32: Static Sites
Lecture: What did we learn?

Login or purchase this course to watch this video and the rest of the course contents.
0:00 And that was our chapter on static site generators
0:03 specifically using Pelican and Netlify.
0:06 Let's have a quick look through what we learned.
0:09 Again this was a really fun chapter because
0:11 it was really easy right?
0:15 So to start with we had our Pelican work flow.
0:17 Let's just run through that really quick nothing crazy.
0:21 After installing Pelican itself we ran the Pelican
0:24 quick start script and this script pretty much creates
0:28 a bare bones skeleton project and that project
0:32 looked like what you see below.
0:35 The makefile, the pycase the content output and so on.
0:39 And what we did was we learned that our content folder
0:42 was where all of out source files went.
0:45 So all of our markdown formatted files, static pages
0:49 and everything going to that content directory.
0:52 And then after we create those source files
0:56 we run our Pelican content command
0:59 That pretty much processes those source files
1:02 and generates the site and that site is then generated in
1:07 the output folder and to then see our site locally
1:11 to demo it we cd'd into the output directory
1:14 we ran the inbuilt Python web server
1:17 and we tested our site on local host.
1:22 Next we had static content. Now our static content
1:26 specifically images is what we tested with the pie byte
1:30 server. They go inside the content folder in the images
1:34 directory. Simple as that.
1:37 Then we used static pages which was to create our back page
1:41 and terms and conditions and whatever else
1:44 They went in the content pages directory
1:48 So they didn't just go in the content directory.
1:50 They had their own subdirectories inside that.
1:54 And finally in our markdown file to reference this
1:57 static content we have to use the word static inside
2:02 those braces there and then out the path to our file
2:07 which was our logo.
2:09 Next we wanted to deploy our website onto Netlify
2:12 and we did that by pushing all of our content on Github
2:15 and then having Netlify monitor our Github repo
2:21 and deploy that code live onto the internet
2:24 and I was lucky enough to have a really dodgy URL.
2:27 Romantic Bends don't know what that's about
2:29 but let's just roll with it.
2:31 And that just made the site live and they monitor
2:35 our Github repo and by monitoring it what happens is
2:39 every single time we created a change and pushed it up
2:42 to the Github repo Netlify took that within seconds
2:46 and updated the website and that was the beauty of Netlify.
2:52 And that was it we ran through Pelican.
2:55 We used Netlify. We used Github.
2:57 Everything worked thogether and we have our own website.
3:00 So hopefully you had fun with this chapter.
3:02 It is one of the most satisfying things to create your own
3:04 website have it live on the internet.
3:06 Especially have it in such a nice flowing format
3:10 where you work it locally you push the code
3:13 it automatically becomes the website really cool stuff.
3:16 Hope you enjoyed it. Keep calm and code in Python.