From e26bf2419e83f3e542da92ccca2c83a962661c1b Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Wed, 26 Mar 2014 23:26:57 -0400 Subject: [PATCH] Add initial scavenger app, and basic models file --- .../UNCCScavenger_Server/scavenger/__init__.py | 0 .../UNCCScavenger_Server/scavenger/models.py | 9 +++++++++ .../UNCCScavenger_Server/scavenger/tests.py | 16 ++++++++++++++++ .../UNCCScavenger_Server/scavenger/views.py | 1 + 4 files changed, 26 insertions(+) create mode 100644 UNCCScavenger-Server/UNCCScavenger_Server/scavenger/__init__.py create mode 100644 UNCCScavenger-Server/UNCCScavenger_Server/scavenger/models.py create mode 100644 UNCCScavenger-Server/UNCCScavenger_Server/scavenger/tests.py create mode 100644 UNCCScavenger-Server/UNCCScavenger_Server/scavenger/views.py diff --git a/UNCCScavenger-Server/UNCCScavenger_Server/scavenger/__init__.py b/UNCCScavenger-Server/UNCCScavenger_Server/scavenger/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/UNCCScavenger-Server/UNCCScavenger_Server/scavenger/models.py b/UNCCScavenger-Server/UNCCScavenger_Server/scavenger/models.py new file mode 100644 index 0000000..caa9dd9 --- /dev/null +++ b/UNCCScavenger-Server/UNCCScavenger_Server/scavenger/models.py @@ -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() diff --git a/UNCCScavenger-Server/UNCCScavenger_Server/scavenger/tests.py b/UNCCScavenger-Server/UNCCScavenger_Server/scavenger/tests.py new file mode 100644 index 0000000..501deb7 --- /dev/null +++ b/UNCCScavenger-Server/UNCCScavenger_Server/scavenger/tests.py @@ -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) diff --git a/UNCCScavenger-Server/UNCCScavenger_Server/scavenger/views.py b/UNCCScavenger-Server/UNCCScavenger_Server/scavenger/views.py new file mode 100644 index 0000000..60f00ef --- /dev/null +++ b/UNCCScavenger-Server/UNCCScavenger_Server/scavenger/views.py @@ -0,0 +1 @@ +# Create your views here.