The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Learning Django By Making A Tutorial - Part 1

TODO: Pull subtitle into page object

`youtube: https://www.youtube.com/watch?v=PLDcoPLJcxA`

I spent a few hours working through the official Django tutorial

So, I'm going Docendo Discimus style. Learning by teaching. Or, in this case, making a tutorial. This is the first of a multi-part set of streams where I put stuff together.

This session is of me getting a home page up and running (and learning lots in the process).

I'll post the entire tutorial when it's done.

### Table Of Contents

- Part 1 - Getting the home page to work - Part 2 - Reviewing the first draft and building a model, view, and url structure for a checklist page - Part 3 - Learning how to test. And, making a python module so that unittest's output is green instead of red when tests pass. - Part 4 - Part 5 - Working with forms and getting a pointer to generic views. - Part 6 - Review run-through and adding URLs.

### Links From The Stream

- 'Manager' object is not iterable error - Stack Overflow - Chapter 3: Pages App - django 'Manager' object is not iterable (but the code works in the manage.py shell) - Stack Overflow - Django Tutorial Part 5: Creating our home page - Learn web development - How to edit default django home page and new page - Stack Overflow - How to Set Up Your Homepage with Django - Treehouse - Writing your first Django app, part 3

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Learning Django By Making A Tutorial - Part 1

-- p

`youtube: https://www.youtube.com/watch?v=PLDcoPLJcxA`

-- p

I spent a few hours working through the <<link|official Django tutorial|https://docs.djangoproject.com/en/3.1/intro/tutorial01/) over the past week. I only made it halfway through. It just doesn't work for the way that I learn. (Check out the past few streams to see me getting frustrated with it.>>

-- p

So, I'm going <<link|Docendo Discimus|https://en.wikipedia.org/wiki/Docendo_discimus>> style. Learning by teaching. Or, in this case, making a tutorial. This is the first of a multi-part set of streams where I put stuff together.

-- p

This session is of me getting a home page up and running (and learning lots in the process).

-- p

I'll post the entire tutorial when it's done.

-- p

### Table Of Contents

-- p

- <<link|Part 1|/stream-notes-2020-10-06/>> - Getting the home page to work
- <<link|Part 2|/stream-notes-2020-10-08/>> - Reviewing the first draft and building a model, view, and url structure for a checklist page
- <<link|Part 3|/stream-notes-2020-10-09/>> - Learning how to test. And, making a python module so that unittest's output is green instead of red when tests pass. 
- <<link|Part 4|/stream-notes-2020-10-10/) - More progress with testing and getting database content to show up. (Also, updating my local Hugo site to launch into either Sublime Text 2, or Sublime Text 3.>>
- <<link|Part 5|/stream-notes-2020-10-10-2/>> - Working with forms and getting a pointer to generic views.
- <<link|Part 6|/stream-notes-2020-10-11/>> - Review run-through and adding URLs.

-- p

### Links From The Stream

-- p

- <<link|'Manager' object is not iterable error - Stack Overflow|https://stackoverflow.com/questions/29617001/manager-object-is-not-iterable-error/29617049>>
- <<link|Chapter 3: Pages App | Django For Beginners|https://djangoforbeginners.com/pages-app/>>
- <<link|django 'Manager' object is not iterable (but the code works in the manage.py shell) - Stack Overflow|https://stackoverflow.com/questions/14795516/django-manager-object-is-not-iterable-but-the-code-works-in-the-manage-py-she/14795562>>
- <<link|Django Tutorial Part 5: Creating our home page - Learn web development | MDN|https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Home_page>>
- <<link|How to edit default django home page and new page - Stack Overflow|https://stackoverflow.com/questions/59083058/how-to-edit-default-django-home-page-and-new-page>>
- <<link|How to Set Up Your Homepage with Django | by 9cv9 official | Medium|https://medium.com/@9cv9official/how-to-set-up-your-homepage-with-django-ae21f439c8a3>>
- <<link|Treehouse | Exploring Django Track|https://teamtreehouse.com/tracks/exploring-django>>
- <<link|Writing your first Django app, part 3 | Django documentation | Django|https://docs.djangoproject.com/en/3.1/intro/tutorial03/>>


-- categories
-- Django
-- Live Coding
-- Python

-- metadata
-- date: 2020-10-06 00:00:00
-- id: 20enjnel
-- status: published
-- type: post
-- SCRUBBED_NEO: false
-- site: aws