This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Apple Grew
Recipients Apple Grew
Date 2012-08-20.13:46:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1345470434.58.0.741490128779.issue15739@psf.upfronthosting.co.za>
In-reply-to
Content
Python crashes when I try to access (by sending http request from borwser) my Django application.

OS: Mac OSX Lion
Python version: 2.7.1 (This was pre-bundled with OS and not a MacPort).

There isn't a simple test case but I do have an open source app which where I am able to replicate this always on my system.

0. Make sure you have Django 1.4 installed.
1. Download the code at https://github.com/applegrew/django-select2/tree/v1.1-PythonCrasher
2. cd to django-select2/testapp folder.
3. Use python manage.py runserver & to run the server.
4. Now try accessing http://127.0.0.1:8000/ . It should crash immediately.

Lines which seem to cause the crash. Follow the following instructions and the application won't crash again.
1. Open django_select2/fields.py.
2. Comment line 128, uncomment line 129.
3. Uncomment line 156 and comment lines 158 and 159.
4. Now run the app again. This time it should work.
History
Date User Action Args
2012-08-20 13:47:14Apple Grewsetrecipients: + Apple Grew
2012-08-20 13:47:14Apple Grewsetmessageid: <1345470434.58.0.741490128779.issue15739@psf.upfronthosting.co.za>
2012-08-20 13:46:53Apple Grewlinkissue15739 messages
2012-08-20 13:46:53Apple Grewcreate