Permalink
Browse files

Added Magazine model

  • Loading branch information...
1 parent a3c4eb0 commit 133527d384f02929aafc7bce9ba1b8353a0ee50e @samkarp committed May 20, 2011
View
Binary file not shown.
View
No changes.
View
@@ -0,0 +1,8 @@
+from django.db import models
+
+# Create your models here.
+class Magazine(models.Model):
+ title = models.CharField(max_length=50)
+ frequency = models.CharField(max_length=15)
+ category = models.CharField(max_length=30)
+ update_date = models.DateTimeField('Date Updated')
View
@@ -0,0 +1,16 @@
+"""
+This file demonstrates writing tests using the unittest module. These will pass
+when you run "manage.py test".
+
+Replace this 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.assertEqual(1 + 1, 2)
View
@@ -0,0 +1 @@
+# Create your views here.
View
@@ -12,7 +12,7 @@
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
- 'NAME': 'dev', # Or path to database file if using sqlite3.
+ 'NAME': 'dev.db', # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
@@ -115,6 +115,7 @@
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
+ 'magoo',
# Uncomment the next line to enable the admin:
# 'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
View
Binary file not shown.
View
BIN urls.pyc
Binary file not shown.

0 comments on commit 133527d

Please sign in to comment.