# HG changeset patch # User nishanth # Date 1271692787 -19800 # Node ID 5d921672ef415a1ee8089535a98ff1a1d1186d14 # Parent 33750f11199fc4fa1aaf117f6a15e47404c04c45 added db to settings and made an app called feedback diff -r 33750f11199f -r 5d921672ef41 feedback/__init__.py diff -r 33750f11199f -r 5d921672ef41 feedback/models.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/feedback/models.py Mon Apr 19 21:29:47 2010 +0530 @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff -r 33750f11199f -r 5d921672ef41 feedback/tests.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/feedback/tests.py Mon Apr 19 21:29:47 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 +"""} + diff -r 33750f11199f -r 5d921672ef41 feedback/views.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/feedback/views.py Mon Apr 19 21:29:47 2010 +0530 @@ -0,0 +1,1 @@ +# Create your views here. diff -r 33750f11199f -r 5d921672ef41 settings.py --- a/settings.py Mon Apr 19 21:22:36 2010 +0530 +++ b/settings.py Mon Apr 19 21:29:47 2010 +0530 @@ -9,8 +9,8 @@ MANAGERS = ADMINS -DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. -DATABASE_NAME = '' # Or path to database file if using sqlite3. +DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. +DATABASE_NAME = 'tmp.db' # 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.