id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 18135,Sleeping Database Connections on Startup with MySQL,Michael Newman,Aymeric Augustin,"I am digging into this a little further, but right now, starting a new project starting it up with runserver, or gunicorn, creates a sleeping MySQL connection. {{{ ./manage.py startproject testproject cd testproject }}} Change the settings for a local MySQL database. {{{ ./manage.py runserver }}} On another command prompt {{{ ./manage.py dbshell }}} {{{ SHOW PROCESSLIST; }}} Observe the 2 sleeping connections (on for the shell and one for runserver). Removing all the default apps seems to stop the connection. Adding contenttypes creates the connection. Adding staticfiles does not. Due to this, I believe that it is some code in contenttypes that is causing this connection.",Bug,closed,"Database layer (models, ORM)",1.4,Normal,fixed,MySQL,,Design decision needed,1,0,0,0,0,0