GithubHelp home page GithubHelp logo

blog_project's Introduction

Django Blog

Features

  • create blog_project project
  • create blog app
  • migrate data
  • create Post model
    • add title as a CharField with maximum length of 64 characters.
    • add author ForeignKey related to Django’s built in user model with CASCADE delete option.
    • add body TextField
  • add model to admin
  • modify Post model have user friendly display in admin
  • create migrations and migrate data
  • create a super user
  • Add a few posts via Admin panel
  • Add templates folder in root of project
    • register templates folder in project settings
  • create HomePageView
    • extend ListView
    • give a template of home.html
    • associate Post model
  • create home.html template
    • use Django Templating Language to display each post’s title
  • create base.html ancestor template
    • add main html document
    • use Django Templating Language to allow child templates to insert content
  • update url patterns for app and project
  • view home page and confirm posts showing properly
  • add detail view
    • link post_detail.html template
    • associate Post model
  • create post_detail.html template
    • template should extend base
    • content should display post title and body
  • update app urlpatterns to handle detail view
    • account for primary key in url
  • add link in home page template to related post detail page

Acceptance Tests

Test HomePageViewTest - verify status code - verify correct template use - use url name instead of hard coded path

Pull Request

PR #1

blog_project's People

Contributors

eugenemonnier avatar

Watchers

James Cloos 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.