get app ready for heroku
This commit is contained in:
0
committee/__init__.py
Normal file
0
committee/__init__.py
Normal file
5
committee/admin.py
Normal file
5
committee/admin.py
Normal 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
7
committee/apps.py
Normal 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
11
committee/models.py
Normal 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
3
committee/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
3
committee/views.py
Normal file
3
committee/views.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
Reference in New Issue
Block a user