Coder Social home page Coder Social logo

django-queries's Introduction

Django ORM Queries

In this challenge you'll be working with a single model, Product. The database schema has already been created for you.

Release 0: Setup

Create a virtual env. Start it up. Then tell pip to read the requirements.txt file and install all the requirements.


python -m venv venv 

source venv/bin/activate

pip install -r requirements.txt

Release 1: Pass the Tests

Once you've setup the app, your goal is to get all the tests passing. cd into ormQueries and run python manage.py test to see the tests fail. You can also use the --failfast flag to only see one test at a time: python manage.py test --failfast.

The ProductCrud class has a number of functions for you to implement. As you work, follow the test file & review the function names carefully. You'll need to write class methods to make the tests pass. Also, some of the queries will require you to import some modules and functions from django.db.models.

Need A Hint? Check out the available Django QuerySet Cheatsheet.

django-queries's People

Contributors

jalletto avatar jyoung217 avatar mic-j-lee avatar tomprete avatar chad-mowbray avatar crhowell avatar

Watchers

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