Lab 26 Intro to Django

Authors: Ediberto Ponce Version: 1.0.0
PR:

Overview

  • Utilize a high-level Python web framework called Django to create a basic web site.
  • Understand it's basic architecture:
    • model
    • template
    • views
    • apps

Getting Started

  • Typical Steps to Start Django Project
    • create project
    • define app
    • add app to project
    • add views
    • add urlpatterns
    • add templates
    • add tests

User Acceptance Tests

  • Use Django’s built in testing tools
    • Test that home and about url status codes
    • Test home and about url template use, including ancestor template.

Architecture

  • Python
  • Django

Change Log

  • 02-26-2022 (5:00pm): All 6 unit tests are passing and all of the pages are rendering the appropriate text

Name of feature: Create web site in Django with 2 pages

  • Estimate of time needed to complete: 3hrs

  • Start time: 1:30pm

  • Finish time: 5:00pm

  • Actual time needed to complete: 3 1/2hrs

Note: Had to troubleshoot Django issues do to using WSL. I fixed testing issues by switching my repo over windows side, and using the command prompt to run tests instead of terminal

Credits