Start working on an api

This commit is contained in:
Trever Fischer
2012-02-18 15:40:03 -05:00
parent 6c55e65226
commit 6c980fa047
4 changed files with 20 additions and 0 deletions

0
api/__init__.py Normal file
View File

3
api/models.py Normal file
View File

@@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

16
api/tests.py Normal file
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)

1
api/views.py Normal file
View File

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