Giter Site home page Giter Site logo

cssi-9.3-database-tags-lab's Introduction

Python Database Blog Tags Lab

An adventure in Many-to-Many relationships

Concept

This lab will expand your blog capabilities even furthur! After this lab you will be able to tag any specific blog post and see all the posts that you have tagged. This will demonstrate a Many-to-Many relationship, where one post can have many tags, and one tag can have many posts.

Objectives

  • Understand the code that went into creating the Many to Many model
  • Make a corresponding front end that allows users to create tags
  • Show the full list of tags on a page
  • Show a list of all posts, their comments, and tags

Directions

  1. Fill in the tag handler so it gets the Tag Name and adds it to the post entry
  2. Fill out the route so that WSGIApplication accepts the /tags route and passes it to the TagHandler
  3. Fill out the form in index.html so that it passes the tag name to the /tags route
  4. Pass all of the tags to our tags.html page
  5. Fill out tags.html so that it displays a list of tags
  6. Each tag should have a list of posts within it's section.

Stretch

  • Make the site look better with CSS and more creative HTML
  • Validate tag content and title name

View Python Database Blog Tags Lab on Learn.co and start learning to code for free.

cssi-9.3-database-tags-lab's People

Contributors

josephrosenberg avatar sarogers avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.