https://github.com/phildini/cards-against-django
CAH done as a Django web app.
https://github.com/phildini/cards-against-django
Last synced: about 1 year ago
JSON representation
CAH done as a Django web app.
- Host: GitHub
- URL: https://github.com/phildini/cards-against-django
- Owner: phildini
- License: other
- Created: 2013-03-24T06:16:34.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2015-05-20T23:49:24.000Z (about 11 years ago)
- Last Synced: 2025-04-14T05:08:52.227Z (about 1 year ago)
- Language: Python
- Size: 16.6 MB
- Stars: 8
- Watchers: 4
- Forks: 4
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://travis-ci.org/phildini/cards-against-django)
cards-against-django
====================
CAH done as a Django web app.
Are you looking for a game that promotes team work, where there are no losers? [This Is Not That Game](http://www.ThisIsNotThatGame.com/).
Are you looking for a game to play with your family that is suitable for young children? [This Is Not That Game](http://www.ThisIsNotThatGame.com/).
Looking for a game to play with Grandma? [This Is Not That Game](http://www.ThisIsNotThatGame.com/).
Perhaps you are looking for a game to play at Church? [This Is Not That Game](http://www.ThisIsNotThatGame.com/).
Do you have a sick and twisted sense of humor (and know how to use a web browser)? You may be the perfect player for [This Is Not That Game](http://www.ThisIsNotThatGame.com/).
Vagrant
=======
Install [VirtualBox](https://www.virtualbox.org/)
$ gem install vagrant
$ vagrant up
$ vagrant ssh
The first time you log in, the database must be initialized:
$ syncdb
Start the app, from the Vagrant shell:
$ rs
Share and enjoy!
Sample manage shell snippets:
# drop model tables (but not Django users/permissions)
python manage.py sqlclear --settings=cah.settings.local cards | python manage.py dbshell --settings=cah.settings.local
# then syncdb
$ python manage.py shell --settings=cah.settings.local
import cards
cards.models.BlackCard.objects.get(id=1)
cards.models.WhiteCard.objects.all()
b = cards.models.BlackCard.objects.get(id=93)
b.replace_blanks((11, 94, 95))
b.replace_blanks((11, 94))
g = cards.models.Game.objects.get(id=1)
Dump any cards/cardset that have been created:
python manage.py dumpdata --settings=cah.settings.local --indent=4 cards > cards/fixtures/initial_data.json