Lab 26 Intro to Django

Authors: Ediberto Ponce Version: 1.0.0
PR: #1

Overview

  • Add full CRUD functionality to your bag of tricks by building a Django project that allows Creating, Reading, Updating and Deleting.

Getting Started

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

User Acceptance Tests

  • Test Snack pages
    • NOTE make sure test extends TestCase instead of SimpleTestCase used in previous class.
    • verify status code
    • verify correct template use
    • use url name instead of hard coded path

Architecture

  • Python
  • Django
  • HTML
  • CSS
  • Bootstrap

Name of feature: CRUD

  • Estimate of time needed to complete: 3hrs

  • Start time: 1:00pm

  • Finish time: 6:30pm

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

Note: Had a tough time with styling. Still trying to learn how to use CSS with Django.

Credits