From 1dff90c99b5ccc81563d5952fb0c1b64ae917df3 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 2 May 2015 17:00:15 +0200 Subject: [PATCH] start digital glarus Signed-off-by: Nico Schottelius --- digital_glarus/__init__.py | 0 digital_glarus/admin.py | 3 +++ digital_glarus/migrations/__init__.py | 0 digital_glarus/models.py | 11 +++++++++++ digital_glarus/tests.py | 3 +++ digital_glarus/views.py | 3 +++ 6 files changed, 20 insertions(+) create mode 100644 digital_glarus/__init__.py create mode 100644 digital_glarus/admin.py create mode 100644 digital_glarus/migrations/__init__.py create mode 100644 digital_glarus/models.py create mode 100644 digital_glarus/tests.py create mode 100644 digital_glarus/views.py diff --git a/digital_glarus/__init__.py b/digital_glarus/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/digital_glarus/admin.py b/digital_glarus/admin.py new file mode 100644 index 00000000..8c38f3f3 --- /dev/null +++ b/digital_glarus/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/digital_glarus/migrations/__init__.py b/digital_glarus/migrations/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/digital_glarus/models.py b/digital_glarus/models.py new file mode 100644 index 00000000..e205a914 --- /dev/null +++ b/digital_glarus/models.py @@ -0,0 +1,11 @@ +from django.db import models + +# Create your models here. + +class Message(models.Model): + name = models.CharField(max_length=200) + email = models.EmailField() + phone_number = models.CharField(max_length=200) + message = models.TextField() + + received_date = models.DateTimeField('date received') diff --git a/digital_glarus/tests.py b/digital_glarus/tests.py new file mode 100644 index 00000000..7ce503c2 --- /dev/null +++ b/digital_glarus/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/digital_glarus/views.py b/digital_glarus/views.py new file mode 100644 index 00000000..91ea44a2 --- /dev/null +++ b/digital_glarus/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here.