1. Allan Freitas
  2. djangoteste

Commits

Allan Freitas  committed 5d4d158

Add App Polls.

  • Participants
  • Parent commits 89c15c0
  • Branches master

Comments (0)

Files changed (6)

File djangoteste/settings.py

View file
  • Ignore whitespace
     'django.contrib.messages',
     'django.contrib.staticfiles',
     # Uncomment the next line to enable the admin:
+    # AQUI ALTEREI
     # 'django.contrib.admin',
     # Uncomment the next line to enable admin documentation:
     # 'django.contrib.admindocs',

File djangoteste/urls.py

View file
  • Ignore whitespace
 # Uncomment the next two lines to enable the admin:
 # from django.contrib import admin
 # admin.autodiscover()
+admin.autodiscover()
 
 urlpatterns = patterns('',
     # Examples:

File polls/__init__.py

  • Ignore whitespace
Empty file added.

File polls/models.py

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

File polls/tests.py

View file
  • Ignore whitespace
+"""
+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 polls/views.py

View file
  • Ignore whitespace
+# Create your views here.