Add initial scavenger app, and basic models file

master
Bradlee Speice 2014-03-26 23:26:57 -04:00
parent e8c22e86f2
commit e26bf2419e
4 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,9 @@
from django.db import models
class Location(models.Model):
key = models.CharField(max_length=32)
name = models.CharField(max_length=32)
riddle = models.CharField(max_length=512)
location = models.CharField(max_length=16)
result = models.TextField()

View File

@ -0,0 +1,16 @@
"""
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
from django.test import TestCase
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
self.assertEqual(1 + 1, 2)

View File

@ -0,0 +1 @@
# Create your views here.