start digital glarus
Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
This commit is contained in:
parent
086195073b
commit
1dff90c99b
6 changed files with 20 additions and 0 deletions
0
digital_glarus/__init__.py
Normal file
0
digital_glarus/__init__.py
Normal file
3
digital_glarus/admin.py
Normal file
3
digital_glarus/admin.py
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
from django.contrib import admin
|
||||||
|
|
||||||
|
# Register your models here.
|
0
digital_glarus/migrations/__init__.py
Normal file
0
digital_glarus/migrations/__init__.py
Normal file
11
digital_glarus/models.py
Normal file
11
digital_glarus/models.py
Normal file
|
@ -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')
|
3
digital_glarus/tests.py
Normal file
3
digital_glarus/tests.py
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
from django.test import TestCase
|
||||||
|
|
||||||
|
# Create your tests here.
|
3
digital_glarus/views.py
Normal file
3
digital_glarus/views.py
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
from django.shortcuts import render
|
||||||
|
|
||||||
|
# Create your views here.
|
Loading…
Reference in a new issue