added db to settings and made an app called feedback
authornishanth
Mon, 19 Apr 2010 21:29:47 +0530
changeset 1 5d921672ef41
parent 0 33750f11199f
child 2 a28d06481350
added db to settings and made an app called feedback
feedback/__init__.py
feedback/models.py
feedback/tests.py
feedback/views.py
settings.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.
--- /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
+"""}
+
--- /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.
--- 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.