Django Magic Cards is a pluggable Django app for the Oracle text of all Magic: the Gathering cards.
The full documentation is at https://django-magic-cards.readthedocs.io. However, it may be outdated, as I don't have comaint.
Install the package::
pip install -e git+git://github.com/dcollinsn/django-magic-cards.git@master#egg=django_magic-cards
Add the app to your INSTALLED_APPS
:
INSTALLED_APPS = (
...
'magic_cards.apps.MagicCardsConfig',
...
)
Add Django Magic Cards' tables to your the database::
./manage.py migrate magic_cards
Populate the card database::
./manage.py import_magic_cards
- MTGJSON for providing up-to-date card data.
- Cookiecutter and
cookiecutter-djangopackage
for providing the structure for this project.
The literal and graphical information presented in this software about Magic: the Gathering, including Oracle text and card images, is copyright Wizards of the Coast, LLC, a subsidiary of Hasbro, Inc. This project is not produced by, endorsed by, supported by, or affiliated with Wizards of the Coast.