Skip to content

Some exercises to practice using the Django ORM

Notifications You must be signed in to change notification settings

RamuPyDev/django-katas

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Katas

This repository contains some exercises (katas) to help you understand some features of Django's ORM.

There are three important files:

  • django_katas/models.py
    • This file defines three related models: Artist, Album, and Track.
  • django_katas/managers.py
    • This file defines managers for each of the three models.
    • Each manager defines a number of methods that can be used to retrieve models from the database.
    • Each method has an explanatory docstring, and a link to some relevant documentation.
  • django_katas/tests.py
    • There is a test for each manager method, which tests that the manager method returns correct results.

To run the tests, run:

./manage.py test --failfast

This will run the tests in tests.py, halting as soon as the first test fails.

About

Some exercises to practice using the Django ORM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%