Reorganized the directory structure. Removed unwanted .pyc files.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Sun, 24 Jan 2010 19:20:33 +0530
changeset 6 f87d8ee2b9ca
parent 5 cca34bc300d7
child 7 f7a099ec1ac4
Reorganized the directory structure. Removed unwanted .pyc files.
__init__.py
manage.py
pytask/__init__.py
pytask/development.py
pytask/production.py
pytask/settings.py
pytask/taskapp/__init__.py
pytask/taskapp/admin.py
pytask/taskapp/models.py
pytask/taskapp/tests.py
pytask/taskapp/views.py
settings.py
taskapp/__init__.py
taskapp/__init__.pyc
taskapp/admin.py
taskapp/admin.pyc
taskapp/models.py
taskapp/models.pyc
taskapp/tests.py
taskapp/views.py
--- a/manage.py	Sun Jan 24 19:16:56 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
-#!/usr/bin/python
-from django.core.management import execute_manager
-try:
-    import settings # Assumed to be in the same directory.
-except ImportError:
-    import sys
-    sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
-    sys.exit(1)
-
-if __name__ == "__main__":
-    execute_manager(settings)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pytask/development.py	Sun Jan 24 19:20:33 2010 +0530
@@ -0,0 +1,81 @@
+# Django settings for pytask project.
+
+DEBUG = True
+TEMPLATE_DEBUG = DEBUG
+
+ADMINS = (
+    # ('Your Name', 'your_email@domain.com'),
+)
+
+MANAGERS = ADMINS
+
+DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
+DATABASE_NAME = '../pytaskDb'             # Or path to database file if using sqlite3.
+DATABASE_USER = ''             # Not used with sqlite3.
+DATABASE_PASSWORD = ''         # Not used with sqlite3.
+DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
+DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
+
+# Local time zone for this installation. Choices can be found here:
+# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
+# although not all choices may be available on all operating systems.
+# If running in a Windows environment this must be set to the same as your
+# system time zone.
+TIME_ZONE = 'America/Chicago'
+
+# Language code for this installation. All choices can be found here:
+# http://www.i18nguy.com/unicode/language-identifiers.html
+LANGUAGE_CODE = 'en-us'
+
+SITE_ID = 1
+
+# If you set this to False, Django will make some optimizations so as not
+# to load the internationalization machinery.
+USE_I18N = True
+
+# Absolute path to the directory that holds media.
+# Example: "/home/media/media.lawrence.com/"
+MEDIA_ROOT = ''
+
+# URL that handles the media served from MEDIA_ROOT. Make sure to use a
+# trailing slash if there is a path component (optional in other cases).
+# Examples: "http://media.lawrence.com", "http://example.com/media/"
+MEDIA_URL = ''
+
+# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
+# trailing slash.
+# Examples: "http://foo.com/media/", "/media/".
+ADMIN_MEDIA_PREFIX = '/media/'
+
+# Make this unique, and don't share it with anybody.
+SECRET_KEY = '@7p-w6$99)@&+sp024%is8i=4#62q8*y0xx=5e_z*4h3%@#7u)'
+
+# List of callables that know how to import templates from various sources.
+TEMPLATE_LOADERS = (
+    'django.template.loaders.filesystem.load_template_source',
+    'django.template.loaders.app_directories.load_template_source',
+#     'django.template.loaders.eggs.load_template_source',
+)
+
+MIDDLEWARE_CLASSES = (
+    'django.middleware.common.CommonMiddleware',
+    'django.contrib.sessions.middleware.SessionMiddleware',
+    'django.contrib.auth.middleware.AuthenticationMiddleware',
+)
+
+ROOT_URLCONF = 'pytask.urls'
+
+TEMPLATE_DIRS = (
+    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
+    # Always use forward slashes, even on Windows.
+    # Don't forget to use absolute paths, not relative paths.
+)
+
+INSTALLED_APPS = (
+    'django.contrib.auth',
+    'django.contrib.contenttypes',
+    'django.contrib.sessions',
+    'django.contrib.sites',
+    'django.contrib.admin',
+    'pytask.taskapp',
+)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pytask/production.py	Sun Jan 24 19:20:33 2010 +0530
@@ -0,0 +1,81 @@
+# Django settings for pytask project.
+
+DEBUG = True
+TEMPLATE_DEBUG = DEBUG
+
+ADMINS = (
+    # ('Your Name', 'your_email@domain.com'),
+)
+
+MANAGERS = ADMINS
+
+DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
+DATABASE_NAME = '../pytaskDb'             # Or path to database file if using sqlite3.
+DATABASE_USER = ''             # Not used with sqlite3.
+DATABASE_PASSWORD = ''         # Not used with sqlite3.
+DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
+DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
+
+# Local time zone for this installation. Choices can be found here:
+# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
+# although not all choices may be available on all operating systems.
+# If running in a Windows environment this must be set to the same as your
+# system time zone.
+TIME_ZONE = 'America/Chicago'
+
+# Language code for this installation. All choices can be found here:
+# http://www.i18nguy.com/unicode/language-identifiers.html
+LANGUAGE_CODE = 'en-us'
+
+SITE_ID = 1
+
+# If you set this to False, Django will make some optimizations so as not
+# to load the internationalization machinery.
+USE_I18N = True
+
+# Absolute path to the directory that holds media.
+# Example: "/home/media/media.lawrence.com/"
+MEDIA_ROOT = ''
+
+# URL that handles the media served from MEDIA_ROOT. Make sure to use a
+# trailing slash if there is a path component (optional in other cases).
+# Examples: "http://media.lawrence.com", "http://example.com/media/"
+MEDIA_URL = ''
+
+# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
+# trailing slash.
+# Examples: "http://foo.com/media/", "/media/".
+ADMIN_MEDIA_PREFIX = '/media/'
+
+# Make this unique, and don't share it with anybody.
+SECRET_KEY = '@7p-w6$99)@&+sp024%is8i=4#62q8*y0xx=5e_z*4h3%@#7u)'
+
+# List of callables that know how to import templates from various sources.
+TEMPLATE_LOADERS = (
+    'django.template.loaders.filesystem.load_template_source',
+    'django.template.loaders.app_directories.load_template_source',
+#     'django.template.loaders.eggs.load_template_source',
+)
+
+MIDDLEWARE_CLASSES = (
+    'django.middleware.common.CommonMiddleware',
+    'django.contrib.sessions.middleware.SessionMiddleware',
+    'django.contrib.auth.middleware.AuthenticationMiddleware',
+)
+
+ROOT_URLCONF = 'pytask.urls'
+
+TEMPLATE_DIRS = (
+    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
+    # Always use forward slashes, even on Windows.
+    # Don't forget to use absolute paths, not relative paths.
+)
+
+INSTALLED_APPS = (
+    'django.contrib.auth',
+    'django.contrib.contenttypes',
+    'django.contrib.sessions',
+    'django.contrib.sites',
+    'django.contrib.admin',
+    'pytask.taskapp',
+)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pytask/settings.py	Sun Jan 24 19:20:33 2010 +0530
@@ -0,0 +1,81 @@
+# Django settings for pytask project.
+
+DEBUG = True
+TEMPLATE_DEBUG = DEBUG
+
+ADMINS = (
+    # ('Your Name', 'your_email@domain.com'),
+)
+
+MANAGERS = ADMINS
+
+DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
+DATABASE_NAME = '../pytaskDb'             # Or path to database file if using sqlite3.
+DATABASE_USER = ''             # Not used with sqlite3.
+DATABASE_PASSWORD = ''         # Not used with sqlite3.
+DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
+DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
+
+# Local time zone for this installation. Choices can be found here:
+# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
+# although not all choices may be available on all operating systems.
+# If running in a Windows environment this must be set to the same as your
+# system time zone.
+TIME_ZONE = 'America/Chicago'
+
+# Language code for this installation. All choices can be found here:
+# http://www.i18nguy.com/unicode/language-identifiers.html
+LANGUAGE_CODE = 'en-us'
+
+SITE_ID = 1
+
+# If you set this to False, Django will make some optimizations so as not
+# to load the internationalization machinery.
+USE_I18N = True
+
+# Absolute path to the directory that holds media.
+# Example: "/home/media/media.lawrence.com/"
+MEDIA_ROOT = ''
+
+# URL that handles the media served from MEDIA_ROOT. Make sure to use a
+# trailing slash if there is a path component (optional in other cases).
+# Examples: "http://media.lawrence.com", "http://example.com/media/"
+MEDIA_URL = ''
+
+# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
+# trailing slash.
+# Examples: "http://foo.com/media/", "/media/".
+ADMIN_MEDIA_PREFIX = '/media/'
+
+# Make this unique, and don't share it with anybody.
+SECRET_KEY = '@7p-w6$99)@&+sp024%is8i=4#62q8*y0xx=5e_z*4h3%@#7u)'
+
+# List of callables that know how to import templates from various sources.
+TEMPLATE_LOADERS = (
+    'django.template.loaders.filesystem.load_template_source',
+    'django.template.loaders.app_directories.load_template_source',
+#     'django.template.loaders.eggs.load_template_source',
+)
+
+MIDDLEWARE_CLASSES = (
+    'django.middleware.common.CommonMiddleware',
+    'django.contrib.sessions.middleware.SessionMiddleware',
+    'django.contrib.auth.middleware.AuthenticationMiddleware',
+)
+
+ROOT_URLCONF = 'pytask.urls'
+
+TEMPLATE_DIRS = (
+    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
+    # Always use forward slashes, even on Windows.
+    # Don't forget to use absolute paths, not relative paths.
+)
+
+INSTALLED_APPS = (
+    'django.contrib.auth',
+    'django.contrib.contenttypes',
+    'django.contrib.sessions',
+    'django.contrib.sites',
+    'django.contrib.admin',
+    'pytask.taskapp',
+)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pytask/taskapp/admin.py	Sun Jan 24 19:20:33 2010 +0530
@@ -0,0 +1,7 @@
+from pytask.taskapp.models import Person,Task,Comment,Credit
+from django.contrib import admin
+
+admin.site.register(Person)
+admin.site.register(Task)
+admin.site.register(Comment)
+admin.site.register(Credit)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pytask/taskapp/models.py	Sun Jan 24 19:20:33 2010 +0530
@@ -0,0 +1,94 @@
+from django.db import models
+from django.contrib.auth.models import User
+
+GENDER_CHOICES = (( 'M', 'Male'), ('F', 'Female'))
+RIGHTS_CHOICES = (
+	("AD", "Admin"),
+	("MN", "Manager"),
+	("DV", "Developer"),
+	("MT", "Mentor"),
+	("CT", "Contributor"),
+	("GP", "Public"),)
+
+STATUS_CHOICES = (
+	("OP", "Open"),
+	("CL", "Claimed"),
+	("LO", "Locked"),
+	("AS", "Assigned"),)
+
+IMAGES_DIR = "./images"
+UPLOADS_DIR = "./uploads"
+
+class Person(models.Model):
+#class Person(User):
+	
+    user = models.ForeignKey(User, unique = True)
+    aboutme = models.TextField()
+    DOB = models.DateField()
+    gender = models.CharField(max_length = 1, choices = GENDER_CHOICES)
+    rights = models.CharField(max_length = 2, choices = RIGHTS_CHOICES)
+    credits = models.PositiveSmallIntegerField()
+    
+    foss_comm = models.CharField(max_length = 80, blank = True)
+    phoneNum = models.CharField(max_length = 15, blank = True)
+    homepage = models.URLField(blank = True)
+    street = models.CharField(max_length = 80, blank = True)
+    city = models.CharField(max_length = 25, blank = True)
+    country = models.CharField(max_length = 25, blank = True)
+    nick = models.CharField(max_length = 20, blank = True)
+    photo = models.ImageField(upload_to = IMAGES_DIR, blank = True)
+
+    def __unicode__(self):
+        return unicode(self.user.username)
+
+
+class Task(models.Model):
+    
+    title = models.CharField(max_length = 200, unique = True)
+    desc = models.TextField()
+    status = models.CharField(max_length = 2, choices = STATUS_CHOICES)
+    tags = models.CharField(max_length = 200, blank = True)
+    
+    parents = models.ManyToManyField('self', blank = True, related_name = "%(class)s_parents")
+    deps = models.ManyToManyField('self', blank = True, related_name = "%(class)s_deps")
+    
+    credits = models.PositiveSmallIntegerField()
+    progress = models.PositiveSmallIntegerField()
+        
+    mentors = models.ManyToManyField('Person', related_name = "%(class)s_mentors")
+    created_by = models.ForeignKey('Person', related_name = "%(class)s_created_by")
+    claimed_users = models.ManyToManyField('Person', blank = True, related_name = "%(class)s_claimed_users")
+    assigned_users = models.ManyToManyField('Person', blank = True, related_name = "%(class)s_assigned_users")
+    
+    creation_date = models.DateField()
+    
+    ## not yet decided if attribs after this are to be included
+    ## tasktype = "" ## "bugfix"/"enhancement"
+    ## priority = "" ## "very urgent"/"urgent"
+    
+    def __unicode__(self):
+        return unicode(self.title)
+
+class Comment(models.Model):
+    
+    task = models.ForeignKey('Task')
+    data = models.TextField()
+    created_by = models.ForeignKey('Person', related_name = "%(class)s_created_by")
+    deleted_by = models.ForeignKey('Person', null = True, blank = True, related_name = "%(class)s_deleted_by")
+    creation_date = models.DateField()
+    deleted = models.BooleanField()
+    attachment = models.FileField(upload_to = UPLOADS_DIR, blank = True)
+    
+    def __unicode__(self):
+        return unicode(self.task.title)
+
+class Credit(models.Model):
+    
+    task = models.ForeignKey('Task')
+    given_by = models.ForeignKey('Person', related_name = "%(class)s_given_by")
+    given_to = models.ForeignKey('Person', related_name = "%(class)s_given_to")
+    points = models.PositiveSmallIntegerField()
+    
+    def __unicode__(self):
+        return unicode(self.task.title)
+    
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pytask/taskapp/tests.py	Sun Jan 24 19:20:33 2010 +0530
@@ -0,0 +1,23 @@
+"""
+This file demonstrates two different styles of tests (one doctest and one
+unittest). These will both pass when you run "manage.py test".
+
+Replace these with more appropriate tests for your application.
+"""
+
+from django.test import TestCase
+
+class SimpleTest(TestCase):
+    def test_basic_addition(self):
+        """
+        Tests that 1 + 1 always equals 2.
+        """
+        self.failUnlessEqual(1 + 1, 2)
+
+__test__ = {"doctest": """
+Another way to test that 1 + 1 is equal to 2.
+
+>>> 1 + 1 == 2
+True
+"""}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pytask/taskapp/views.py	Sun Jan 24 19:20:33 2010 +0530
@@ -0,0 +1,1 @@
+# Create your views here.
--- a/settings.py	Sun Jan 24 19:16:56 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,81 +0,0 @@
-# Django settings for pytask project.
-
-DEBUG = True
-TEMPLATE_DEBUG = DEBUG
-
-ADMINS = (
-    # ('Your Name', 'your_email@domain.com'),
-)
-
-MANAGERS = ADMINS
-
-DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
-DATABASE_NAME = '../pytaskDb'             # Or path to database file if using sqlite3.
-DATABASE_USER = ''             # Not used with sqlite3.
-DATABASE_PASSWORD = ''         # Not used with sqlite3.
-DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
-DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
-
-# Local time zone for this installation. Choices can be found here:
-# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
-# although not all choices may be available on all operating systems.
-# If running in a Windows environment this must be set to the same as your
-# system time zone.
-TIME_ZONE = 'America/Chicago'
-
-# Language code for this installation. All choices can be found here:
-# http://www.i18nguy.com/unicode/language-identifiers.html
-LANGUAGE_CODE = 'en-us'
-
-SITE_ID = 1
-
-# If you set this to False, Django will make some optimizations so as not
-# to load the internationalization machinery.
-USE_I18N = True
-
-# Absolute path to the directory that holds media.
-# Example: "/home/media/media.lawrence.com/"
-MEDIA_ROOT = ''
-
-# URL that handles the media served from MEDIA_ROOT. Make sure to use a
-# trailing slash if there is a path component (optional in other cases).
-# Examples: "http://media.lawrence.com", "http://example.com/media/"
-MEDIA_URL = ''
-
-# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
-# trailing slash.
-# Examples: "http://foo.com/media/", "/media/".
-ADMIN_MEDIA_PREFIX = '/media/'
-
-# Make this unique, and don't share it with anybody.
-SECRET_KEY = '@7p-w6$99)@&+sp024%is8i=4#62q8*y0xx=5e_z*4h3%@#7u)'
-
-# List of callables that know how to import templates from various sources.
-TEMPLATE_LOADERS = (
-    'django.template.loaders.filesystem.load_template_source',
-    'django.template.loaders.app_directories.load_template_source',
-#     'django.template.loaders.eggs.load_template_source',
-)
-
-MIDDLEWARE_CLASSES = (
-    'django.middleware.common.CommonMiddleware',
-    'django.contrib.sessions.middleware.SessionMiddleware',
-    'django.contrib.auth.middleware.AuthenticationMiddleware',
-)
-
-ROOT_URLCONF = 'pytask.urls'
-
-TEMPLATE_DIRS = (
-    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
-    # Always use forward slashes, even on Windows.
-    # Don't forget to use absolute paths, not relative paths.
-)
-
-INSTALLED_APPS = (
-    'django.contrib.auth',
-    'django.contrib.contenttypes',
-    'django.contrib.sessions',
-    'django.contrib.sites',
-    'django.contrib.admin',
-    'pytask.taskapp',
-)
Binary file taskapp/__init__.pyc has changed
--- a/taskapp/admin.py	Sun Jan 24 19:16:56 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-from pytask.taskapp.models import Person,Task,Comment,Credit
-from django.contrib import admin
-
-admin.site.register(Person)
-admin.site.register(Task)
-admin.site.register(Comment)
-admin.site.register(Credit)
Binary file taskapp/admin.pyc has changed
--- a/taskapp/models.py	Sun Jan 24 19:16:56 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,94 +0,0 @@
-from django.db import models
-from django.contrib.auth.models import User
-
-GENDER_CHOICES = (( 'M', 'Male'), ('F', 'Female'))
-RIGHTS_CHOICES = (
-	("AD", "Admin"),
-	("MN", "Manager"),
-	("DV", "Developer"),
-	("MT", "Mentor"),
-	("CT", "Contributor"),
-	("GP", "Public"),)
-
-STATUS_CHOICES = (
-	("OP", "Open"),
-	("CL", "Claimed"),
-	("LO", "Locked"),
-	("AS", "Assigned"),)
-
-IMAGES_DIR = "./images"
-UPLOADS_DIR = "./uploads"
-
-class Person(models.Model):
-#class Person(User):
-	
-    user = models.ForeignKey(User, unique = True)
-    aboutme = models.TextField()
-    DOB = models.DateField()
-    gender = models.CharField(max_length = 1, choices = GENDER_CHOICES)
-    rights = models.CharField(max_length = 2, choices = RIGHTS_CHOICES)
-    credits = models.PositiveSmallIntegerField()
-    
-    foss_comm = models.CharField(max_length = 80, blank = True)
-    phoneNum = models.CharField(max_length = 15, blank = True)
-    homepage = models.URLField(blank = True)
-    street = models.CharField(max_length = 80, blank = True)
-    city = models.CharField(max_length = 25, blank = True)
-    country = models.CharField(max_length = 25, blank = True)
-    nick = models.CharField(max_length = 20, blank = True)
-    photo = models.ImageField(upload_to = IMAGES_DIR, blank = True)
-
-    def __unicode__(self):
-        return unicode(self.user.username)
-
-
-class Task(models.Model):
-    
-    title = models.CharField(max_length = 200, unique = True)
-    desc = models.TextField()
-    status = models.CharField(max_length = 2, choices = STATUS_CHOICES)
-    tags = models.CharField(max_length = 200, blank = True)
-    
-    parents = models.ManyToManyField('self', blank = True, related_name = "%(class)s_parents")
-    deps = models.ManyToManyField('self', blank = True, related_name = "%(class)s_deps")
-    
-    credits = models.PositiveSmallIntegerField()
-    progress = models.PositiveSmallIntegerField()
-        
-    mentors = models.ManyToManyField('Person', related_name = "%(class)s_mentors")
-    created_by = models.ForeignKey('Person', related_name = "%(class)s_created_by")
-    claimed_users = models.ManyToManyField('Person', blank = True, related_name = "%(class)s_claimed_users")
-    assigned_users = models.ManyToManyField('Person', blank = True, related_name = "%(class)s_assigned_users")
-    
-    creation_date = models.DateField()
-    
-    ## not yet decided if attribs after this are to be included
-    ## tasktype = "" ## "bugfix"/"enhancement"
-    ## priority = "" ## "very urgent"/"urgent"
-    
-    def __unicode__(self):
-        return unicode(self.title)
-
-class Comment(models.Model):
-    
-    task = models.ForeignKey('Task')
-    data = models.TextField()
-    created_by = models.ForeignKey('Person', related_name = "%(class)s_created_by")
-    deleted_by = models.ForeignKey('Person', null = True, blank = True, related_name = "%(class)s_deleted_by")
-    creation_date = models.DateField()
-    deleted = models.BooleanField()
-    attachment = models.FileField(upload_to = UPLOADS_DIR, blank = True)
-    
-    def __unicode__(self):
-        return unicode(self.task.title)
-
-class Credit(models.Model):
-    
-    task = models.ForeignKey('Task')
-    given_by = models.ForeignKey('Person', related_name = "%(class)s_given_by")
-    given_to = models.ForeignKey('Person', related_name = "%(class)s_given_to")
-    points = models.PositiveSmallIntegerField()
-    
-    def __unicode__(self):
-        return unicode(self.task.title)
-    
Binary file taskapp/models.pyc has changed
--- a/taskapp/tests.py	Sun Jan 24 19:16:56 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,23 +0,0 @@
-"""
-This file demonstrates two different styles of tests (one doctest and one
-unittest). These will both pass when you run "manage.py test".
-
-Replace these with more appropriate tests for your application.
-"""
-
-from django.test import TestCase
-
-class SimpleTest(TestCase):
-    def test_basic_addition(self):
-        """
-        Tests that 1 + 1 always equals 2.
-        """
-        self.failUnlessEqual(1 + 1, 2)
-
-__test__ = {"doctest": """
-Another way to test that 1 + 1 is equal to 2.
-
->>> 1 + 1 == 2
-True
-"""}
-
--- a/taskapp/views.py	Sun Jan 24 19:16:56 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-# Create your views here.