get app ready for heroku

This commit is contained in:
2017-02-07 22:26:44 -05:00
parent ae5250e688
commit 537795bf16
36 changed files with 33 additions and 0 deletions

0
committee/__init__.py Normal file
View File

5
committee/admin.py Normal file
View File

@@ -0,0 +1,5 @@
from django.contrib import admin
from models import Committee
# Register your models here.
admin.site.register(Committee)

7
committee/apps.py Normal file
View File

@@ -0,0 +1,7 @@
from __future__ import unicode_literals
from django.apps import AppConfig
class CommitteeConfig(AppConfig):
name = 'committee'

11
committee/models.py Normal file
View File

@@ -0,0 +1,11 @@
from __future__ import unicode_literals
from django.contrib.auth.models import User
from django.db import models
class Committee(models.Model):
name = models.CharField(max_length=100, unique=True)
chair = models.ForeignKey(User, null=True)
def __str__(self):
return self.name

3
committee/tests.py Normal file
View File

@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

3
committee/views.py Normal file
View File

@@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.