Browse Source

django: support 1.5

INADA Naoki 12 years ago
parent
commit
61d01244b9
2 changed files with 3 additions and 1 deletions
  1. 2 0
      django/hello/hello/settings.py
  2. 1 1
      django/hello/world/models.py

+ 2 - 0
django/hello/hello/settings.py

@@ -167,3 +167,5 @@ LOGGING = {
         },
     }
 }
+
+ALLOWED_HOSTS = ['*']

+ 1 - 1
django/hello/world/models.py

@@ -8,6 +8,6 @@ class World(models.Model):
     db_table = 'world'
 
 class Fortune(models.Model):
-  message = models.CharField()
+  message = models.CharField(max_length=65535)
   class Meta:
     db_table = 'fortune'