From 369c0fe369fd1501380f8fb65fe0a9d773003ac4 Mon Sep 17 00:00:00 2001 From: bryan newbold Date: Mon, 19 Jan 2009 21:31:39 -0500 Subject: beginings of a new app --- bn_django/journal/__init__.py | 0 bn_django/journal/models.py | 56 +++++++++++++++++++++++++++++++++++++++++++ bn_django/journal/views.py | 1 + 3 files changed, 57 insertions(+) create mode 100644 bn_django/journal/__init__.py create mode 100644 bn_django/journal/models.py create mode 100644 bn_django/journal/views.py (limited to 'bn_django/journal') diff --git a/bn_django/journal/__init__.py b/bn_django/journal/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/bn_django/journal/models.py b/bn_django/journal/models.py new file mode 100644 index 0000000..89392b2 --- /dev/null +++ b/bn_django/journal/models.py @@ -0,0 +1,56 @@ +from django.db import models + +class SubJournal(models.Model): + name = models.CharField("full title"), blank=False,max_length=196) + date = models.DateField("date started"), auto_now_add=True) + slug = models.SlugField() + description = models.TextField("description of content",blank=True) + +class JournalCommon(models.Model): + author = + date + edit_date + subjournal + defunct + private + + class Meta: + abstract = True + +class Entry(): + html_content + title + slug + +class MicroEntry(models.Model): + html_content + text_content + +class Artifact(models.Model) + html_caption + entry + + class Meta: + abstract = True + +class ImageArtifact(Artifact) + original_file + thumb_file + pass + +class VideoArtifact(Artifact) + codec + filepath + external_url + pass + +class CodeArtifact(Artifact) + code + language + pass + +class LinkArtifact(Artifact) + url + pass + + diff --git a/bn_django/journal/views.py b/bn_django/journal/views.py new file mode 100644 index 0000000..60f00ef --- /dev/null +++ b/bn_django/journal/views.py @@ -0,0 +1 @@ +# Create your views here. -- cgit v1.2.3