51: need to import ImproperlyConfigured

plu***@gmai***** (Google Code) (Is this you? Claim this profile.)
chipx86
chipx86
May 18, 2007
scmtools/models.py blows up for me because ImproperlyConfigured is not defined.

I attached a patch that fixes it, but I don't know much about python or
django, so there is likely a better way to fix this.

(Of course, it still blows up after this patch, but that's because my
server is, in fact, improperly configured... and at least now I get the
meaningful error you intended!)
Index: scmtools/models.py
===================================================================
--- scmtools/models.py	(revision 560)
+++ scmtools/models.py	(working copy)
@@ -1,4 +1,5 @@
 from django.db import models
+from django.core.exceptions import ImproperlyConfigured
 
 class Tool(models.Model):
     name = models.CharField(maxlength=32, unique=True)
chipx86
#1 chipx86
Thanks. Committed :)
  • +Fixed
  • -Type-Defect
    +Type-Patch
  • +chipx86