Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

some more friendly errors

  • Loading branch information...
commit 14f29f7124f3a84e2f6dc21d7864136763a1e8d3 1 parent f9f26d1
@hjwp authored
View
2  mysite/polls/forms.py
@@ -1,2 +1,4 @@
from django import forms
+class PollVoteForm(object):
+ pass
View
4 mysite/polls/test_views.py
@@ -8,6 +8,8 @@
class TestAllPollsView(TestCase):
def test_root_url_shows_links_to_all_polls(self):
+ self.fail("todo: delete this line and proceed with the test") #hint: urls.py
+
# set up some polls
poll1 = Poll(question='6 times 7', pub_date='2001-01-01')
poll1.save()
@@ -40,6 +42,8 @@ def test_root_url_shows_links_to_all_polls(self):
class TestSinglePollView(TestCase):
def test_page_shows_poll_title_and_no_votes_message(self):
+ self.fail("todo: delete this line and proceed with the test") #hint: urls.py
+
# set up two polls, to check the right one gets used
poll1 = Poll(question='6 times 7', pub_date='2001-01-01')
poll1.save()
View
2  mysite/urls.py
@@ -1,9 +1,11 @@
from django.conf.urls.defaults import *
from django.contrib import admin
+from mysite.polls import views as polls_views
admin.autodiscover()
urlpatterns = patterns('',
+ (r'^$', polls_views.polls),
(r'^admin/', include(admin.site.urls)),
)
Please sign in to comment.
Something went wrong with that request. Please try again.