diff options
author | Matthew Summers <matthew.summers@liquidustech.com> | 2010-05-21 14:59:27 -0500 |
---|---|---|
committer | Matthew Summers <matthew.summers@liquidustech.com> | 2010-05-21 14:59:27 -0500 |
commit | fc49abeafa6ddf2277dcd4f6473ebc7ee4bb70ae (patch) | |
tree | a1fdd08a943694a5c80720e13738bb6686e2f8cd /gentoo_ads | |
parent | fix for syslog stripping messages in [ ] (diff) | |
download | gentoo-ads-fc49abeafa6ddf2277dcd4f6473ebc7ee4bb70ae.tar.gz gentoo-ads-fc49abeafa6ddf2277dcd4f6473ebc7ee4bb70ae.tar.bz2 gentoo-ads-fc49abeafa6ddf2277dcd4f6473ebc7ee4bb70ae.zip |
Removed image-type restriction, and superfluous imports in models & tests
Diffstat (limited to 'gentoo_ads')
-rw-r--r-- | gentoo_ads/ads/models.py | 2 | ||||
-rw-r--r-- | gentoo_ads/ads/templates/ads.html | 2 | ||||
-rw-r--r-- | gentoo_ads/ads/tests.py | 24 |
3 files changed, 14 insertions, 14 deletions
diff --git a/gentoo_ads/ads/models.py b/gentoo_ads/ads/models.py index 71a8362..0b4331b 100644 --- a/gentoo_ads/ads/models.py +++ b/gentoo_ads/ads/models.py @@ -1,3 +1,3 @@ -from django.db import models +# from django.db import models # Create your models here. diff --git a/gentoo_ads/ads/templates/ads.html b/gentoo_ads/ads/templates/ads.html index e288870..f4272f8 100644 --- a/gentoo_ads/ads/templates/ads.html +++ b/gentoo_ads/ads/templates/ads.html @@ -12,7 +12,7 @@ <body> <div class="ads"> {% for ad in ads %} - <a href="{{ad.url}}"><img src="{{ MEDIA_URL }}{{ ad.name }}.png" alt="{{ ad.title|slice:":50" }}" title="{{ ad.title|slice:":50" }}" height="{{ ad.height }}" width="{{ ad.width }}" /></a><br /> + <a href="{{ad.url}}"><img src="{{ MEDIA_URL }}{{ ad.img }}" alt="{{ ad.title|slice:":50" }}" title="{{ ad.title|slice:":50" }}" height="{{ ad.height }}" width="{{ ad.width }}" /></a><br /> {% endfor %} </div> </body> diff --git a/gentoo_ads/ads/tests.py b/gentoo_ads/ads/tests.py index 2247054..afa8959 100644 --- a/gentoo_ads/ads/tests.py +++ b/gentoo_ads/ads/tests.py @@ -5,19 +5,19 @@ 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 +##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) +#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. +#__test__ = {"doctest": """ +#Another way to test that 1 + 1 is equal to 2. ->>> 1 + 1 == 2 -True -"""} +#>>> 1 + 1 == 2 +#True +#"""} |