Theiling Online    Sitemap    Conlang Mailing List HQ    Attic   

Re: TECH: "best" way to organize directory of conlangs

From:Jim Henry <jimhenry1973@...>
Date:Thursday, September 4, 2008, 16:03
On Thu, Sep 4, 2008 at 7:59 AM, taliesin the storyteller
<taliesin-conlang@...> wrote:
> * Jim Henry said on 2008-09-03 23:08:03 +0200
>> work into adding and expanding entries for older conlangs if >> Taliesin has fixed the defect with the add-language button. > > Meh, so it *did* affect adding languages too... yes it's fixed, > but annoyingly it wasn't due to something I added but due to a > change in the underlying framework (how new things was stored in > the database).
When I add a language, I'm still getting error messages, although it seems the language was indeed added when I go back and look at the list of languages, etc. TypeError at /language/new unsupported operand type(s) for /: 'tuple' and 'float' Request Method: POST Request URL: http://cals.conlang.org/language/new Exception Type: TypeError Exception Value: unsupported operand type(s) for /: 'tuple' and 'float' Exception Location: /home/django-sites/cals/../cals/CALS/models.py in set_average_score, line 297 Python Executable: /usr/bin/python Python Version: 2.5.2 Python Path: ['/usr/lib/python2.5/site-packages/textile-2.0.11-py2.5.egg', '/usr/lib/python2.5/site-packages/Trac-0.11rc2-py2.5.egg', '/usr/lib/python2.5/site-packages/Genshi-0.6dev_r888-py2.5-linux-i686.egg', '/usr/lib/python25.zip', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/Numeric', '/usr/lib/python2.5/site-packages/PIL', '/usr/lib/python2.5/site-packages/gst-0.10', '/var/lib/python-support/python2.5', '/usr/lib/python2.5/site-packages/gtk-2.0', '/var/lib/python-support/python2.5/gtk-2.0', '/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode', '/home/django-sites/cals', '/home/django-sites'] Server time: Thu, 4 Sep 2008 18:00:36 +0200 Traceback Switch to copy-and-paste view * /usr/lib/python2.5/site-packages/django/core/handlers/base.py in get_response 79. # Apply view middleware 80. for middleware_method in self._view_middleware: 81. response = middleware_method(request, callback, callback_args, callback_kwargs) 82. if response: 83. return response 84. 85. try: 86. response = callback(request, *callback_args, **callback_kwargs) ... 87. except Exception, e: 88. # If the view raised an exception, run it through exception 89. # middleware, and if the exception middleware returns a 90. # response, use that. Otherwise, reraise the exception. 91. for middleware_method in self._exception_middleware: 92. response = middleware_method(request, e) ▶ Local vars Variable Value callback <django.contrib.auth.decorators._CheckLogin object at 0x8d30c4c> callback_args () callback_kwargs {} e TypeError("unsupported operand type(s) for /: 'tuple' and 'float'",) exc_info (<type 'exceptions.TypeError'>, TypeError("unsupported operand type(s) for /: 'tuple' and 'float'",), <traceback object at 0x8df75cc>) exceptions <module 'django.core.exceptions' from '/usr/lib/python2.5/site-packages/django/core/exceptions.pyc'> middleware_method <bound method XViewMiddleware.process_view of <django.middleware.doc.XViewMiddleware object at 0x87e448c>> receivers [(<function _rollback_on_exception at 0x88a2bfc>, None)] request <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {u'name': [u'gzb'], u'author': [u'Jim Henry'], u'tags': [u'artlang, engelang'], u'greeting': [u''], u'value': [u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u''], u'internal_name': [u'gj\xe2-zym-byn'], u'from_earth': [u'2'], u'background': [u'gj\xe2-zym-byn is a personal language, an engelangish artlang or artlangy engelang, which I use routinely and have become (to a limited extent) fluent in.'], u'vocabulary_size': [u'2900'], u'homepage': [u'http://www.pobox.com/~jimhenry/gzb/gzb.htm']}>, COOKIES:{'sessionid': '5f55d87695c8719e2c36a2b261356d3f'}, META:{'CONTENT_LENGTH': '1368', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'DOCUMENT_ROOT': '/home/django-sites/cals', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=5f55d87695c8719e2c36a2b261356d3f', 'HTTP_HOST': 'cals.conlang.org', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://cals.conlang.org/language/new', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/language/new', 'PATH_TRANSLATED': '/home/python/django-cals.wsgi/language/new', 'QUERY_STRING': '', 'REMOTE_ADDR': '68.217.107.44', 'REMOTE_PORT': '50018', 'REQUEST_METHOD': 'POST', 'REQUEST_URI': '/language/new', 'SCRIPT_FILENAME': '/home/python/django-cals.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '158.38.62.153', 'SERVER_ADMIN': 'webmaster@aldebaaran.uninett.no', 'SERVER_NAME': 'cals.conlang.org', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Apache/2.2.8 (Ubuntu) mod_python/3.3.1 Python/2.5.2 PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g mod_wsgi/2.0 mod_perl/2.0.3 Perl/v5.8.8 Server at cals.conlang.org Port 80</address>\n', 'SERVER_SOFTWARE': 'Apache/2.2.8 (Ubuntu) mod_python/3.3.1 Python/2.5.2 PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g mod_wsgi/2.0 mod_perl/2.0.3 Perl/v5.8.8', 'mod_wsgi.application_group': 'cals.aldebaaran.uninett.no|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.process_group': 'cals', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'wsgi.errors': <mod_wsgi.Log object at 0x85a6848>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x835d5c0>, 'wsgi.input': <mod_wsgi.Input object at 0x8d34f48>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> resolver <RegexURLResolver cals.urls ^/> response None self <django.core.handlers.wsgi.WSGIHandler object at 0x8374d8c> settings <django.conf.LazySettings object at 0x866678c> urlconf 'cals.urls' urlresolvers <module 'django.core.urlresolvers' from '/usr/lib/python2.5/site-packages/django/core/urlresolvers.pyc'> * /usr/lib/python2.5/site-packages/django/contrib/auth/decorators.py in __call__ 60. 61. def __get__(self, obj, cls=None): 62. view_func = self.view_func.__get__(obj, cls) 63. return _CheckLogin(view_func, self.test_func, self.login_url, self.redirect_field_name) 64. 65. def __call__(self, request, *args, **kwargs): 66. if self.test_func(request.user): 67. return self.view_func(request, *args, **kwargs) ... 68. path = urlquote(request.get_full_path()) 69. tup = self.login_url, self.redirect_field_name, path 70. return HttpResponseRedirect('%s?%s=%s' % tup) ▶ Local vars Variable Value args () kwargs {} request <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {u'name': [u'gzb'], u'author': [u'Jim Henry'], u'tags': [u'artlang, engelang'], u'greeting': [u''], u'value': [u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u''], u'internal_name': [u'gj\xe2-zym-byn'], u'from_earth': [u'2'], u'background': [u'gj\xe2-zym-byn is a personal language, an engelangish artlang or artlangy engelang, which I use routinely and have become (to a limited extent) fluent in.'], u'vocabulary_size': [u'2900'], u'homepage': [u'http://www.pobox.com/~jimhenry/gzb/gzb.htm']}>, COOKIES:{'sessionid': '5f55d87695c8719e2c36a2b261356d3f'}, META:{'CONTENT_LENGTH': '1368', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'DOCUMENT_ROOT': '/home/django-sites/cals', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=5f55d87695c8719e2c36a2b261356d3f', 'HTTP_HOST': 'cals.conlang.org', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://cals.conlang.org/language/new', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/language/new', 'PATH_TRANSLATED': '/home/python/django-cals.wsgi/language/new', 'QUERY_STRING': '', 'REMOTE_ADDR': '68.217.107.44', 'REMOTE_PORT': '50018', 'REQUEST_METHOD': 'POST', 'REQUEST_URI': '/language/new', 'SCRIPT_FILENAME': '/home/python/django-cals.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '158.38.62.153', 'SERVER_ADMIN': 'webmaster@aldebaaran.uninett.no', 'SERVER_NAME': 'cals.conlang.org', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Apache/2.2.8 (Ubuntu) mod_python/3.3.1 Python/2.5.2 PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g mod_wsgi/2.0 mod_perl/2.0.3 Perl/v5.8.8 Server at cals.conlang.org Port 80</address>\n', 'SERVER_SOFTWARE': 'Apache/2.2.8 (Ubuntu) mod_python/3.3.1 Python/2.5.2 PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g mod_wsgi/2.0 mod_perl/2.0.3 Perl/v5.8.8', 'mod_wsgi.application_group': 'cals.aldebaaran.uninett.no|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.process_group': 'cals', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'wsgi.errors': <mod_wsgi.Log object at 0x85a6848>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x835d5c0>, 'wsgi.input': <mod_wsgi.Input object at 0x8d34f48>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> self <django.contrib.auth.decorators._CheckLogin object at 0x8d30c4c> * /home/django-sites/cals/CALS/views.py in create_language 254. fv = FeatureValue.objects.get(id=int(value_id)) 255. feature = Feature.objects.get(id=fv.feature_id) 256. lf = LanguageFeature.objects.create(language=lang, feature=feature, value=fv) 257. lf.save() 258. freq = get_averageness_for_lang(lang, scale=100) 259. lang.num_features = LanguageFeature.objects.filter(language=lang).count() 260. lang.num_avg_features = freq 261. lang.set_average_score() ... 262. lang.save() 263. return HttpResponseRedirect('.') 264. else: 265. error = "Couldn't store language-description: " + str(form.errors) 266. data = {'form': langform, 'categories': cats, 'me': me, 'error': error} 267. return _make_page(request, 'language_form.html', data) ▶ Local vars Variable Value args () categories [<Category: Phonology>, <Category: Morphology>, <Category: Nominal Categories>, <Category: Nominal Syntax>, <Category: Verbal Categories>, <Category: Word Order>, <Category: Simple Clauses>, <Category: Complex Sentences>, <Category: Lexicon>, <Category: Sign Languages>, <Category: Other>, <Category: Conlang-specific>] category <Category: Conlang-specific> cats [{'features': [{'feature': <Feature: Consonant Inventories>, 'form': <CALS.forms.FeatureValueForm object at 0x8bcdeac>}, {'feature': <Feature: Vowel Quality Inventories>, 'form': <CALS.forms.FeatureValueForm object at 0x8d39fec>}, {'feature': <Feature: Consonant-Vowel Ratio>, 'form': <CALS.forms.FeatureValueForm object at 0x8d39f6c>}, {'feature': <Feature: Voicing in Plosives and Fricatives>, 'form': <CALS.forms.FeatureValueForm object at 0x8c64b8c>}, {'feature': <Feature: Voicing and Gaps in Plosive Systems>, 'form': <CALS.forms.FeatureValueForm object at 0x8c64acc>}, {'feature': <Feature: Uvular Consonants>, 'form': <CALS.forms.FeatureValueForm object at 0x8d3b90c>}, {'feature': <Feature: Glottalized Consonants>, 'form': <CALS.forms.FeatureValueForm object at 0x8d3ba4c>}, {'feature': <Feature: Lateral Consonants>, 'form': <CALS.forms.FeatureValueForm object at 0x8bfb6cc>}, {'feature': <Feature: The Velar Nasal>, 'form': <CALS.forms.FeatureValueForm object at 0x8be5e0c>}, {'feature': <Feature: Vowel Nasalization>, 'form': <CALS.forms.FeatureValueForm object at 0x8be556c>}, {'feature': <Feature: Front Rounded Vowels>, 'form': <CALS.forms.FeatureValueForm object at 0x8be550c>}, {'feature': <Feature: Syllable Structure>, 'form': <CALS.forms.FeatureValueForm object at 0x8be544c>}, {'feature': <Feature: Tone>, 'form': <CALS.forms.FeatureValueForm object at 0x8be570c>}, {'feature': <Feature: Fixed Stress Locations>, 'form': <CALS.forms.FeatureValueForm object at 0x8be546c>}, {'feature': <Feature: Weight-Sensitive Stress>, 'form': <CALS.forms.FeatureValueForm object at 0x8be51ec>}, {'feature': <Feature: Weight Factors in Weight-Sensitive Stress Systems>, 'form': <CALS.forms.FeatureValueForm object at 0x8d4186c>}, {'feature': <Feature: Rhythm Types>, 'form': <CALS.forms.FeatureValueForm object at 0x8d4144c>}, {'feature': <Feature: Absence of Common Consonants>, 'form': <CALS.forms.FeatureValueForm object at 0x8d418cc>}, {'feature': <Feature: Presence of Uncommon Consonants>, 'form': <CALS.forms.FeatureValueForm object at 0x8d419ac>}], 'name': u'Phonology'}, {'features': [{'feature': <Feature: Fusion of Selected Inflectional Formatives>, 'form': <CALS.forms.FeatureValueForm object at 0x8c64ccc>}, {'feature': <Feature: Exponence of Selected Inflectional Formatives>, 'form': <CALS.forms.FeatureValueForm object at 0x8d39eac>}, {'feature': <Feature: Inflectional Synthesis of the Verb>, 'form': <CALS.forms.FeatureValueForm object at 0x8d390ec>}, {'feature': <Feature: Locus of Marking in the Clause>, 'form': <CALS.forms.FeatureValueForm object at 0x8d39d2c>}, {'feature': <Feature: Locus of Marking in Possessive Noun Phrases>, 'form': <CALS.forms.FeatureValueForm object at 0x8d4134c>}, {'feature': <Feature: Locus of Marking: Whole-language Typology>, 'form': <CALS.forms.FeatureValueForm object at 0x8d41a2c>}, {'feature': <Feature: Prefixing vs. Suffixing in Inflectional Morphology>, 'form': <CALS.forms.FeatureValueForm object at 0x8d4d88c>}, {'feature': <Feature: Reduplication>, 'form': <CALS.forms.FeatureValueForm object at 0x8d4d28c>}, {'feature': <Feature: Case Syncretism>, 'form': <CALS.forms.FeatureValueForm object at 0x8d4d52c>}, {'feature': <Feature: Syncretism in Verbal Person/Number Marking>, 'form': <CALS.forms.FeatureValueForm object at 0x8d4ddcc>}], 'name': u'Morphology'}, {'features': [{'feature': <Feature: Number of Genders>, 'form': <CALS.forms.FeatureValueForm object at 0x8d39d4c>}, {'feature': <Feature: Sex-based and Non-sex-based Gender Systems>, 'form': <CALS.forms.FeatureValueForm object at 0x8d410ec>}, {'feature': <Feature: Systems of Gender Assignment>, 'form': <CALS.forms.FeatureValueForm object at 0x8d50a4c>}, {'feature': <Feature: Coding of Nominal Plurality>, 'form': <CALS.forms.FeatureValueForm object at 0x8d4d16c>}, {'feature': <Feature: Occurrence of Nominal Plurality>, 'form': <CALS.forms.FeatureValueForm object at 0x8bcdd6c>}, {'feature': <Feature: Plurality in Independent Personal Pronouns>, 'form': <CALS.forms.FeatureValueForm object at 0x8dc7bac>}, {'feature': <Feature: The Associative Plural>, 'form': <CALS.forms.FeatureValueForm object at 0x8d41d8c>}, {'feature': <Feature: Definite Articles>, 'form': <CALS.forms.FeatureValueForm object at 0x8dc7f0c>}, {'feature': <Feature: Indefinite Articles>, 'form': <CALS.forms.FeatureValueForm object at 0x8d5404c>}, {'feature': <Feature: Inclusive/Exclusive Distinction in Independent Pronouns>, 'form': <CALS.forms.FeatureValueForm object at 0x8d54dec>}, {'feature': <Feature: Inclusive/Exclusive Distinction in Verbal Inflection>, 'form': <CALS.forms.FeatureValueForm object at 0x8d54eac>}, {'feature': <Feature: Distance Contrasts in Demonstratives>, 'form': <CALS.forms.FeatureValueForm object at 0x8d54dcc>}, {'feature': <Feature: Pronominal and Adnominal Demonstratives>, 'form': <CALS.forms.FeatureValueForm object at 0x8d544cc>}, {'feature': <Feature: Third Person Pronouns and Demonstratives>, 'form': <CALS.forms.FeatureValueForm object at 0x8d54a8c>}, {'feature': <Feature: Gender Distinctions in Independent Personal Pronouns>, 'form': <CALS.forms.FeatureValueForm object at 0x8d5466c>}, {'feature': <Feature: Politeness Distinctions in Pronouns>, 'form': <CALS.forms.FeatureValueForm object at 0x8d54f2c>}, {'feature': <Feature: Indefinite Pronouns>, 'form': <CALS.forms.FeatureValueForm object at 0x8d54d4c>}, {'feature': <Feature: Intensifiers and Reflexive Pronouns>, 'form': <CALS.forms.FeatureValueForm object at 0x8d3014c>}, {'feature': <Feature: Person Marking on Adpositions>, 'form': <CALS.forms.FeatureValueForm object at 0x8d30fec>}, {'feature': <Feature: Number of Cases>, 'form': <CALS.forms.FeatureValueForm object at 0x8d302ec>}, {'feature': <Feature: Asymmetrical Case-Marking>, 'form': <CALS.forms.FeatureValueForm object at 0x8d30d4c>}, {'feature': <Feature: Position of Case Affixes>, 'form': <CALS.forms.FeatureValueForm object at 0x8d3022c>}, {'feature': <Feature: Comitatives and Instrumentals>, 'form': <CALS.forms.FeatureValueForm object at 0x8d300ec>}, {'feature': <Feature: Ordinal Numerals>, 'form': <CALS.forms.FeatureValueForm object at 0x8d4760c>}, {'feature': <Feature: Distributive Numerals>, 'form': <CALS.forms.FeatureValueForm object at 0x8d47b0c>}, {'feature': <Feature: Numeral Classifiers>, 'form': <CALS.forms.FeatureValueForm object at 0x8d4756c>}, {'feature': <Feature: Conjunctions and Universal Quantifiers>, 'form': <CALS.forms.FeatureValueForm object at 0x8d4708c>}, {'feature': <Feature: Position of Pronominal Possessive Affixes>, 'form': <CALS.forms.FeatureValueForm object at 0x8d47bec>}], 'name': u'Nominal Categories'}, {'features': [{'feature': <Feature: Obligatory Possessive Inflection>, 'form': <CALS.forms.FeatureValueForm object at 0x8d4184c>}, {'feature': <Feature: Possessive Classification>, 'form': <CALS.forms.FeatureValueForm object at 0x8d41e6c>}, {'feature': <Feature: Genitives, Adjectives and Relative Clauses>, 'form': <CALS.forms.FeatureValueForm object at 0x8d47c4c>}, {'feature': <Feature: Adjectives without Nouns>, 'form': <CALS.forms.FeatureValueForm object at 0x8d5056c>}, {'feature': <Feature: Action Nominal Constructions>, 'form': <CALS.forms.FeatureValueForm object at 0x8d500ec>}, {'feature': <Feature: Noun Phrase Conjunction>, 'form': <CALS.forms.FeatureValueForm object at 0x8d51cac>}, {'feature': <Feature: Nominal and Verbal Conjunction>, 'form': <CALS.forms.FeatureValueForm object at 0x8d51f2c>}], 'name': u'Nominal Syntax'}, {'features': [{'feature': <Feature: Perfective/Imperfective Aspect>, 'form': <CALS.forms.FeatureValueForm object at 0x8c6496c>}, {'feature': <Feature: The Past Tense>, 'form': <CALS.forms.FeatureValueForm object at 0x8d51acc>}, {'feature': <Feature: The Future Tense>, 'form': <CALS.forms.FeatureValueForm object at 0x8d4780c>}, {'feature': <Feature: The Perfect>, 'form': <CALS.forms.FeatureValueForm object at 0x8d51d6c>}, {'feature': <Feature: Position of Tense-Aspect Affixes>, 'form': <CALS.forms.FeatureValueForm object at 0x8d5146c>}, {'feature': <Feature: The Morphological Imperative>, 'form': <CALS.forms.FeatureValueForm object at 0x8dcae6c>}, {'feature': <Feature: The Prohibitive>, 'form': <CALS.forms.FeatureValueForm object at 0x8dca96c>}, {'feature': <Feature: Imperative-Hortative Systems>, 'form': <CALS.forms.FeatureValueForm object at 0x8dcae0c>}, {'feature': <Feature: The Optative>, 'form': <CALS.forms.FeatureValueForm object at 0x8dcabcc>}, {'feature': <Feature: Situational Possibility>, 'form': <CALS.forms.FeatureValueForm object at 0x8dcec6c>}, {'feature': <Feature: Epistemic Possibility>, 'form': <CALS.forms.FeatureValueForm object at 0x8dcee4c>}, {'feature': <Feature: Overlap between Situational and Epistemic Modal Marking>, 'form': <CALS.forms.FeatureValueForm object at 0x8dce38c>}, {'feature': <Feature: Semantic Distinctions of Evidentiality>, 'form': <CALS.forms.FeatureValueForm object at 0x8dce7ec>}, {'feature': <Feature: Coding of Evidentiality>, 'form': <CALS.forms.FeatureValueForm object at 0x8dced4c>}, {'feature': <Feature: Suppletion According to Tense and Aspect>, 'form': <CALS.forms.FeatureValueForm object at 0x8dceb6c>}, {'feature': <Feature: Verbal Number and Suppletion>, 'form': <CALS.forms.FeatureValueForm object at 0x8dcefcc>}], 'name': u'Verbal Categories'}, {'features': [{'feature': <Feature: Order of Subject, Object and Verb>, 'form': <CALS.forms.FeatureValueForm object at 0x8d41fac>}, {'feature': <Feature: Order of Subject and Verb>, 'form': <CALS.forms.FeatureValueForm object at 0x8d5158c>}, {'feature': <Feature: Order of Object and Verb>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd1b0c>}, {'feature': <Feature: Order of Object, Oblique, and Verb>, 'form': <CALS.forms.FeatureValueForm object at 0x8d51eec>}, {'feature': <Feature: Order of Adposition and Noun Phrase>, 'form': <CALS.forms.FeatureValueForm object at 0x8d51fec>}, {'feature': <Feature: Order of Genitive and Noun>, 'form': <CALS.forms.FeatureValueForm object at 0x8dc4a0c>}, {'feature': <Feature: Order of Adjective and Noun>, 'form': <CALS.forms.FeatureValueForm object at 0x8dc4f8c>}, {'feature': <Feature: Order of Demonstrative and Noun>, 'form': <CALS.forms.FeatureValueForm object at 0x8dc41ec>}, {'feature': <Feature: Order of Numeral and Noun>, 'form': <CALS.forms.FeatureValueForm object at 0x8dc45cc>}, {'feature': <Feature: Order of Relative Clause and Noun>, 'form': <CALS.forms.FeatureValueForm object at 0x8dc48ec>}, {'feature': <Feature: Order of Degree Word and Adjective>, 'form': <CALS.forms.FeatureValueForm object at 0x8dc4ccc>}, {'feature': <Feature: Position of Polar Question Particles>, 'form': <CALS.forms.FeatureValueForm object at 0x8cd02cc>}, {'feature': <Feature: Position of Interrogative Phrases in Content Questions>, 'form': <CALS.forms.FeatureValueForm object at 0x8cd060c>}, {'feature': <Feature: Order of Adverbial Subordinator and Clause>, 'form': <CALS.forms.FeatureValueForm object at 0x8cd08ac>}, {'feature': <Feature: Relationship between the Order of Object and Verb and the Order of Adposition and Noun Phrase>, 'form': <CALS.forms.FeatureValueForm object at 0x8cd008c>}, {'feature': <Feature: Relationship between the Order of Object and Verb and the Order of Relative Clause and Noun>, 'form': <CALS.forms.FeatureValueForm object at 0x8cd0ecc>}, {'feature': <Feature: Relationship between the Order of Object and Verb and the Order of Adjective and Noun>, 'form': <CALS.forms.FeatureValueForm object at 0x8cd078c>}], 'name': u'Word Order'}, {'features': [{'feature': <Feature: Alignment of Case Marking of Full Noun Phrases>, 'form': <CALS.forms.FeatureValueForm object at 0x8d515ec>}, {'feature': <Feature: Alignment of Case Marking of Pronouns>, 'form': <CALS.forms.FeatureValueForm object at 0x8dcef0c>}, {'feature': <Feature: Alignment of Verbal Person Marking>, 'form': <CALS.forms.FeatureValueForm object at 0x8cd06cc>}, {'feature': <Feature: Expression of Pronominal Subjects>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd15ac>}, {'feature': <Feature: Verbal Person Marking>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd19ac>}, {'feature': <Feature: Third Person Zero of Verbal Person Marking>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd9a4c>}, {'feature': <Feature: Order of Person Markers on the Verb>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd984c>}, {'feature': <Feature: Ditransitive Constructions: The Verb 'Give'>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd93ec>}, {'feature': <Feature: Reciprocal Constructions>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd950c>}, {'feature': <Feature: Passive Constructions>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd962c>}, {'feature': <Feature: Antipassive Constructions>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd96ac>}, {'feature': <Feature: Applicative Constructions>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd98cc>}, {'feature': <Feature: Periphrastic Causative Constructions>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd9d2c>}, {'feature': <Feature: Nonperiphrastic Causative Constructions>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd9cec>}, {'feature': <Feature: Negative Morphemes>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd9e8c>}, {'feature': <Feature: Symmetric and Asymmetric Standard Negation>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd9f2c>}, {'feature': <Feature: Subtypes of Asymmetric Standard Negation>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd9ecc>}, {'feature': <Feature: Negative Indefinite Pronouns and Predicate Negation>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd976c>}, {'feature': <Feature: Polar Questions>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd9fac>}, {'feature': <Feature: Predicative Possession>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd9f0c>}, {'feature': <Feature: Predicative Adjectives>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd97ec>}, {'feature': <Feature: Nominal and Locational Predication>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd9fec>}, {'feature': <Feature: Zero Copula for Predicate Nominals>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd3bcc>}, {'feature': <Feature: Comparative Constructions>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd3d4c>}], 'name': u'Simple Clauses'}, {'features': [{'feature': <Feature: Relativization on Subjects>, 'form': <CALS.forms.FeatureValueForm object at 0x8d479ec>}, {'feature': <Feature: Relativization on Obliques>, 'form': <CALS.forms.FeatureValueForm object at 0x8cd0e0c>}, {'feature': <Feature: 'Want' Complement Subjects>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd31ac>}, {'feature': <Feature: Purpose Clauses>, 'form': <CALS.forms.FeatureValueForm object at 0x8cd07cc>}, {'feature': <Feature: 'When' Clauses>, 'form': <CALS.forms.FeatureValueForm object at 0x8cd0fec>}, {'feature': <Feature: Reason Clauses>, 'form': <CALS.forms.FeatureValueForm object at 0x8cce56c>}, {'feature': <Feature: Utterance Complement Clauses>, 'form': <CALS.forms.FeatureValueForm object at 0x8cce84c>}], 'name': u'Complex Sentences'}, {'features': [{'feature': <Feature: Hand and Arm>, 'form': <CALS.forms.FeatureValueForm object at 0x8d50aac>}, {'feature': <Feature: Finger and Hand>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd384c>}, {'feature': <Feature: Numeral Bases>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd3fec>}, {'feature': <Feature: Number of Non-Derived Basic Colour Categories>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd3c2c>}, {'feature': <Feature: Number of Basic Colour Categories>, 'form': <CALS.forms.FeatureValueForm object at 0x8cce4cc>}, {'feature': <Feature: Green and Blue>, 'form': <CALS.forms.FeatureValueForm object at 0x8cce64c>}, {'feature': <Feature: Red and Yellow>, 'form': <CALS.forms.FeatureValueForm object at 0x8ccec6c>}, {'feature': <Feature: M-T Pronouns>, 'form': <CALS.forms.FeatureValueForm object at 0x8cce54c>}, {'feature': <Feature: N-M Pronouns>, 'form': <CALS.forms.FeatureValueForm object at 0x8ccee6c>}, {'feature': <Feature: Tea>, 'form': <CALS.forms.FeatureValueForm object at 0x8cce86c>}], 'name': u'Lexicon'}, {'features': [{'feature': <Feature: Irregular Negatives in Sign Languages>, 'form': <CALS.forms.FeatureValueForm object at 0x8cd0b4c>}, {'feature': <Feature: Question Particles in Sign Languages>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd180c>}], 'name': u'Sign Languages'}, {'features': [{'feature': <Feature: Writing Systems>, 'form': <CALS.forms.FeatureValueForm object at 0x8dd31cc>}, {'feature': <Feature: Para-Linguistic Usages of Clicks>, 'form': <CALS.forms.FeatureValueForm object at 0x8cce92c>}], 'name': u'Other'}, {'features': [{'feature': <Feature: Conlang type>, 'form': <CALS.forms.FeatureValueForm object at 0x8cce18c>}], 'name': u'Conlang-specific'}] error None f [{'feature': <Feature: Conlang type>, 'form': <CALS.forms.FeatureValueForm object at 0x8cce18c>}] feature <Feature: Conlang type> features [<Feature: Conlang type>] form <CALS.forms.FeatureValueForm object at 0x8cce18c> freq (None, None) fvs [<FeatureValue: Auxlang>, <FeatureValue: Artlang>, <FeatureValue: Engelang>, <FeatureValue: Other>] kwargs {} lang <Language: gzb> langform <CALS.forms.LanguageForm object at 0x8ccee2c> me 'language' request <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {u'name': [u'gzb'], u'author': [u'Jim Henry'], u'tags': [u'artlang, engelang'], u'greeting': [u''], u'value': [u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u'', u''], u'internal_name': [u'gj\xe2-zym-byn'], u'from_earth': [u'2'], u'background': [u'gj\xe2-zym-byn is a personal language, an engelangish artlang or artlangy engelang, which I use routinely and have become (to a limited extent) fluent in.'], u'vocabulary_size': [u'2900'], u'homepage': [u'http://www.pobox.com/~jimhenry/gzb/gzb.htm']}>, COOKIES:{'sessionid': '5f55d87695c8719e2c36a2b261356d3f'}, META:{'CONTENT_LENGTH': '1368', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'DOCUMENT_ROOT': '/home/django-sites/cals', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=5f55d87695c8719e2c36a2b261356d3f', 'HTTP_HOST': 'cals.conlang.org', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://cals.conlang.org/language/new', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'PATH_INFO': u'/language/new', 'PATH_TRANSLATED': '/home/python/django-cals.wsgi/language/new', 'QUERY_STRING': '', 'REMOTE_ADDR': '68.217.107.44', 'REMOTE_PORT': '50018', 'REQUEST_METHOD': 'POST', 'REQUEST_URI': '/language/new', 'SCRIPT_FILENAME': '/home/python/django-cals.wsgi', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '158.38.62.153', 'SERVER_ADMIN': 'webmaster@aldebaaran.uninett.no', 'SERVER_NAME': 'cals.conlang.org', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SIGNATURE': '<address>Apache/2.2.8 (Ubuntu) mod_python/3.3.1 Python/2.5.2 PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g mod_wsgi/2.0 mod_perl/2.0.3 Perl/v5.8.8 Server at cals.conlang.org Port 80</address>\n', 'SERVER_SOFTWARE': 'Apache/2.2.8 (Ubuntu) mod_python/3.3.1 Python/2.5.2 PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g mod_wsgi/2.0 mod_perl/2.0.3 Perl/v5.8.8', 'mod_wsgi.application_group': 'cals.aldebaaran.uninett.no|', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '80', 'mod_wsgi.process_group': 'cals', 'mod_wsgi.reload_mechanism': '1', 'mod_wsgi.script_reloading': '1', 'wsgi.errors': <mod_wsgi.Log object at 0x85a6848>, 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x835d5c0>, 'wsgi.input': <mod_wsgi.Input object at 0x8d34f48>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> value_id u'' * /home/django-sites/cals/../cals/CALS/models.py in set_average_score 290. 291. #@permalink 292. def get_absolute_url(self): 293. return "/language/%s/" % self.slug 294. # return ('CALS.views.show_language', [str(self.id)]) 295. 296. def set_average_score(self): 297. self.average_score = int(self.num_avg_features / float(self.num_features) * 100) ... 298. 299. def set_num_features(self): 300. self.num_features = LanguageFeature.objects.filter(language=self).count() 301. 302. class LanguageFeature(models.Model): 303. language = models.ForeignKey(Language, related_name='features') ▶ Local vars Variable Value self <Language: gzb> Environment: Request Method: POST Request URL: http://cals.conlang.org/language/new Django Version: 1.0-final-SVN-8964 Python Version: 2.5.2 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'django.contrib.flatpages', 'django.contrib.comments', 'cals.CALS', 'tagging', 'countries'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware', 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware') Traceback: File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response 86. response = callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.5/site-packages/django/contrib/auth/decorators.py" in __call__ 67. return self.view_func(request, *args, **kwargs) File "/home/django-sites/cals/CALS/views.py" in create_language 261. lang.set_average_score() File "/home/django-sites/cals/../cals/CALS/models.py" in set_average_score 297. self.average_score = int(self.num_avg_features / float(self.num_features) * 100) Exception Type: TypeError at /language/new Exception Value: unsupported operand type(s) for /: 'tuple' and 'float' Request information GET No GET data POST Variable Value name u'gzb' author u'Jim Henry' tags u'artlang, engelang' greeting u'' value u'' internal_name u'gj\xe2-zym-byn' from_earth u'2' background u'gj\xe2-zym-byn is a personal language, an engelangish artlang or artlangy engelang, which I use routinely and have become (to a limited extent) fluent in.' vocabulary_size u'2900' homepage u'http://www.pobox.com/~jimhenry/gzb/gzb.htm' COOKIES Variable Value sessionid '5f55d87695c8719e2c36a2b261356d3f' META Variable Value CONTENT_LENGTH '1368' CONTENT_TYPE 'application/x-www-form-urlencoded' DOCUMENT_ROOT '/home/django-sites/cals' GATEWAY_INTERFACE 'CGI/1.1' HTTP_ACCEPT 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' HTTP_ACCEPT_CHARSET 'ISO-8859-1,utf-8;q=0.7,*;q=0.7' HTTP_ACCEPT_ENCODING 'gzip,deflate' HTTP_ACCEPT_LANGUAGE 'en-us,en;q=0.5' HTTP_CONNECTION 'keep-alive' HTTP_COOKIE 'sessionid=5f55d87695c8719e2c36a2b261356d3f' HTTP_HOST 'cals.conlang.org' HTTP_KEEP_ALIVE '300' HTTP_REFERER 'http://cals.conlang.org/language/new' HTTP_USER_AGENT 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1' PATH '/usr/local/bin:/usr/bin:/bin' PATH_INFO u'/language/new' PATH_TRANSLATED '/home/python/django-cals.wsgi/language/new' QUERY_STRING '' REMOTE_ADDR '68.217.107.44' REMOTE_PORT '50018' REQUEST_METHOD 'POST' REQUEST_URI '/language/new' SCRIPT_FILENAME '/home/python/django-cals.wsgi' SCRIPT_NAME u'' SERVER_ADDR '158.38.62.153' SERVER_ADMIN 'webmaster@aldebaaran.uninett.no' SERVER_NAME 'cals.conlang.org' SERVER_PORT '80' SERVER_PROTOCOL 'HTTP/1.1' SERVER_SIGNATURE '<address>Apache/2.2.8 (Ubuntu) mod_python/3.3.1 Python/2.5.2 PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g mod_wsgi/2.0 mod_perl/2.0.3 Perl/v5.8.8 Server at cals.conlang.org Port 80</address>\n' SERVER_SOFTWARE 'Apache/2.2.8 (Ubuntu) mod_python/3.3.1 Python/2.5.2 PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g mod_wsgi/2.0 mod_perl/2.0.3 Perl/v5.8.8' mod_wsgi.application_group 'cals.aldebaaran.uninett.no|' mod_wsgi.callable_object 'application' mod_wsgi.listener_host '' mod_wsgi.listener_port '80' mod_wsgi.process_group 'cals' mod_wsgi.reload_mechanism '1' mod_wsgi.script_reloading '1' wsgi.errors <mod_wsgi.Log object at 0x85a6848> wsgi.file_wrapper <built-in method file_wrapper of mod_wsgi.Adapter object at 0x835d5c0> wsgi.input <mod_wsgi.Input object at 0x8d34f48> wsgi.multiprocess False wsgi.multithread True wsgi.run_once False wsgi.url_scheme 'http' wsgi.version (1, 0) Settings Using settings module cals.settings Setting Value ABSOLUTE_URL_OVERRIDES {} ADMINS () ADMIN_FOR () ADMIN_MEDIA_PREFIX 'http://media.aldebaaran.uninett.no/admin/' ALLOWED_INCLUDE_ROOTS () APPEND_SLASH True AUTHENTICATION_BACKENDS ('django.contrib.auth.backends.ModelBackend',) AUTH_PROFILE_MODULE 'CALS.Profile' BANNED_IPS () CACHE_BACKEND 'locmem://' CACHE_MIDDLEWARE_KEY_PREFIX '' CACHE_MIDDLEWARE_SECONDS 600 COMMENTS_ALLOW_PROFANITIES False COMMENTS_BANNED_USERS_GROUP None COMMENTS_FIRST_FEW 0 COMMENTS_MODERATORS_GROUP None COMMENTS_SKETCHY_USERS_GROUP None DATABASE_ENGINE 'postgresql_psycopg2' DATABASE_HOST '' DATABASE_NAME 'cals' DATABASE_OPTIONS {} DATABASE_PASSWORD '********************' DATABASE_PORT '' DATABASE_USER 'cals' DATETIME_FORMAT 'N j, Y, P' DATE_FORMAT 'N j, Y' DEBUG True DEBUG_PROPAGATE_EXCEPTIONS False DEFAULT_CHARSET 'utf-8' DEFAULT_CONTENT_TYPE 'text/html' DEFAULT_FILE_STORAGE 'django.core.files.storage.FileSystemStorage' DEFAULT_FROM_EMAIL 'webmaster@localhost' DEFAULT_INDEX_TABLESPACE '' DEFAULT_TABLESPACE '' DISALLOWED_USER_AGENTS () EMAIL_HOST 'localhost' EMAIL_HOST_PASSWORD '********************' EMAIL_HOST_USER '' EMAIL_PORT 25 EMAIL_SUBJECT_PREFIX '[Django] ' EMAIL_USE_TLS False FILE_CHARSET 'utf-8' FILE_UPLOAD_HANDLERS ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') FILE_UPLOAD_MAX_MEMORY_SIZE 2621440 FILE_UPLOAD_PERMISSIONS None FILE_UPLOAD_TEMP_DIR None FIXTURE_DIRS () FORCE_LOWERCASE_TAGS True FORCE_SCRIPT_NAME None IGNORABLE_404_ENDS ('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php') IGNORABLE_404_STARTS ('/cgi-bin/', '/_vti_bin', '/_vti_inf') INSTALLED_APPS ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'django.contrib.flatpages', 'django.contrib.comments', 'cals.CALS', 'tagging', 'countries'] INTERNAL_IPS ('127.0.0.1', '158.38.62.153') JING_PATH '/usr/bin/jing' LANGUAGES (('ar', 'Arabic'), ('bn', 'Bengali'), ('bg', 'Bulgarian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('es', 'Spanish'), ('et', 'Estonian'), ('es-ar', 'Argentinean Spanish'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('ga', 'Irish'), ('gl', 'Galician'), ('hu', 'Hungarian'), ('he', 'Hebrew'), ('hr', 'Croatian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('ko', 'Korean'), ('km', 'Khmer'), ('kn', 'Kannada'), ('lv', 'Latvian'), ('lt', 'Lithuanian'), ('mk', 'Macedonian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('pl', 'Polish'), ('pt', 'Portugese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sr', 'Serbian'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')) LANGUAGES_BIDI ('he', 'ar', 'fa') LANGUAGE_CODE 'en-us' LANGUAGE_COOKIE_NAME 'django_language' LOCALE_PATHS () LOGIN_OPENID_URL_CLASS 'openid' LOGIN_REDIRECT_URL '/logged_in' LOGIN_URL '/' LOGOUT_URL '/accounts/logout/' MANAGERS () MEDIA_ROOT '/home/django-media/CALS/' MEDIA_URL 'http://media.aldebaaran.uninett.no/' MIDDLEWARE_CLASSES ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware', 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware') MONTH_DAY_FORMAT 'F j' OPENID_DISALLOW_INAMES False PASSWORD_RESET_TIMEOUT_DAYS '********************' PREPEND_WWW False PROFANITIES_LIST '********************' ROOT_URLCONF 'cals.urls' SECRET_KEY '********************' SEND_BROKEN_LINK_EMAILS False SERVER_EMAIL 'root@localhost' SESSION_COOKIE_AGE 1209600 SESSION_COOKIE_DOMAIN None SESSION_COOKIE_NAME 'sessionid' SESSION_COOKIE_PATH '/' SESSION_COOKIE_SECURE False SESSION_ENGINE 'django.contrib.sessions.backends.db' SESSION_EXPIRE_AT_BROWSER_CLOSE True SESSION_FILE_PATH None SESSION_SAVE_EVERY_REQUEST False SETTINGS_MODULE 'cals.settings' SITE_ID 1 TEMPLATE_CONTEXT_PROCESSORS ('django.core.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.request') TEMPLATE_DEBUG True TEMPLATE_DIRS ('/home/django-sites/templates/cals',) TEMPLATE_LOADERS ('django.template.loaders.app_directories.load_template_source', 'django.template.loaders.filesystem.load_template_source') TEMPLATE_STRING_IF_INVALID '' TEST_DATABASE_CHARSET None TEST_DATABASE_COLLATION None TEST_DATABASE_NAME None TEST_RUNNER 'django.test.simple.run_tests' TIME_FORMAT 'P' TIME_ZONE 'Europe/Oslo' TRANSACTIONS_MANAGED False URL_VALIDATOR_USER_AGENT u'Django/1.0-final-SVN-8964 (http://www.djangoproject.com)' USE_ETAGS False USE_I18N True YEAR_MONTH_FORMAT 'F Y' You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 500 page.

Reply

Jim Henry <jimhenry1973@...>