Skip to content

Instantly share code, notes, and snippets.

@spaetzel
Created August 3, 2010 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spaetzel/507120 to your computer and use it in GitHub Desktop.
Save spaetzel/507120 to your computer and use it in GitHub Desktop.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="robots" content="NONE,NOARCHIVE">
<title>OperationalError at /</title>
<style type="text/css">
html * { padding:0; margin:0; }
body * { padding:10px 20px; }
body * * { padding:0; }
body { font:small sans-serif; }
body>div { border-bottom:1px solid #ddd; }
h1 { font-weight:normal; }
h2 { margin-bottom:.8em; }
h2 span { font-size:80%; color:#666; font-weight:normal; }
h3 { margin:1em 0 .5em 0; }
h4 { margin:0 0 .5em 0; font-weight: normal; }
table { border:1px solid #ccc; border-collapse: collapse; width:100%; background:white; }
tbody td, tbody th { vertical-align:top; padding:2px 3px; }
thead th { padding:1px 6px 1px 3px; background:#fefefe; text-align:left; font-weight:normal; font-size:11px; border:1px solid #ddd; }
tbody th { width:12em; text-align:right; color:#666; padding-right:.5em; }
table.vars { margin:5px 0 2px 40px; }
table.vars td, table.req td { font-family:monospace; }
table td.code { width:100%; }
table td.code div { overflow:hidden; }
table.source th { color:#666; }
table.source td { font-family:monospace; white-space:pre; border-bottom:1px solid #eee; }
ul.traceback { list-style-type:none; }
ul.traceback li.frame { margin-bottom:1em; }
div.context { margin: 10px 0; }
div.context ol { padding-left:30px; margin:0 10px; list-style-position: inside; }
div.context ol li { font-family:monospace; white-space:pre; color:#666; cursor:pointer; }
div.context ol.context-line li { color:black; background-color:#ccc; }
div.context ol.context-line li span { float: right; }
div.commands { margin-left: 40px; }
div.commands a { color:black; text-decoration:none; }
#summary { background: #ffc; }
#summary h2 { font-weight: normal; color: #666; }
#explanation { background:#eee; }
#template, #template-not-exist { background:#f6f6f6; }
#template-not-exist ul { margin: 0 0 0 20px; }
#unicode-hint { background:#eee; }
#traceback { background:#eee; }
#requestinfo { background:#f6f6f6; padding-left:120px; }
#summary table { border:none; background:transparent; }
#requestinfo h2, #requestinfo h3 { position:relative; margin-left:-100px; }
#requestinfo h3 { margin-bottom:-1em; }
.error { background: #ffc; }
.specific { color:#cc3300; font-weight:bold; }
h2 span.commands { font-size:.7em;}
span.commands a:link {color:#5E5694;}
pre.exception_value { font-family: sans-serif; color: #666; font-size: 1.5em; margin: 10px 0 10px 0; }
</style>
<script type="text/javascript">
//<!--
function getElementsByClassName(oElm, strTagName, strClassName){
// Written by Jonathan Snook, http://www.snook.ca/jon; Add-ons by Robert Nyman, http://www.robertnyman.com
var arrElements = (strTagName == "*" && document.all)? document.all :
oElm.getElementsByTagName(strTagName);
var arrReturnElements = new Array();
strClassName = strClassName.replace(/\-/g, "\-");
var oRegExp = new RegExp("(^|\s)" + strClassName + "(\s|$)");
var oElement;
for(var i=0; i<arrElements.length; i++){
oElement = arrElements[i];
if(oRegExp.test(oElement.className)){
arrReturnElements.push(oElement);
}
}
return (arrReturnElements)
}
function hideAll(elems) {
for (var e = 0; e < elems.length; e++) {
elems[e].style.display = 'none';
}
}
window.onload = function() {
hideAll(getElementsByClassName(document, 'table', 'vars'));
hideAll(getElementsByClassName(document, 'ol', 'pre-context'));
hideAll(getElementsByClassName(document, 'ol', 'post-context'));
hideAll(getElementsByClassName(document, 'div', 'pastebin'));
}
function toggle() {
for (var i = 0; i < arguments.length; i++) {
var e = document.getElementById(arguments[i]);
if (e) {
e.style.display = e.style.display == 'none' ? 'block' : 'none';
}
}
return false;
}
function varToggle(link, id) {
toggle('v' + id);
var s = link.getElementsByTagName('span')[0];
var uarr = String.fromCharCode(0x25b6);
var darr = String.fromCharCode(0x25bc);
s.innerHTML = s.innerHTML == uarr ? darr : uarr;
return false;
}
function switchPastebinFriendly(link) {
s1 = "Switch to copy-and-paste view";
s2 = "Switch back to interactive view";
link.innerHTML = link.innerHTML == s1 ? s2 : s1;
toggle('browserTraceback', 'pastebinTraceback');
return false;
}
//-->
</script>
</head>
<body>
<div id="summary">
<h1>OperationalError at /</h1>
<pre class="exception_value">(2002, &quot;Can&#39;t connect to local MySQL server through socket &#39;/var/run/mysqld/mysqld.sock&#39; (2)&quot;)</pre>
<table class="meta">
<tr>
<th>Request Method:</th>
<td>GET</td>
</tr>
<tr>
<th>Request URL:</th>
<td>http://www.rdio.com/</td>
</tr>
<tr>
<th>Django Version:</th>
<td>1.2 beta 1</td>
</tr>
<tr>
<th>Exception Type:</th>
<td>OperationalError</td>
</tr>
<tr>
<th>Exception Value:</th>
<td><pre>(2002, &quot;Can&#39;t connect to local MySQL server through socket &#39;/var/run/mysqld/mysqld.sock&#39; (2)&quot;)</pre></td>
</tr>
<tr>
<th>Exception Location:</th>
<td>/usr/lib/pymodules/python2.6/MySQLdb/connections.py in __init__, line 170</td>
</tr>
<tr>
<th>Python Executable:</th>
<td>/srv/rdio/web/releases/20100803204233/</td>
</tr>
<tr>
<th>Python Version:</th>
<td>2.6.4</td>
</tr>
<tr>
<th>Python Path:</th>
<td>[&#39;/srv/rdio/web/current/rdio/&#39;, &#39;.&#39;, &#39;/usr/lib/python2.6&#39;, &#39;/usr/lib/python2.6/plat-linux2&#39;, &#39;/usr/lib/python2.6/lib-tk&#39;, &#39;/usr/lib/python2.6/lib-old&#39;, &#39;/usr/lib/python2.6/lib-dynload&#39;, &#39;/usr/lib/python2.6/dist-packages&#39;, &#39;/usr/lib/python2.6/dist-packages/PIL&#39;, &#39;/usr/lib/pymodules/python2.6&#39;, &#39;/usr/lib/pymodules/python2.6/gtk-2.0&#39;, &#39;/usr/local/lib/python2.6/dist-packages&#39;, &#39;/srv/rdio/web/current/contrib&#39;, &#39;/srv/rdio/web/releases/20100803204233/rdio/rpc&#39;, &#39;/srv/rdio/web/releases/20100803204233/contrib&#39;]</td>
</tr>
<tr>
<th>Server time:</th>
<td>Tue, 3 Aug 2010 13:46:30 -0700</td>
</tr>
</table>
</div>
<div id="traceback">
<h2>Traceback <span class="commands"><a href="#" onclick="return switchPastebinFriendly(this);">Switch to copy-and-paste view</a></span></h2>
<div id="browserTraceback">
<ul class="traceback">
<li class="frame">
<code>/srv/rdio/web/current/contrib/django/core/handlers/base.py</code> in <code>get_response</code>
<div class="context" id="c61094152">
<ol start="93" class="pre-context" id="pre61094152"><li onclick="toggle('pre61094152', 'post61094152')"> # Apply view middleware</li><li onclick="toggle('pre61094152', 'post61094152')"> for middleware_method in self._view_middleware:</li><li onclick="toggle('pre61094152', 'post61094152')"> response = middleware_method(request, callback, callback_args, callback_kwargs)</li><li onclick="toggle('pre61094152', 'post61094152')"> if response:</li><li onclick="toggle('pre61094152', 'post61094152')"> return response</li><li onclick="toggle('pre61094152', 'post61094152')"></li><li onclick="toggle('pre61094152', 'post61094152')"> try:</li></ol>
<ol start="100" class="context-line"><li onclick="toggle('pre61094152', 'post61094152')"> response = callback(request, *callback_args, **callback_kwargs) <span>...</span></li></ol>
<ol start='101' class="post-context" id="post61094152"><li onclick="toggle('pre61094152', 'post61094152')"> except Exception, e:</li><li onclick="toggle('pre61094152', 'post61094152')"> # If the view raised an exception, run it through exception</li><li onclick="toggle('pre61094152', 'post61094152')"> # middleware, and if the exception middleware returns a</li><li onclick="toggle('pre61094152', 'post61094152')"> # response, use that. Otherwise, reraise the exception.</li><li onclick="toggle('pre61094152', 'post61094152')"> for middleware_method in self._exception_middleware:</li><li onclick="toggle('pre61094152', 'post61094152')"> response = middleware_method(request, e)</li></ol>
</div>
<div class="commands">
<a href="#" onclick="return varToggle(this, '61094152')"><span>&#x25b6;</span> Local vars</a>
</div>
<table class="vars" id="v61094152">
<thead>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>callback</td>
<td class="code"><div>&lt;function index at 0x2de46e0&gt;</div></td>
</tr>
<tr>
<td>callback_args</td>
<td class="code"><div>()</div></td>
</tr>
<tr>
<td>callback_kwargs</td>
<td class="code"><div>{}</div></td>
</tr>
<tr>
<td>e</td>
<td class="code"><div>OperationalError(2002, &quot;Can&#39;t connect to local MySQL server through socket &#39;/var/run/mysqld/mysqld.sock&#39; (2)&quot;)</div></td>
</tr>
<tr>
<td>exc_info</td>
<td class="code"><div>(&lt;class &#39;_mysql_exceptions.OperationalError&#39;&gt;,
OperationalError(2002, &quot;Can&#39;t connect to local MySQL server through socket &#39;/var/run/mysqld/mysqld.sock&#39; (2)&quot;),
&lt;traceback object at 0x3a43908&gt;)</div></td>
</tr>
<tr>
<td>exceptions</td>
<td class="code"><div>&lt;module &#39;django.core.exceptions&#39; from &#39;/srv/rdio/web/current/contrib/django/core/exceptions.pyc&#39;&gt;</div></td>
</tr>
<tr>
<td>middleware_method</td>
<td class="code"><div>&lt;bound method AjaxErrorMiddleware.process_exception of &lt;rdio.web.middleware.ajaxerror.AjaxErrorMiddleware object at 0x196b310&gt;&gt;</div></td>
</tr>
<tr>
<td>receivers</td>
<td class="code"><div>[(&lt;function _rollback_on_exception at 0x1ae7d70&gt;, None)]</div></td>
</tr>
<tr>
<td>request</td>
<td class="code"><div>&lt;WSGIRequest
GET:&lt;QueryDict: {}&gt;,
POST:&lt;QueryDict: {}&gt;,
COOKIES:{&#39;__utma&#39;: &#39;225830489.1968707507.1280841052.1280863702.1280867010.3&#39;,
&#39;__utmb&#39;: &#39;225830489.22.10.1280867010&#39;,
&#39;__utmc&#39;: &#39;225830489&#39;,
&#39;__utmz&#39;: &#39;225830489.1280841052.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&#39;,
&#39;r&#39;: &#39;eyJfdSI6IDUyMzAyLCAiX2UiOiAwfQ.AwgnvBbPUybH7sbwMz8m7akJasQ&#39;},
META:{&#39;CONTENT_LENGTH&#39;: &#39;&#39;,
&#39;CONTENT_TYPE&#39;: &#39;&#39;,
&#39;DOCUMENT_ROOT&#39;: &#39;/usr/local/nginx/html&#39;,
&#39;HTTP_ACCEPT&#39;: &#39;application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5&#39;,
&#39;HTTP_ACCEPT_CHARSET&#39;: &#39;ISO-8859-1,utf-8;q=0.7,*;q=0.3&#39;,
&#39;HTTP_ACCEPT_ENCODING&#39;: &#39;gzip,deflate,sdch&#39;,
&#39;HTTP_ACCEPT_LANGUAGE&#39;: &#39;en-US,en;q=0.8&#39;,
&#39;HTTP_CACHE_CONTROL&#39;: &#39;max-age=0&#39;,
&#39;HTTP_CONNECTION&#39;: &#39;close&#39;,
&#39;HTTP_COOKIE&#39;: &#39;__utmz=225830489.1280841052.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); r=eyJfdSI6IDUyMzAyLCAiX2UiOiAwfQ.AwgnvBbPUybH7sbwMz8m7akJasQ; __utma=225830489.1968707507.1280841052.1280863702.1280867010.3; __utmc=225830489; __utmb=225830489.22.10.1280867010&#39;,
&#39;HTTP_HOST&#39;: &#39;www.rdio.com&#39;,
&#39;HTTP_USER_AGENT&#39;: &#39;Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.125 Safari/533.4&#39;,
&#39;HTTP_X_FORWARDED_FOR&#39;: &#39;199.71.183.2&#39;,
&#39;HTTP_X_SCHEME&#39;: &#39;http&#39;,
&#39;PATH_INFO&#39;: u&#39;/&#39;,
&#39;QUERY_STRING&#39;: &#39;&#39;,
&#39;REMOTE_ADDR&#39;: &#39;10.10.10.103&#39;,
&#39;REMOTE_PORT&#39;: &#39;52238&#39;,
&#39;REQUEST_METHOD&#39;: &#39;GET&#39;,
&#39;REQUEST_URI&#39;: &#39;//&#39;,
&#39;SCRIPT_NAME&#39;: u&#39;&#39;,
&#39;SERVER_NAME&#39;: &#39;srv-101-15&#39;,
&#39;SERVER_PORT&#39;: &#39;80&#39;,
&#39;SERVER_PROTOCOL&#39;: &#39;HTTP/1.0&#39;,
&#39;wsgi.errors&#39;: &lt;open file &#39;wsgi_input&#39;, mode &#39;w&#39; at 0x382b8b0&gt;,
&#39;wsgi.file_wrapper&#39;: &lt;built-in function uwsgi_sendfile&gt;,
&#39;wsgi.input&#39;: &lt;open file &#39;wsgi_input&#39;, mode &#39;r&#39; at 0x39fbf10&gt;,
&#39;wsgi.multiprocess&#39;: True,
&#39;wsgi.multithread&#39;: False,
&#39;wsgi.run_once&#39;: False,
&#39;wsgi.url_scheme&#39;: &#39;http&#39;,
&#39;wsgi.version&#39;: (1, 0)}&gt;</div></td>
</tr>
<tr>
<td>resolver</td>
<td class="code"><div>&lt;RegexURLResolver rdio.urls (None:None) ^/&gt;</div></td>
</tr>
<tr>
<td>response</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>self</td>
<td class="code"><div>&lt;django.core.handlers.wsgi.WSGIHandler object at 0x1443cd0&gt;</div></td>
</tr>
<tr>
<td>settings</td>
<td class="code"><div>&lt;django.conf.LazySettings object at 0x7f05dc55a0d0&gt;</div></td>
</tr>
<tr>
<td>urlconf</td>
<td class="code"><div>&#39;rdio.urls&#39;</div></td>
</tr>
<tr>
<td>urlresolvers</td>
<td class="code"><div>&lt;module &#39;django.core.urlresolvers&#39; from &#39;/srv/rdio/web/current/contrib/django/core/urlresolvers.py&#39;&gt;</div></td>
</tr>
</tbody>
</table>
</li>
<li class="frame">
<code>./rdio/utils/decorators.py</code> in <code>_dec</code>
<div class="context" id="c61094224">
<ol start="123" class="pre-context" id="pre61094224"><li onclick="toggle('pre61094224', 'post61094224')"> response = HttpResponse([base[:start_title_idx], title, base[end_title_idx:start_idx], response, base[end_idx:]])</li><li onclick="toggle('pre61094224', 'post61094224')"> else:</li><li onclick="toggle('pre61094224', 'post61094224')"> response = HttpResponse([base[:start_idx], response, base[end_idx:]])</li><li onclick="toggle('pre61094224', 'post61094224')"> response[&#39;Cache-Control&#39;] = &#39;no-cache&#39;</li><li onclick="toggle('pre61094224', 'post61094224')"> return response</li><li onclick="toggle('pre61094224', 'post61094224')"> </li><li onclick="toggle('pre61094224', 'post61094224')"> if request.user.is_authenticated() or not request.url_stealth_mode():</li></ol>
<ol start="130" class="context-line"><li onclick="toggle('pre61094224', 'post61094224')"> response = HttpResponse(render_template(&#39;base.html&#39;, request)) <span>...</span></li></ol>
<ol start='131' class="post-context" id="post61094224"><li onclick="toggle('pre61094224', 'post61094224')"> response[&#39;Cache-Control&#39;] = &#39;no-cache&#39;</li><li onclick="toggle('pre61094224', 'post61094224')"> return response</li><li onclick="toggle('pre61094224', 'post61094224')"> else:</li><li onclick="toggle('pre61094224', 'post61094224')"> response = HttpResponse(render_template(&#39;unauth/base.html&#39;, request))</li><li onclick="toggle('pre61094224', 'post61094224')"> response[&#39;Cache-Control&#39;] = &#39;no-cache&#39;</li><li onclick="toggle('pre61094224', 'post61094224')"> return response</li></ol>
</div>
<div class="commands">
<a href="#" onclick="return varToggle(this, '61094224')"><span>&#x25b6;</span> Local vars</a>
</div>
<table class="vars" id="v61094224">
<thead>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>args</td>
<td class="code"><div>()</div></td>
</tr>
<tr>
<td>block_request</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>func</td>
<td class="code"><div>&lt;function index at 0x2de4320&gt;</div></td>
</tr>
<tr>
<td>kwargs</td>
<td class="code"><div>{}</div></td>
</tr>
<tr>
<td>request</td>
<td class="code"><div>&lt;WSGIRequest
GET:&lt;QueryDict: {}&gt;,
POST:&lt;QueryDict: {}&gt;,
COOKIES:{&#39;__utma&#39;: &#39;225830489.1968707507.1280841052.1280863702.1280867010.3&#39;,
&#39;__utmb&#39;: &#39;225830489.22.10.1280867010&#39;,
&#39;__utmc&#39;: &#39;225830489&#39;,
&#39;__utmz&#39;: &#39;225830489.1280841052.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&#39;,
&#39;r&#39;: &#39;eyJfdSI6IDUyMzAyLCAiX2UiOiAwfQ.AwgnvBbPUybH7sbwMz8m7akJasQ&#39;},
META:{&#39;CONTENT_LENGTH&#39;: &#39;&#39;,
&#39;CONTENT_TYPE&#39;: &#39;&#39;,
&#39;DOCUMENT_ROOT&#39;: &#39;/usr/local/nginx/html&#39;,
&#39;HTTP_ACCEPT&#39;: &#39;application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5&#39;,
&#39;HTTP_ACCEPT_CHARSET&#39;: &#39;ISO-8859-1,utf-8;q=0.7,*;q=0.3&#39;,
&#39;HTTP_ACCEPT_ENCODING&#39;: &#39;gzip,deflate,sdch&#39;,
&#39;HTTP_ACCEPT_LANGUAGE&#39;: &#39;en-US,en;q=0.8&#39;,
&#39;HTTP_CACHE_CONTROL&#39;: &#39;max-age=0&#39;,
&#39;HTTP_CONNECTION&#39;: &#39;close&#39;,
&#39;HTTP_COOKIE&#39;: &#39;__utmz=225830489.1280841052.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); r=eyJfdSI6IDUyMzAyLCAiX2UiOiAwfQ.AwgnvBbPUybH7sbwMz8m7akJasQ; __utma=225830489.1968707507.1280841052.1280863702.1280867010.3; __utmc=225830489; __utmb=225830489.22.10.1280867010&#39;,
&#39;HTTP_HOST&#39;: &#39;www.rdio.com&#39;,
&#39;HTTP_USER_AGENT&#39;: &#39;Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.125 Safari/533.4&#39;,
&#39;HTTP_X_FORWARDED_FOR&#39;: &#39;199.71.183.2&#39;,
&#39;HTTP_X_SCHEME&#39;: &#39;http&#39;,
&#39;PATH_INFO&#39;: u&#39;/&#39;,
&#39;QUERY_STRING&#39;: &#39;&#39;,
&#39;REMOTE_ADDR&#39;: &#39;10.10.10.103&#39;,
&#39;REMOTE_PORT&#39;: &#39;52238&#39;,
&#39;REQUEST_METHOD&#39;: &#39;GET&#39;,
&#39;REQUEST_URI&#39;: &#39;//&#39;,
&#39;SCRIPT_NAME&#39;: u&#39;&#39;,
&#39;SERVER_NAME&#39;: &#39;srv-101-15&#39;,
&#39;SERVER_PORT&#39;: &#39;80&#39;,
&#39;SERVER_PROTOCOL&#39;: &#39;HTTP/1.0&#39;,
&#39;wsgi.errors&#39;: &lt;open file &#39;wsgi_input&#39;, mode &#39;w&#39; at 0x382b8b0&gt;,
&#39;wsgi.file_wrapper&#39;: &lt;built-in function uwsgi_sendfile&gt;,
&#39;wsgi.input&#39;: &lt;open file &#39;wsgi_input&#39;, mode &#39;r&#39; at 0x39fbf10&gt;,
&#39;wsgi.multiprocess&#39;: True,
&#39;wsgi.multithread&#39;: False,
&#39;wsgi.run_once&#39;: False,
&#39;wsgi.url_scheme&#39;: &#39;http&#39;,
&#39;wsgi.version&#39;: (1, 0)}&gt;</div></td>
</tr>
</tbody>
</table>
</li>
<li class="frame">
<code>./rdio/utils/__init__.py</code> in <code>render_template</code>
<div class="context" id="c61095160">
<ol start="79" class="pre-context" id="pre61095160"><li onclick="toggle('pre61095160', 'post61095160')"> return _env</li><li onclick="toggle('pre61095160', 'post61095160')"></li><li onclick="toggle('pre61095160', 'post61095160')">def render_template(template, request, context=None):</li><li onclick="toggle('pre61095160', 'post61095160')"> if context is None:</li><li onclick="toggle('pre61095160', 'post61095160')"> context = {}</li><li onclick="toggle('pre61095160', 'post61095160')"> template = get_env().get_template(template)</li><li onclick="toggle('pre61095160', 'post61095160')"> populated_context = __populate_context(request, context)</li></ol>
<ol start="86" class="context-line"><li onclick="toggle('pre61095160', 'post61095160')"> return template.render(populated_context) <span>...</span></li></ol>
<ol start='87' class="post-context" id="post61095160"><li onclick="toggle('pre61095160', 'post61095160')"></li><li onclick="toggle('pre61095160', 'post61095160')">def render_to_response(template, request, context={}, title=None, **kwargs):</li><li onclick="toggle('pre61095160', 'post61095160')"> from rdio.utils.perfmon import add_trace_point, end_trace_point</li><li onclick="toggle('pre61095160', 'post61095160')"> try:</li><li onclick="toggle('pre61095160', 'post61095160')"> add_trace_point(&#39;render_template&#39;)</li><li onclick="toggle('pre61095160', 'post61095160')"> content = render_template(template, request, context)</li></ol>
</div>
<div class="commands">
<a href="#" onclick="return varToggle(this, '61095160')"><span>&#x25b6;</span> Local vars</a>
</div>
<table class="vars" id="v61095160">
<thead>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>context</td>
<td class="code"><div>{}</div></td>
</tr>
<tr>
<td>populated_context</td>
<td class="code"><div>{&#39;BASE_MEDIA_URL&#39;: &#39;127.0.0.1:8000/media/&#39;,
&#39;BASE_URL&#39;: &#39;127.0.0.1:8000&#39;,
&#39;IN_PROD&#39;: False,
&#39;LANGUAGES&#39;: ((&#39;ar&#39;, &#39;Arabic&#39;),
(&#39;bg&#39;, &#39;Bulgarian&#39;),
(&#39;bn&#39;, &#39;Bengali&#39;),
(&#39;bs&#39;, &#39;Bosnian&#39;),
(&#39;ca&#39;, &#39;Catalan&#39;),
(&#39;cs&#39;, &#39;Czech&#39;),
(&#39;cy&#39;, &#39;Welsh&#39;),
(&#39;da&#39;, &#39;Danish&#39;),
(&#39;de&#39;, &#39;German&#39;),
(&#39;el&#39;, &#39;Greek&#39;),
(&#39;en&#39;, &#39;English&#39;),
(&#39;es&#39;, &#39;Spanish&#39;),
(&#39;es-ar&#39;, &#39;Argentinean Spanish&#39;),
(&#39;et&#39;, &#39;Estonian&#39;),
(&#39;eu&#39;, &#39;Basque&#39;),
(&#39;fa&#39;, &#39;Persian&#39;),
(&#39;fi&#39;, &#39;Finnish&#39;),
(&#39;fr&#39;, &#39;French&#39;),
(&#39;fy-nl&#39;, &#39;Frisian&#39;),
(&#39;ga&#39;, &#39;Irish&#39;),
(&#39;gl&#39;, &#39;Galician&#39;),
(&#39;he&#39;, &#39;Hebrew&#39;),
(&#39;hi&#39;, &#39;Hindi&#39;),
(&#39;hr&#39;, &#39;Croatian&#39;),
(&#39;hu&#39;, &#39;Hungarian&#39;),
(&#39;is&#39;, &#39;Icelandic&#39;),
(&#39;it&#39;, &#39;Italian&#39;),
(&#39;ja&#39;, &#39;Japanese&#39;),
(&#39;ka&#39;, &#39;Georgian&#39;),
(&#39;km&#39;, &#39;Khmer&#39;),
(&#39;kn&#39;, &#39;Kannada&#39;),
(&#39;ko&#39;, &#39;Korean&#39;),
(&#39;lt&#39;, &#39;Lithuanian&#39;),
(&#39;lv&#39;, &#39;Latvian&#39;),
(&#39;mk&#39;, &#39;Macedonian&#39;),
(&#39;nl&#39;, &#39;Dutch&#39;),
(&#39;no&#39;, &#39;Norwegian&#39;),
(&#39;pl&#39;, &#39;Polish&#39;),
(&#39;pt&#39;, &#39;Portuguese&#39;),
(&#39;pt-br&#39;, &#39;Brazilian Portuguese&#39;),
(&#39;ro&#39;, &#39;Romanian&#39;),
(&#39;ru&#39;, &#39;Russian&#39;),
(&#39;sk&#39;, &#39;Slovak&#39;),
(&#39;sl&#39;, &#39;Slovenian&#39;),
(&#39;sq&#39;, &#39;Albanian&#39;),
(&#39;sr&#39;, &#39;Serbian&#39;),
(&#39;sr-latn&#39;, &#39;Serbian Latin&#39;),
(&#39;sv&#39;, &#39;Swedish&#39;),
(&#39;ta&#39;, &#39;Tamil&#39;),
(&#39;te&#39;, &#39;Telugu&#39;),
(&#39;th&#39;, &#39;Thai&#39;),
(&#39;tr&#39;, &#39;Turkish&#39;),
(&#39;uk&#39;, &#39;Ukrainian&#39;),
(&#39;vi&#39;, &#39;Vietnamese&#39;),
(&#39;zh-cn&#39;, &#39;Simplified Chinese&#39;),
(&#39;zh-tw&#39;, &#39;Traditional Chinese&#39;)),
&#39;LANGUAGE_BIDI&#39;: False,
&#39;LANGUAGE_CODE&#39;: &#39;en-us&#39;,
&#39;MEDIA_URL&#39;: &#39;/media/&#39;,
&#39;RESOURCE_VERSIONS&#39;: None,
&#39;SECURE_HOST&#39;: &#39;http://www.rdio.com&#39;,
&#39;URL_STEALTH_MODE&#39;: False,
&#39;VARIOUS_ARTISTS_ID&#39;: 62,
&#39;csrf_token&#39;: &lt;django.utils.functional.__proxy__ object at 0x3a99650&gt;,
&#39;messages&#39;: &lt;django.utils.functional.__proxy__ object at 0x3a99550&gt;,
&#39;perms&#39;: &lt;django.utils.functional.__proxy__ object at 0x3a99c90&gt;,
&#39;request&#39;: &lt;WSGIRequest
GET:&lt;QueryDict: {}&gt;,
POST:&lt;QueryDict: {}&gt;,
COOKIES:{&#39;__utma&#39;: &#39;225830489.1968707507.1280841052.1280863702.1280867010.3&#39;,
&#39;__utmb&#39;: &#39;225830489.22.10.1280867010&#39;,
&#39;__utmc&#39;: &#39;225830489&#39;,
&#39;__utmz&#39;: &#39;225830489.1280841052.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&#39;,
&#39;r&#39;: &#39;eyJfdSI6IDUyMzAyLCAiX2UiOiAwfQ.AwgnvBbPUybH7sbwMz8m7akJasQ&#39;},
META:{&#39;CONTENT_LENGTH&#39;: &#39;&#39;,
&#39;CONTENT_TYPE&#39;: &#39;&#39;,
&#39;DOCUMENT_ROOT&#39;: &#39;/usr/local/nginx/html&#39;,
&#39;HTTP_ACCEPT&#39;: &#39;application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5&#39;,
&#39;HTTP_ACCEPT_CHARSET&#39;: &#39;ISO-8859-1,utf-8;q=0.7,*;q=0.3&#39;,
&#39;HTTP_ACCEPT_ENCODING&#39;: &#39;gzip,deflate,sdch&#39;,
&#39;HTTP_ACCEPT_LANGUAGE&#39;: &#39;en-US,en;q=0.8&#39;,
&#39;HTTP_CACHE_CONTROL&#39;: &#39;max-age=0&#39;,
&#39;HTTP_CONNECTION&#39;: &#39;close&#39;,
&#39;HTTP_COOKIE&#39;: &#39;__utmz=225830489.1280841052.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); r=eyJfdSI6IDUyMzAyLCAiX2UiOiAwfQ.AwgnvBbPUybH7sbwMz8m7akJasQ; __utma=225830489.1968707507.1280841052.1280863702.1280867010.3; __utmc=225830489; __utmb=225830489.22.10.1280867010&#39;,
&#39;HTTP_HOST&#39;: &#39;www.rdio.com&#39;,
&#39;HTTP_USER_AGENT&#39;: &#39;Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.125 Safari/533.4&#39;,
&#39;HTTP_X_FORWARDED_FOR&#39;: &#39;199.71.183.2&#39;,
&#39;HTTP_X_SCHEME&#39;: &#39;http&#39;,
&#39;PATH_INFO&#39;: u&#39;/&#39;,
&#39;QUERY_STRING&#39;: &#39;&#39;,
&#39;REMOTE_ADDR&#39;: &#39;10.10.10.103&#39;,
&#39;REMOTE_PORT&#39;: &#39;52238&#39;,
&#39;REQUEST_METHOD&#39;: &#39;GET&#39;,
&#39;REQUEST_URI&#39;: &#39;//&#39;,
&#39;SCRIPT_NAME&#39;: u&#39;&#39;,
&#39;SERVER_NAME&#39;: &#39;srv-101-15&#39;,
&#39;SERVER_PORT&#39;: &#39;80&#39;,
&#39;SERVER_PROTOCOL&#39;: &#39;HTTP/1.0&#39;,
&#39;wsgi.errors&#39;: &lt;open file &#39;wsgi_input&#39;, mode &#39;w&#39; at 0x382b8b0&gt;,
&#39;wsgi.file_wrapper&#39;: &lt;built-in function uwsgi_sendfile&gt;,
&#39;wsgi.input&#39;: &lt;open file &#39;wsgi_input&#39;, mode &#39;r&#39; at 0x39fbf10&gt;,
&#39;wsgi.multiprocess&#39;: True,
&#39;wsgi.multithread&#39;: False,
&#39;wsgi.run_once&#39;: False,
&#39;wsgi.url_scheme&#39;: &#39;http&#39;,
&#39;wsgi.version&#39;: (1, 0)}&gt;,
&#39;user&#39;: &lt;django.utils.functional.SimpleLazyObject object at 0x3846f50&gt;}</div></td>
</tr>
<tr>
<td>request</td>
<td class="code"><div>&lt;WSGIRequest
GET:&lt;QueryDict: {}&gt;,
POST:&lt;QueryDict: {}&gt;,
COOKIES:{&#39;__utma&#39;: &#39;225830489.1968707507.1280841052.1280863702.1280867010.3&#39;,
&#39;__utmb&#39;: &#39;225830489.22.10.1280867010&#39;,
&#39;__utmc&#39;: &#39;225830489&#39;,
&#39;__utmz&#39;: &#39;225830489.1280841052.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&#39;,
&#39;r&#39;: &#39;eyJfdSI6IDUyMzAyLCAiX2UiOiAwfQ.AwgnvBbPUybH7sbwMz8m7akJasQ&#39;},
META:{&#39;CONTENT_LENGTH&#39;: &#39;&#39;,
&#39;CONTENT_TYPE&#39;: &#39;&#39;,
&#39;DOCUMENT_ROOT&#39;: &#39;/usr/local/nginx/html&#39;,
&#39;HTTP_ACCEPT&#39;: &#39;application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5&#39;,
&#39;HTTP_ACCEPT_CHARSET&#39;: &#39;ISO-8859-1,utf-8;q=0.7,*;q=0.3&#39;,
&#39;HTTP_ACCEPT_ENCODING&#39;: &#39;gzip,deflate,sdch&#39;,
&#39;HTTP_ACCEPT_LANGUAGE&#39;: &#39;en-US,en;q=0.8&#39;,
&#39;HTTP_CACHE_CONTROL&#39;: &#39;max-age=0&#39;,
&#39;HTTP_CONNECTION&#39;: &#39;close&#39;,
&#39;HTTP_COOKIE&#39;: &#39;__utmz=225830489.1280841052.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); r=eyJfdSI6IDUyMzAyLCAiX2UiOiAwfQ.AwgnvBbPUybH7sbwMz8m7akJasQ; __utma=225830489.1968707507.1280841052.1280863702.1280867010.3; __utmc=225830489; __utmb=225830489.22.10.1280867010&#39;,
&#39;HTTP_HOST&#39;: &#39;www.rdio.com&#39;,
&#39;HTTP_USER_AGENT&#39;: &#39;Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.125 Safari/533.4&#39;,
&#39;HTTP_X_FORWARDED_FOR&#39;: &#39;199.71.183.2&#39;,
&#39;HTTP_X_SCHEME&#39;: &#39;http&#39;,
&#39;PATH_INFO&#39;: u&#39;/&#39;,
&#39;QUERY_STRING&#39;: &#39;&#39;,
&#39;REMOTE_ADDR&#39;: &#39;10.10.10.103&#39;,
&#39;REMOTE_PORT&#39;: &#39;52238&#39;,
&#39;REQUEST_METHOD&#39;: &#39;GET&#39;,
&#39;REQUEST_URI&#39;: &#39;//&#39;,
&#39;SCRIPT_NAME&#39;: u&#39;&#39;,
&#39;SERVER_NAME&#39;: &#39;srv-101-15&#39;,
&#39;SERVER_PORT&#39;: &#39;80&#39;,
&#39;SERVER_PROTOCOL&#39;: &#39;HTTP/1.0&#39;,
&#39;wsgi.errors&#39;: &lt;open file &#39;wsgi_input&#39;, mode &#39;w&#39; at 0x382b8b0&gt;,
&#39;wsgi.file_wrapper&#39;: &lt;built-in function uwsgi_sendfile&gt;,
&#39;wsgi.input&#39;: &lt;open file &#39;wsgi_input&#39;, mode &#39;r&#39; at 0x39fbf10&gt;,
&#39;wsgi.multiprocess&#39;: True,
&#39;wsgi.multithread&#39;: False,
&#39;wsgi.run_once&#39;: False,
&#39;wsgi.url_scheme&#39;: &#39;http&#39;,
&#39;wsgi.version&#39;: (1, 0)}&gt;</div></td>
</tr>
<tr>
<td>template</td>
<td class="code"><div>&lt;Template &#39;base.html&#39;&gt;</div></td>
</tr>
</tbody>
</table>
</li>
<li class="frame">
<code>/srv/rdio/web/releases/20100803204233/rdio/web/templates/base.html</code> in <code>top-level template code</code>
<div class="context" id="c42159928">
<ol start="149" class="pre-context" id="pre42159928"><li onclick="toggle('pre42159928', 'post42159928')"> &lt;input type=&quot;text&quot; id=&quot;searchInput&quot; class=&quot;textInput&quot; title=&quot;Find music or people&quot; /&gt;</li><li onclick="toggle('pre42159928', 'post42159928')"> &lt;/div&gt;</li><li onclick="toggle('pre42159928', 'post42159928')"> &lt;ul id=&quot;searchSuggestions&quot;&gt;</li><li onclick="toggle('pre42159928', 'post42159928')"> &lt;/ul&gt;</li><li onclick="toggle('pre42159928', 'post42159928')"> &lt;/div&gt;</li><li onclick="toggle('pre42159928', 'post42159928')"> &lt;div id=&quot;your_header_links&quot; class=&quot;header_column&quot;&gt;</li><li onclick="toggle('pre42159928', 'post42159928')"> {% if request.user.is_authenticated() %}</li></ol>
<ol start="156" class="context-line"><li onclick="toggle('pre42159928', 'post42159928')"> {% include &#39;snippets/header/your_links_logged_in.html&#39; %} <span>...</span></li></ol>
<ol start='157' class="post-context" id="post42159928"><li onclick="toggle('pre42159928', 'post42159928')"> {% else %}</li><li onclick="toggle('pre42159928', 'post42159928')"> {% if URL_STEALTH_MODE %}</li><li onclick="toggle('pre42159928', 'post42159928')"> {% include &#39;snippets/header/your_links_logged_out.html&#39; %}</li><li onclick="toggle('pre42159928', 'post42159928')"> {% else %}</li><li onclick="toggle('pre42159928', 'post42159928')"> {% include &#39;snippets/header/your_links_logged_out_public.html&#39; %}</li><li onclick="toggle('pre42159928', 'post42159928')"> {% endif %}</li></ol>
</div>
<div class="commands">
<a href="#" onclick="return varToggle(this, '42159928')"><span>&#x25b6;</span> Local vars</a>
</div>
<table class="vars" id="v42159928">
<thead>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>BASE_MEDIA_URL</td>
<td class="code"><div>&#39;127.0.0.1:8000/media/&#39;</div></td>
</tr>
<tr>
<td>BASE_URL</td>
<td class="code"><div>&#39;127.0.0.1:8000&#39;</div></td>
</tr>
<tr>
<td>IN_PROD</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>IS_BASE</td>
<td class="code"><div>&#39;http://www.rdio.com/_is/&#39;</div></td>
</tr>
<tr>
<td>LANGUAGES</td>
<td class="code"><div>((&#39;ar&#39;, &#39;Arabic&#39;),
(&#39;bg&#39;, &#39;Bulgarian&#39;),
(&#39;bn&#39;, &#39;Bengali&#39;),
(&#39;bs&#39;, &#39;Bosnian&#39;),
(&#39;ca&#39;, &#39;Catalan&#39;),
(&#39;cs&#39;, &#39;Czech&#39;),
(&#39;cy&#39;, &#39;Welsh&#39;),
(&#39;da&#39;, &#39;Danish&#39;),
(&#39;de&#39;, &#39;German&#39;),
(&#39;el&#39;, &#39;Greek&#39;),
(&#39;en&#39;, &#39;English&#39;),
(&#39;es&#39;, &#39;Spanish&#39;),
(&#39;es-ar&#39;, &#39;Argentinean Spanish&#39;),
(&#39;et&#39;, &#39;Estonian&#39;),
(&#39;eu&#39;, &#39;Basque&#39;),
(&#39;fa&#39;, &#39;Persian&#39;),
(&#39;fi&#39;, &#39;Finnish&#39;),
(&#39;fr&#39;, &#39;French&#39;),
(&#39;fy-nl&#39;, &#39;Frisian&#39;),
(&#39;ga&#39;, &#39;Irish&#39;),
(&#39;gl&#39;, &#39;Galician&#39;),
(&#39;he&#39;, &#39;Hebrew&#39;),
(&#39;hi&#39;, &#39;Hindi&#39;),
(&#39;hr&#39;, &#39;Croatian&#39;),
(&#39;hu&#39;, &#39;Hungarian&#39;),
(&#39;is&#39;, &#39;Icelandic&#39;),
(&#39;it&#39;, &#39;Italian&#39;),
(&#39;ja&#39;, &#39;Japanese&#39;),
(&#39;ka&#39;, &#39;Georgian&#39;),
(&#39;km&#39;, &#39;Khmer&#39;),
(&#39;kn&#39;, &#39;Kannada&#39;),
(&#39;ko&#39;, &#39;Korean&#39;),
(&#39;lt&#39;, &#39;Lithuanian&#39;),
(&#39;lv&#39;, &#39;Latvian&#39;),
(&#39;mk&#39;, &#39;Macedonian&#39;),
(&#39;nl&#39;, &#39;Dutch&#39;),
(&#39;no&#39;, &#39;Norwegian&#39;),
(&#39;pl&#39;, &#39;Polish&#39;),
(&#39;pt&#39;, &#39;Portuguese&#39;),
(&#39;pt-br&#39;, &#39;Brazilian Portuguese&#39;),
(&#39;ro&#39;, &#39;Romanian&#39;),
(&#39;ru&#39;, &#39;Russian&#39;),
(&#39;sk&#39;, &#39;Slovak&#39;),
(&#39;sl&#39;, &#39;Slovenian&#39;),
(&#39;sq&#39;, &#39;Albanian&#39;),
(&#39;sr&#39;, &#39;Serbian&#39;),
(&#39;sr-latn&#39;, &#39;Serbian Latin&#39;),
(&#39;sv&#39;, &#39;Swedish&#39;),
(&#39;ta&#39;, &#39;Tamil&#39;),
(&#39;te&#39;, &#39;Telugu&#39;),
(&#39;th&#39;, &#39;Thai&#39;),
(&#39;tr&#39;, &#39;Turkish&#39;),
(&#39;uk&#39;, &#39;Ukrainian&#39;),
(&#39;vi&#39;, &#39;Vietnamese&#39;),
(&#39;zh-cn&#39;, &#39;Simplified Chinese&#39;),
(&#39;zh-tw&#39;, &#39;Traditional Chinese&#39;))</div></td>
</tr>
<tr>
<td>LANGUAGE_BIDI</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>LANGUAGE_CODE</td>
<td class="code"><div>&#39;en-us&#39;</div></td>
</tr>
<tr>
<td>MEDIA_URL</td>
<td class="code"><div>&#39;/media/&#39;</div></td>
</tr>
<tr>
<td>RESOURCE_VERSIONS</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>SECURE_HOST</td>
<td class="code"><div>&#39;http://www.rdio.com&#39;</div></td>
</tr>
<tr>
<td>URL_STEALTH_MODE</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>VARIOUS_ARTISTS_ID</td>
<td class="code"><div>62</div></td>
</tr>
<tr>
<td>csrf_token</td>
<td class="code"><div>&lt;django.utils.functional.__proxy__ object at 0x3a99650&gt;</div></td>
</tr>
<tr>
<td>cycler</td>
<td class="code"><div>&lt;class &#39;jinja2.utils.Cycler&#39;&gt;</div></td>
</tr>
<tr>
<td>dict</td>
<td class="code"><div>&lt;function &lt;lambda&gt; at 0x1726848&gt;</div></td>
</tr>
<tr>
<td>full_url</td>
<td class="code"><div>&lt;function full_url at 0x29002a8&gt;</div></td>
</tr>
<tr>
<td>generate_user_object</td>
<td class="code"><div>&lt;function generate_user_object at 0x2900668&gt;</div></td>
</tr>
<tr>
<td>joiner</td>
<td class="code"><div>&lt;class &#39;jinja2.utils.Joiner&#39;&gt;</div></td>
</tr>
<tr>
<td>lipsum</td>
<td class="code"><div>&lt;function generate_lorem_ipsum at 0x170f1b8&gt;</div></td>
</tr>
<tr>
<td>messages</td>
<td class="code"><div>&lt;django.utils.functional.__proxy__ object at 0x3a99550&gt;</div></td>
</tr>
<tr>
<td>perms</td>
<td class="code"><div>&lt;django.utils.functional.__proxy__ object at 0x3a99c90&gt;</div></td>
</tr>
<tr>
<td>pluralize</td>
<td class="code"><div>&lt;function pluralize_fn at 0x2900398&gt;</div></td>
</tr>
<tr>
<td>qs_versioned_resource_name</td>
<td class="code"><div>&lt;function qs_versioned_resource_name at 0x29005f0&gt;</div></td>
</tr>
<tr>
<td>random_id</td>
<td class="code"><div>&lt;function random_id at 0x2900320&gt;</div></td>
</tr>
<tr>
<td>range</td>
<td class="code"><div>&lt;type &#39;xrange&#39;&gt;</div></td>
</tr>
<tr>
<td>request</td>
<td class="code"><div>&lt;WSGIRequest
GET:&lt;QueryDict: {}&gt;,
POST:&lt;QueryDict: {}&gt;,
COOKIES:{&#39;__utma&#39;: &#39;225830489.1968707507.1280841052.1280863702.1280867010.3&#39;,
&#39;__utmb&#39;: &#39;225830489.22.10.1280867010&#39;,
&#39;__utmc&#39;: &#39;225830489&#39;,
&#39;__utmz&#39;: &#39;225830489.1280841052.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&#39;,
&#39;r&#39;: &#39;eyJfdSI6IDUyMzAyLCAiX2UiOiAwfQ.AwgnvBbPUybH7sbwMz8m7akJasQ&#39;},
META:{&#39;CONTENT_LENGTH&#39;: &#39;&#39;,
&#39;CONTENT_TYPE&#39;: &#39;&#39;,
&#39;DOCUMENT_ROOT&#39;: &#39;/usr/local/nginx/html&#39;,
&#39;HTTP_ACCEPT&#39;: &#39;application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5&#39;,
&#39;HTTP_ACCEPT_CHARSET&#39;: &#39;ISO-8859-1,utf-8;q=0.7,*;q=0.3&#39;,
&#39;HTTP_ACCEPT_ENCODING&#39;: &#39;gzip,deflate,sdch&#39;,
&#39;HTTP_ACCEPT_LANGUAGE&#39;: &#39;en-US,en;q=0.8&#39;,
&#39;HTTP_CACHE_CONTROL&#39;: &#39;max-age=0&#39;,
&#39;HTTP_CONNECTION&#39;: &#39;close&#39;,
&#39;HTTP_COOKIE&#39;: &#39;__utmz=225830489.1280841052.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); r=eyJfdSI6IDUyMzAyLCAiX2UiOiAwfQ.AwgnvBbPUybH7sbwMz8m7akJasQ; __utma=225830489.1968707507.1280841052.1280863702.1280867010.3; __utmc=225830489; __utmb=225830489.22.10.1280867010&#39;,
&#39;HTTP_HOST&#39;: &#39;www.rdio.com&#39;,
&#39;HTTP_USER_AGENT&#39;: &#39;Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.125 Safari/533.4&#39;,
&#39;HTTP_X_FORWARDED_FOR&#39;: &#39;199.71.183.2&#39;,
&#39;HTTP_X_SCHEME&#39;: &#39;http&#39;,
&#39;PATH_INFO&#39;: u&#39;/&#39;,
&#39;QUERY_STRING&#39;: &#39;&#39;,
&#39;REMOTE_ADDR&#39;: &#39;10.10.10.103&#39;,
&#39;REMOTE_PORT&#39;: &#39;52238&#39;,
&#39;REQUEST_METHOD&#39;: &#39;GET&#39;,
&#39;REQUEST_URI&#39;: &#39;//&#39;,
&#39;SCRIPT_NAME&#39;: u&#39;&#39;,
&#39;SERVER_NAME&#39;: &#39;srv-101-15&#39;,
&#39;SERVER_PORT&#39;: &#39;80&#39;,
&#39;SERVER_PROTOCOL&#39;: &#39;HTTP/1.0&#39;,
&#39;wsgi.errors&#39;: &lt;open file &#39;wsgi_input&#39;, mode &#39;w&#39; at 0x382b8b0&gt;,
&#39;wsgi.file_wrapper&#39;: &lt;built-in function uwsgi_sendfile&gt;,
&#39;wsgi.input&#39;: &lt;open file &#39;wsgi_input&#39;, mode &#39;r&#39; at 0x39fbf10&gt;,
&#39;wsgi.multiprocess&#39;: True,
&#39;wsgi.multithread&#39;: False,
&#39;wsgi.run_once&#39;: False,
&#39;wsgi.url_scheme&#39;: &#39;http&#39;,
&#39;wsgi.version&#39;: (1, 0)}&gt;</div></td>
</tr>
<tr>
<td>url</td>
<td class="code"><div>&lt;function url at 0x2900230&gt;</div></td>
</tr>
<tr>
<td>user</td>
<td class="code"><div>&lt;django.utils.functional.SimpleLazyObject object at 0x3846f50&gt;</div></td>
</tr>
<tr>
<td>user_top_albums</td>
<td class="code"><div>&lt;function user_top_albums at 0x2900488&gt;</div></td>
</tr>
<tr>
<td>user_top_artists</td>
<td class="code"><div>&lt;function user_top_artists at 0x2900500&gt;</div></td>
</tr>
<tr>
<td>versioned_resource_name</td>
<td class="code"><div>&lt;function versioned_resource_name at 0x2900578&gt;</div></td>
</tr>
</tbody>
</table>
</li>
<li class="frame">
<code>/srv/rdio/web/releases/20100803204233/rdio/web/templates/snippets/header/your_links_logged_in.html</code> in <code>top-level template code</code>
<div class="context" id="c55511304">
<ol start="16" class="pre-context" id="pre55511304"><li onclick="toggle('pre55511304', 'post55511304')"> &lt;li&gt;&lt;a href=&quot;{{ url(&#39;browse-charts&#39;) }}&quot;&gt;Top Charts&lt;/a&gt;&lt;/li&gt;</li><li onclick="toggle('pre55511304', 'post55511304')"> &lt;li&gt;&lt;a href=&quot;{{ url(&#39;browse-recommendations&#39;) }}&quot;&gt;Recommended&lt;/a&gt;&lt;/li&gt;</li><li onclick="toggle('pre55511304', 'post55511304')"> &lt;/ul&gt;</li><li onclick="toggle('pre55511304', 'post55511304')"> &lt;/li&gt;</li><li onclick="toggle('pre55511304', 'post55511304')"> &lt;li class=&quot;has_menu&quot;&gt;</li><li onclick="toggle('pre55511304', 'post55511304')"> &lt;span class=&quot;title&quot;&gt;Account&lt;/span&gt;</li><li onclick="toggle('pre55511304', 'post55511304')"> &lt;ul class=&quot;menu account_menu&quot;&gt;</li></ol>
<ol start="23" class="context-line"><li onclick="toggle('pre55511304', 'post55511304')"> &lt;li id=&quot;header_link_upgrade&quot; {% if request.user.has_subscription(exclude_trial=True) %}style=&quot;display:none;&quot;{% endif %}&gt; <span>...</span></li></ol>
<ol start='24' class="post-context" id="post55511304"><li onclick="toggle('pre55511304', 'post55511304')"> &lt;a href=&quot;{{url(&#39;management-subscriptions&#39;)}}&quot;&gt;Upgrade&lt;/a&gt;</li><li onclick="toggle('pre55511304', 'post55511304')"> &lt;/li&gt;</li><li onclick="toggle('pre55511304', 'post55511304')"> &lt;li&gt;&lt;a href=&quot;{{ url(&#39;management&#39;) }}&quot;&gt;Settings&lt;/a&gt;&lt;/li&gt;</li><li onclick="toggle('pre55511304', 'post55511304')"> &lt;li&gt;&lt;a href=&quot;{{ url(&#39;logout&#39;) }}&quot;&gt;Sign out&lt;/a&gt;&lt;/li&gt;</li><li onclick="toggle('pre55511304', 'post55511304')"> &lt;/ul&gt;</li><li onclick="toggle('pre55511304', 'post55511304')"> &lt;/li&gt;</li></ol>
</div>
<div class="commands">
<a href="#" onclick="return varToggle(this, '55511304')"><span>&#x25b6;</span> Local vars</a>
</div>
<table class="vars" id="v55511304">
<thead>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>BASE_MEDIA_URL</td>
<td class="code"><div>&#39;127.0.0.1:8000/media/&#39;</div></td>
</tr>
<tr>
<td>BASE_URL</td>
<td class="code"><div>&#39;127.0.0.1:8000&#39;</div></td>
</tr>
<tr>
<td>IN_PROD</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>IS_BASE</td>
<td class="code"><div>&#39;http://www.rdio.com/_is/&#39;</div></td>
</tr>
<tr>
<td>LANGUAGES</td>
<td class="code"><div>((&#39;ar&#39;, &#39;Arabic&#39;),
(&#39;bg&#39;, &#39;Bulgarian&#39;),
(&#39;bn&#39;, &#39;Bengali&#39;),
(&#39;bs&#39;, &#39;Bosnian&#39;),
(&#39;ca&#39;, &#39;Catalan&#39;),
(&#39;cs&#39;, &#39;Czech&#39;),
(&#39;cy&#39;, &#39;Welsh&#39;),
(&#39;da&#39;, &#39;Danish&#39;),
(&#39;de&#39;, &#39;German&#39;),
(&#39;el&#39;, &#39;Greek&#39;),
(&#39;en&#39;, &#39;English&#39;),
(&#39;es&#39;, &#39;Spanish&#39;),
(&#39;es-ar&#39;, &#39;Argentinean Spanish&#39;),
(&#39;et&#39;, &#39;Estonian&#39;),
(&#39;eu&#39;, &#39;Basque&#39;),
(&#39;fa&#39;, &#39;Persian&#39;),
(&#39;fi&#39;, &#39;Finnish&#39;),
(&#39;fr&#39;, &#39;French&#39;),
(&#39;fy-nl&#39;, &#39;Frisian&#39;),
(&#39;ga&#39;, &#39;Irish&#39;),
(&#39;gl&#39;, &#39;Galician&#39;),
(&#39;he&#39;, &#39;Hebrew&#39;),
(&#39;hi&#39;, &#39;Hindi&#39;),
(&#39;hr&#39;, &#39;Croatian&#39;),
(&#39;hu&#39;, &#39;Hungarian&#39;),
(&#39;is&#39;, &#39;Icelandic&#39;),
(&#39;it&#39;, &#39;Italian&#39;),
(&#39;ja&#39;, &#39;Japanese&#39;),
(&#39;ka&#39;, &#39;Georgian&#39;),
(&#39;km&#39;, &#39;Khmer&#39;),
(&#39;kn&#39;, &#39;Kannada&#39;),
(&#39;ko&#39;, &#39;Korean&#39;),
(&#39;lt&#39;, &#39;Lithuanian&#39;),
(&#39;lv&#39;, &#39;Latvian&#39;),
(&#39;mk&#39;, &#39;Macedonian&#39;),
(&#39;nl&#39;, &#39;Dutch&#39;),
(&#39;no&#39;, &#39;Norwegian&#39;),
(&#39;pl&#39;, &#39;Polish&#39;),
(&#39;pt&#39;, &#39;Portuguese&#39;),
(&#39;pt-br&#39;, &#39;Brazilian Portuguese&#39;),
(&#39;ro&#39;, &#39;Romanian&#39;),
(&#39;ru&#39;, &#39;Russian&#39;),
(&#39;sk&#39;, &#39;Slovak&#39;),
(&#39;sl&#39;, &#39;Slovenian&#39;),
(&#39;sq&#39;, &#39;Albanian&#39;),
(&#39;sr&#39;, &#39;Serbian&#39;),
(&#39;sr-latn&#39;, &#39;Serbian Latin&#39;),
(&#39;sv&#39;, &#39;Swedish&#39;),
(&#39;ta&#39;, &#39;Tamil&#39;),
(&#39;te&#39;, &#39;Telugu&#39;),
(&#39;th&#39;, &#39;Thai&#39;),
(&#39;tr&#39;, &#39;Turkish&#39;),
(&#39;uk&#39;, &#39;Ukrainian&#39;),
(&#39;vi&#39;, &#39;Vietnamese&#39;),
(&#39;zh-cn&#39;, &#39;Simplified Chinese&#39;),
(&#39;zh-tw&#39;, &#39;Traditional Chinese&#39;))</div></td>
</tr>
<tr>
<td>LANGUAGE_BIDI</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>LANGUAGE_CODE</td>
<td class="code"><div>&#39;en-us&#39;</div></td>
</tr>
<tr>
<td>MEDIA_URL</td>
<td class="code"><div>&#39;/media/&#39;</div></td>
</tr>
<tr>
<td>RESOURCE_VERSIONS</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>SECURE_HOST</td>
<td class="code"><div>&#39;http://www.rdio.com&#39;</div></td>
</tr>
<tr>
<td>URL_STEALTH_MODE</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>VARIOUS_ARTISTS_ID</td>
<td class="code"><div>62</div></td>
</tr>
<tr>
<td>csrf_token</td>
<td class="code"><div>&lt;django.utils.functional.__proxy__ object at 0x3a99650&gt;</div></td>
</tr>
<tr>
<td>cycler</td>
<td class="code"><div>&lt;class &#39;jinja2.utils.Cycler&#39;&gt;</div></td>
</tr>
<tr>
<td>dict</td>
<td class="code"><div>&lt;function &lt;lambda&gt; at 0x1726848&gt;</div></td>
</tr>
<tr>
<td>full_url</td>
<td class="code"><div>&lt;function full_url at 0x29002a8&gt;</div></td>
</tr>
<tr>
<td>generate_user_object</td>
<td class="code"><div>&lt;function generate_user_object at 0x2900668&gt;</div></td>
</tr>
<tr>
<td>joiner</td>
<td class="code"><div>&lt;class &#39;jinja2.utils.Joiner&#39;&gt;</div></td>
</tr>
<tr>
<td>lipsum</td>
<td class="code"><div>&lt;function generate_lorem_ipsum at 0x170f1b8&gt;</div></td>
</tr>
<tr>
<td>messages</td>
<td class="code"><div>&lt;django.utils.functional.__proxy__ object at 0x3a99550&gt;</div></td>
</tr>
<tr>
<td>perms</td>
<td class="code"><div>&lt;django.utils.functional.__proxy__ object at 0x3a99c90&gt;</div></td>
</tr>
<tr>
<td>pluralize</td>
<td class="code"><div>&lt;function pluralize_fn at 0x2900398&gt;</div></td>
</tr>
<tr>
<td>qs_versioned_resource_name</td>
<td class="code"><div>&lt;function qs_versioned_resource_name at 0x29005f0&gt;</div></td>
</tr>
<tr>
<td>random_id</td>
<td class="code"><div>&lt;function random_id at 0x2900320&gt;</div></td>
</tr>
<tr>
<td>range</td>
<td class="code"><div>&lt;type &#39;xrange&#39;&gt;</div></td>
</tr>
<tr>
<td>request</td>
<td class="code"><div>&lt;WSGIRequest
GET:&lt;QueryDict: {}&gt;,
POST:&lt;QueryDict: {}&gt;,
COOKIES:{&#39;__utma&#39;: &#39;225830489.1968707507.1280841052.1280863702.1280867010.3&#39;,
&#39;__utmb&#39;: &#39;225830489.22.10.1280867010&#39;,
&#39;__utmc&#39;: &#39;225830489&#39;,
&#39;__utmz&#39;: &#39;225830489.1280841052.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&#39;,
&#39;r&#39;: &#39;eyJfdSI6IDUyMzAyLCAiX2UiOiAwfQ.AwgnvBbPUybH7sbwMz8m7akJasQ&#39;},
META:{&#39;CONTENT_LENGTH&#39;: &#39;&#39;,
&#39;CONTENT_TYPE&#39;: &#39;&#39;,
&#39;DOCUMENT_ROOT&#39;: &#39;/usr/local/nginx/html&#39;,
&#39;HTTP_ACCEPT&#39;: &#39;application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5&#39;,
&#39;HTTP_ACCEPT_CHARSET&#39;: &#39;ISO-8859-1,utf-8;q=0.7,*;q=0.3&#39;,
&#39;HTTP_ACCEPT_ENCODING&#39;: &#39;gzip,deflate,sdch&#39;,
&#39;HTTP_ACCEPT_LANGUAGE&#39;: &#39;en-US,en;q=0.8&#39;,
&#39;HTTP_CACHE_CONTROL&#39;: &#39;max-age=0&#39;,
&#39;HTTP_CONNECTION&#39;: &#39;close&#39;,
&#39;HTTP_COOKIE&#39;: &#39;__utmz=225830489.1280841052.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); r=eyJfdSI6IDUyMzAyLCAiX2UiOiAwfQ.AwgnvBbPUybH7sbwMz8m7akJasQ; __utma=225830489.1968707507.1280841052.1280863702.1280867010.3; __utmc=225830489; __utmb=225830489.22.10.1280867010&#39;,
&#39;HTTP_HOST&#39;: &#39;www.rdio.com&#39;,
&#39;HTTP_USER_AGENT&#39;: &#39;Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.125 Safari/533.4&#39;,
&#39;HTTP_X_FORWARDED_FOR&#39;: &#39;199.71.183.2&#39;,
&#39;HTTP_X_SCHEME&#39;: &#39;http&#39;,
&#39;PATH_INFO&#39;: u&#39;/&#39;,
&#39;QUERY_STRING&#39;: &#39;&#39;,
&#39;REMOTE_ADDR&#39;: &#39;10.10.10.103&#39;,
&#39;REMOTE_PORT&#39;: &#39;52238&#39;,
&#39;REQUEST_METHOD&#39;: &#39;GET&#39;,
&#39;REQUEST_URI&#39;: &#39;//&#39;,
&#39;SCRIPT_NAME&#39;: u&#39;&#39;,
&#39;SERVER_NAME&#39;: &#39;srv-101-15&#39;,
&#39;SERVER_PORT&#39;: &#39;80&#39;,
&#39;SERVER_PROTOCOL&#39;: &#39;HTTP/1.0&#39;,
&#39;wsgi.errors&#39;: &lt;open file &#39;wsgi_input&#39;, mode &#39;w&#39; at 0x382b8b0&gt;,
&#39;wsgi.file_wrapper&#39;: &lt;built-in function uwsgi_sendfile&gt;,
&#39;wsgi.input&#39;: &lt;open file &#39;wsgi_input&#39;, mode &#39;r&#39; at 0x39fbf10&gt;,
&#39;wsgi.multiprocess&#39;: True,
&#39;wsgi.multithread&#39;: False,
&#39;wsgi.run_once&#39;: False,
&#39;wsgi.url_scheme&#39;: &#39;http&#39;,
&#39;wsgi.version&#39;: (1, 0)}&gt;</div></td>
</tr>
<tr>
<td>url</td>
<td class="code"><div>&lt;function url at 0x2900230&gt;</div></td>
</tr>
<tr>
<td>user</td>
<td class="code"><div>&lt;django.utils.functional.SimpleLazyObject object at 0x3846f50&gt;</div></td>
</tr>
<tr>
<td>user_top_albums</td>
<td class="code"><div>&lt;function user_top_albums at 0x2900488&gt;</div></td>
</tr>
<tr>
<td>user_top_artists</td>
<td class="code"><div>&lt;function user_top_artists at 0x2900500&gt;</div></td>
</tr>
<tr>
<td>versioned_resource_name</td>
<td class="code"><div>&lt;function versioned_resource_name at 0x2900578&gt;</div></td>
</tr>
</tbody>
</table>
</li>
<li class="frame">
<code>./rdio/auth/models.py</code> in <code>has_subscription</code>
<div class="context" id="c42264624">
<ol start="847" class="pre-context" id="pre42264624"><li onclick="toggle('pre42264624', 'post42264624')"> Returns True if user currently has subscription-level privileges.</li><li onclick="toggle('pre42264624', 'post42264624')"> If exclude_trial=True, returns True if user has subscription object.</li><li onclick="toggle('pre42264624', 'post42264624')"> &quot;&quot;&quot;</li><li onclick="toggle('pre42264624', 'post42264624')"> from rdio.payment.recurring import SubscriptionType</li><li onclick="toggle('pre42264624', 'post42264624')"> from rdio.payment.models import Subscription</li><li onclick="toggle('pre42264624', 'post42264624')"> if exclude_trial:</li><li onclick="toggle('pre42264624', 'post42264624')"> try:</li></ol>
<ol start="854" class="context-line"><li onclick="toggle('pre42264624', 'post42264624')"> return self.subscription != None <span>...</span></li></ol>
<ol start='855' class="post-context" id="post42264624"><li onclick="toggle('pre42264624', 'post42264624')"> except Subscription.DoesNotExist:</li><li onclick="toggle('pre42264624', 'post42264624')"> return False</li><li onclick="toggle('pre42264624', 'post42264624')"> else:</li><li onclick="toggle('pre42264624', 'post42264624')"> return self.subscription_type != SubscriptionType.NoSubscription</li><li onclick="toggle('pre42264624', 'post42264624')"></li><li onclick="toggle('pre42264624', 'post42264624')"> def has_subscription_info(self):</li></ol>
</div>
<div class="commands">
<a href="#" onclick="return varToggle(this, '42264624')"><span>&#x25b6;</span> Local vars</a>
</div>
<table class="vars" id="v42264624">
<thead>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>Subscription</td>
<td class="code"><div>&lt;class &#39;rdio.payment.models.Subscription&#39;&gt;</div></td>
</tr>
<tr>
<td>SubscriptionType</td>
<td class="code"><div>&lt;class &#39;rdio.payment.SubscriptionType&#39;&gt;</div></td>
</tr>
<tr>
<td>exclude_trial</td>
<td class="code"><div>True</div></td>
</tr>
<tr>
<td>self</td>
<td class="code"><div>&lt;User: rdio@redune.com&gt;</div></td>
</tr>
</tbody>
</table>
</li>
<li class="frame">
<code>/srv/rdio/web/current/contrib/django/db/models/fields/related.py</code> in <code>__get__</code>
<div class="context" id="c59178520">
<ol start="218" class="pre-context" id="pre59178520"><li onclick="toggle('pre59178520', 'post59178520')"> def __get__(self, instance, instance_type=None):</li><li onclick="toggle('pre59178520', 'post59178520')"> if instance is None:</li><li onclick="toggle('pre59178520', 'post59178520')"> return self</li><li onclick="toggle('pre59178520', 'post59178520')"> try:</li><li onclick="toggle('pre59178520', 'post59178520')"> return getattr(instance, self.cache_name)</li><li onclick="toggle('pre59178520', 'post59178520')"> except AttributeError:</li><li onclick="toggle('pre59178520', 'post59178520')"> params = {&#39;%s__pk&#39; % self.related.field.name: instance._get_pk_val()}</li></ol>
<ol start="225" class="context-line"><li onclick="toggle('pre59178520', 'post59178520')"> db = router.db_for_read(instance.__class__, instance=instance) <span>...</span></li></ol>
<ol start='226' class="post-context" id="post59178520"><li onclick="toggle('pre59178520', 'post59178520')"> rel_obj = self.related.model._base_manager.using(db).get(**params)</li><li onclick="toggle('pre59178520', 'post59178520')"> setattr(instance, self.cache_name, rel_obj)</li><li onclick="toggle('pre59178520', 'post59178520')"> return rel_obj</li><li onclick="toggle('pre59178520', 'post59178520')"></li><li onclick="toggle('pre59178520', 'post59178520')"> def __set__(self, instance, value):</li><li onclick="toggle('pre59178520', 'post59178520')"> if instance is None:</li></ol>
</div>
<div class="commands">
<a href="#" onclick="return varToggle(this, '59178520')"><span>&#x25b6;</span> Local vars</a>
</div>
<table class="vars" id="v59178520">
<thead>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>instance</td>
<td class="code"><div>&lt;User: rdio@redune.com&gt;</div></td>
</tr>
<tr>
<td>instance_type</td>
<td class="code"><div>&lt;class &#39;rdio.auth.models.User&#39;&gt;</div></td>
</tr>
<tr>
<td>params</td>
<td class="code"><div>{&#39;user__pk&#39;: 52302L}</div></td>
</tr>
<tr>
<td>self</td>
<td class="code"><div>&lt;django.db.models.fields.related.SingleRelatedObjectDescriptor object at 0x13c1590&gt;</div></td>
</tr>
</tbody>
</table>
</li>
<li class="frame">
<code>/srv/rdio/web/current/contrib/django/db/utils.py</code> in <code>_route_db</code>
<div class="context" id="c59177152">
<ol start="119" class="pre-context" id="pre59177152"><li onclick="toggle('pre59177152', 'post59177152')"> self.routers.append(router)</li><li onclick="toggle('pre59177152', 'post59177152')"></li><li onclick="toggle('pre59177152', 'post59177152')"> def _router_func(action):</li><li onclick="toggle('pre59177152', 'post59177152')"> def _route_db(self, model, **hints):</li><li onclick="toggle('pre59177152', 'post59177152')"> chosen_db = None</li><li onclick="toggle('pre59177152', 'post59177152')"> for router in self.routers:</li><li onclick="toggle('pre59177152', 'post59177152')"> try:</li></ol>
<ol start="126" class="context-line"><li onclick="toggle('pre59177152', 'post59177152')"> chosen_db = getattr(router, action)(model, **hints) <span>...</span></li></ol>
<ol start='127' class="post-context" id="post59177152"><li onclick="toggle('pre59177152', 'post59177152')"> if chosen_db:</li><li onclick="toggle('pre59177152', 'post59177152')"> return chosen_db</li><li onclick="toggle('pre59177152', 'post59177152')"> except AttributeError:</li><li onclick="toggle('pre59177152', 'post59177152')"> # If the router doesn&#39;t have a method, skip to the next one.</li><li onclick="toggle('pre59177152', 'post59177152')"> pass</li><li onclick="toggle('pre59177152', 'post59177152')"> try:</li></ol>
</div>
<div class="commands">
<a href="#" onclick="return varToggle(this, '59177152')"><span>&#x25b6;</span> Local vars</a>
</div>
<table class="vars" id="v59177152">
<thead>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>action</td>
<td class="code"><div>&#39;db_for_read&#39;</div></td>
</tr>
<tr>
<td>chosen_db</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>hints</td>
<td class="code"><div>{&#39;instance&#39;: &lt;User: rdio@redune.com&gt;}</div></td>
</tr>
<tr>
<td>model</td>
<td class="code"><div>&lt;class &#39;rdio.auth.models.User&#39;&gt;</div></td>
</tr>
<tr>
<td>router</td>
<td class="code"><div>&lt;rdio.utils.db.routers.SlaveRouter object at 0x1a9b290&gt;</div></td>
</tr>
<tr>
<td>self</td>
<td class="code"><div>&lt;django.db.utils.ConnectionRouter object at 0x1a9b210&gt;</div></td>
</tr>
</tbody>
</table>
</li>
<li class="frame">
<code>./rdio/utils/db/routers.py</code> in <code>db_for_read</code>
<div class="context" id="c59178160">
<ol start="51" class="pre-context" id="pre59178160"><li onclick="toggle('pre59178160', 'post59178160')"> if rel_instance:</li><li onclick="toggle('pre59178160', 'post59178160')"> if hasattr(rel_instance, &#39;_from_master&#39;):</li><li onclick="toggle('pre59178160', 'post59178160')"> rel_from_master = rel_instance._from_master</li><li onclick="toggle('pre59178160', 'post59178160')"> </li><li onclick="toggle('pre59178160', 'post59178160')"> return model in self._always_need_master_models or rel_from_master</li><li onclick="toggle('pre59178160', 'post59178160')"> </li><li onclick="toggle('pre59178160', 'post59178160')"> def db_for_read(self, model, **hints):</li></ol>
<ol start="58" class="context-line"><li onclick="toggle('pre59178160', 'post59178160')"> if self.get_needs_master(model, **hints): <span>...</span></li></ol>
<ol start='59' class="post-context" id="post59178160"><li onclick="toggle('pre59178160', 'post59178160')"> return &#39;default&#39;</li><li onclick="toggle('pre59178160', 'post59178160')"> import random</li><li onclick="toggle('pre59178160', 'post59178160')"> from rdio import settings</li><li onclick="toggle('pre59178160', 'post59178160')"> return random.choice(settings.RDIO_SLAVE_KEYS)</li><li onclick="toggle('pre59178160', 'post59178160')"> </li><li onclick="toggle('pre59178160', 'post59178160')"> def db_for_write(self, model, **hints):</li></ol>
</div>
<div class="commands">
<a href="#" onclick="return varToggle(this, '59178160')"><span>&#x25b6;</span> Local vars</a>
</div>
<table class="vars" id="v59178160">
<thead>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>hints</td>
<td class="code"><div>{&#39;instance&#39;: &lt;User: rdio@redune.com&gt;}</div></td>
</tr>
<tr>
<td>model</td>
<td class="code"><div>&lt;class &#39;rdio.auth.models.User&#39;&gt;</div></td>
</tr>
<tr>
<td>self</td>
<td class="code"><div>&lt;rdio.utils.db.routers.SlaveRouter object at 0x1a9b290&gt;</div></td>
</tr>
</tbody>
</table>
</li>
<li class="frame">
<code>./rdio/utils/db/routers.py</code> in <code>get_needs_master</code>
<div class="context" id="c59175064">
<ol start="39" class="pre-context" id="pre59175064"><li onclick="toggle('pre59175064', 'post59175064')"> &quot;&quot;&quot;</li><li onclick="toggle('pre59175064', 'post59175064')"> def __init__(self, *args, **kwargs):</li><li onclick="toggle('pre59175064', 'post59175064')"> self._always_need_master_models = None</li><li onclick="toggle('pre59175064', 'post59175064')"> </li><li onclick="toggle('pre59175064', 'post59175064')"> def get_needs_master(self, model, **hints):</li><li onclick="toggle('pre59175064', 'post59175064')"> if not self._always_need_master_models:</li><li onclick="toggle('pre59175064', 'post59175064')"> from django.contrib.contenttypes.models import ContentType</li></ol>
<ol start="46" class="context-line"><li onclick="toggle('pre59175064', 'post59175064')"> from south.models import MigrationHistory <span>...</span></li></ol>
<ol start='47' class="post-context" id="post59175064"><li onclick="toggle('pre59175064', 'post59175064')"> self._always_need_master_models = [ContentType, MigrationHistory]</li><li onclick="toggle('pre59175064', 'post59175064')"> </li><li onclick="toggle('pre59175064', 'post59175064')"> rel_from_master = False</li><li onclick="toggle('pre59175064', 'post59175064')"> rel_instance = hints.get(&#39;instance&#39;, None)</li><li onclick="toggle('pre59175064', 'post59175064')"> if rel_instance:</li><li onclick="toggle('pre59175064', 'post59175064')"> if hasattr(rel_instance, &#39;_from_master&#39;):</li></ol>
</div>
<div class="commands">
<a href="#" onclick="return varToggle(this, '59175064')"><span>&#x25b6;</span> Local vars</a>
</div>
<table class="vars" id="v59175064">
<thead>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>ContentType</td>
<td class="code"><div>&lt;class &#39;django.contrib.contenttypes.models.ContentType&#39;&gt;</div></td>
</tr>
<tr>
<td>hints</td>
<td class="code"><div>{&#39;instance&#39;: &lt;User: rdio@redune.com&gt;}</div></td>
</tr>
<tr>
<td>model</td>
<td class="code"><div>&lt;class &#39;rdio.auth.models.User&#39;&gt;</div></td>
</tr>
<tr>
<td>self</td>
<td class="code"><div>&lt;rdio.utils.db.routers.SlaveRouter object at 0x1a9b290&gt;</div></td>
</tr>
</tbody>
</table>
</li>
<li class="frame">
<code>/srv/rdio/web/current/contrib/south/models.py</code> in <code>&lt;module&gt;</code>
<div class="context" id="c59176576">
<ol start="1" class="pre-context" id="pre59176576"><li onclick="toggle('pre59176576', 'post59176576')">from django.db import models</li></ol>
<ol start="2" class="context-line"><li onclick="toggle('pre59176576', 'post59176576')">from south.db import DEFAULT_DB_ALIAS <span>...</span></li></ol>
<ol start='3' class="post-context" id="post59176576"><li onclick="toggle('pre59176576', 'post59176576')"></li><li onclick="toggle('pre59176576', 'post59176576')">class MigrationHistory(models.Model):</li><li onclick="toggle('pre59176576', 'post59176576')"> app_name = models.CharField(max_length=255)</li><li onclick="toggle('pre59176576', 'post59176576')"> migration = models.CharField(max_length=255)</li><li onclick="toggle('pre59176576', 'post59176576')"> applied = models.DateTimeField(blank=True)</li><li onclick="toggle('pre59176576', 'post59176576')"></li></ol>
</div>
<div class="commands">
<a href="#" onclick="return varToggle(this, '59176576')"><span>&#x25b6;</span> Local vars</a>
</div>
<table class="vars" id="v59176576">
<thead>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>__builtins__</td>
<td class="code"><div>{&#39;ArithmeticError&#39;: &lt;type &#39;exceptions.ArithmeticError&#39;&gt;,
&#39;AssertionError&#39;: &lt;type &#39;exceptions.AssertionError&#39;&gt;,
&#39;AttributeError&#39;: &lt;type &#39;exceptions.AttributeError&#39;&gt;,
&#39;BaseException&#39;: &lt;type &#39;exceptions.BaseException&#39;&gt;,
&#39;BufferError&#39;: &lt;type &#39;exceptions.BufferError&#39;&gt;,
&#39;BytesWarning&#39;: &lt;type &#39;exceptions.BytesWarning&#39;&gt;,
&#39;DeprecationWarning&#39;: &lt;type &#39;exceptions.DeprecationWarning&#39;&gt;,
&#39;EOFError&#39;: &lt;type &#39;exceptions.EOFError&#39;&gt;,
&#39;Ellipsis&#39;: Ellipsis,
&#39;EnvironmentError&#39;: &lt;type &#39;exceptions.EnvironmentError&#39;&gt;,
&#39;Exception&#39;: &lt;type &#39;exceptions.Exception&#39;&gt;,
&#39;False&#39;: False,
&#39;FloatingPointError&#39;: &lt;type &#39;exceptions.FloatingPointError&#39;&gt;,
&#39;FutureWarning&#39;: &lt;type &#39;exceptions.FutureWarning&#39;&gt;,
&#39;GeneratorExit&#39;: &lt;type &#39;exceptions.GeneratorExit&#39;&gt;,
&#39;IOError&#39;: &lt;type &#39;exceptions.IOError&#39;&gt;,
&#39;ImportError&#39;: &lt;type &#39;exceptions.ImportError&#39;&gt;,
&#39;ImportWarning&#39;: &lt;type &#39;exceptions.ImportWarning&#39;&gt;,
&#39;IndentationError&#39;: &lt;type &#39;exceptions.IndentationError&#39;&gt;,
&#39;IndexError&#39;: &lt;type &#39;exceptions.IndexError&#39;&gt;,
&#39;KeyError&#39;: &lt;type &#39;exceptions.KeyError&#39;&gt;,
&#39;KeyboardInterrupt&#39;: &lt;type &#39;exceptions.KeyboardInterrupt&#39;&gt;,
&#39;LookupError&#39;: &lt;type &#39;exceptions.LookupError&#39;&gt;,
&#39;MemoryError&#39;: &lt;type &#39;exceptions.MemoryError&#39;&gt;,
&#39;NameError&#39;: &lt;type &#39;exceptions.NameError&#39;&gt;,
&#39;None&#39;: None,
&#39;NotImplemented&#39;: NotImplemented,
&#39;NotImplementedError&#39;: &lt;type &#39;exceptions.NotImplementedError&#39;&gt;,
&#39;OSError&#39;: &lt;type &#39;exceptions.OSError&#39;&gt;,
&#39;OverflowError&#39;: &lt;type &#39;exceptions.OverflowError&#39;&gt;,
&#39;PendingDeprecationWarning&#39;: &lt;type &#39;exceptions.PendingDeprecationWarning&#39;&gt;,
&#39;ReferenceError&#39;: &lt;type &#39;exceptions.ReferenceError&#39;&gt;,
&#39;RuntimeError&#39;: &lt;type &#39;exceptions.RuntimeError&#39;&gt;,
&#39;RuntimeWarning&#39;: &lt;type &#39;exceptions.RuntimeWarning&#39;&gt;,
&#39;StandardError&#39;: &lt;type &#39;exceptions.StandardError&#39;&gt;,
&#39;StopIteration&#39;: &lt;type &#39;exceptions.StopIteration&#39;&gt;,
&#39;SyntaxError&#39;: &lt;type &#39;exceptions.SyntaxError&#39;&gt;,
&#39;SyntaxWarning&#39;: &lt;type &#39;exceptions.SyntaxWarning&#39;&gt;,
&#39;SystemError&#39;: &lt;type &#39;exceptions.SystemError&#39;&gt;,
&#39;SystemExit&#39;: &lt;type &#39;exceptions.SystemExit&#39;&gt;,
&#39;TabError&#39;: &lt;type &#39;exceptions.TabError&#39;&gt;,
&#39;True&#39;: True,
&#39;TypeError&#39;: &lt;type &#39;exceptions.TypeError&#39;&gt;,
&#39;UnboundLocalError&#39;: &lt;type &#39;exceptions.UnboundLocalError&#39;&gt;,
&#39;UnicodeDecodeError&#39;: &lt;type &#39;exceptions.UnicodeDecodeError&#39;&gt;,
&#39;UnicodeEncodeError&#39;: &lt;type &#39;exceptions.UnicodeEncodeError&#39;&gt;,
&#39;UnicodeError&#39;: &lt;type &#39;exceptions.UnicodeError&#39;&gt;,
&#39;UnicodeTranslateError&#39;: &lt;type &#39;exceptions.UnicodeTranslateError&#39;&gt;,
&#39;UnicodeWarning&#39;: &lt;type &#39;exceptions.UnicodeWarning&#39;&gt;,
&#39;UserWarning&#39;: &lt;type &#39;exceptions.UserWarning&#39;&gt;,
&#39;ValueError&#39;: &lt;type &#39;exceptions.ValueError&#39;&gt;,
&#39;Warning&#39;: &lt;type &#39;exceptions.Warning&#39;&gt;,
&#39;ZeroDivisionError&#39;: &lt;type &#39;exceptions.ZeroDivisionError&#39;&gt;,
&#39;__debug__&#39;: True,
&#39;__doc__&#39;: &quot;Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil&#39; object; Ellipsis represents `...&#39; in slices.&quot;,
&#39;__import__&#39;: &lt;built-in function __import__&gt;,
&#39;__name__&#39;: &#39;__builtin__&#39;,
&#39;__package__&#39;: None,
&#39;abs&#39;: &lt;built-in function abs&gt;,
&#39;all&#39;: &lt;built-in function all&gt;,
&#39;any&#39;: &lt;built-in function any&gt;,
&#39;apply&#39;: &lt;built-in function apply&gt;,
&#39;basestring&#39;: &lt;type &#39;basestring&#39;&gt;,
&#39;bin&#39;: &lt;built-in function bin&gt;,
&#39;bool&#39;: &lt;type &#39;bool&#39;&gt;,
&#39;buffer&#39;: &lt;type &#39;buffer&#39;&gt;,
&#39;bytearray&#39;: &lt;type &#39;bytearray&#39;&gt;,
&#39;bytes&#39;: &lt;type &#39;str&#39;&gt;,
&#39;callable&#39;: &lt;built-in function callable&gt;,
&#39;chr&#39;: &lt;built-in function chr&gt;,
&#39;classmethod&#39;: &lt;type &#39;classmethod&#39;&gt;,
&#39;cmp&#39;: &lt;built-in function cmp&gt;,
&#39;coerce&#39;: &lt;built-in function coerce&gt;,
&#39;compile&#39;: &lt;built-in function compile&gt;,
&#39;complex&#39;: &lt;type &#39;complex&#39;&gt;,
&#39;copyright&#39;: Copyright (c) 2001-2009 Python Software Foundation.
All Rights Reserved.
Copyright (c) 2000 BeOpen.com.
All Rights Reserved.
Copyright (c) 1995-2001 Corporation for National Research Initiatives.
All Rights Reserved.
Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved.,
&#39;credits&#39;: Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
for supporting Python development. See www.python.org for more information.,
&#39;delattr&#39;: &lt;built-in function delattr&gt;,
&#39;dict&#39;: &lt;type &#39;dict&#39;&gt;,
&#39;dir&#39;: &lt;built-in function dir&gt;,
&#39;divmod&#39;: &lt;built-in function divmod&gt;,
&#39;enumerate&#39;: &lt;type &#39;enumerate&#39;&gt;,
&#39;eval&#39;: &lt;built-in function eval&gt;,
&#39;execfile&#39;: &lt;built-in function execfile&gt;,
&#39;exit&#39;: Use exit() or Ctrl-D (i.e. EOF) to exit,
&#39;file&#39;: &lt;type &#39;file&#39;&gt;,
&#39;filter&#39;: &lt;built-in function filter&gt;,
&#39;float&#39;: &lt;type &#39;float&#39;&gt;,
&#39;format&#39;: &lt;built-in function format&gt;,
&#39;frozenset&#39;: &lt;type &#39;frozenset&#39;&gt;,
&#39;getattr&#39;: &lt;built-in function getattr&gt;,
&#39;globals&#39;: &lt;built-in function globals&gt;,
&#39;hasattr&#39;: &lt;built-in function hasattr&gt;,
&#39;hash&#39;: &lt;built-in function hash&gt;,
&#39;help&#39;: Type help() for interactive help, or help(object) for help about object.,
&#39;hex&#39;: &lt;built-in function hex&gt;,
&#39;id&#39;: &lt;built-in function id&gt;,
&#39;input&#39;: &lt;built-in function input&gt;,
&#39;int&#39;: &lt;type &#39;int&#39;&gt;,
&#39;intern&#39;: &lt;built-in function intern&gt;,
&#39;isinstance&#39;: &lt;built-in function isinstance&gt;,
&#39;issubclass&#39;: &lt;built-in function issubclass&gt;,
&#39;iter&#39;: &lt;built-in function iter&gt;,
&#39;len&#39;: &lt;built-in function len&gt;,
&#39;license&#39;: Type license() to see the full license text,
&#39;list&#39;: &lt;type &#39;list&#39;&gt;,
&#39;locals&#39;: &lt;built-in function locals&gt;,
&#39;long&#39;: &lt;type &#39;long&#39;&gt;,
&#39;map&#39;: &lt;built-in function map&gt;,
&#39;max&#39;: &lt;built-in function max&gt;,
&#39;min&#39;: &lt;built-in function min&gt;,
&#39;next&#39;: &lt;built-in function next&gt;,
&#39;object&#39;: &lt;type &#39;object&#39;&gt;,
&#39;oct&#39;: &lt;built-in function oct&gt;,
&#39;open&#39;: &lt;built-in function open&gt;,
&#39;ord&#39;: &lt;built-in function ord&gt;,
&#39;pow&#39;: &lt;built-in function pow&gt;,
&#39;print&#39;: &lt;built-in function print&gt;,
&#39;property&#39;: &lt;type &#39;property&#39;&gt;,
&#39;quit&#39;: Use quit() or Ctrl-D (i.e. EOF) to exit,
&#39;range&#39;: &lt;built-in function range&gt;,
&#39;raw_input&#39;: &lt;built-in function raw_input&gt;,
&#39;reduce&#39;: &lt;built-in function reduce&gt;,
&#39;reload&#39;: &lt;built-in function reload&gt;,
&#39;repr&#39;: &lt;built-in function repr&gt;,
&#39;reversed&#39;: &lt;type &#39;reversed&#39;&gt;,
&#39;round&#39;: &lt;built-in function round&gt;,
&#39;set&#39;: &lt;type &#39;set&#39;&gt;,
&#39;setattr&#39;: &lt;built-in function setattr&gt;,
&#39;slice&#39;: &lt;type &#39;slice&#39;&gt;,
&#39;sorted&#39;: &lt;built-in function sorted&gt;,
&#39;staticmethod&#39;: &lt;type &#39;staticmethod&#39;&gt;,
&#39;str&#39;: &lt;type &#39;str&#39;&gt;,
&#39;sum&#39;: &lt;built-in function sum&gt;,
&#39;super&#39;: &lt;type &#39;super&#39;&gt;,
&#39;tuple&#39;: &lt;type &#39;tuple&#39;&gt;,
&#39;type&#39;: &lt;type &#39;type&#39;&gt;,
&#39;unichr&#39;: &lt;built-in function unichr&gt;,
&#39;unicode&#39;: &lt;type &#39;unicode&#39;&gt;,
&#39;vars&#39;: &lt;built-in function vars&gt;,
&#39;xrange&#39;: &lt;type &#39;xrange&#39;&gt;,
&#39;zip&#39;: &lt;built-in function zip&gt;}</div></td>
</tr>
<tr>
<td>__doc__</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>__file__</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>__name__</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>__package__</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>models</td>
<td class="code"><div>None</div></td>
</tr>
</tbody>
</table>
</li>
<li class="frame">
<code>/srv/rdio/web/current/contrib/south/db/__init__.py</code> in <code>&lt;module&gt;</code>
<div class="context" id="c59176216">
<ol start="54" class="pre-context" id="pre59176216"><li onclick="toggle('pre59176216', 'post59176216')"> sys.exit(1)</li><li onclick="toggle('pre59176216', 'post59176216')"></li><li onclick="toggle('pre59176216', 'post59176216')"># Now, turn that into a dict of &lt;alias: south db module&gt;</li><li onclick="toggle('pre59176216', 'post59176216')">dbs = {}</li><li onclick="toggle('pre59176216', 'post59176216')">try:</li><li onclick="toggle('pre59176216', 'post59176216')"> for alias, module_name in db_engines.items():</li><li onclick="toggle('pre59176216', 'post59176216')"> module = __import__(module_name, {}, {}, [&#39;&#39;])</li></ol>
<ol start="61" class="context-line"><li onclick="toggle('pre59176216', 'post59176216')"> dbs[alias] = module.DatabaseOperations(alias) <span>...</span></li></ol>
<ol start='62' class="post-context" id="post59176216"><li onclick="toggle('pre59176216', 'post59176216')">except ImportError:</li><li onclick="toggle('pre59176216', 'post59176216')"> # This error should only be triggered on 1.1 and below.</li><li onclick="toggle('pre59176216', 'post59176216')"> sys.stderr.write(</li><li onclick="toggle('pre59176216', 'post59176216')"> (</li><li onclick="toggle('pre59176216', 'post59176216')"> &quot;There is no South database module &#39;%s&#39; for your database. &quot; + \</li><li onclick="toggle('pre59176216', 'post59176216')"> &quot;Please either choose a supported database, check for &quot; + \</li></ol>
</div>
<div class="commands">
<a href="#" onclick="return varToggle(this, '59176216')"><span>&#x25b6;</span> Local vars</a>
</div>
<table class="vars" id="v59176216">
<thead>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>DEFAULT_DB_ALIAS</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>__builtins__</td>
<td class="code"><div>{&#39;ArithmeticError&#39;: &lt;type &#39;exceptions.ArithmeticError&#39;&gt;,
&#39;AssertionError&#39;: &lt;type &#39;exceptions.AssertionError&#39;&gt;,
&#39;AttributeError&#39;: &lt;type &#39;exceptions.AttributeError&#39;&gt;,
&#39;BaseException&#39;: &lt;type &#39;exceptions.BaseException&#39;&gt;,
&#39;BufferError&#39;: &lt;type &#39;exceptions.BufferError&#39;&gt;,
&#39;BytesWarning&#39;: &lt;type &#39;exceptions.BytesWarning&#39;&gt;,
&#39;DeprecationWarning&#39;: &lt;type &#39;exceptions.DeprecationWarning&#39;&gt;,
&#39;EOFError&#39;: &lt;type &#39;exceptions.EOFError&#39;&gt;,
&#39;Ellipsis&#39;: Ellipsis,
&#39;EnvironmentError&#39;: &lt;type &#39;exceptions.EnvironmentError&#39;&gt;,
&#39;Exception&#39;: &lt;type &#39;exceptions.Exception&#39;&gt;,
&#39;False&#39;: False,
&#39;FloatingPointError&#39;: &lt;type &#39;exceptions.FloatingPointError&#39;&gt;,
&#39;FutureWarning&#39;: &lt;type &#39;exceptions.FutureWarning&#39;&gt;,
&#39;GeneratorExit&#39;: &lt;type &#39;exceptions.GeneratorExit&#39;&gt;,
&#39;IOError&#39;: &lt;type &#39;exceptions.IOError&#39;&gt;,
&#39;ImportError&#39;: &lt;type &#39;exceptions.ImportError&#39;&gt;,
&#39;ImportWarning&#39;: &lt;type &#39;exceptions.ImportWarning&#39;&gt;,
&#39;IndentationError&#39;: &lt;type &#39;exceptions.IndentationError&#39;&gt;,
&#39;IndexError&#39;: &lt;type &#39;exceptions.IndexError&#39;&gt;,
&#39;KeyError&#39;: &lt;type &#39;exceptions.KeyError&#39;&gt;,
&#39;KeyboardInterrupt&#39;: &lt;type &#39;exceptions.KeyboardInterrupt&#39;&gt;,
&#39;LookupError&#39;: &lt;type &#39;exceptions.LookupError&#39;&gt;,
&#39;MemoryError&#39;: &lt;type &#39;exceptions.MemoryError&#39;&gt;,
&#39;NameError&#39;: &lt;type &#39;exceptions.NameError&#39;&gt;,
&#39;None&#39;: None,
&#39;NotImplemented&#39;: NotImplemented,
&#39;NotImplementedError&#39;: &lt;type &#39;exceptions.NotImplementedError&#39;&gt;,
&#39;OSError&#39;: &lt;type &#39;exceptions.OSError&#39;&gt;,
&#39;OverflowError&#39;: &lt;type &#39;exceptions.OverflowError&#39;&gt;,
&#39;PendingDeprecationWarning&#39;: &lt;type &#39;exceptions.PendingDeprecationWarning&#39;&gt;,
&#39;ReferenceError&#39;: &lt;type &#39;exceptions.ReferenceError&#39;&gt;,
&#39;RuntimeError&#39;: &lt;type &#39;exceptions.RuntimeError&#39;&gt;,
&#39;RuntimeWarning&#39;: &lt;type &#39;exceptions.RuntimeWarning&#39;&gt;,
&#39;StandardError&#39;: &lt;type &#39;exceptions.StandardError&#39;&gt;,
&#39;StopIteration&#39;: &lt;type &#39;exceptions.StopIteration&#39;&gt;,
&#39;SyntaxError&#39;: &lt;type &#39;exceptions.SyntaxError&#39;&gt;,
&#39;SyntaxWarning&#39;: &lt;type &#39;exceptions.SyntaxWarning&#39;&gt;,
&#39;SystemError&#39;: &lt;type &#39;exceptions.SystemError&#39;&gt;,
&#39;SystemExit&#39;: &lt;type &#39;exceptions.SystemExit&#39;&gt;,
&#39;TabError&#39;: &lt;type &#39;exceptions.TabError&#39;&gt;,
&#39;True&#39;: True,
&#39;TypeError&#39;: &lt;type &#39;exceptions.TypeError&#39;&gt;,
&#39;UnboundLocalError&#39;: &lt;type &#39;exceptions.UnboundLocalError&#39;&gt;,
&#39;UnicodeDecodeError&#39;: &lt;type &#39;exceptions.UnicodeDecodeError&#39;&gt;,
&#39;UnicodeEncodeError&#39;: &lt;type &#39;exceptions.UnicodeEncodeError&#39;&gt;,
&#39;UnicodeError&#39;: &lt;type &#39;exceptions.UnicodeError&#39;&gt;,
&#39;UnicodeTranslateError&#39;: &lt;type &#39;exceptions.UnicodeTranslateError&#39;&gt;,
&#39;UnicodeWarning&#39;: &lt;type &#39;exceptions.UnicodeWarning&#39;&gt;,
&#39;UserWarning&#39;: &lt;type &#39;exceptions.UserWarning&#39;&gt;,
&#39;ValueError&#39;: &lt;type &#39;exceptions.ValueError&#39;&gt;,
&#39;Warning&#39;: &lt;type &#39;exceptions.Warning&#39;&gt;,
&#39;ZeroDivisionError&#39;: &lt;type &#39;exceptions.ZeroDivisionError&#39;&gt;,
&#39;__debug__&#39;: True,
&#39;__doc__&#39;: &quot;Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil&#39; object; Ellipsis represents `...&#39; in slices.&quot;,
&#39;__import__&#39;: &lt;built-in function __import__&gt;,
&#39;__name__&#39;: &#39;__builtin__&#39;,
&#39;__package__&#39;: None,
&#39;abs&#39;: &lt;built-in function abs&gt;,
&#39;all&#39;: &lt;built-in function all&gt;,
&#39;any&#39;: &lt;built-in function any&gt;,
&#39;apply&#39;: &lt;built-in function apply&gt;,
&#39;basestring&#39;: &lt;type &#39;basestring&#39;&gt;,
&#39;bin&#39;: &lt;built-in function bin&gt;,
&#39;bool&#39;: &lt;type &#39;bool&#39;&gt;,
&#39;buffer&#39;: &lt;type &#39;buffer&#39;&gt;,
&#39;bytearray&#39;: &lt;type &#39;bytearray&#39;&gt;,
&#39;bytes&#39;: &lt;type &#39;str&#39;&gt;,
&#39;callable&#39;: &lt;built-in function callable&gt;,
&#39;chr&#39;: &lt;built-in function chr&gt;,
&#39;classmethod&#39;: &lt;type &#39;classmethod&#39;&gt;,
&#39;cmp&#39;: &lt;built-in function cmp&gt;,
&#39;coerce&#39;: &lt;built-in function coerce&gt;,
&#39;compile&#39;: &lt;built-in function compile&gt;,
&#39;complex&#39;: &lt;type &#39;complex&#39;&gt;,
&#39;copyright&#39;: Copyright (c) 2001-2009 Python Software Foundation.
All Rights Reserved.
Copyright (c) 2000 BeOpen.com.
All Rights Reserved.
Copyright (c) 1995-2001 Corporation for National Research Initiatives.
All Rights Reserved.
Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved.,
&#39;credits&#39;: Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
for supporting Python development. See www.python.org for more information.,
&#39;delattr&#39;: &lt;built-in function delattr&gt;,
&#39;dict&#39;: &lt;type &#39;dict&#39;&gt;,
&#39;dir&#39;: &lt;built-in function dir&gt;,
&#39;divmod&#39;: &lt;built-in function divmod&gt;,
&#39;enumerate&#39;: &lt;type &#39;enumerate&#39;&gt;,
&#39;eval&#39;: &lt;built-in function eval&gt;,
&#39;execfile&#39;: &lt;built-in function execfile&gt;,
&#39;exit&#39;: Use exit() or Ctrl-D (i.e. EOF) to exit,
&#39;file&#39;: &lt;type &#39;file&#39;&gt;,
&#39;filter&#39;: &lt;built-in function filter&gt;,
&#39;float&#39;: &lt;type &#39;float&#39;&gt;,
&#39;format&#39;: &lt;built-in function format&gt;,
&#39;frozenset&#39;: &lt;type &#39;frozenset&#39;&gt;,
&#39;getattr&#39;: &lt;built-in function getattr&gt;,
&#39;globals&#39;: &lt;built-in function globals&gt;,
&#39;hasattr&#39;: &lt;built-in function hasattr&gt;,
&#39;hash&#39;: &lt;built-in function hash&gt;,
&#39;help&#39;: Type help() for interactive help, or help(object) for help about object.,
&#39;hex&#39;: &lt;built-in function hex&gt;,
&#39;id&#39;: &lt;built-in function id&gt;,
&#39;input&#39;: &lt;built-in function input&gt;,
&#39;int&#39;: &lt;type &#39;int&#39;&gt;,
&#39;intern&#39;: &lt;built-in function intern&gt;,
&#39;isinstance&#39;: &lt;built-in function isinstance&gt;,
&#39;issubclass&#39;: &lt;built-in function issubclass&gt;,
&#39;iter&#39;: &lt;built-in function iter&gt;,
&#39;len&#39;: &lt;built-in function len&gt;,
&#39;license&#39;: Type license() to see the full license text,
&#39;list&#39;: &lt;type &#39;list&#39;&gt;,
&#39;locals&#39;: &lt;built-in function locals&gt;,
&#39;long&#39;: &lt;type &#39;long&#39;&gt;,
&#39;map&#39;: &lt;built-in function map&gt;,
&#39;max&#39;: &lt;built-in function max&gt;,
&#39;min&#39;: &lt;built-in function min&gt;,
&#39;next&#39;: &lt;built-in function next&gt;,
&#39;object&#39;: &lt;type &#39;object&#39;&gt;,
&#39;oct&#39;: &lt;built-in function oct&gt;,
&#39;open&#39;: &lt;built-in function open&gt;,
&#39;ord&#39;: &lt;built-in function ord&gt;,
&#39;pow&#39;: &lt;built-in function pow&gt;,
&#39;print&#39;: &lt;built-in function print&gt;,
&#39;property&#39;: &lt;type &#39;property&#39;&gt;,
&#39;quit&#39;: Use quit() or Ctrl-D (i.e. EOF) to exit,
&#39;range&#39;: &lt;built-in function range&gt;,
&#39;raw_input&#39;: &lt;built-in function raw_input&gt;,
&#39;reduce&#39;: &lt;built-in function reduce&gt;,
&#39;reload&#39;: &lt;built-in function reload&gt;,
&#39;repr&#39;: &lt;built-in function repr&gt;,
&#39;reversed&#39;: &lt;type &#39;reversed&#39;&gt;,
&#39;round&#39;: &lt;built-in function round&gt;,
&#39;set&#39;: &lt;type &#39;set&#39;&gt;,
&#39;setattr&#39;: &lt;built-in function setattr&gt;,
&#39;slice&#39;: &lt;type &#39;slice&#39;&gt;,
&#39;sorted&#39;: &lt;built-in function sorted&gt;,
&#39;staticmethod&#39;: &lt;type &#39;staticmethod&#39;&gt;,
&#39;str&#39;: &lt;type &#39;str&#39;&gt;,
&#39;sum&#39;: &lt;built-in function sum&gt;,
&#39;super&#39;: &lt;type &#39;super&#39;&gt;,
&#39;tuple&#39;: &lt;type &#39;tuple&#39;&gt;,
&#39;type&#39;: &lt;type &#39;type&#39;&gt;,
&#39;unichr&#39;: &lt;built-in function unichr&gt;,
&#39;unicode&#39;: &lt;type &#39;unicode&#39;&gt;,
&#39;vars&#39;: &lt;built-in function vars&gt;,
&#39;xrange&#39;: &lt;type &#39;xrange&#39;&gt;,
&#39;zip&#39;: &lt;built-in function zip&gt;}</div></td>
</tr>
<tr>
<td>__doc__</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>__file__</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>__name__</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>__package__</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>__path__</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>alias</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>db_engines</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>db_settings</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>dbs</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>engine</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>engine_modules</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>module</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>module_name</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>settings</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>sys</td>
<td class="code"><div>None</div></td>
</tr>
</tbody>
</table>
</li>
<li class="frame">
<code>/srv/rdio/web/current/contrib/south/db/generic.py</code> in <code>__init__</code>
<div class="context" id="c59176288">
<ol start="55" class="pre-context" id="pre59176288"><li onclick="toggle('pre59176288', 'post59176288')"> def __init__(self, db_alias):</li><li onclick="toggle('pre59176288', 'post59176288')"> self.debug = False</li><li onclick="toggle('pre59176288', 'post59176288')"> self.deferred_sql = []</li><li onclick="toggle('pre59176288', 'post59176288')"> self.dry_run = False</li><li onclick="toggle('pre59176288', 'post59176288')"> self.pending_transactions = 0</li><li onclick="toggle('pre59176288', 'post59176288')"> self.pending_create_signals = []</li><li onclick="toggle('pre59176288', 'post59176288')"> self.db_alias = db_alias</li></ol>
<ol start="62" class="context-line"><li onclick="toggle('pre59176288', 'post59176288')"> self.connection_init() <span>...</span></li></ol>
<ol start='63' class="post-context" id="post59176288"><li onclick="toggle('pre59176288', 'post59176288')"> </li><li onclick="toggle('pre59176288', 'post59176288')"> def _is_multidb(self):</li><li onclick="toggle('pre59176288', 'post59176288')"> try: </li><li onclick="toggle('pre59176288', 'post59176288')"> from django.db import connections</li><li onclick="toggle('pre59176288', 'post59176288')"> except ImportError:</li><li onclick="toggle('pre59176288', 'post59176288')"> return False</li></ol>
</div>
<div class="commands">
<a href="#" onclick="return varToggle(this, '59176288')"><span>&#x25b6;</span> Local vars</a>
</div>
<table class="vars" id="v59176288">
<thead>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>db_alias</td>
<td class="code"><div>&#39;INGESTION_SLAVE&#39;</div></td>
</tr>
<tr>
<td>self</td>
<td class="code"><div>&lt;south.db.mysql.DatabaseOperations object at 0x3a99dd0&gt;</div></td>
</tr>
</tbody>
</table>
</li>
<li class="frame">
<code>/srv/rdio/web/current/contrib/south/db/mysql.py</code> in <code>connection_init</code>
<div class="context" id="c59174992">
<ol start="32" class="pre-context" id="pre59174992"><li onclick="toggle('pre59174992', 'post59174992')"> </li><li onclick="toggle('pre59174992', 'post59174992')"> </li><li onclick="toggle('pre59174992', 'post59174992')"> def connection_init(self):</li><li onclick="toggle('pre59174992', 'post59174992')"> &quot;&quot;&quot;</li><li onclick="toggle('pre59174992', 'post59174992')"> Run before any SQL to let database-specific config be sent as a command,</li><li onclick="toggle('pre59174992', 'post59174992')"> e.g. which storage engine (MySQL) or transaction serialisability level.</li><li onclick="toggle('pre59174992', 'post59174992')"> &quot;&quot;&quot;</li></ol>
<ol start="39" class="context-line"><li onclick="toggle('pre59174992', 'post59174992')"> cursor = self._get_connection().cursor() <span>...</span></li></ol>
<ol start='40' class="post-context" id="post59174992"><li onclick="toggle('pre59174992', 'post59174992')"> if self._has_setting(&#39;STORAGE_ENGINE&#39;) and self._get_setting(&#39;STORAGE_ENGINE&#39;):</li><li onclick="toggle('pre59174992', 'post59174992')"> cursor.execute(&quot;SET storage_engine=%s;&quot; % self._get_setting(&#39;STORAGE_ENGINE&#39;))</li><li onclick="toggle('pre59174992', 'post59174992')"> # Turn off foreign key checks, and turn them back on at the end</li><li onclick="toggle('pre59174992', 'post59174992')"> cursor.execute(&quot;SET FOREIGN_KEY_CHECKS=0;&quot;)</li><li onclick="toggle('pre59174992', 'post59174992')"> self.deferred_sql.append(&quot;SET FOREIGN_KEY_CHECKS=1;&quot;)</li><li onclick="toggle('pre59174992', 'post59174992')"></li></ol>
</div>
<div class="commands">
<a href="#" onclick="return varToggle(this, '59174992')"><span>&#x25b6;</span> Local vars</a>
</div>
<table class="vars" id="v59174992">
<thead>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>self</td>
<td class="code"><div>&lt;south.db.mysql.DatabaseOperations object at 0x3a99dd0&gt;</div></td>
</tr>
</tbody>
</table>
</li>
<li class="frame">
<code>/srv/rdio/web/current/contrib/django/db/backends/__init__.py</code> in <code>cursor</code>
<div class="context" id="c59175424">
<ol start="68" class="pre-context" id="pre59175424"><li onclick="toggle('pre59175424', 'post59175424')"> def close(self):</li><li onclick="toggle('pre59175424', 'post59175424')"> if self.connection is not None:</li><li onclick="toggle('pre59175424', 'post59175424')"> self.connection.close()</li><li onclick="toggle('pre59175424', 'post59175424')"> self.connection = None</li><li onclick="toggle('pre59175424', 'post59175424')"></li><li onclick="toggle('pre59175424', 'post59175424')"> def cursor(self):</li><li onclick="toggle('pre59175424', 'post59175424')"> from django.conf import settings</li></ol>
<ol start="75" class="context-line"><li onclick="toggle('pre59175424', 'post59175424')"> cursor = self._cursor() <span>...</span></li></ol>
<ol start='76' class="post-context" id="post59175424"><li onclick="toggle('pre59175424', 'post59175424')"> if settings.DEBUG:</li><li onclick="toggle('pre59175424', 'post59175424')"> return self.make_debug_cursor(cursor)</li><li onclick="toggle('pre59175424', 'post59175424')"> return cursor</li><li onclick="toggle('pre59175424', 'post59175424')"></li><li onclick="toggle('pre59175424', 'post59175424')"> def make_debug_cursor(self, cursor):</li><li onclick="toggle('pre59175424', 'post59175424')"> return util.CursorDebugWrapper(cursor, self)</li></ol>
</div>
<div class="commands">
<a href="#" onclick="return varToggle(this, '59175424')"><span>&#x25b6;</span> Local vars</a>
</div>
<table class="vars" id="v59175424">
<thead>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>self</td>
<td class="code"><div>&lt;django.db.backends.mysql.base.DatabaseWrapper object at 0x24523c0&gt;</div></td>
</tr>
<tr>
<td>settings</td>
<td class="code"><div>&lt;django.conf.LazySettings object at 0x7f05dc55a0d0&gt;</div></td>
</tr>
</tbody>
</table>
</li>
<li class="frame">
<code>/srv/rdio/web/current/contrib/django/db/backends/mysql/base.py</code> in <code>_cursor</code>
<div class="context" id="c59178592">
<ol start="287" class="pre-context" id="pre59178592"><li onclick="toggle('pre59178592', 'post59178592')"> kwargs[&#39;host&#39;] = settings_dict[&#39;HOST&#39;]</li><li onclick="toggle('pre59178592', 'post59178592')"> if settings_dict[&#39;PORT&#39;]:</li><li onclick="toggle('pre59178592', 'post59178592')"> kwargs[&#39;port&#39;] = int(settings_dict[&#39;PORT&#39;])</li><li onclick="toggle('pre59178592', 'post59178592')"> # We need the number of potentially affected rows after an</li><li onclick="toggle('pre59178592', 'post59178592')"> # &quot;UPDATE&quot;, not the number of changed rows.</li><li onclick="toggle('pre59178592', 'post59178592')"> kwargs[&#39;client_flag&#39;] = CLIENT.FOUND_ROWS</li><li onclick="toggle('pre59178592', 'post59178592')"> kwargs.update(settings_dict[&#39;OPTIONS&#39;])</li></ol>
<ol start="294" class="context-line"><li onclick="toggle('pre59178592', 'post59178592')"> self.connection = Database.connect(**kwargs) <span>...</span></li></ol>
<ol start='295' class="post-context" id="post59178592"><li onclick="toggle('pre59178592', 'post59178592')"> self.connection.encoders[SafeUnicode] = self.connection.encoders[unicode]</li><li onclick="toggle('pre59178592', 'post59178592')"> self.connection.encoders[SafeString] = self.connection.encoders[str]</li><li onclick="toggle('pre59178592', 'post59178592')"> connection_created.send(sender=self.__class__)</li><li onclick="toggle('pre59178592', 'post59178592')"> cursor = CursorWrapper(self.connection.cursor())</li><li onclick="toggle('pre59178592', 'post59178592')"> return cursor</li><li onclick="toggle('pre59178592', 'post59178592')"></li></ol>
</div>
<div class="commands">
<a href="#" onclick="return varToggle(this, '59178592')"><span>&#x25b6;</span> Local vars</a>
</div>
<table class="vars" id="v59178592">
<thead>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>kwargs</td>
<td class="code"><div>{&#39;charset&#39;: &#39;utf8&#39;,
&#39;client_flag&#39;: 2,
&#39;conv&#39;: {0: &lt;function typecast_decimal at 0x1ae3320&gt;,
1: &lt;type &#39;int&#39;&gt;,
2: &lt;type &#39;int&#39;&gt;,
3: &lt;type &#39;long&#39;&gt;,
4: &lt;type &#39;float&#39;&gt;,
5: &lt;type &#39;float&#39;&gt;,
7: &lt;function mysql_timestamp_converter at 0x1af31b8&gt;,
8: &lt;type &#39;long&#39;&gt;,
9: &lt;type &#39;int&#39;&gt;,
10: &lt;function Date_or_None at 0x1af3050&gt;,
11: &lt;function typecast_time at 0x1ae31b8&gt;,
12: &lt;function DateTime_or_None at 0x1aece60&gt;,
13: &lt;type &#39;int&#39;&gt;,
15: [(128, &lt;type &#39;str&#39;&gt;)],
246: &lt;function typecast_decimal at 0x1ae3320&gt;,
248: &lt;function Str2Set at 0x1af3b90&gt;,
252: [(128, &lt;type &#39;str&#39;&gt;)],
253: [(128, &lt;type &#39;str&#39;&gt;)],
254: [(128, &lt;type &#39;str&#39;&gt;)],
&lt;type &#39;datetime.datetime&#39;&gt;: &lt;function DateTime2literal at 0x1af30c8&gt;,
&lt;type &#39;datetime.timedelta&#39;&gt;: &lt;function DateTimeDelta2literal at 0x1af3140&gt;,
&lt;type &#39;bool&#39;&gt;: &lt;function Bool2Str at 0x1af60c8&gt;,
&lt;type &#39;instance&#39;&gt;: &lt;function Instance2Str at 0x1af3ed8&gt;,
&lt;type &#39;float&#39;&gt;: &lt;function Float2Str at 0x1af3d70&gt;,
&lt;type &#39;int&#39;&gt;: &lt;function Thing2Str at 0x1af3c80&gt;,
&lt;type &#39;list&#39;&gt;: &lt;built-in function escape_sequence&gt;,
&lt;type &#39;long&#39;&gt;: &lt;function Thing2Str at 0x1af3c80&gt;,
&lt;type &#39;dict&#39;&gt;: &lt;built-in function escape_dict&gt;,
&lt;type &#39;NoneType&#39;&gt;: &lt;function None2NULL at 0x1af3de8&gt;,
&lt;type &#39;set&#39;&gt;: &lt;function Set2Str at 0x1af3c08&gt;,
&lt;type &#39;str&#39;&gt;: &lt;function Thing2Literal at 0x1af3e60&gt;,
&lt;type &#39;tuple&#39;&gt;: &lt;built-in function escape_sequence&gt;,
&lt;type &#39;object&#39;&gt;: &lt;function Instance2Str at 0x1af3ed8&gt;,
&lt;type &#39;unicode&#39;&gt;: &lt;function Unicode2Str at 0x1af3cf8&gt;,
&lt;type &#39;array.array&#39;&gt;: &lt;function array2Str at 0x1af6050&gt;},
&#39;db&#39;: &#39;ingestion&#39;,
&#39;init_command&#39;: &#39;SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED&#39;,
&#39;passwd&#39;: &#39;z0l4&#39;,
&#39;use_unicode&#39;: True,
&#39;user&#39;: &#39;zoladb&#39;}</div></td>
</tr>
<tr>
<td>self</td>
<td class="code"><div>&lt;django.db.backends.mysql.base.DatabaseWrapper object at 0x24523c0&gt;</div></td>
</tr>
<tr>
<td>settings_dict</td>
<td class="code"><div>{&#39;ENGINE&#39;: &#39;django.db.backends.mysql&#39;,
&#39;HOST&#39;: &#39;&#39;,
&#39;NAME&#39;: &#39;ingestion&#39;,
&#39;OPTIONS&#39;: {&#39;init_command&#39;: &#39;SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED&#39;},
&#39;PASSWORD&#39;: &#39;z0l4&#39;,
&#39;PORT&#39;: &#39;&#39;,
&#39;STORAGE_ENGINE&#39;: &#39;InnoDB&#39;,
&#39;TEST_CHARSET&#39;: None,
&#39;TEST_COLLATION&#39;: None,
&#39;TEST_MIRROR&#39;: &#39;INGESTION_MASTER&#39;,
&#39;TEST_NAME&#39;: None,
&#39;TIME_ZONE&#39;: &#39;America/Los_Angeles&#39;,
&#39;USER&#39;: &#39;zoladb&#39;}</div></td>
</tr>
</tbody>
</table>
</li>
<li class="frame">
<code>/usr/lib/pymodules/python2.6/MySQLdb/__init__.py</code> in <code>Connect</code>
<div class="context" id="c59177872">
<ol start="74" class="pre-context" id="pre59177872"><li onclick="toggle('pre59177872', 'post59177872')"></li><li onclick="toggle('pre59177872', 'post59177872')">def Binary(x):</li><li onclick="toggle('pre59177872', 'post59177872')"> return str(x)</li><li onclick="toggle('pre59177872', 'post59177872')"></li><li onclick="toggle('pre59177872', 'post59177872')">def Connect(*args, **kwargs):</li><li onclick="toggle('pre59177872', 'post59177872')"> &quot;&quot;&quot;Factory function for connections.Connection.&quot;&quot;&quot;</li><li onclick="toggle('pre59177872', 'post59177872')"> from connections import Connection</li></ol>
<ol start="81" class="context-line"><li onclick="toggle('pre59177872', 'post59177872')"> return Connection(*args, **kwargs) <span>...</span></li></ol>
<ol start='82' class="post-context" id="post59177872"><li onclick="toggle('pre59177872', 'post59177872')"></li><li onclick="toggle('pre59177872', 'post59177872')">connect = Connection = Connect</li><li onclick="toggle('pre59177872', 'post59177872')"></li><li onclick="toggle('pre59177872', 'post59177872')">__all__ = [ &#39;BINARY&#39;, &#39;Binary&#39;, &#39;Connect&#39;, &#39;Connection&#39;, &#39;DATE&#39;,</li><li onclick="toggle('pre59177872', 'post59177872')"> &#39;Date&#39;, &#39;Time&#39;, &#39;Timestamp&#39;, &#39;DateFromTicks&#39;, &#39;TimeFromTicks&#39;,</li><li onclick="toggle('pre59177872', 'post59177872')"> &#39;TimestampFromTicks&#39;, &#39;DataError&#39;, &#39;DatabaseError&#39;, &#39;Error&#39;,</li></ol>
</div>
<div class="commands">
<a href="#" onclick="return varToggle(this, '59177872')"><span>&#x25b6;</span> Local vars</a>
</div>
<table class="vars" id="v59177872">
<thead>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>Connection</td>
<td class="code"><div>&lt;class &#39;MySQLdb.connections.Connection&#39;&gt;</div></td>
</tr>
<tr>
<td>args</td>
<td class="code"><div>()</div></td>
</tr>
<tr>
<td>kwargs</td>
<td class="code"><div>{&#39;charset&#39;: &#39;utf8&#39;,
&#39;client_flag&#39;: 2,
&#39;conv&#39;: {0: &lt;function typecast_decimal at 0x1ae3320&gt;,
1: &lt;type &#39;int&#39;&gt;,
2: &lt;type &#39;int&#39;&gt;,
3: &lt;type &#39;long&#39;&gt;,
4: &lt;type &#39;float&#39;&gt;,
5: &lt;type &#39;float&#39;&gt;,
7: &lt;function mysql_timestamp_converter at 0x1af31b8&gt;,
8: &lt;type &#39;long&#39;&gt;,
9: &lt;type &#39;int&#39;&gt;,
10: &lt;function Date_or_None at 0x1af3050&gt;,
11: &lt;function typecast_time at 0x1ae31b8&gt;,
12: &lt;function DateTime_or_None at 0x1aece60&gt;,
13: &lt;type &#39;int&#39;&gt;,
15: [(128, &lt;type &#39;str&#39;&gt;)],
246: &lt;function typecast_decimal at 0x1ae3320&gt;,
248: &lt;function Str2Set at 0x1af3b90&gt;,
252: [(128, &lt;type &#39;str&#39;&gt;)],
253: [(128, &lt;type &#39;str&#39;&gt;)],
254: [(128, &lt;type &#39;str&#39;&gt;)],
&lt;type &#39;datetime.datetime&#39;&gt;: &lt;function DateTime2literal at 0x1af30c8&gt;,
&lt;type &#39;datetime.timedelta&#39;&gt;: &lt;function DateTimeDelta2literal at 0x1af3140&gt;,
&lt;type &#39;bool&#39;&gt;: &lt;function Bool2Str at 0x1af60c8&gt;,
&lt;type &#39;instance&#39;&gt;: &lt;function Instance2Str at 0x1af3ed8&gt;,
&lt;type &#39;float&#39;&gt;: &lt;function Float2Str at 0x1af3d70&gt;,
&lt;type &#39;int&#39;&gt;: &lt;function Thing2Str at 0x1af3c80&gt;,
&lt;type &#39;list&#39;&gt;: &lt;built-in function escape_sequence&gt;,
&lt;type &#39;long&#39;&gt;: &lt;function Thing2Str at 0x1af3c80&gt;,
&lt;type &#39;dict&#39;&gt;: &lt;built-in function escape_dict&gt;,
&lt;type &#39;NoneType&#39;&gt;: &lt;function None2NULL at 0x1af3de8&gt;,
&lt;type &#39;set&#39;&gt;: &lt;function Set2Str at 0x1af3c08&gt;,
&lt;type &#39;str&#39;&gt;: &lt;function Thing2Literal at 0x1af3e60&gt;,
&lt;type &#39;tuple&#39;&gt;: &lt;built-in function escape_sequence&gt;,
&lt;type &#39;object&#39;&gt;: &lt;function Instance2Str at 0x1af3ed8&gt;,
&lt;type &#39;unicode&#39;&gt;: &lt;function Unicode2Str at 0x1af3cf8&gt;,
&lt;type &#39;array.array&#39;&gt;: &lt;function array2Str at 0x1af6050&gt;},
&#39;db&#39;: &#39;ingestion&#39;,
&#39;init_command&#39;: &#39;SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED&#39;,
&#39;passwd&#39;: &#39;z0l4&#39;,
&#39;use_unicode&#39;: True,
&#39;user&#39;: &#39;zoladb&#39;}</div></td>
</tr>
</tbody>
</table>
</li>
<li class="frame">
<code>/usr/lib/pymodules/python2.6/MySQLdb/connections.py</code> in <code>__init__</code>
<div class="context" id="c59177800">
<ol start="163" class="pre-context" id="pre59177800"><li onclick="toggle('pre59177800', 'post59177800')"> if client_version &gt;= (4, 1):</li><li onclick="toggle('pre59177800', 'post59177800')"> client_flag |= CLIENT.MULTI_STATEMENTS</li><li onclick="toggle('pre59177800', 'post59177800')"> if client_version &gt;= (5, 0):</li><li onclick="toggle('pre59177800', 'post59177800')"> client_flag |= CLIENT.MULTI_RESULTS</li><li onclick="toggle('pre59177800', 'post59177800')"> </li><li onclick="toggle('pre59177800', 'post59177800')"> kwargs2[&#39;client_flag&#39;] = client_flag</li><li onclick="toggle('pre59177800', 'post59177800')"></li></ol>
<ol start="170" class="context-line"><li onclick="toggle('pre59177800', 'post59177800')"> super(Connection, self).__init__(*args, **kwargs2) <span>...</span></li></ol>
<ol start='171' class="post-context" id="post59177800"><li onclick="toggle('pre59177800', 'post59177800')"></li><li onclick="toggle('pre59177800', 'post59177800')"> self.encoders = dict([ (k, v) for k, v in conv.items()</li><li onclick="toggle('pre59177800', 'post59177800')"> if type(k) is not int ])</li><li onclick="toggle('pre59177800', 'post59177800')"> </li><li onclick="toggle('pre59177800', 'post59177800')"> self._server_version = tuple([ int(n) for n in self.get_server_info().split(&#39;.&#39;)[:2] ])</li><li onclick="toggle('pre59177800', 'post59177800')"></li></ol>
</div>
<div class="commands">
<a href="#" onclick="return varToggle(this, '59177800')"><span>&#x25b6;</span> Local vars</a>
</div>
<table class="vars" id="v59177800">
<thead>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>CLIENT</td>
<td class="code"><div>&lt;module &#39;MySQLdb.constants.CLIENT&#39; from &#39;/usr/lib/pymodules/python2.6/MySQLdb/constants/CLIENT.pyc&#39;&gt;</div></td>
</tr>
<tr>
<td>FIELD_TYPE</td>
<td class="code"><div>&lt;module &#39;MySQLdb.constants.FIELD_TYPE&#39; from &#39;/usr/lib/pymodules/python2.6/MySQLdb/constants/FIELD_TYPE.pyc&#39;&gt;</div></td>
</tr>
<tr>
<td>WeakValueDictionary</td>
<td class="code"><div>&lt;class weakref.WeakValueDictionary at 0x1431e90&gt;</div></td>
</tr>
<tr>
<td>args</td>
<td class="code"><div>()</div></td>
</tr>
<tr>
<td>charset</td>
<td class="code"><div>&#39;utf8&#39;</div></td>
</tr>
<tr>
<td>client_flag</td>
<td class="code"><div>196610</div></td>
</tr>
<tr>
<td>client_version</td>
<td class="code"><div>(5, 1)</div></td>
</tr>
<tr>
<td>conv</td>
<td class="code"><div>{0: &lt;function typecast_decimal at 0x1ae3320&gt;,
1: &lt;type &#39;int&#39;&gt;,
2: &lt;type &#39;int&#39;&gt;,
3: &lt;type &#39;long&#39;&gt;,
4: &lt;type &#39;float&#39;&gt;,
5: &lt;type &#39;float&#39;&gt;,
7: &lt;function mysql_timestamp_converter at 0x1af31b8&gt;,
8: &lt;type &#39;long&#39;&gt;,
9: &lt;type &#39;int&#39;&gt;,
10: &lt;function Date_or_None at 0x1af3050&gt;,
11: &lt;function typecast_time at 0x1ae31b8&gt;,
12: &lt;function DateTime_or_None at 0x1aece60&gt;,
13: &lt;type &#39;int&#39;&gt;,
15: [(128, &lt;type &#39;str&#39;&gt;)],
246: &lt;function typecast_decimal at 0x1ae3320&gt;,
248: &lt;function Str2Set at 0x1af3b90&gt;,
252: [(128, &lt;type &#39;str&#39;&gt;)],
253: [(128, &lt;type &#39;str&#39;&gt;)],
254: [(128, &lt;type &#39;str&#39;&gt;)],
&lt;type &#39;datetime.datetime&#39;&gt;: &lt;function DateTime2literal at 0x1af30c8&gt;,
&lt;type &#39;datetime.timedelta&#39;&gt;: &lt;function DateTimeDelta2literal at 0x1af3140&gt;,
&lt;type &#39;bool&#39;&gt;: &lt;function Bool2Str at 0x1af60c8&gt;,
&lt;type &#39;instance&#39;&gt;: &lt;function Instance2Str at 0x1af3ed8&gt;,
&lt;type &#39;float&#39;&gt;: &lt;function Float2Str at 0x1af3d70&gt;,
&lt;type &#39;int&#39;&gt;: &lt;function Thing2Str at 0x1af3c80&gt;,
&lt;type &#39;list&#39;&gt;: &lt;built-in function escape_sequence&gt;,
&lt;type &#39;long&#39;&gt;: &lt;function Thing2Str at 0x1af3c80&gt;,
&lt;type &#39;dict&#39;&gt;: &lt;built-in function escape_dict&gt;,
&lt;type &#39;NoneType&#39;&gt;: &lt;function None2NULL at 0x1af3de8&gt;,
&lt;type &#39;set&#39;&gt;: &lt;function Set2Str at 0x1af3c08&gt;,
&lt;type &#39;str&#39;&gt;: &lt;function Thing2Literal at 0x1af3e60&gt;,
&lt;type &#39;tuple&#39;&gt;: &lt;built-in function escape_sequence&gt;,
&lt;type &#39;object&#39;&gt;: &lt;function Instance2Str at 0x1af3ed8&gt;,
&lt;type &#39;unicode&#39;&gt;: &lt;function Unicode2Str at 0x1af3cf8&gt;,
&lt;type &#39;array.array&#39;&gt;: &lt;function array2Str at 0x1af6050&gt;}</div></td>
</tr>
<tr>
<td>conv2</td>
<td class="code"><div>{0: &lt;function typecast_decimal at 0x1ae3320&gt;,
1: &lt;type &#39;int&#39;&gt;,
2: &lt;type &#39;int&#39;&gt;,
3: &lt;type &#39;long&#39;&gt;,
4: &lt;type &#39;float&#39;&gt;,
5: &lt;type &#39;float&#39;&gt;,
7: &lt;function mysql_timestamp_converter at 0x1af31b8&gt;,
8: &lt;type &#39;long&#39;&gt;,
9: &lt;type &#39;int&#39;&gt;,
10: &lt;function Date_or_None at 0x1af3050&gt;,
11: &lt;function typecast_time at 0x1ae31b8&gt;,
12: &lt;function DateTime_or_None at 0x1aece60&gt;,
13: &lt;type &#39;int&#39;&gt;,
15: [(128, &lt;type &#39;str&#39;&gt;)],
246: &lt;function typecast_decimal at 0x1ae3320&gt;,
248: &lt;function Str2Set at 0x1af3b90&gt;,
252: [(128, &lt;type &#39;str&#39;&gt;)],
253: [(128, &lt;type &#39;str&#39;&gt;)],
254: [(128, &lt;type &#39;str&#39;&gt;)]}</div></td>
</tr>
<tr>
<td>conversions</td>
<td class="code"><div>{0: &lt;class &#39;decimal.Decimal&#39;&gt;,
1: &lt;type &#39;int&#39;&gt;,
2: &lt;type &#39;int&#39;&gt;,
3: &lt;type &#39;long&#39;&gt;,
4: &lt;type &#39;float&#39;&gt;,
5: &lt;type &#39;float&#39;&gt;,
7: &lt;function mysql_timestamp_converter at 0x1af31b8&gt;,
8: &lt;type &#39;long&#39;&gt;,
9: &lt;type &#39;int&#39;&gt;,
10: &lt;function Date_or_None at 0x1af3050&gt;,
11: &lt;function TimeDelta_or_None at 0x1aeced8&gt;,
12: &lt;function DateTime_or_None at 0x1aece60&gt;,
13: &lt;type &#39;int&#39;&gt;,
15: [(128, &lt;type &#39;str&#39;&gt;)],
246: &lt;class &#39;decimal.Decimal&#39;&gt;,
248: &lt;function Str2Set at 0x1af3b90&gt;,
252: [(128, &lt;type &#39;str&#39;&gt;)],
253: [(128, &lt;type &#39;str&#39;&gt;)],
254: [(128, &lt;type &#39;str&#39;&gt;)],
&lt;type &#39;datetime.datetime&#39;&gt;: &lt;function DateTime2literal at 0x1af30c8&gt;,
&lt;type &#39;datetime.timedelta&#39;&gt;: &lt;function DateTimeDelta2literal at 0x1af3140&gt;,
&lt;type &#39;bool&#39;&gt;: &lt;function Bool2Str at 0x1af60c8&gt;,
&lt;type &#39;instance&#39;&gt;: &lt;function Instance2Str at 0x1af3ed8&gt;,
&lt;type &#39;float&#39;&gt;: &lt;function Float2Str at 0x1af3d70&gt;,
&lt;type &#39;int&#39;&gt;: &lt;function Thing2Str at 0x1af3c80&gt;,
&lt;type &#39;list&#39;&gt;: &lt;built-in function escape_sequence&gt;,
&lt;type &#39;long&#39;&gt;: &lt;function Thing2Str at 0x1af3c80&gt;,
&lt;type &#39;dict&#39;&gt;: &lt;built-in function escape_dict&gt;,
&lt;type &#39;NoneType&#39;&gt;: &lt;function None2NULL at 0x1af3de8&gt;,
&lt;type &#39;set&#39;&gt;: &lt;function Set2Str at 0x1af3c08&gt;,
&lt;type &#39;str&#39;&gt;: &lt;function Thing2Literal at 0x1af3e60&gt;,
&lt;type &#39;tuple&#39;&gt;: &lt;built-in function escape_sequence&gt;,
&lt;type &#39;object&#39;&gt;: &lt;function Instance2Str at 0x1af3ed8&gt;,
&lt;type &#39;unicode&#39;&gt;: &lt;function Unicode2Str at 0x1af3cf8&gt;,
&lt;type &#39;array.array&#39;&gt;: &lt;function array2Str at 0x1af6050&gt;}</div></td>
</tr>
<tr>
<td>k</td>
<td class="code"><div>254</div></td>
</tr>
<tr>
<td>kwargs</td>
<td class="code"><div>{&#39;charset&#39;: &#39;utf8&#39;,
&#39;client_flag&#39;: 2,
&#39;conv&#39;: {0: &lt;function typecast_decimal at 0x1ae3320&gt;,
1: &lt;type &#39;int&#39;&gt;,
2: &lt;type &#39;int&#39;&gt;,
3: &lt;type &#39;long&#39;&gt;,
4: &lt;type &#39;float&#39;&gt;,
5: &lt;type &#39;float&#39;&gt;,
7: &lt;function mysql_timestamp_converter at 0x1af31b8&gt;,
8: &lt;type &#39;long&#39;&gt;,
9: &lt;type &#39;int&#39;&gt;,
10: &lt;function Date_or_None at 0x1af3050&gt;,
11: &lt;function typecast_time at 0x1ae31b8&gt;,
12: &lt;function DateTime_or_None at 0x1aece60&gt;,
13: &lt;type &#39;int&#39;&gt;,
15: [(128, &lt;type &#39;str&#39;&gt;)],
246: &lt;function typecast_decimal at 0x1ae3320&gt;,
248: &lt;function Str2Set at 0x1af3b90&gt;,
252: [(128, &lt;type &#39;str&#39;&gt;)],
253: [(128, &lt;type &#39;str&#39;&gt;)],
254: [(128, &lt;type &#39;str&#39;&gt;)],
&lt;type &#39;datetime.datetime&#39;&gt;: &lt;function DateTime2literal at 0x1af30c8&gt;,
&lt;type &#39;datetime.timedelta&#39;&gt;: &lt;function DateTimeDelta2literal at 0x1af3140&gt;,
&lt;type &#39;bool&#39;&gt;: &lt;function Bool2Str at 0x1af60c8&gt;,
&lt;type &#39;instance&#39;&gt;: &lt;function Instance2Str at 0x1af3ed8&gt;,
&lt;type &#39;float&#39;&gt;: &lt;function Float2Str at 0x1af3d70&gt;,
&lt;type &#39;int&#39;&gt;: &lt;function Thing2Str at 0x1af3c80&gt;,
&lt;type &#39;list&#39;&gt;: &lt;built-in function escape_sequence&gt;,
&lt;type &#39;long&#39;&gt;: &lt;function Thing2Str at 0x1af3c80&gt;,
&lt;type &#39;dict&#39;&gt;: &lt;built-in function escape_dict&gt;,
&lt;type &#39;NoneType&#39;&gt;: &lt;function None2NULL at 0x1af3de8&gt;,
&lt;type &#39;set&#39;&gt;: &lt;function Set2Str at 0x1af3c08&gt;,
&lt;type &#39;str&#39;&gt;: &lt;function Thing2Literal at 0x1af3e60&gt;,
&lt;type &#39;tuple&#39;&gt;: &lt;built-in function escape_sequence&gt;,
&lt;type &#39;object&#39;&gt;: &lt;function Instance2Str at 0x1af3ed8&gt;,
&lt;type &#39;unicode&#39;&gt;: &lt;function Unicode2Str at 0x1af3cf8&gt;,
&lt;type &#39;array.array&#39;&gt;: &lt;function array2Str at 0x1af6050&gt;},
&#39;db&#39;: &#39;ingestion&#39;,
&#39;init_command&#39;: &#39;SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED&#39;,
&#39;passwd&#39;: &#39;z0l4&#39;,
&#39;use_unicode&#39;: True,
&#39;user&#39;: &#39;zoladb&#39;}</div></td>
</tr>
<tr>
<td>kwargs2</td>
<td class="code"><div>{&#39;client_flag&#39;: 196610,
&#39;conv&#39;: {0: &lt;function typecast_decimal at 0x1ae3320&gt;,
1: &lt;type &#39;int&#39;&gt;,
2: &lt;type &#39;int&#39;&gt;,
3: &lt;type &#39;long&#39;&gt;,
4: &lt;type &#39;float&#39;&gt;,
5: &lt;type &#39;float&#39;&gt;,
7: &lt;function mysql_timestamp_converter at 0x1af31b8&gt;,
8: &lt;type &#39;long&#39;&gt;,
9: &lt;type &#39;int&#39;&gt;,
10: &lt;function Date_or_None at 0x1af3050&gt;,
11: &lt;function typecast_time at 0x1ae31b8&gt;,
12: &lt;function DateTime_or_None at 0x1aece60&gt;,
13: &lt;type &#39;int&#39;&gt;,
15: [(128, &lt;type &#39;str&#39;&gt;)],
246: &lt;function typecast_decimal at 0x1ae3320&gt;,
248: &lt;function Str2Set at 0x1af3b90&gt;,
252: [(128, &lt;type &#39;str&#39;&gt;)],
253: [(128, &lt;type &#39;str&#39;&gt;)],
254: [(128, &lt;type &#39;str&#39;&gt;)]},
&#39;db&#39;: &#39;ingestion&#39;,
&#39;init_command&#39;: &#39;SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED&#39;,
&#39;passwd&#39;: &#39;z0l4&#39;,
&#39;user&#39;: &#39;zoladb&#39;}</div></td>
</tr>
<tr>
<td>n</td>
<td class="code"><div>&#39;1&#39;</div></td>
</tr>
<tr>
<td>proxy</td>
<td class="code"><div>&lt;built-in function proxy&gt;</div></td>
</tr>
<tr>
<td>self</td>
<td class="code"><div>&lt;_mysql.connection closed at 491ead0&gt;</div></td>
</tr>
<tr>
<td>sql_mode</td>
<td class="code"><div>&#39;&#39;</div></td>
</tr>
<tr>
<td>types</td>
<td class="code"><div>&lt;module &#39;types&#39; from &#39;/usr/lib/python2.6/types.pyc&#39;&gt;</div></td>
</tr>
<tr>
<td>use_unicode</td>
<td class="code"><div>True</div></td>
</tr>
<tr>
<td>v</td>
<td class="code"><div>[(128, &lt;type &#39;str&#39;&gt;)]</div></td>
</tr>
</tbody>
</table>
</li>
</ul>
</div>
<form action="http://dpaste.com/" name="pasteform" id="pasteform" method="post">
<div id="pastebinTraceback" class="pastebin">
<input type="hidden" name="language" value="PythonConsole">
<input type="hidden" name="title" value="OperationalError at /">
<input type="hidden" name="source" value="Django Dpaste Agent">
<input type="hidden" name="poster" value="Django">
<textarea name="content" id="traceback_area" cols="140" rows="25">
Environment:
Request Method: GET
Request URL: http://www.rdio.com/
Django Version: 1.2 beta 1
Python Version: 2.6.4
Installed Applications:
[&#39;rdio.auth&#39;,
&#39;django.contrib.contenttypes&#39;,
&#39;django.contrib.sessions&#39;,
&#39;django.contrib.sites&#39;,
&#39;rdio.accounts&#39;,
&#39;rdio.admin&#39;,
&#39;rdio.library&#39;,
&#39;rdio.network_updates&#39;,
&#39;south&#39;,
&#39;rdio.utils&#39;,
&#39;rdio.utils.carbon&#39;,
&#39;rdio.web.debug_toolbar&#39;,
&#39;rdio.amg&#39;,
&#39;rdio.search&#39;,
&#39;rdio.web.api&#39;,
&#39;rdio.download&#39;,
&#39;rdio.comments&#39;,
&#39;rdio.stats&#39;,
&#39;rdio.payment&#39;,
&#39;rdio.jambase&#39;,
&#39;rdio.emails&#39;,
&#39;rdio.devices&#39;,
&#39;rdio.permanent_recorder&#39;,
&#39;rdio.ce&#39;,
&#39;cpserver&#39;,
&#39;rdio.cache&#39;,
&#39;rdio.offline&#39;,
&#39;rdio.ingestions&#39;,
&#39;rdio.ingestions.orchard&#39;,
&#39;rdio.ingestions.sony&#39;,
&#39;rdio.ingestions.warner&#39;,
&#39;rdio.ingestions.ingrooves&#39;,
&#39;rdio.ingestions.emi&#39;,
&#39;rdio.ingestions.ioda&#39;,
&#39;rdio.ingestions.universal&#39;,
&#39;rdio.ingestions.iris&#39;,
&#39;rdio.reporting&#39;,
&#39;rdio.external.audioscrobbler&#39;,
&#39;rdio.musicbrainz&#39;]
Installed Middleware:
(&#39;rdio.utils.fixups.RequestFixupMiddleware&#39;,
&#39;django.contrib.sessions.middleware.SessionMiddleware&#39;,
&#39;django.middleware.common.CommonMiddleware&#39;,
&#39;rdio.web.middleware.ajaxerror.AjaxErrorMiddleware&#39;,
&#39;rdio.web.middleware.contentlength.ContentLengthMiddleware&#39;,
&#39;rdio.web.middleware.carbon.CarbonMiddleware&#39;,
&#39;rdio.auth.middleware.AuthenticationMiddleware&#39;,
&#39;rdio.utils.perfmon.middleware.PerformanceMonitorMiddleware&#39;,
&#39;rdio.web.admin.middleware.StaticPageFallbackMiddleware&#39;,
&#39;django.middleware.doc.XViewMiddleware&#39;,
&#39;rdio.web.middleware.local.ThreadLocalMiddleware&#39;,
&#39;rdio.web.middleware.local.QuerySetCacheMiddleware&#39;,
&#39;rdio.web.middleware.local.ModelInstanceCacheMiddleware&#39;,
&#39;rdio.web.debug_toolbar.middleware.DebugToolbarMiddleware&#39;,
&#39;rdio.web.middleware.error.ErrorLoggingMiddleware&#39;,
&#39;rdio.web.mobile.mobileredirect.MobileRedirectMiddleware&#39;)
Traceback:
File "/srv/rdio/web/current/contrib/django/core/handlers/base.py" in get_response
100. response = callback(request, *callback_args, **callback_kwargs)
File "./rdio/utils/decorators.py" in _dec
130. response = HttpResponse(render_template(&#39;base.html&#39;, request))
File "./rdio/utils/__init__.py" in render_template
86. return template.render(populated_context)
File "/srv/rdio/web/releases/20100803204233/rdio/web/templates/base.html" in top-level template code
156. {% include &#39;snippets/header/your_links_logged_in.html&#39; %}
File "/srv/rdio/web/releases/20100803204233/rdio/web/templates/snippets/header/your_links_logged_in.html" in top-level template code
23. &lt;li id=&quot;header_link_upgrade&quot; {% if request.user.has_subscription(exclude_trial=True) %}style=&quot;display:none;&quot;{% endif %}&gt;
File "./rdio/auth/models.py" in has_subscription
854. return self.subscription != None
File "/srv/rdio/web/current/contrib/django/db/models/fields/related.py" in __get__
225. db = router.db_for_read(instance.__class__, instance=instance)
File "/srv/rdio/web/current/contrib/django/db/utils.py" in _route_db
126. chosen_db = getattr(router, action)(model, **hints)
File "./rdio/utils/db/routers.py" in db_for_read
58. if self.get_needs_master(model, **hints):
File "./rdio/utils/db/routers.py" in get_needs_master
46. from south.models import MigrationHistory
File "/srv/rdio/web/current/contrib/south/models.py" in &lt;module&gt;
2. from south.db import DEFAULT_DB_ALIAS
File "/srv/rdio/web/current/contrib/south/db/__init__.py" in &lt;module&gt;
61. dbs[alias] = module.DatabaseOperations(alias)
File "/srv/rdio/web/current/contrib/south/db/generic.py" in __init__
62. self.connection_init()
File "/srv/rdio/web/current/contrib/south/db/mysql.py" in connection_init
39. cursor = self._get_connection().cursor()
File "/srv/rdio/web/current/contrib/django/db/backends/__init__.py" in cursor
75. cursor = self._cursor()
File "/srv/rdio/web/current/contrib/django/db/backends/mysql/base.py" in _cursor
294. self.connection = Database.connect(**kwargs)
File "/usr/lib/pymodules/python2.6/MySQLdb/__init__.py" in Connect
81. return Connection(*args, **kwargs)
File "/usr/lib/pymodules/python2.6/MySQLdb/connections.py" in __init__
170. super(Connection, self).__init__(*args, **kwargs2)
Exception Type: OperationalError at /
Exception Value: (2002, &quot;Can&#39;t connect to local MySQL server through socket &#39;/var/run/mysqld/mysqld.sock&#39; (2)&quot;)
</textarea>
<br><br>
<input type="submit" value="Share this traceback on a public Web site">
</div>
</form>
</div>
<div id="requestinfo">
<h2>Request information</h2>
<h3 id="get-info">GET</h3>
<p>No GET data</p>
<h3 id="post-info">POST</h3>
<p>No POST data</p>
<h3 id="files-info">FILES</h3>
<p>No FILES data</p>
<h3 id="cookie-info">COOKIES</h3>
<table class="req">
<thead>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>__utma</td>
<td class="code"><div>&#39;225830489.1968707507.1280841052.1280863702.1280867010.3&#39;</div></td>
</tr>
<tr>
<td>__utmz</td>
<td class="code"><div>&#39;225830489.1280841052.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&#39;</div></td>
</tr>
<tr>
<td>r</td>
<td class="code"><div>&#39;eyJfdSI6IDUyMzAyLCAiX2UiOiAwfQ.AwgnvBbPUybH7sbwMz8m7akJasQ&#39;</div></td>
</tr>
<tr>
<td>__utmb</td>
<td class="code"><div>&#39;225830489.22.10.1280867010&#39;</div></td>
</tr>
<tr>
<td>__utmc</td>
<td class="code"><div>&#39;225830489&#39;</div></td>
</tr>
</tbody>
</table>
<h3 id="meta-info">META</h3>
<table class="req">
<thead>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>CONTENT_LENGTH</td>
<td class="code"><div>&#39;&#39;</div></td>
</tr>
<tr>
<td>CONTENT_TYPE</td>
<td class="code"><div>&#39;&#39;</div></td>
</tr>
<tr>
<td>DOCUMENT_ROOT</td>
<td class="code"><div>&#39;/usr/local/nginx/html&#39;</div></td>
</tr>
<tr>
<td>HTTP_ACCEPT</td>
<td class="code"><div>&#39;application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5&#39;</div></td>
</tr>
<tr>
<td>HTTP_ACCEPT_CHARSET</td>
<td class="code"><div>&#39;ISO-8859-1,utf-8;q=0.7,*;q=0.3&#39;</div></td>
</tr>
<tr>
<td>HTTP_ACCEPT_ENCODING</td>
<td class="code"><div>&#39;gzip,deflate,sdch&#39;</div></td>
</tr>
<tr>
<td>HTTP_ACCEPT_LANGUAGE</td>
<td class="code"><div>&#39;en-US,en;q=0.8&#39;</div></td>
</tr>
<tr>
<td>HTTP_CACHE_CONTROL</td>
<td class="code"><div>&#39;max-age=0&#39;</div></td>
</tr>
<tr>
<td>HTTP_CONNECTION</td>
<td class="code"><div>&#39;close&#39;</div></td>
</tr>
<tr>
<td>HTTP_COOKIE</td>
<td class="code"><div>&#39;__utmz=225830489.1280841052.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); r=eyJfdSI6IDUyMzAyLCAiX2UiOiAwfQ.AwgnvBbPUybH7sbwMz8m7akJasQ; __utma=225830489.1968707507.1280841052.1280863702.1280867010.3; __utmc=225830489; __utmb=225830489.22.10.1280867010&#39;</div></td>
</tr>
<tr>
<td>HTTP_HOST</td>
<td class="code"><div>&#39;www.rdio.com&#39;</div></td>
</tr>
<tr>
<td>HTTP_USER_AGENT</td>
<td class="code"><div>&#39;Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.125 Safari/533.4&#39;</div></td>
</tr>
<tr>
<td>HTTP_X_FORWARDED_FOR</td>
<td class="code"><div>&#39;199.71.183.2&#39;</div></td>
</tr>
<tr>
<td>HTTP_X_SCHEME</td>
<td class="code"><div>&#39;http&#39;</div></td>
</tr>
<tr>
<td>PATH_INFO</td>
<td class="code"><div>u&#39;/&#39;</div></td>
</tr>
<tr>
<td>QUERY_STRING</td>
<td class="code"><div>&#39;&#39;</div></td>
</tr>
<tr>
<td>REMOTE_ADDR</td>
<td class="code"><div>&#39;10.10.10.103&#39;</div></td>
</tr>
<tr>
<td>REMOTE_PORT</td>
<td class="code"><div>&#39;52238&#39;</div></td>
</tr>
<tr>
<td>REQUEST_METHOD</td>
<td class="code"><div>&#39;GET&#39;</div></td>
</tr>
<tr>
<td>REQUEST_URI</td>
<td class="code"><div>&#39;//&#39;</div></td>
</tr>
<tr>
<td>SCRIPT_NAME</td>
<td class="code"><div>u&#39;&#39;</div></td>
</tr>
<tr>
<td>SERVER_NAME</td>
<td class="code"><div>&#39;srv-101-15&#39;</div></td>
</tr>
<tr>
<td>SERVER_PORT</td>
<td class="code"><div>&#39;80&#39;</div></td>
</tr>
<tr>
<td>SERVER_PROTOCOL</td>
<td class="code"><div>&#39;HTTP/1.0&#39;</div></td>
</tr>
<tr>
<td>wsgi.errors</td>
<td class="code"><div>&lt;open file &#39;wsgi_input&#39;, mode &#39;w&#39; at 0x382b8b0&gt;</div></td>
</tr>
<tr>
<td>wsgi.file_wrapper</td>
<td class="code"><div>&lt;built-in function uwsgi_sendfile&gt;</div></td>
</tr>
<tr>
<td>wsgi.input</td>
<td class="code"><div>&lt;open file &#39;wsgi_input&#39;, mode &#39;r&#39; at 0x39fbf10&gt;</div></td>
</tr>
<tr>
<td>wsgi.multiprocess</td>
<td class="code"><div>True</div></td>
</tr>
<tr>
<td>wsgi.multithread</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>wsgi.run_once</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>wsgi.url_scheme</td>
<td class="code"><div>&#39;http&#39;</div></td>
</tr>
<tr>
<td>wsgi.version</td>
<td class="code"><div>(1, 0)</div></td>
</tr>
</tbody>
</table>
<h3 id="settings-info">Settings</h3>
<h4>Using settings module <code>rdio.settings</code></h4>
<table class="req">
<thead>
<tr>
<th>Setting</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>ABSOLUTE_URL_OVERRIDES</td>
<td class="code"><div>{}</div></td>
</tr>
<tr>
<td>ADMINS</td>
<td class="code"><div>()</div></td>
</tr>
<tr>
<td>ADMIN_FOR</td>
<td class="code"><div>()</div></td>
</tr>
<tr>
<td>ADMIN_MEDIA_PREFIX</td>
<td class="code"><div>&#39;/media/media/&#39;</div></td>
</tr>
<tr>
<td>ALLOWED_INCLUDE_ROOTS</td>
<td class="code"><div>()</div></td>
</tr>
<tr>
<td>ALLOW_ROBOTS</td>
<td class="code"><div>True</div></td>
</tr>
<tr>
<td>ALLOW_SIGNUP</td>
<td class="code"><div>True</div></td>
</tr>
<tr>
<td>APPEND_SLASH</td>
<td class="code"><div>True</div></td>
</tr>
<tr>
<td>AUTHENTICATION_BACKEND</td>
<td class="code"><div>&#39;rdio.auth.backends.ModelBackend&#39;</div></td>
</tr>
<tr>
<td>AUTHENTICATION_BACKENDS</td>
<td class="code"><div>(&#39;django.contrib.auth.backends.ModelBackend&#39;,)</div></td>
</tr>
<tr>
<td>BANNED_IPS</td>
<td class="code"><div>()</div></td>
</tr>
<tr>
<td>BASE_MEDIA_URL</td>
<td class="code"><div>&#39;127.0.0.1:8000/media/&#39;</div></td>
</tr>
<tr>
<td>BASE_URL</td>
<td class="code"><div>&#39;127.0.0.1:8000&#39;</div></td>
</tr>
<tr>
<td>BROKER_HOST</td>
<td class="code"><div>&#39;localhost&#39;</div></td>
</tr>
<tr>
<td>BROKER_MAX_RETRIES</td>
<td class="code"><div>5</div></td>
</tr>
<tr>
<td>BROKER_PASSWORD</td>
<td class="code"><div>&#39;********************&#39;</div></td>
</tr>
<tr>
<td>BROKER_PORT</td>
<td class="code"><div>5672</div></td>
</tr>
<tr>
<td>BROKER_RETRY_SLEEP_SECONDS</td>
<td class="code"><div>5</div></td>
</tr>
<tr>
<td>BROKER_USER</td>
<td class="code"><div>&#39;devrdiomq&#39;</div></td>
</tr>
<tr>
<td>BROKER_VHOST</td>
<td class="code"><div>&#39;dev_rdio&#39;</div></td>
</tr>
<tr>
<td>CACHE_BACKEND</td>
<td class="code"><div>&#39;locmem://&#39;</div></td>
</tr>
<tr>
<td>CACHE_MIDDLEWARE_KEY_PREFIX</td>
<td class="code"><div>&#39;&#39;</div></td>
</tr>
<tr>
<td>CACHE_MIDDLEWARE_SECONDS</td>
<td class="code"><div>600</div></td>
</tr>
<tr>
<td>CACHE_MODELS_BY_ID_FOR_REQUEST</td>
<td class="code"><div>True</div></td>
</tr>
<tr>
<td>CACHE_QUERY_SETS_FOR_REQUEST</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>CAN_DROP_DATABASES</td>
<td class="code"><div>True</div></td>
</tr>
<tr>
<td>CAN_USE_PROD_MEDIA</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>CARBON_SERVER</td>
<td class="code"><div>&#39;localhost&#39;</div></td>
</tr>
<tr>
<td>CARROT_BACKEND</td>
<td class="code"><div>&#39;amqplib&#39;</div></td>
</tr>
<tr>
<td>CASSANDRA_HOSTS</td>
<td class="code"><div>[&#39;10.200.1.39:9160&#39;]</div></td>
</tr>
<tr>
<td>COMMAND_EMAIL_LIST</td>
<td class="code"><div>&#39;debugspew@rd.io&#39;</div></td>
</tr>
<tr>
<td>COMMENTS_ALLOW_PROFANITIES</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>COMMENTS_BANNED_USERS_GROUP</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>COMMENTS_FIRST_FEW</td>
<td class="code"><div>0</div></td>
</tr>
<tr>
<td>COMMENTS_MODERATORS_GROUP</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>COMMENTS_SKETCHY_USERS_GROUP</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>COUNTRY_BASED_INVITES_ALLOWED</td>
<td class="code"><div>[&#39;US&#39;, &#39;CA&#39;]</div></td>
</tr>
<tr>
<td>COUNTRY_BASED_INVITE_BLOCKING</td>
<td class="code"><div>True</div></td>
</tr>
<tr>
<td>CSRF_COOKIE_DOMAIN</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>CSRF_COOKIE_NAME</td>
<td class="code"><div>&#39;csrftoken&#39;</div></td>
</tr>
<tr>
<td>CSRF_FAILURE_VIEW</td>
<td class="code"><div>&#39;django.views.csrf.csrf_failure&#39;</div></td>
</tr>
<tr>
<td>CYBERSOURCE_DEFAULT_CURRENCY</td>
<td class="code"><div>&#39;USD&#39;</div></td>
</tr>
<tr>
<td>CYBERSOURCE_MERCHANT_ID</td>
<td class="code"><div>&#39;pulser&#39;</div></td>
</tr>
<tr>
<td>CYBERSOURCE_PROCESSOR_URL</td>
<td class="code"><div>&#39;https://ics2wstest.ic3.com/commerce/1.x/transactionProcessor/CyberSourceTransaction_1.26.wsdl&#39;</div></td>
</tr>
<tr>
<td>CYBERSOURCE_TRANSACTION_KEY</td>
<td class="code"><div>&#39;0W1c8sD3Y7q8BDbSJ+0nsVVBq+PWN8Dq2nwsQ+A59tSxrMVPCd/IJlGzviieMk/WJOAQGdyvT6bb0496RuzWN9PnjdiMx5vvAsI4KXDv4tY5PBWwTVcsmfrQerbZdaUj+hGvNgE7pAov/0013VooZ7uJ5GKULHSml/TXJwZjfIEYX8i0U/RlUaapUQQn7SexVUGr49Y3wOrafCxD4Dn21LGsxU8J38gmUbO+KJ4yT9Yk4BAZ3K9PptvTj3pG7NY30+eN2IzHm+8CwjgpcO/i1jk8FbBNVyyZ+tB6ttl1pSP6Ea82ATukCi//TTXdWihnu4nkYpQsdKaX9NcnBmN8gQ==&#39;</div></td>
</tr>
<tr>
<td>DATABASES</td>
<td class="code"><div>{&#39;INGESTION_MASTER&#39;: {&#39;ENGINE&#39;: &#39;django.db.backends.mysql&#39;,
&#39;HOST&#39;: &#39;&#39;,
&#39;NAME&#39;: &#39;ingestion&#39;,
&#39;OPTIONS&#39;: {&#39;init_command&#39;: &#39;SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED&#39;},
&#39;PASSWORD&#39;: &#39;********************&#39;,
&#39;PORT&#39;: &#39;&#39;,
&#39;STORAGE_ENGINE&#39;: &#39;InnoDB&#39;,
&#39;TEST_CHARSET&#39;: None,
&#39;TEST_COLLATION&#39;: None,
&#39;TEST_MIRROR&#39;: None,
&#39;TEST_NAME&#39;: None,
&#39;TIME_ZONE&#39;: &#39;America/Los_Angeles&#39;,
&#39;USER&#39;: &#39;zoladb&#39;},
&#39;INGESTION_SLAVE&#39;: {&#39;ENGINE&#39;: &#39;django.db.backends.mysql&#39;,
&#39;HOST&#39;: &#39;&#39;,
&#39;NAME&#39;: &#39;ingestion&#39;,
&#39;OPTIONS&#39;: {&#39;init_command&#39;: &#39;SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED&#39;},
&#39;PASSWORD&#39;: &#39;********************&#39;,
&#39;PORT&#39;: &#39;&#39;,
&#39;STORAGE_ENGINE&#39;: &#39;InnoDB&#39;,
&#39;TEST_CHARSET&#39;: None,
&#39;TEST_COLLATION&#39;: None,
&#39;TEST_MIRROR&#39;: &#39;INGESTION_MASTER&#39;,
&#39;TEST_NAME&#39;: None,
&#39;TIME_ZONE&#39;: &#39;America/Los_Angeles&#39;,
&#39;USER&#39;: &#39;zoladb&#39;},
&#39;default&#39;: {&#39;ENGINE&#39;: &#39;django.db.backends.mysql&#39;,
&#39;HOST&#39;: &#39;10.10.60.43&#39;,
&#39;NAME&#39;: &#39;rdio&#39;,
&#39;OPTIONS&#39;: {&#39;init_command&#39;: &#39;SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED&#39;},
&#39;PASSWORD&#39;: &#39;********************&#39;,
&#39;PORT&#39;: &#39;3306&#39;,
&#39;TEST_CHARSET&#39;: None,
&#39;TEST_COLLATION&#39;: None,
&#39;TEST_MIRROR&#39;: None,
&#39;TEST_NAME&#39;: None,
&#39;TIME_ZONE&#39;: &#39;America/Los_Angeles&#39;,
&#39;USER&#39;: &#39;rdiodb&#39;},
&#39;default_0&#39;: {&#39;ENGINE&#39;: &#39;django.db.backends.mysql&#39;,
&#39;HOST&#39;: &#39;10.10.60.43&#39;,
&#39;NAME&#39;: &#39;rdio&#39;,
&#39;OPTIONS&#39;: {&#39;init_command&#39;: &#39;SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED&#39;},
&#39;PASSWORD&#39;: &#39;********************&#39;,
&#39;PORT&#39;: &#39;3306&#39;,
&#39;TEST_CHARSET&#39;: None,
&#39;TEST_COLLATION&#39;: None,
&#39;TEST_MIRROR&#39;: &#39;default&#39;,
&#39;TEST_NAME&#39;: None,
&#39;TIME_ZONE&#39;: &#39;America/Los_Angeles&#39;,
&#39;USER&#39;: &#39;rdiodb&#39;}}</div></td>
</tr>
<tr>
<td>DATABASE_ENGINE</td>
<td class="code"><div>&#39;&#39;</div></td>
</tr>
<tr>
<td>DATABASE_HOST</td>
<td class="code"><div>&#39;&#39;</div></td>
</tr>
<tr>
<td>DATABASE_NAME</td>
<td class="code"><div>&#39;&#39;</div></td>
</tr>
<tr>
<td>DATABASE_OPTIONS</td>
<td class="code"><div>{}</div></td>
</tr>
<tr>
<td>DATABASE_PASSWORD</td>
<td class="code"><div>&#39;********************&#39;</div></td>
</tr>
<tr>
<td>DATABASE_PORT</td>
<td class="code"><div>&#39;&#39;</div></td>
</tr>
<tr>
<td>DATABASE_ROUTERS</td>
<td class="code"><div>[&#39;rdio.utils.db.routers.IngestionRouter&#39;, &#39;rdio.utils.db.routers.SlaveRouter&#39;]</div></td>
</tr>
<tr>
<td>DATABASE_USER</td>
<td class="code"><div>&#39;zoladb&#39;</div></td>
</tr>
<tr>
<td>DATETIME_FORMAT</td>
<td class="code"><div>&#39;N j, Y, P&#39;</div></td>
</tr>
<tr>
<td>DATETIME_INPUT_FORMATS</td>
<td class="code"><div>(&#39;%Y-%m-%d %H:%M:%S&#39;,
&#39;%Y-%m-%d %H:%M&#39;,
&#39;%Y-%m-%d&#39;,
&#39;%m/%d/%Y %H:%M:%S&#39;,
&#39;%m/%d/%Y %H:%M&#39;,
&#39;%m/%d/%Y&#39;,
&#39;%m/%d/%y %H:%M:%S&#39;,
&#39;%m/%d/%y %H:%M&#39;,
&#39;%m/%d/%y&#39;)</div></td>
</tr>
<tr>
<td>DATE_FORMAT</td>
<td class="code"><div>&#39;N j, Y&#39;</div></td>
</tr>
<tr>
<td>DATE_INPUT_FORMATS</td>
<td class="code"><div>(&#39;%Y-%m-%d&#39;,
&#39;%m/%d/%Y&#39;,
&#39;%m/%d/%y&#39;,
&#39;%b %d %Y&#39;,
&#39;%b %d, %Y&#39;,
&#39;%d %b %Y&#39;,
&#39;%d %b, %Y&#39;,
&#39;%B %d %Y&#39;,
&#39;%B %d, %Y&#39;,
&#39;%d %B %Y&#39;,
&#39;%d %B, %Y&#39;)</div></td>
</tr>
<tr>
<td>DB_COUNT_UPDATER_ITEM_SYNC_INTERVAL_SECONDS</td>
<td class="code"><div>25</div></td>
</tr>
<tr>
<td>DB_COUNT_UPDATER_USER_SYNC_INTERVAL_SECONDS</td>
<td class="code"><div>15</div></td>
</tr>
<tr>
<td>DB_OPTIONS</td>
<td class="code"><div>{&#39;init_command&#39;: &#39;SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED&#39;}</div></td>
</tr>
<tr>
<td>DEBUG</td>
<td class="code"><div>True</div></td>
</tr>
<tr>
<td>DEBUG_AMQPLIB</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>DEBUG_PROPAGATE_EXCEPTIONS</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>DECIMAL_SEPARATOR</td>
<td class="code"><div>&#39;.&#39;</div></td>
</tr>
<tr>
<td>DEFAULT_CHARSET</td>
<td class="code"><div>&#39;utf-8&#39;</div></td>
</tr>
<tr>
<td>DEFAULT_CONTENT_TYPE</td>
<td class="code"><div>&#39;text/html&#39;</div></td>
</tr>
<tr>
<td>DEFAULT_FILE_STORAGE</td>
<td class="code"><div>&#39;django.core.files.storage.FileSystemStorage&#39;</div></td>
</tr>
<tr>
<td>DEFAULT_FROM_EMAIL</td>
<td class="code"><div>&#39;webmaster@localhost&#39;</div></td>
</tr>
<tr>
<td>DEFAULT_INDEX_TABLESPACE</td>
<td class="code"><div>&#39;&#39;</div></td>
</tr>
<tr>
<td>DEFAULT_TABLESPACE</td>
<td class="code"><div>&#39;&#39;</div></td>
</tr>
<tr>
<td>DISALLOWED_USER_AGENTS</td>
<td class="code"><div>()</div></td>
</tr>
<tr>
<td>DOWNLOADS_SERVER_URL</td>
<td class="code"><div>&#39;http://downloads.aninternetstartup.com&#39;</div></td>
</tr>
<tr>
<td>DOWNLOAD_REQUEST_TTL_SECONDS</td>
<td class="code"><div>15</div></td>
</tr>
<tr>
<td>DO_NETWORK_UPDATES</td>
<td class="code"><div>True</div></td>
</tr>
<tr>
<td>EMAIL_BACKEND</td>
<td class="code"><div>&#39;django.core.mail.backends.smtp.EmailBackend&#39;</div></td>
</tr>
<tr>
<td>EMAIL_HOST</td>
<td class="code"><div>&#39;localhost&#39;</div></td>
</tr>
<tr>
<td>EMAIL_HOST_PASSWORD</td>
<td class="code"><div>&#39;********************&#39;</div></td>
</tr>
<tr>
<td>EMAIL_HOST_USER</td>
<td class="code"><div>&#39;&#39;</div></td>
</tr>
<tr>
<td>EMAIL_PORT</td>
<td class="code"><div>&#39;25&#39;</div></td>
</tr>
<tr>
<td>EMAIL_SUBJECT_PREFIX</td>
<td class="code"><div>&#39;[Django] &#39;</div></td>
</tr>
<tr>
<td>EMAIL_USE_TLS</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>EVERY_BURGER_CONNECTION_POOLS</td>
<td class="code"><div>{&#39;cassandra&#39;: 500, &#39;mysql&#39;: 15, &#39;redis&#39;: 500}</div></td>
</tr>
<tr>
<td>EVERY_BURGER_LOG_FILE</td>
<td class="code"><div>&#39;/tmp/everyburger_log&#39;</div></td>
</tr>
<tr>
<td>EVERY_BURGER_NODES</td>
<td class="code"><div>{&#39;everyburger&#39;: {&#39;designation&#39;: &#39;everyburger_king&#39;,
&#39;host&#39;: &#39;127.0.0.1&#39;,
&#39;service_port&#39;: 11771}}</div></td>
</tr>
<tr>
<td>EVERY_BURGER_READ_CASSANDRA_DIRECTLY</td>
<td class="code"><div>True</div></td>
</tr>
<tr>
<td>EVERY_BURGER_SYSLOG_HOST</td>
<td class="code"><div>&#39;localhost&#39;</div></td>
</tr>
<tr>
<td>EVERY_BURGER_SYSLOG_PORT</td>
<td class="code"><div>514</div></td>
</tr>
<tr>
<td>FACEBOOK_API_KEY</td>
<td class="code"><div>&#39;fce0cf9d3cc953a5da72eafd4a93c0f7&#39;</div></td>
</tr>
<tr>
<td>FACEBOOK_CLIENT_ID</td>
<td class="code"><div>&#39;124639620883758&#39;</div></td>
</tr>
<tr>
<td>FACEBOOK_SECRET</td>
<td class="code"><div>&#39;********************&#39;</div></td>
</tr>
<tr>
<td>FAKE_CYBERSOURCE_CALLS</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>FILE_CHARSET</td>
<td class="code"><div>&#39;utf-8&#39;</div></td>
</tr>
<tr>
<td>FILE_UPLOAD_HANDLERS</td>
<td class="code"><div>(&#39;django.core.files.uploadhandler.MemoryFileUploadHandler&#39;,
&#39;django.core.files.uploadhandler.TemporaryFileUploadHandler&#39;)</div></td>
</tr>
<tr>
<td>FILE_UPLOAD_MAX_MEMORY_SIZE</td>
<td class="code"><div>2621440</div></td>
</tr>
<tr>
<td>FILE_UPLOAD_PERMISSIONS</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>FILE_UPLOAD_TEMP_DIR</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>FIRST_DAY_OF_WEEK</td>
<td class="code"><div>0</div></td>
</tr>
<tr>
<td>FIXTURE_DIRS</td>
<td class="code"><div>()</div></td>
</tr>
<tr>
<td>FORCE_SCRIPT_NAME</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>FORMAT_MODULE_PATH</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>IGNORABLE_404_ENDS</td>
<td class="code"><div>(&#39;mail.pl&#39;, &#39;mailform.pl&#39;, &#39;mail.cgi&#39;, &#39;mailform.cgi&#39;, &#39;favicon.ico&#39;, &#39;.php&#39;)</div></td>
</tr>
<tr>
<td>IGNORABLE_404_STARTS</td>
<td class="code"><div>(&#39;/cgi-bin/&#39;, &#39;/_vti_bin&#39;, &#39;/_vti_inf&#39;)</div></td>
</tr>
<tr>
<td>IMAGESERVER_ADDRESS</td>
<td class="code"><div>&#39;http://www.rdio.com/_is/&#39;</div></td>
</tr>
<tr>
<td>INGESTION_CONDUCTOR_HOST</td>
<td class="code"><div>&#39;localhost&#39;</div></td>
</tr>
<tr>
<td>INGESTION_CONDUCTOR_PORT</td>
<td class="code"><div>10031</div></td>
</tr>
<tr>
<td>INGESTION_DATA_HOST</td>
<td class="code"><div>&#39;localhost&#39;</div></td>
</tr>
<tr>
<td>INGESTION_DATA_PORT</td>
<td class="code"><div>14325</div></td>
</tr>
<tr>
<td>INGESTION_MASTER</td>
<td class="code"><div>{&#39;ENGINE&#39;: &#39;django.db.backends.mysql&#39;,
&#39;HOST&#39;: &#39;&#39;,
&#39;NAME&#39;: &#39;ingestion&#39;,
&#39;OPTIONS&#39;: {&#39;init_command&#39;: &#39;SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED&#39;},
&#39;PASSWORD&#39;: &#39;********************&#39;,
&#39;PORT&#39;: &#39;&#39;,
&#39;STORAGE_ENGINE&#39;: &#39;InnoDB&#39;,
&#39;TEST_CHARSET&#39;: None,
&#39;TEST_COLLATION&#39;: None,
&#39;TEST_MIRROR&#39;: None,
&#39;TEST_NAME&#39;: None,
&#39;TIME_ZONE&#39;: &#39;America/Los_Angeles&#39;,
&#39;USER&#39;: &#39;zoladb&#39;}</div></td>
</tr>
<tr>
<td>INGESTION_SLAVE</td>
<td class="code"><div>{&#39;ENGINE&#39;: &#39;django.db.backends.mysql&#39;,
&#39;HOST&#39;: &#39;&#39;,
&#39;NAME&#39;: &#39;ingestion&#39;,
&#39;OPTIONS&#39;: {&#39;init_command&#39;: &#39;SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED&#39;},
&#39;PASSWORD&#39;: &#39;********************&#39;,
&#39;PORT&#39;: &#39;&#39;,
&#39;STORAGE_ENGINE&#39;: &#39;InnoDB&#39;,
&#39;TEST_CHARSET&#39;: None,
&#39;TEST_COLLATION&#39;: None,
&#39;TEST_MIRROR&#39;: &#39;INGESTION_MASTER&#39;,
&#39;TEST_NAME&#39;: None,
&#39;TIME_ZONE&#39;: &#39;America/Los_Angeles&#39;,
&#39;USER&#39;: &#39;zoladb&#39;}</div></td>
</tr>
<tr>
<td>INIT_MESSAGEBUS</td>
<td class="code"><div>True</div></td>
</tr>
<tr>
<td>INSTALLED_APPS</td>
<td class="code"><div>[&#39;rdio.auth&#39;,
&#39;django.contrib.contenttypes&#39;,
&#39;django.contrib.sessions&#39;,
&#39;django.contrib.sites&#39;,
&#39;rdio.accounts&#39;,
&#39;rdio.admin&#39;,
&#39;rdio.library&#39;,
&#39;rdio.network_updates&#39;,
&#39;south&#39;,
&#39;rdio.utils&#39;,
&#39;rdio.utils.carbon&#39;,
&#39;rdio.web.debug_toolbar&#39;,
&#39;rdio.amg&#39;,
&#39;rdio.search&#39;,
&#39;rdio.web.api&#39;,
&#39;rdio.download&#39;,
&#39;rdio.comments&#39;,
&#39;rdio.stats&#39;,
&#39;rdio.payment&#39;,
&#39;rdio.jambase&#39;,
&#39;rdio.emails&#39;,
&#39;rdio.devices&#39;,
&#39;rdio.permanent_recorder&#39;,
&#39;rdio.ce&#39;,
&#39;cpserver&#39;,
&#39;rdio.cache&#39;,
&#39;rdio.offline&#39;,
&#39;rdio.ingestions&#39;,
&#39;rdio.ingestions.orchard&#39;,
&#39;rdio.ingestions.sony&#39;,
&#39;rdio.ingestions.warner&#39;,
&#39;rdio.ingestions.ingrooves&#39;,
&#39;rdio.ingestions.emi&#39;,
&#39;rdio.ingestions.ioda&#39;,
&#39;rdio.ingestions.universal&#39;,
&#39;rdio.ingestions.iris&#39;,
&#39;rdio.reporting&#39;,
&#39;rdio.external.audioscrobbler&#39;,
&#39;rdio.musicbrainz&#39;]</div></td>
</tr>
<tr>
<td>INTERNAL_IPS</td>
<td class="code"><div>(&#39;127.0.0.1&#39;, &#39;67.170.208.232&#39;)</div></td>
</tr>
<tr>
<td>IN_PROD</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>IS_WEB</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>LANGUAGES</td>
<td class="code"><div>((&#39;ar&#39;, &#39;Arabic&#39;),
(&#39;bg&#39;, &#39;Bulgarian&#39;),
(&#39;bn&#39;, &#39;Bengali&#39;),
(&#39;bs&#39;, &#39;Bosnian&#39;),
(&#39;ca&#39;, &#39;Catalan&#39;),
(&#39;cs&#39;, &#39;Czech&#39;),
(&#39;cy&#39;, &#39;Welsh&#39;),
(&#39;da&#39;, &#39;Danish&#39;),
(&#39;de&#39;, &#39;German&#39;),
(&#39;el&#39;, &#39;Greek&#39;),
(&#39;en&#39;, &#39;English&#39;),
(&#39;es&#39;, &#39;Spanish&#39;),
(&#39;es-ar&#39;, &#39;Argentinean Spanish&#39;),
(&#39;et&#39;, &#39;Estonian&#39;),
(&#39;eu&#39;, &#39;Basque&#39;),
(&#39;fa&#39;, &#39;Persian&#39;),
(&#39;fi&#39;, &#39;Finnish&#39;),
(&#39;fr&#39;, &#39;French&#39;),
(&#39;fy-nl&#39;, &#39;Frisian&#39;),
(&#39;ga&#39;, &#39;Irish&#39;),
(&#39;gl&#39;, &#39;Galician&#39;),
(&#39;he&#39;, &#39;Hebrew&#39;),
(&#39;hi&#39;, &#39;Hindi&#39;),
(&#39;hr&#39;, &#39;Croatian&#39;),
(&#39;hu&#39;, &#39;Hungarian&#39;),
(&#39;is&#39;, &#39;Icelandic&#39;),
(&#39;it&#39;, &#39;Italian&#39;),
(&#39;ja&#39;, &#39;Japanese&#39;),
(&#39;ka&#39;, &#39;Georgian&#39;),
(&#39;km&#39;, &#39;Khmer&#39;),
(&#39;kn&#39;, &#39;Kannada&#39;),
(&#39;ko&#39;, &#39;Korean&#39;),
(&#39;lt&#39;, &#39;Lithuanian&#39;),
(&#39;lv&#39;, &#39;Latvian&#39;),
(&#39;mk&#39;, &#39;Macedonian&#39;),
(&#39;nl&#39;, &#39;Dutch&#39;),
(&#39;no&#39;, &#39;Norwegian&#39;),
(&#39;pl&#39;, &#39;Polish&#39;),
(&#39;pt&#39;, &#39;Portuguese&#39;),
(&#39;pt-br&#39;, &#39;Brazilian Portuguese&#39;),
(&#39;ro&#39;, &#39;Romanian&#39;),
(&#39;ru&#39;, &#39;Russian&#39;),
(&#39;sk&#39;, &#39;Slovak&#39;),
(&#39;sl&#39;, &#39;Slovenian&#39;),
(&#39;sq&#39;, &#39;Albanian&#39;),
(&#39;sr&#39;, &#39;Serbian&#39;),
(&#39;sr-latn&#39;, &#39;Serbian Latin&#39;),
(&#39;sv&#39;, &#39;Swedish&#39;),
(&#39;ta&#39;, &#39;Tamil&#39;),
(&#39;te&#39;, &#39;Telugu&#39;),
(&#39;th&#39;, &#39;Thai&#39;),
(&#39;tr&#39;, &#39;Turkish&#39;),
(&#39;uk&#39;, &#39;Ukrainian&#39;),
(&#39;vi&#39;, &#39;Vietnamese&#39;),
(&#39;zh-cn&#39;, &#39;Simplified Chinese&#39;),
(&#39;zh-tw&#39;, &#39;Traditional Chinese&#39;))</div></td>
</tr>
<tr>
<td>LANGUAGES_BIDI</td>
<td class="code"><div>(&#39;he&#39;, &#39;ar&#39;, &#39;fa&#39;)</div></td>
</tr>
<tr>
<td>LANGUAGE_CODE</td>
<td class="code"><div>&#39;en-us&#39;</div></td>
</tr>
<tr>
<td>LANGUAGE_COOKIE_NAME</td>
<td class="code"><div>&#39;django_language&#39;</div></td>
</tr>
<tr>
<td>LASTFM_API_KEY</td>
<td class="code"><div>&#39;8f8401f602138394a93ec7dd2f8d6d0c&#39;</div></td>
</tr>
<tr>
<td>LASTFM_SECRET</td>
<td class="code"><div>&#39;********************&#39;</div></td>
</tr>
<tr>
<td>LIMITED_INVITES</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>LOCALE_PATHS</td>
<td class="code"><div>()</div></td>
</tr>
<tr>
<td>LOCATION_POSTAL_PATH</td>
<td class="code"><div>&#39;/usr/share/GeoIP&#39;</div></td>
</tr>
<tr>
<td>LOGGING_FILE</td>
<td class="code"><div>&#39;logging.console&#39;</div></td>
</tr>
<tr>
<td>LOGIN_REDIRECT_URL</td>
<td class="code"><div>&#39;/accounts/profile/&#39;</div></td>
</tr>
<tr>
<td>LOGIN_URL</td>
<td class="code"><div>&#39;/accounts/login/&#39;</div></td>
</tr>
<tr>
<td>LOGOUT_URL</td>
<td class="code"><div>&#39;/accounts/logout/&#39;</div></td>
</tr>
<tr>
<td>MANAGERS</td>
<td class="code"><div>()</div></td>
</tr>
<tr>
<td>MEDIA_ROOT</td>
<td class="code"><div>&#39;/srv/rdio/web/releases/20100803204233/rdio/web/media/&#39;</div></td>
</tr>
<tr>
<td>MEDIA_URL</td>
<td class="code"><div>&#39;/media/&#39;</div></td>
</tr>
<tr>
<td>MEMCACHED_SERVERS</td>
<td class="code"><div>[(&#39;10.200.1.39&#39;, 11212)]</div></td>
</tr>
<tr>
<td>MESSAGE_STORAGE</td>
<td class="code"><div>&#39;django.contrib.messages.storage.user_messages.LegacyFallbackStorage&#39;</div></td>
</tr>
<tr>
<td>MIDDLEWARE_CLASSES</td>
<td class="code"><div>(&#39;rdio.utils.fixups.RequestFixupMiddleware&#39;,
&#39;django.contrib.sessions.middleware.SessionMiddleware&#39;,
&#39;django.middleware.common.CommonMiddleware&#39;,
&#39;rdio.web.middleware.ajaxerror.AjaxErrorMiddleware&#39;,
&#39;rdio.web.middleware.contentlength.ContentLengthMiddleware&#39;,
&#39;rdio.web.middleware.carbon.CarbonMiddleware&#39;,
&#39;rdio.auth.middleware.AuthenticationMiddleware&#39;,
&#39;rdio.utils.perfmon.middleware.PerformanceMonitorMiddleware&#39;,
&#39;rdio.web.admin.middleware.StaticPageFallbackMiddleware&#39;,
&#39;django.middleware.doc.XViewMiddleware&#39;,
&#39;rdio.web.middleware.local.ThreadLocalMiddleware&#39;,
&#39;rdio.web.middleware.local.QuerySetCacheMiddleware&#39;,
&#39;rdio.web.middleware.local.ModelInstanceCacheMiddleware&#39;,
&#39;rdio.web.debug_toolbar.middleware.DebugToolbarMiddleware&#39;,
&#39;rdio.web.middleware.error.ErrorLoggingMiddleware&#39;,
&#39;rdio.web.mobile.mobileredirect.MobileRedirectMiddleware&#39;)</div></td>
</tr>
<tr>
<td>MONGO_MASTER</td>
<td class="code"><div>(&#39;10.200.1.39&#39;, 27017)</div></td>
</tr>
<tr>
<td>MONGO_SLAVES</td>
<td class="code"><div>[]</div></td>
</tr>
<tr>
<td>MONTH_DAY_FORMAT</td>
<td class="code"><div>&#39;F j&#39;</div></td>
</tr>
<tr>
<td>NETWORK_UPDATES_READ_CASSANDRA</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>NETWORK_UPDATES_WRITE_CASSANDRA</td>
<td class="code"><div>True</div></td>
</tr>
<tr>
<td>NETWORK_UPDATES_WRITE_MONGO</td>
<td class="code"><div>True</div></td>
</tr>
<tr>
<td>NUMBER_GROUPING</td>
<td class="code"><div>0</div></td>
</tr>
<tr>
<td>PASSWORD_RESET_TIMEOUT_DAYS</td>
<td class="code"><div>&#39;********************&#39;</div></td>
</tr>
<tr>
<td>PERMANENT_RECORDER_BASE_PATH</td>
<td class="code"><div>&#39;/srv/rdio/permanent_recorder_logs/dev&#39;</div></td>
</tr>
<tr>
<td>PERMANENT_RECORDER_REDIS_NODES</td>
<td class="code"><div>[(&#39;127.0.0.1&#39;, 6579)]</div></td>
</tr>
<tr>
<td>PREPEND_WWW</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>PROD_MEDIA_URL</td>
<td class="code"><div>&#39;http://media.aninternetstartup.com&#39;</div></td>
</tr>
<tr>
<td>PROFANITIES_LIST</td>
<td class="code"><div>&#39;********************&#39;</div></td>
</tr>
<tr>
<td>PROFILE</td>
<td class="code"><div>&#39;&#39;</div></td>
</tr>
<tr>
<td>RDIO_MASTER</td>
<td class="code"><div>{&#39;ENGINE&#39;: &#39;django.db.backends.mysql&#39;,
&#39;HOST&#39;: &#39;10.10.60.43&#39;,
&#39;NAME&#39;: &#39;rdio&#39;,
&#39;OPTIONS&#39;: {&#39;init_command&#39;: &#39;SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED&#39;},
&#39;PASSWORD&#39;: &#39;********************&#39;,
&#39;PORT&#39;: &#39;3306&#39;,
&#39;TEST_CHARSET&#39;: None,
&#39;TEST_COLLATION&#39;: None,
&#39;TEST_MIRROR&#39;: None,
&#39;TEST_NAME&#39;: None,
&#39;TIME_ZONE&#39;: &#39;America/Los_Angeles&#39;,
&#39;USER&#39;: &#39;rdiodb&#39;}</div></td>
</tr>
<tr>
<td>RDIO_ROOT</td>
<td class="code"><div>&#39;/srv/rdio/web/releases/20100803204233/rdio&#39;</div></td>
</tr>
<tr>
<td>RDIO_SLAVE</td>
<td class="code"><div>{&#39;ENGINE&#39;: &#39;django.db.backends.mysql&#39;,
&#39;HOST&#39;: &#39;10.10.60.43&#39;,
&#39;NAME&#39;: &#39;rdio&#39;,
&#39;OPTIONS&#39;: {&#39;init_command&#39;: &#39;SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED&#39;},
&#39;PASSWORD&#39;: &#39;********************&#39;,
&#39;PORT&#39;: &#39;3306&#39;,
&#39;TEST_CHARSET&#39;: None,
&#39;TEST_COLLATION&#39;: None,
&#39;TEST_MIRROR&#39;: &#39;default&#39;,
&#39;TEST_NAME&#39;: None,
&#39;TIME_ZONE&#39;: &#39;America/Los_Angeles&#39;,
&#39;USER&#39;: &#39;rdiodb&#39;}</div></td>
</tr>
<tr>
<td>RDIO_SLAVES</td>
<td class="code"><div>[{&#39;ENGINE&#39;: &#39;django.db.backends.mysql&#39;,
&#39;HOST&#39;: &#39;10.10.60.43&#39;,
&#39;NAME&#39;: &#39;rdio&#39;,
&#39;OPTIONS&#39;: {&#39;init_command&#39;: &#39;SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED&#39;},
&#39;PASSWORD&#39;: &#39;Aw48sIyu99C7c8di7&#39;,
&#39;PORT&#39;: &#39;3306&#39;,
&#39;TEST_CHARSET&#39;: None,
&#39;TEST_COLLATION&#39;: None,
&#39;TEST_MIRROR&#39;: &#39;default&#39;,
&#39;TEST_NAME&#39;: None,
&#39;TIME_ZONE&#39;: &#39;America/Los_Angeles&#39;,
&#39;USER&#39;: &#39;rdiodb&#39;}]</div></td>
</tr>
<tr>
<td>RDIO_SLAVE_2</td>
<td class="code"><div>{&#39;ENGINE&#39;: &#39;django.db.backends.mysql&#39;,
&#39;HOST&#39;: &#39;10.10.60.44&#39;,
&#39;NAME&#39;: &#39;rdio&#39;,
&#39;OPTIONS&#39;: {&#39;init_command&#39;: &#39;SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED&#39;},
&#39;PASSWORD&#39;: &#39;********************&#39;,
&#39;PORT&#39;: &#39;3306&#39;,
&#39;USER&#39;: &#39;slaverdiodb&#39;}</div></td>
</tr>
<tr>
<td>RDIO_SLAVE_3</td>
<td class="code"><div>{&#39;ENGINE&#39;: &#39;django.db.backends.mysql&#39;,
&#39;HOST&#39;: &#39;10.10.60.51&#39;,
&#39;NAME&#39;: &#39;rdio&#39;,
&#39;OPTIONS&#39;: {&#39;init_command&#39;: &#39;SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED&#39;},
&#39;PASSWORD&#39;: &#39;********************&#39;,
&#39;PORT&#39;: &#39;3306&#39;,
&#39;USER&#39;: &#39;slaverdiodb&#39;}</div></td>
</tr>
<tr>
<td>RDIO_SLAVE_4</td>
<td class="code"><div>{&#39;ENGINE&#39;: &#39;django.db.backends.mysql&#39;,
&#39;HOST&#39;: &#39;10.10.60.53&#39;,
&#39;NAME&#39;: &#39;rdio&#39;,
&#39;OPTIONS&#39;: {&#39;init_command&#39;: &#39;SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED&#39;},
&#39;PASSWORD&#39;: &#39;********************&#39;,
&#39;PORT&#39;: &#39;3306&#39;,
&#39;USER&#39;: &#39;slaverdiodb&#39;}</div></td>
</tr>
<tr>
<td>RDIO_SLAVE_KEYS</td>
<td class="code"><div>[&#39;default_0&#39;]</div></td>
</tr>
<tr>
<td>READ_JSON_RIGHTS</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>REDIS_NODES</td>
<td class="code"><div>[(&#39;default:0&#39;, &#39;127.0.0.1&#39;, 6379)]</div></td>
</tr>
<tr>
<td>ROOT_URLCONF</td>
<td class="code"><div>&#39;rdio.urls&#39;</div></td>
</tr>
<tr>
<td>RUNCP_STARTUP_FUNCS</td>
<td class="code"><div>((&#39;rdio.mq.message_bus&#39;, &#39;_init_messagebus&#39;),)</div></td>
</tr>
<tr>
<td>SEARCH_HOST</td>
<td class="code"><div>&#39;localhost&#39;</div></td>
</tr>
<tr>
<td>SEARCH_INDEX_PATH</td>
<td class="code"><div>&#39;/srv/rdio/_dev_search_index&#39;</div></td>
</tr>
<tr>
<td>SEARCH_PORT</td>
<td class="code"><div>9192</div></td>
</tr>
<tr>
<td>SECRET_KEY</td>
<td class="code"><div>&#39;********************&#39;</div></td>
</tr>
<tr>
<td>SEND_BROKEN_LINK_EMAILS</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>SERVER_EMAIL</td>
<td class="code"><div>&#39;root@localhost&#39;</div></td>
</tr>
<tr>
<td>SERVER_HOSTNAME</td>
<td class="code"><div>&#39;srv-101-15&#39;</div></td>
</tr>
<tr>
<td>SERVER_IDENTIFIER</td>
<td class="code"><div>783365394</div></td>
</tr>
<tr>
<td>SESSION_COOKIE_AGE</td>
<td class="code"><div>1209600</div></td>
</tr>
<tr>
<td>SESSION_COOKIE_DOMAIN</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>SESSION_COOKIE_NAME</td>
<td class="code"><div>&#39;r&#39;</div></td>
</tr>
<tr>
<td>SESSION_COOKIE_PATH</td>
<td class="code"><div>&#39;/&#39;</div></td>
</tr>
<tr>
<td>SESSION_COOKIE_SECURE</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>SESSION_ENGINE</td>
<td class="code"><div>&#39;rdio.accounts.cookie_session&#39;</div></td>
</tr>
<tr>
<td>SESSION_EXPIRE_AT_BROWSER_CLOSE</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>SESSION_FILE_PATH</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>SESSION_SAVE_EVERY_REQUEST</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>SETTINGS_MODULE</td>
<td class="code"><div>&#39;rdio.settings&#39;</div></td>
</tr>
<tr>
<td>SHORT_DATETIME_FORMAT</td>
<td class="code"><div>&#39;m/d/Y P&#39;</div></td>
</tr>
<tr>
<td>SHORT_DATE_FORMAT</td>
<td class="code"><div>&#39;m/d/Y&#39;</div></td>
</tr>
<tr>
<td>SHORT_URL_DOMAIN</td>
<td class="code"><div>&#39;http://127.0.0.1:8000&#39;</div></td>
</tr>
<tr>
<td>SITE_ID</td>
<td class="code"><div>1</div></td>
</tr>
<tr>
<td>SLOW_PAGE_THRESHHOLD</td>
<td class="code"><div>500</div></td>
</tr>
<tr>
<td>SOLR_BASE_PATH</td>
<td class="code"><div>&#39;/srv/rdio/solr_data/dev&#39;</div></td>
</tr>
<tr>
<td>SOLR_CORE</td>
<td class="code"><div>&#39;rdio1&#39;</div></td>
</tr>
<tr>
<td>SOLR_HOST</td>
<td class="code"><div>&#39;localhost&#39;</div></td>
</tr>
<tr>
<td>SOLR_INITIAL_MEM_SIZE</td>
<td class="code"><div>&#39;512M&#39;</div></td>
</tr>
<tr>
<td>SOLR_JETTY_HOST</td>
<td class="code"><div>&#39;0.0.0.0&#39;</div></td>
</tr>
<tr>
<td>SOLR_MAX_MEM_SIZE</td>
<td class="code"><div>&#39;1024M&#39;</div></td>
</tr>
<tr>
<td>SOLR_PORT</td>
<td class="code"><div>8983</div></td>
</tr>
<tr>
<td>STORED_REPORTS</td>
<td class="code"><div>&#39;/srv/rdio/remote_backup/generated_reports&#39;</div></td>
</tr>
<tr>
<td>TAKEDOWN_LISTENER_HOST</td>
<td class="code"><div>&#39;localhost&#39;</div></td>
</tr>
<tr>
<td>TAKEDOWN_LISTENER_PORT</td>
<td class="code"><div>13375</div></td>
</tr>
<tr>
<td>TEMPLATE_CONTEXT_PROCESSORS</td>
<td class="code"><div>(&#39;django.core.context_processors.auth&#39;,
&#39;django.core.context_processors.debug&#39;,
&#39;django.core.context_processors.i18n&#39;,
&#39;django.core.context_processors.media&#39;,
&#39;django.core.context_processors.request&#39;,
&#39;rdio.baseurl&#39;)</div></td>
</tr>
<tr>
<td>TEMPLATE_DEBUG</td>
<td class="code"><div>True</div></td>
</tr>
<tr>
<td>TEMPLATE_DIRS</td>
<td class="code"><div>(&#39;/srv/rdio/web/releases/20100803204233/rdio/web/templates&#39;,)</div></td>
</tr>
<tr>
<td>TEMPLATE_LOADERS</td>
<td class="code"><div>(&#39;django.template.loaders.filesystem.load_template_source&#39;,
&#39;django.template.loaders.app_directories.load_template_source&#39;)</div></td>
</tr>
<tr>
<td>TEMPLATE_STRING_IF_INVALID</td>
<td class="code"><div>&#39;&#39;</div></td>
</tr>
<tr>
<td>TEMP_DIR</td>
<td class="code"><div>&#39;/tmp/&#39;</div></td>
</tr>
<tr>
<td>TESTING</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>TEST_DATABASE_CHARSET</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>TEST_DATABASE_COLLATION</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>TEST_DATABASE_NAME</td>
<td class="code"><div>None</div></td>
</tr>
<tr>
<td>TEST_RUNNER</td>
<td class="code"><div>&#39;django.test.simple.DjangoTestSuiteRunner&#39;</div></td>
</tr>
<tr>
<td>THOUSAND_SEPARATOR</td>
<td class="code"><div>&#39;,&#39;</div></td>
</tr>
<tr>
<td>TIME_FORMAT</td>
<td class="code"><div>&#39;P&#39;</div></td>
</tr>
<tr>
<td>TIME_INPUT_FORMATS</td>
<td class="code"><div>(&#39;%H:%M:%S&#39;, &#39;%H:%M&#39;)</div></td>
</tr>
<tr>
<td>TIME_ZONE</td>
<td class="code"><div>&#39;America/Los_Angeles&#39;</div></td>
</tr>
<tr>
<td>TRANSACTIONS_MANAGED</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>TWITTER_CONSUMER_KEY</td>
<td class="code"><div>&#39;OLAYZvnoehSIOLHc3yvw&#39;</div></td>
</tr>
<tr>
<td>TWITTER_CONSUMER_SECRET</td>
<td class="code"><div>&#39;********************&#39;</div></td>
</tr>
<tr>
<td>URL_STEALTH_MODE</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>URL_VALIDATOR_USER_AGENT</td>
<td class="code"><div>&#39;Django/1.2 beta 1 (http://www.djangoproject.com)&#39;</div></td>
</tr>
<tr>
<td>USE_ETAGS</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>USE_I18N</td>
<td class="code"><div>True</div></td>
</tr>
<tr>
<td>USE_L10N</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>USE_OLD_ICON_URLS</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>USE_SOLR_SEARCH</td>
<td class="code"><div>True</div></td>
</tr>
<tr>
<td>USE_THOUSAND_SEPARATOR</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>USE_THRIFT_SEARCH</td>
<td class="code"><div>False</div></td>
</tr>
<tr>
<td>VARIOUS_ARTISTS_ID</td>
<td class="code"><div>62</div></td>
</tr>
<tr>
<td>YEAR_MONTH_FORMAT</td>
<td class="code"><div>&#39;F Y&#39;</div></td>
</tr>
</tbody>
</table>
</div>
<div id="explanation">
<p>
You're seeing this error because you have <code>DEBUG = True</code> in your
Django settings file. Change that to <code>False</code>, and Django will
display a standard 500 page.
</p>
</div>
</body>
</html>
@ben-xo
Copy link

ben-xo commented Jan 26, 2017

What is this for?

I notice it contains a Last.fm API key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment