1. Allan Freitas
  2. djangoteste

Commits

Allan Freitas  committed af1bba0

Add App Django Blog

  • Participants
  • Parent commits 5d4d158
  • Branches master

Comments (0)

Files changed (4)

File blog/__init__.py

Empty file added.

File blog/models.py

View file
+from django.db import models
+
+# Create your models here.

File blog/tests.py

View file
+"""
+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)

File blog/views.py

View file
+# Create your views here.