Skip to content

axm1820/cards-against-django

 
 

Repository files navigation

Build Status

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.

Are you looking for a game to play with your family that is suitable for young children? This Is Not That Game.

Looking for a game to play with Grandma? This Is Not That Game.

Perhaps you are looking for a game to play at Church? This Is Not That Game.

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.

Vagrant

Install VirtualBox

$ 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

About

CAH done as a Django web app.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published