Loading…

OMG I’ve found a bug in Django

Sometimes when working with Django, you encounter an exception that looks like a bug in Django. While creating an instance of MyModel with the Django admin, I encountered this beauty: Environment: Request Method: GET Request URL: http://127.0.0.1:8000/admin/my_app/my_model/1/ … Traceback: File “/Users/danielhepper/.virtualenvs/my_project/lib/python2.7/site-packages/django/core/handlers/base.py” in get_response 112. response = wrapped_callback(request, *callback_args, **callback_kwargs) File “/Users/danielhepper/.virtualenvs/my_project/lib/python2.7/site-packages/django/contrib/admin/options.py” in wrapper 452. return […]