Permalink
Browse files

fixing to nondebug

  • Loading branch information...
1 parent 1c15881 commit 91c38fa6e5b26cb5b6146f4cadf941818bf62114 Mike Krieger committed Dec 10, 2008
Showing with 4 additions and 1 deletion.
  1. +1 −0 greetings/models.py
  2. +2 −0 greetings/views.py
  3. +1 −1 settings.py
View
@@ -33,6 +33,7 @@ class Card (models.Model):
image_file = models.FileField(upload_to='image_uploads/', null=True, blank=True)
template = models.ForeignKey(Template, null=True, blank=True)
text_content = models.TextField()
+ short_hash = models.CharField(max_length=10, null=True, blank=True)
def __unicode__(self):
return "Card from %s to %s that says %s" % (self.from_person, self.to_people, self.text_content)
View
@@ -12,6 +12,8 @@
from greetingsweb.greetings.models import *
import base64
+def card_from_hash(request, hash):
+ pass
def get_greeting(request, greeting_id):
greeting = get_object_or_404(Card, pk=greeting_id)
View
@@ -1,6 +1,6 @@
# Django settings for greetingsweb project.
-DEBUG = True
+DEBUG = False
TEMPLATE_DEBUG = DEBUG
ADMINS = (

0 comments on commit 91c38fa

Please sign in to comment.