Created
August 3, 2010 20:47
-
-
Save spaetzel/507120 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")</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, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")</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>['/srv/rdio/web/current/rdio/', '.', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/pymodules/python2.6', '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/local/lib/python2.6/dist-packages', '/srv/rdio/web/current/contrib', '/srv/rdio/web/releases/20100803204233/rdio/rpc', '/srv/rdio/web/releases/20100803204233/contrib']</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>▶</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><function index at 0x2de46e0></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, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")</div></td> | |
</tr> | |
<tr> | |
<td>exc_info</td> | |
<td class="code"><div>(<class '_mysql_exceptions.OperationalError'>, | |
OperationalError(2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)"), | |
<traceback object at 0x3a43908>)</div></td> | |
</tr> | |
<tr> | |
<td>exceptions</td> | |
<td class="code"><div><module 'django.core.exceptions' from '/srv/rdio/web/current/contrib/django/core/exceptions.pyc'></div></td> | |
</tr> | |
<tr> | |
<td>middleware_method</td> | |
<td class="code"><div><bound method AjaxErrorMiddleware.process_exception of <rdio.web.middleware.ajaxerror.AjaxErrorMiddleware object at 0x196b310>></div></td> | |
</tr> | |
<tr> | |
<td>receivers</td> | |
<td class="code"><div>[(<function _rollback_on_exception at 0x1ae7d70>, None)]</div></td> | |
</tr> | |
<tr> | |
<td>request</td> | |
<td class="code"><div><WSGIRequest | |
GET:<QueryDict: {}>, | |
POST:<QueryDict: {}>, | |
COOKIES:{'__utma': '225830489.1968707507.1280841052.1280863702.1280867010.3', | |
'__utmb': '225830489.22.10.1280867010', | |
'__utmc': '225830489', | |
'__utmz': '225830489.1280841052.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)', | |
'r': 'eyJfdSI6IDUyMzAyLCAiX2UiOiAwfQ.AwgnvBbPUybH7sbwMz8m7akJasQ'}, | |
META:{'CONTENT_LENGTH': '', | |
'CONTENT_TYPE': '', | |
'DOCUMENT_ROOT': '/usr/local/nginx/html', | |
'HTTP_ACCEPT': 'application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', | |
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3', | |
'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch', | |
'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8', | |
'HTTP_CACHE_CONTROL': 'max-age=0', | |
'HTTP_CONNECTION': 'close', | |
'HTTP_COOKIE': '__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', | |
'HTTP_HOST': 'www.rdio.com', | |
'HTTP_USER_AGENT': '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', | |
'HTTP_X_FORWARDED_FOR': '199.71.183.2', | |
'HTTP_X_SCHEME': 'http', | |
'PATH_INFO': u'/', | |
'QUERY_STRING': '', | |
'REMOTE_ADDR': '10.10.10.103', | |
'REMOTE_PORT': '52238', | |
'REQUEST_METHOD': 'GET', | |
'REQUEST_URI': '//', | |
'SCRIPT_NAME': u'', | |
'SERVER_NAME': 'srv-101-15', | |
'SERVER_PORT': '80', | |
'SERVER_PROTOCOL': 'HTTP/1.0', | |
'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x382b8b0>, | |
'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, | |
'wsgi.input': <open file 'wsgi_input', mode 'r' at 0x39fbf10>, | |
'wsgi.multiprocess': True, | |
'wsgi.multithread': False, | |
'wsgi.run_once': False, | |
'wsgi.url_scheme': 'http', | |
'wsgi.version': (1, 0)}></div></td> | |
</tr> | |
<tr> | |
<td>resolver</td> | |
<td class="code"><div><RegexURLResolver rdio.urls (None:None) ^/></div></td> | |
</tr> | |
<tr> | |
<td>response</td> | |
<td class="code"><div>None</div></td> | |
</tr> | |
<tr> | |
<td>self</td> | |
<td class="code"><div><django.core.handlers.wsgi.WSGIHandler object at 0x1443cd0></div></td> | |
</tr> | |
<tr> | |
<td>settings</td> | |
<td class="code"><div><django.conf.LazySettings object at 0x7f05dc55a0d0></div></td> | |
</tr> | |
<tr> | |
<td>urlconf</td> | |
<td class="code"><div>'rdio.urls'</div></td> | |
</tr> | |
<tr> | |
<td>urlresolvers</td> | |
<td class="code"><div><module 'django.core.urlresolvers' from '/srv/rdio/web/current/contrib/django/core/urlresolvers.py'></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['Cache-Control'] = 'no-cache'</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('base.html', request)) <span>...</span></li></ol> | |
<ol start='131' class="post-context" id="post61094224"><li onclick="toggle('pre61094224', 'post61094224')"> response['Cache-Control'] = 'no-cache'</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('unauth/base.html', request))</li><li onclick="toggle('pre61094224', 'post61094224')"> response['Cache-Control'] = 'no-cache'</li><li onclick="toggle('pre61094224', 'post61094224')"> return response</li></ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '61094224')"><span>▶</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><function index at 0x2de4320></div></td> | |
</tr> | |
<tr> | |
<td>kwargs</td> | |
<td class="code"><div>{}</div></td> | |
</tr> | |
<tr> | |
<td>request</td> | |
<td class="code"><div><WSGIRequest | |
GET:<QueryDict: {}>, | |
POST:<QueryDict: {}>, | |
COOKIES:{'__utma': '225830489.1968707507.1280841052.1280863702.1280867010.3', | |
'__utmb': '225830489.22.10.1280867010', | |
'__utmc': '225830489', | |
'__utmz': '225830489.1280841052.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)', | |
'r': 'eyJfdSI6IDUyMzAyLCAiX2UiOiAwfQ.AwgnvBbPUybH7sbwMz8m7akJasQ'}, | |
META:{'CONTENT_LENGTH': '', | |
'CONTENT_TYPE': '', | |
'DOCUMENT_ROOT': '/usr/local/nginx/html', | |
'HTTP_ACCEPT': 'application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', | |
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3', | |
'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch', | |
'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8', | |
'HTTP_CACHE_CONTROL': 'max-age=0', | |
'HTTP_CONNECTION': 'close', | |
'HTTP_COOKIE': '__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', | |
'HTTP_HOST': 'www.rdio.com', | |
'HTTP_USER_AGENT': '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', | |
'HTTP_X_FORWARDED_FOR': '199.71.183.2', | |
'HTTP_X_SCHEME': 'http', | |
'PATH_INFO': u'/', | |
'QUERY_STRING': '', | |
'REMOTE_ADDR': '10.10.10.103', | |
'REMOTE_PORT': '52238', | |
'REQUEST_METHOD': 'GET', | |
'REQUEST_URI': '//', | |
'SCRIPT_NAME': u'', | |
'SERVER_NAME': 'srv-101-15', | |
'SERVER_PORT': '80', | |
'SERVER_PROTOCOL': 'HTTP/1.0', | |
'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x382b8b0>, | |
'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, | |
'wsgi.input': <open file 'wsgi_input', mode 'r' at 0x39fbf10>, | |
'wsgi.multiprocess': True, | |
'wsgi.multithread': False, | |
'wsgi.run_once': False, | |
'wsgi.url_scheme': 'http', | |
'wsgi.version': (1, 0)}></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('render_template')</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>▶</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>{'BASE_MEDIA_URL': '127.0.0.1:8000/media/', | |
'BASE_URL': '127.0.0.1:8000', | |
'IN_PROD': False, | |
'LANGUAGES': (('ar', 'Arabic'), | |
('bg', 'Bulgarian'), | |
('bn', 'Bengali'), | |
('bs', 'Bosnian'), | |
('ca', 'Catalan'), | |
('cs', 'Czech'), | |
('cy', 'Welsh'), | |
('da', 'Danish'), | |
('de', 'German'), | |
('el', 'Greek'), | |
('en', 'English'), | |
('es', 'Spanish'), | |
('es-ar', 'Argentinean Spanish'), | |
('et', 'Estonian'), | |
('eu', 'Basque'), | |
('fa', 'Persian'), | |
('fi', 'Finnish'), | |
('fr', 'French'), | |
('fy-nl', 'Frisian'), | |
('ga', 'Irish'), | |
('gl', 'Galician'), | |
('he', 'Hebrew'), | |
('hi', 'Hindi'), | |
('hr', 'Croatian'), | |
('hu', 'Hungarian'), | |
('is', 'Icelandic'), | |
('it', 'Italian'), | |
('ja', 'Japanese'), | |
('ka', 'Georgian'), | |
('km', 'Khmer'), | |
('kn', 'Kannada'), | |
('ko', 'Korean'), | |
('lt', 'Lithuanian'), | |
('lv', 'Latvian'), | |
('mk', 'Macedonian'), | |
('nl', 'Dutch'), | |
('no', 'Norwegian'), | |
('pl', 'Polish'), | |
('pt', 'Portuguese'), | |
('pt-br', 'Brazilian Portuguese'), | |
('ro', 'Romanian'), | |
('ru', 'Russian'), | |
('sk', 'Slovak'), | |
('sl', 'Slovenian'), | |
('sq', 'Albanian'), | |
('sr', 'Serbian'), | |
('sr-latn', 'Serbian Latin'), | |
('sv', 'Swedish'), | |
('ta', 'Tamil'), | |
('te', 'Telugu'), | |
('th', 'Thai'), | |
('tr', 'Turkish'), | |
('uk', 'Ukrainian'), | |
('vi', 'Vietnamese'), | |
('zh-cn', 'Simplified Chinese'), | |
('zh-tw', 'Traditional Chinese')), | |
'LANGUAGE_BIDI': False, | |
'LANGUAGE_CODE': 'en-us', | |
'MEDIA_URL': '/media/', | |
'RESOURCE_VERSIONS': None, | |
'SECURE_HOST': 'http://www.rdio.com', | |
'URL_STEALTH_MODE': False, | |
'VARIOUS_ARTISTS_ID': 62, | |
'csrf_token': <django.utils.functional.__proxy__ object at 0x3a99650>, | |
'messages': <django.utils.functional.__proxy__ object at 0x3a99550>, | |
'perms': <django.utils.functional.__proxy__ object at 0x3a99c90>, | |
'request': <WSGIRequest | |
GET:<QueryDict: {}>, | |
POST:<QueryDict: {}>, | |
COOKIES:{'__utma': '225830489.1968707507.1280841052.1280863702.1280867010.3', | |
'__utmb': '225830489.22.10.1280867010', | |
'__utmc': '225830489', | |
'__utmz': '225830489.1280841052.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)', | |
'r': 'eyJfdSI6IDUyMzAyLCAiX2UiOiAwfQ.AwgnvBbPUybH7sbwMz8m7akJasQ'}, | |
META:{'CONTENT_LENGTH': '', | |
'CONTENT_TYPE': '', | |
'DOCUMENT_ROOT': '/usr/local/nginx/html', | |
'HTTP_ACCEPT': 'application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', | |
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3', | |
'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch', | |
'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8', | |
'HTTP_CACHE_CONTROL': 'max-age=0', | |
'HTTP_CONNECTION': 'close', | |
'HTTP_COOKIE': '__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', | |
'HTTP_HOST': 'www.rdio.com', | |
'HTTP_USER_AGENT': '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', | |
'HTTP_X_FORWARDED_FOR': '199.71.183.2', | |
'HTTP_X_SCHEME': 'http', | |
'PATH_INFO': u'/', | |
'QUERY_STRING': '', | |
'REMOTE_ADDR': '10.10.10.103', | |
'REMOTE_PORT': '52238', | |
'REQUEST_METHOD': 'GET', | |
'REQUEST_URI': '//', | |
'SCRIPT_NAME': u'', | |
'SERVER_NAME': 'srv-101-15', | |
'SERVER_PORT': '80', | |
'SERVER_PROTOCOL': 'HTTP/1.0', | |
'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x382b8b0>, | |
'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, | |
'wsgi.input': <open file 'wsgi_input', mode 'r' at 0x39fbf10>, | |
'wsgi.multiprocess': True, | |
'wsgi.multithread': False, | |
'wsgi.run_once': False, | |
'wsgi.url_scheme': 'http', | |
'wsgi.version': (1, 0)}>, | |
'user': <django.utils.functional.SimpleLazyObject object at 0x3846f50>}</div></td> | |
</tr> | |
<tr> | |
<td>request</td> | |
<td class="code"><div><WSGIRequest | |
GET:<QueryDict: {}>, | |
POST:<QueryDict: {}>, | |
COOKIES:{'__utma': '225830489.1968707507.1280841052.1280863702.1280867010.3', | |
'__utmb': '225830489.22.10.1280867010', | |
'__utmc': '225830489', | |
'__utmz': '225830489.1280841052.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)', | |
'r': 'eyJfdSI6IDUyMzAyLCAiX2UiOiAwfQ.AwgnvBbPUybH7sbwMz8m7akJasQ'}, | |
META:{'CONTENT_LENGTH': '', | |
'CONTENT_TYPE': '', | |
'DOCUMENT_ROOT': '/usr/local/nginx/html', | |
'HTTP_ACCEPT': 'application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', | |
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3', | |
'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch', | |
'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8', | |
'HTTP_CACHE_CONTROL': 'max-age=0', | |
'HTTP_CONNECTION': 'close', | |
'HTTP_COOKIE': '__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', | |
'HTTP_HOST': 'www.rdio.com', | |
'HTTP_USER_AGENT': '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', | |
'HTTP_X_FORWARDED_FOR': '199.71.183.2', | |
'HTTP_X_SCHEME': 'http', | |
'PATH_INFO': u'/', | |
'QUERY_STRING': '', | |
'REMOTE_ADDR': '10.10.10.103', | |
'REMOTE_PORT': '52238', | |
'REQUEST_METHOD': 'GET', | |
'REQUEST_URI': '//', | |
'SCRIPT_NAME': u'', | |
'SERVER_NAME': 'srv-101-15', | |
'SERVER_PORT': '80', | |
'SERVER_PROTOCOL': 'HTTP/1.0', | |
'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x382b8b0>, | |
'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, | |
'wsgi.input': <open file 'wsgi_input', mode 'r' at 0x39fbf10>, | |
'wsgi.multiprocess': True, | |
'wsgi.multithread': False, | |
'wsgi.run_once': False, | |
'wsgi.url_scheme': 'http', | |
'wsgi.version': (1, 0)}></div></td> | |
</tr> | |
<tr> | |
<td>template</td> | |
<td class="code"><div><Template 'base.html'></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')"> <input type="text" id="searchInput" class="textInput" title="Find music or people" /></li><li onclick="toggle('pre42159928', 'post42159928')"> </div></li><li onclick="toggle('pre42159928', 'post42159928')"> <ul id="searchSuggestions"></li><li onclick="toggle('pre42159928', 'post42159928')"> </ul></li><li onclick="toggle('pre42159928', 'post42159928')"> </div></li><li onclick="toggle('pre42159928', 'post42159928')"> <div id="your_header_links" class="header_column"></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 'snippets/header/your_links_logged_in.html' %} <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 'snippets/header/your_links_logged_out.html' %}</li><li onclick="toggle('pre42159928', 'post42159928')"> {% else %}</li><li onclick="toggle('pre42159928', 'post42159928')"> {% include 'snippets/header/your_links_logged_out_public.html' %}</li><li onclick="toggle('pre42159928', 'post42159928')"> {% endif %}</li></ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '42159928')"><span>▶</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>'127.0.0.1:8000/media/'</div></td> | |
</tr> | |
<tr> | |
<td>BASE_URL</td> | |
<td class="code"><div>'127.0.0.1:8000'</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>'http://www.rdio.com/_is/'</div></td> | |
</tr> | |
<tr> | |
<td>LANGUAGES</td> | |
<td class="code"><div>(('ar', 'Arabic'), | |
('bg', 'Bulgarian'), | |
('bn', 'Bengali'), | |
('bs', 'Bosnian'), | |
('ca', 'Catalan'), | |
('cs', 'Czech'), | |
('cy', 'Welsh'), | |
('da', 'Danish'), | |
('de', 'German'), | |
('el', 'Greek'), | |
('en', 'English'), | |
('es', 'Spanish'), | |
('es-ar', 'Argentinean Spanish'), | |
('et', 'Estonian'), | |
('eu', 'Basque'), | |
('fa', 'Persian'), | |
('fi', 'Finnish'), | |
('fr', 'French'), | |
('fy-nl', 'Frisian'), | |
('ga', 'Irish'), | |
('gl', 'Galician'), | |
('he', 'Hebrew'), | |
('hi', 'Hindi'), | |
('hr', 'Croatian'), | |
('hu', 'Hungarian'), | |
('is', 'Icelandic'), | |
('it', 'Italian'), | |
('ja', 'Japanese'), | |
('ka', 'Georgian'), | |
('km', 'Khmer'), | |
('kn', 'Kannada'), | |
('ko', 'Korean'), | |
('lt', 'Lithuanian'), | |
('lv', 'Latvian'), | |
('mk', 'Macedonian'), | |
('nl', 'Dutch'), | |
('no', 'Norwegian'), | |
('pl', 'Polish'), | |
('pt', 'Portuguese'), | |
('pt-br', 'Brazilian Portuguese'), | |
('ro', 'Romanian'), | |
('ru', 'Russian'), | |
('sk', 'Slovak'), | |
('sl', 'Slovenian'), | |
('sq', 'Albanian'), | |
('sr', 'Serbian'), | |
('sr-latn', 'Serbian Latin'), | |
('sv', 'Swedish'), | |
('ta', 'Tamil'), | |
('te', 'Telugu'), | |
('th', 'Thai'), | |
('tr', 'Turkish'), | |
('uk', 'Ukrainian'), | |
('vi', 'Vietnamese'), | |
('zh-cn', 'Simplified Chinese'), | |
('zh-tw', 'Traditional Chinese'))</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>'en-us'</div></td> | |
</tr> | |
<tr> | |
<td>MEDIA_URL</td> | |
<td class="code"><div>'/media/'</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>'http://www.rdio.com'</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><django.utils.functional.__proxy__ object at 0x3a99650></div></td> | |
</tr> | |
<tr> | |
<td>cycler</td> | |
<td class="code"><div><class 'jinja2.utils.Cycler'></div></td> | |
</tr> | |
<tr> | |
<td>dict</td> | |
<td class="code"><div><function <lambda> at 0x1726848></div></td> | |
</tr> | |
<tr> | |
<td>full_url</td> | |
<td class="code"><div><function full_url at 0x29002a8></div></td> | |
</tr> | |
<tr> | |
<td>generate_user_object</td> | |
<td class="code"><div><function generate_user_object at 0x2900668></div></td> | |
</tr> | |
<tr> | |
<td>joiner</td> | |
<td class="code"><div><class 'jinja2.utils.Joiner'></div></td> | |
</tr> | |
<tr> | |
<td>lipsum</td> | |
<td class="code"><div><function generate_lorem_ipsum at 0x170f1b8></div></td> | |
</tr> | |
<tr> | |
<td>messages</td> | |
<td class="code"><div><django.utils.functional.__proxy__ object at 0x3a99550></div></td> | |
</tr> | |
<tr> | |
<td>perms</td> | |
<td class="code"><div><django.utils.functional.__proxy__ object at 0x3a99c90></div></td> | |
</tr> | |
<tr> | |
<td>pluralize</td> | |
<td class="code"><div><function pluralize_fn at 0x2900398></div></td> | |
</tr> | |
<tr> | |
<td>qs_versioned_resource_name</td> | |
<td class="code"><div><function qs_versioned_resource_name at 0x29005f0></div></td> | |
</tr> | |
<tr> | |
<td>random_id</td> | |
<td class="code"><div><function random_id at 0x2900320></div></td> | |
</tr> | |
<tr> | |
<td>range</td> | |
<td class="code"><div><type 'xrange'></div></td> | |
</tr> | |
<tr> | |
<td>request</td> | |
<td class="code"><div><WSGIRequest | |
GET:<QueryDict: {}>, | |
POST:<QueryDict: {}>, | |
COOKIES:{'__utma': '225830489.1968707507.1280841052.1280863702.1280867010.3', | |
'__utmb': '225830489.22.10.1280867010', | |
'__utmc': '225830489', | |
'__utmz': '225830489.1280841052.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)', | |
'r': 'eyJfdSI6IDUyMzAyLCAiX2UiOiAwfQ.AwgnvBbPUybH7sbwMz8m7akJasQ'}, | |
META:{'CONTENT_LENGTH': '', | |
'CONTENT_TYPE': '', | |
'DOCUMENT_ROOT': '/usr/local/nginx/html', | |
'HTTP_ACCEPT': 'application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', | |
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3', | |
'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch', | |
'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8', | |
'HTTP_CACHE_CONTROL': 'max-age=0', | |
'HTTP_CONNECTION': 'close', | |
'HTTP_COOKIE': '__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', | |
'HTTP_HOST': 'www.rdio.com', | |
'HTTP_USER_AGENT': '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', | |
'HTTP_X_FORWARDED_FOR': '199.71.183.2', | |
'HTTP_X_SCHEME': 'http', | |
'PATH_INFO': u'/', | |
'QUERY_STRING': '', | |
'REMOTE_ADDR': '10.10.10.103', | |
'REMOTE_PORT': '52238', | |
'REQUEST_METHOD': 'GET', | |
'REQUEST_URI': '//', | |
'SCRIPT_NAME': u'', | |
'SERVER_NAME': 'srv-101-15', | |
'SERVER_PORT': '80', | |
'SERVER_PROTOCOL': 'HTTP/1.0', | |
'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x382b8b0>, | |
'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, | |
'wsgi.input': <open file 'wsgi_input', mode 'r' at 0x39fbf10>, | |
'wsgi.multiprocess': True, | |
'wsgi.multithread': False, | |
'wsgi.run_once': False, | |
'wsgi.url_scheme': 'http', | |
'wsgi.version': (1, 0)}></div></td> | |
</tr> | |
<tr> | |
<td>url</td> | |
<td class="code"><div><function url at 0x2900230></div></td> | |
</tr> | |
<tr> | |
<td>user</td> | |
<td class="code"><div><django.utils.functional.SimpleLazyObject object at 0x3846f50></div></td> | |
</tr> | |
<tr> | |
<td>user_top_albums</td> | |
<td class="code"><div><function user_top_albums at 0x2900488></div></td> | |
</tr> | |
<tr> | |
<td>user_top_artists</td> | |
<td class="code"><div><function user_top_artists at 0x2900500></div></td> | |
</tr> | |
<tr> | |
<td>versioned_resource_name</td> | |
<td class="code"><div><function versioned_resource_name at 0x2900578></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')"> <li><a href="{{ url('browse-charts') }}">Top Charts</a></li></li><li onclick="toggle('pre55511304', 'post55511304')"> <li><a href="{{ url('browse-recommendations') }}">Recommended</a></li></li><li onclick="toggle('pre55511304', 'post55511304')"> </ul></li><li onclick="toggle('pre55511304', 'post55511304')"> </li></li><li onclick="toggle('pre55511304', 'post55511304')"> <li class="has_menu"></li><li onclick="toggle('pre55511304', 'post55511304')"> <span class="title">Account</span></li><li onclick="toggle('pre55511304', 'post55511304')"> <ul class="menu account_menu"></li></ol> | |
<ol start="23" class="context-line"><li onclick="toggle('pre55511304', 'post55511304')"> <li id="header_link_upgrade" {% if request.user.has_subscription(exclude_trial=True) %}style="display:none;"{% endif %}> <span>...</span></li></ol> | |
<ol start='24' class="post-context" id="post55511304"><li onclick="toggle('pre55511304', 'post55511304')"> <a href="{{url('management-subscriptions')}}">Upgrade</a></li><li onclick="toggle('pre55511304', 'post55511304')"> </li></li><li onclick="toggle('pre55511304', 'post55511304')"> <li><a href="{{ url('management') }}">Settings</a></li></li><li onclick="toggle('pre55511304', 'post55511304')"> <li><a href="{{ url('logout') }}">Sign out</a></li></li><li onclick="toggle('pre55511304', 'post55511304')"> </ul></li><li onclick="toggle('pre55511304', 'post55511304')"> </li></li></ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '55511304')"><span>▶</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>'127.0.0.1:8000/media/'</div></td> | |
</tr> | |
<tr> | |
<td>BASE_URL</td> | |
<td class="code"><div>'127.0.0.1:8000'</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>'http://www.rdio.com/_is/'</div></td> | |
</tr> | |
<tr> | |
<td>LANGUAGES</td> | |
<td class="code"><div>(('ar', 'Arabic'), | |
('bg', 'Bulgarian'), | |
('bn', 'Bengali'), | |
('bs', 'Bosnian'), | |
('ca', 'Catalan'), | |
('cs', 'Czech'), | |
('cy', 'Welsh'), | |
('da', 'Danish'), | |
('de', 'German'), | |
('el', 'Greek'), | |
('en', 'English'), | |
('es', 'Spanish'), | |
('es-ar', 'Argentinean Spanish'), | |
('et', 'Estonian'), | |
('eu', 'Basque'), | |
('fa', 'Persian'), | |
('fi', 'Finnish'), | |
('fr', 'French'), | |
('fy-nl', 'Frisian'), | |
('ga', 'Irish'), | |
('gl', 'Galician'), | |
('he', 'Hebrew'), | |
('hi', 'Hindi'), | |
('hr', 'Croatian'), | |
('hu', 'Hungarian'), | |
('is', 'Icelandic'), | |
('it', 'Italian'), | |
('ja', 'Japanese'), | |
('ka', 'Georgian'), | |
('km', 'Khmer'), | |
('kn', 'Kannada'), | |
('ko', 'Korean'), | |
('lt', 'Lithuanian'), | |
('lv', 'Latvian'), | |
('mk', 'Macedonian'), | |
('nl', 'Dutch'), | |
('no', 'Norwegian'), | |
('pl', 'Polish'), | |
('pt', 'Portuguese'), | |
('pt-br', 'Brazilian Portuguese'), | |
('ro', 'Romanian'), | |
('ru', 'Russian'), | |
('sk', 'Slovak'), | |
('sl', 'Slovenian'), | |
('sq', 'Albanian'), | |
('sr', 'Serbian'), | |
('sr-latn', 'Serbian Latin'), | |
('sv', 'Swedish'), | |
('ta', 'Tamil'), | |
('te', 'Telugu'), | |
('th', 'Thai'), | |
('tr', 'Turkish'), | |
('uk', 'Ukrainian'), | |
('vi', 'Vietnamese'), | |
('zh-cn', 'Simplified Chinese'), | |
('zh-tw', 'Traditional Chinese'))</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>'en-us'</div></td> | |
</tr> | |
<tr> | |
<td>MEDIA_URL</td> | |
<td class="code"><div>'/media/'</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>'http://www.rdio.com'</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><django.utils.functional.__proxy__ object at 0x3a99650></div></td> | |
</tr> | |
<tr> | |
<td>cycler</td> | |
<td class="code"><div><class 'jinja2.utils.Cycler'></div></td> | |
</tr> | |
<tr> | |
<td>dict</td> | |
<td class="code"><div><function <lambda> at 0x1726848></div></td> | |
</tr> | |
<tr> | |
<td>full_url</td> | |
<td class="code"><div><function full_url at 0x29002a8></div></td> | |
</tr> | |
<tr> | |
<td>generate_user_object</td> | |
<td class="code"><div><function generate_user_object at 0x2900668></div></td> | |
</tr> | |
<tr> | |
<td>joiner</td> | |
<td class="code"><div><class 'jinja2.utils.Joiner'></div></td> | |
</tr> | |
<tr> | |
<td>lipsum</td> | |
<td class="code"><div><function generate_lorem_ipsum at 0x170f1b8></div></td> | |
</tr> | |
<tr> | |
<td>messages</td> | |
<td class="code"><div><django.utils.functional.__proxy__ object at 0x3a99550></div></td> | |
</tr> | |
<tr> | |
<td>perms</td> | |
<td class="code"><div><django.utils.functional.__proxy__ object at 0x3a99c90></div></td> | |
</tr> | |
<tr> | |
<td>pluralize</td> | |
<td class="code"><div><function pluralize_fn at 0x2900398></div></td> | |
</tr> | |
<tr> | |
<td>qs_versioned_resource_name</td> | |
<td class="code"><div><function qs_versioned_resource_name at 0x29005f0></div></td> | |
</tr> | |
<tr> | |
<td>random_id</td> | |
<td class="code"><div><function random_id at 0x2900320></div></td> | |
</tr> | |
<tr> | |
<td>range</td> | |
<td class="code"><div><type 'xrange'></div></td> | |
</tr> | |
<tr> | |
<td>request</td> | |
<td class="code"><div><WSGIRequest | |
GET:<QueryDict: {}>, | |
POST:<QueryDict: {}>, | |
COOKIES:{'__utma': '225830489.1968707507.1280841052.1280863702.1280867010.3', | |
'__utmb': '225830489.22.10.1280867010', | |
'__utmc': '225830489', | |
'__utmz': '225830489.1280841052.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)', | |
'r': 'eyJfdSI6IDUyMzAyLCAiX2UiOiAwfQ.AwgnvBbPUybH7sbwMz8m7akJasQ'}, | |
META:{'CONTENT_LENGTH': '', | |
'CONTENT_TYPE': '', | |
'DOCUMENT_ROOT': '/usr/local/nginx/html', | |
'HTTP_ACCEPT': 'application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', | |
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3', | |
'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch', | |
'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8', | |
'HTTP_CACHE_CONTROL': 'max-age=0', | |
'HTTP_CONNECTION': 'close', | |
'HTTP_COOKIE': '__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', | |
'HTTP_HOST': 'www.rdio.com', | |
'HTTP_USER_AGENT': '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', | |
'HTTP_X_FORWARDED_FOR': '199.71.183.2', | |
'HTTP_X_SCHEME': 'http', | |
'PATH_INFO': u'/', | |
'QUERY_STRING': '', | |
'REMOTE_ADDR': '10.10.10.103', | |
'REMOTE_PORT': '52238', | |
'REQUEST_METHOD': 'GET', | |
'REQUEST_URI': '//', | |
'SCRIPT_NAME': u'', | |
'SERVER_NAME': 'srv-101-15', | |
'SERVER_PORT': '80', | |
'SERVER_PROTOCOL': 'HTTP/1.0', | |
'wsgi.errors': <open file 'wsgi_input', mode 'w' at 0x382b8b0>, | |
'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, | |
'wsgi.input': <open file 'wsgi_input', mode 'r' at 0x39fbf10>, | |
'wsgi.multiprocess': True, | |
'wsgi.multithread': False, | |
'wsgi.run_once': False, | |
'wsgi.url_scheme': 'http', | |
'wsgi.version': (1, 0)}></div></td> | |
</tr> | |
<tr> | |
<td>url</td> | |
<td class="code"><div><function url at 0x2900230></div></td> | |
</tr> | |
<tr> | |
<td>user</td> | |
<td class="code"><div><django.utils.functional.SimpleLazyObject object at 0x3846f50></div></td> | |
</tr> | |
<tr> | |
<td>user_top_albums</td> | |
<td class="code"><div><function user_top_albums at 0x2900488></div></td> | |
</tr> | |
<tr> | |
<td>user_top_artists</td> | |
<td class="code"><div><function user_top_artists at 0x2900500></div></td> | |
</tr> | |
<tr> | |
<td>versioned_resource_name</td> | |
<td class="code"><div><function versioned_resource_name at 0x2900578></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')"> """</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>▶</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><class 'rdio.payment.models.Subscription'></div></td> | |
</tr> | |
<tr> | |
<td>SubscriptionType</td> | |
<td class="code"><div><class 'rdio.payment.SubscriptionType'></div></td> | |
</tr> | |
<tr> | |
<td>exclude_trial</td> | |
<td class="code"><div>True</div></td> | |
</tr> | |
<tr> | |
<td>self</td> | |
<td class="code"><div><User: rdio@redune.com></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 = {'%s__pk' % 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>▶</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><User: rdio@redune.com></div></td> | |
</tr> | |
<tr> | |
<td>instance_type</td> | |
<td class="code"><div><class 'rdio.auth.models.User'></div></td> | |
</tr> | |
<tr> | |
<td>params</td> | |
<td class="code"><div>{'user__pk': 52302L}</div></td> | |
</tr> | |
<tr> | |
<td>self</td> | |
<td class="code"><div><django.db.models.fields.related.SingleRelatedObjectDescriptor object at 0x13c1590></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'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>▶</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>'db_for_read'</div></td> | |
</tr> | |
<tr> | |
<td>chosen_db</td> | |
<td class="code"><div>None</div></td> | |
</tr> | |
<tr> | |
<td>hints</td> | |
<td class="code"><div>{'instance': <User: rdio@redune.com>}</div></td> | |
</tr> | |
<tr> | |
<td>model</td> | |
<td class="code"><div><class 'rdio.auth.models.User'></div></td> | |
</tr> | |
<tr> | |
<td>router</td> | |
<td class="code"><div><rdio.utils.db.routers.SlaveRouter object at 0x1a9b290></div></td> | |
</tr> | |
<tr> | |
<td>self</td> | |
<td class="code"><div><django.db.utils.ConnectionRouter object at 0x1a9b210></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, '_from_master'):</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 'default'</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>▶</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>{'instance': <User: rdio@redune.com>}</div></td> | |
</tr> | |
<tr> | |
<td>model</td> | |
<td class="code"><div><class 'rdio.auth.models.User'></div></td> | |
</tr> | |
<tr> | |
<td>self</td> | |
<td class="code"><div><rdio.utils.db.routers.SlaveRouter object at 0x1a9b290></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')"> """</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('instance', None)</li><li onclick="toggle('pre59175064', 'post59175064')"> if rel_instance:</li><li onclick="toggle('pre59175064', 'post59175064')"> if hasattr(rel_instance, '_from_master'):</li></ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '59175064')"><span>▶</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><class 'django.contrib.contenttypes.models.ContentType'></div></td> | |
</tr> | |
<tr> | |
<td>hints</td> | |
<td class="code"><div>{'instance': <User: rdio@redune.com>}</div></td> | |
</tr> | |
<tr> | |
<td>model</td> | |
<td class="code"><div><class 'rdio.auth.models.User'></div></td> | |
</tr> | |
<tr> | |
<td>self</td> | |
<td class="code"><div><rdio.utils.db.routers.SlaveRouter object at 0x1a9b290></div></td> | |
</tr> | |
</tbody> | |
</table> | |
</li> | |
<li class="frame"> | |
<code>/srv/rdio/web/current/contrib/south/models.py</code> in <code><module></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>▶</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>{'ArithmeticError': <type 'exceptions.ArithmeticError'>, | |
'AssertionError': <type 'exceptions.AssertionError'>, | |
'AttributeError': <type 'exceptions.AttributeError'>, | |
'BaseException': <type 'exceptions.BaseException'>, | |
'BufferError': <type 'exceptions.BufferError'>, | |
'BytesWarning': <type 'exceptions.BytesWarning'>, | |
'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, | |
'EOFError': <type 'exceptions.EOFError'>, | |
'Ellipsis': Ellipsis, | |
'EnvironmentError': <type 'exceptions.EnvironmentError'>, | |
'Exception': <type 'exceptions.Exception'>, | |
'False': False, | |
'FloatingPointError': <type 'exceptions.FloatingPointError'>, | |
'FutureWarning': <type 'exceptions.FutureWarning'>, | |
'GeneratorExit': <type 'exceptions.GeneratorExit'>, | |
'IOError': <type 'exceptions.IOError'>, | |
'ImportError': <type 'exceptions.ImportError'>, | |
'ImportWarning': <type 'exceptions.ImportWarning'>, | |
'IndentationError': <type 'exceptions.IndentationError'>, | |
'IndexError': <type 'exceptions.IndexError'>, | |
'KeyError': <type 'exceptions.KeyError'>, | |
'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, | |
'LookupError': <type 'exceptions.LookupError'>, | |
'MemoryError': <type 'exceptions.MemoryError'>, | |
'NameError': <type 'exceptions.NameError'>, | |
'None': None, | |
'NotImplemented': NotImplemented, | |
'NotImplementedError': <type 'exceptions.NotImplementedError'>, | |
'OSError': <type 'exceptions.OSError'>, | |
'OverflowError': <type 'exceptions.OverflowError'>, | |
'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, | |
'ReferenceError': <type 'exceptions.ReferenceError'>, | |
'RuntimeError': <type 'exceptions.RuntimeError'>, | |
'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, | |
'StandardError': <type 'exceptions.StandardError'>, | |
'StopIteration': <type 'exceptions.StopIteration'>, | |
'SyntaxError': <type 'exceptions.SyntaxError'>, | |
'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, | |
'SystemError': <type 'exceptions.SystemError'>, | |
'SystemExit': <type 'exceptions.SystemExit'>, | |
'TabError': <type 'exceptions.TabError'>, | |
'True': True, | |
'TypeError': <type 'exceptions.TypeError'>, | |
'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, | |
'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, | |
'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, | |
'UnicodeError': <type 'exceptions.UnicodeError'>, | |
'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, | |
'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, | |
'UserWarning': <type 'exceptions.UserWarning'>, | |
'ValueError': <type 'exceptions.ValueError'>, | |
'Warning': <type 'exceptions.Warning'>, | |
'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, | |
'__debug__': True, | |
'__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", | |
'__import__': <built-in function __import__>, | |
'__name__': '__builtin__', | |
'__package__': None, | |
'abs': <built-in function abs>, | |
'all': <built-in function all>, | |
'any': <built-in function any>, | |
'apply': <built-in function apply>, | |
'basestring': <type 'basestring'>, | |
'bin': <built-in function bin>, | |
'bool': <type 'bool'>, | |
'buffer': <type 'buffer'>, | |
'bytearray': <type 'bytearray'>, | |
'bytes': <type 'str'>, | |
'callable': <built-in function callable>, | |
'chr': <built-in function chr>, | |
'classmethod': <type 'classmethod'>, | |
'cmp': <built-in function cmp>, | |
'coerce': <built-in function coerce>, | |
'compile': <built-in function compile>, | |
'complex': <type 'complex'>, | |
'copyright': 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., | |
'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands | |
for supporting Python development. See www.python.org for more information., | |
'delattr': <built-in function delattr>, | |
'dict': <type 'dict'>, | |
'dir': <built-in function dir>, | |
'divmod': <built-in function divmod>, | |
'enumerate': <type 'enumerate'>, | |
'eval': <built-in function eval>, | |
'execfile': <built-in function execfile>, | |
'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, | |
'file': <type 'file'>, | |
'filter': <built-in function filter>, | |
'float': <type 'float'>, | |
'format': <built-in function format>, | |
'frozenset': <type 'frozenset'>, | |
'getattr': <built-in function getattr>, | |
'globals': <built-in function globals>, | |
'hasattr': <built-in function hasattr>, | |
'hash': <built-in function hash>, | |
'help': Type help() for interactive help, or help(object) for help about object., | |
'hex': <built-in function hex>, | |
'id': <built-in function id>, | |
'input': <built-in function input>, | |
'int': <type 'int'>, | |
'intern': <built-in function intern>, | |
'isinstance': <built-in function isinstance>, | |
'issubclass': <built-in function issubclass>, | |
'iter': <built-in function iter>, | |
'len': <built-in function len>, | |
'license': Type license() to see the full license text, | |
'list': <type 'list'>, | |
'locals': <built-in function locals>, | |
'long': <type 'long'>, | |
'map': <built-in function map>, | |
'max': <built-in function max>, | |
'min': <built-in function min>, | |
'next': <built-in function next>, | |
'object': <type 'object'>, | |
'oct': <built-in function oct>, | |
'open': <built-in function open>, | |
'ord': <built-in function ord>, | |
'pow': <built-in function pow>, | |
'print': <built-in function print>, | |
'property': <type 'property'>, | |
'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, | |
'range': <built-in function range>, | |
'raw_input': <built-in function raw_input>, | |
'reduce': <built-in function reduce>, | |
'reload': <built-in function reload>, | |
'repr': <built-in function repr>, | |
'reversed': <type 'reversed'>, | |
'round': <built-in function round>, | |
'set': <type 'set'>, | |
'setattr': <built-in function setattr>, | |
'slice': <type 'slice'>, | |
'sorted': <built-in function sorted>, | |
'staticmethod': <type 'staticmethod'>, | |
'str': <type 'str'>, | |
'sum': <built-in function sum>, | |
'super': <type 'super'>, | |
'tuple': <type 'tuple'>, | |
'type': <type 'type'>, | |
'unichr': <built-in function unichr>, | |
'unicode': <type 'unicode'>, | |
'vars': <built-in function vars>, | |
'xrange': <type 'xrange'>, | |
'zip': <built-in function zip>}</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><module></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 <alias: south db module></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, {}, {}, [''])</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')"> "There is no South database module '%s' for your database. " + \</li><li onclick="toggle('pre59176216', 'post59176216')"> "Please either choose a supported database, check for " + \</li></ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '59176216')"><span>▶</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>{'ArithmeticError': <type 'exceptions.ArithmeticError'>, | |
'AssertionError': <type 'exceptions.AssertionError'>, | |
'AttributeError': <type 'exceptions.AttributeError'>, | |
'BaseException': <type 'exceptions.BaseException'>, | |
'BufferError': <type 'exceptions.BufferError'>, | |
'BytesWarning': <type 'exceptions.BytesWarning'>, | |
'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, | |
'EOFError': <type 'exceptions.EOFError'>, | |
'Ellipsis': Ellipsis, | |
'EnvironmentError': <type 'exceptions.EnvironmentError'>, | |
'Exception': <type 'exceptions.Exception'>, | |
'False': False, | |
'FloatingPointError': <type 'exceptions.FloatingPointError'>, | |
'FutureWarning': <type 'exceptions.FutureWarning'>, | |
'GeneratorExit': <type 'exceptions.GeneratorExit'>, | |
'IOError': <type 'exceptions.IOError'>, | |
'ImportError': <type 'exceptions.ImportError'>, | |
'ImportWarning': <type 'exceptions.ImportWarning'>, | |
'IndentationError': <type 'exceptions.IndentationError'>, | |
'IndexError': <type 'exceptions.IndexError'>, | |
'KeyError': <type 'exceptions.KeyError'>, | |
'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, | |
'LookupError': <type 'exceptions.LookupError'>, | |
'MemoryError': <type 'exceptions.MemoryError'>, | |
'NameError': <type 'exceptions.NameError'>, | |
'None': None, | |
'NotImplemented': NotImplemented, | |
'NotImplementedError': <type 'exceptions.NotImplementedError'>, | |
'OSError': <type 'exceptions.OSError'>, | |
'OverflowError': <type 'exceptions.OverflowError'>, | |
'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, | |
'ReferenceError': <type 'exceptions.ReferenceError'>, | |
'RuntimeError': <type 'exceptions.RuntimeError'>, | |
'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, | |
'StandardError': <type 'exceptions.StandardError'>, | |
'StopIteration': <type 'exceptions.StopIteration'>, | |
'SyntaxError': <type 'exceptions.SyntaxError'>, | |
'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, | |
'SystemError': <type 'exceptions.SystemError'>, | |
'SystemExit': <type 'exceptions.SystemExit'>, | |
'TabError': <type 'exceptions.TabError'>, | |
'True': True, | |
'TypeError': <type 'exceptions.TypeError'>, | |
'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, | |
'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, | |
'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, | |
'UnicodeError': <type 'exceptions.UnicodeError'>, | |
'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, | |
'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, | |
'UserWarning': <type 'exceptions.UserWarning'>, | |
'ValueError': <type 'exceptions.ValueError'>, | |
'Warning': <type 'exceptions.Warning'>, | |
'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, | |
'__debug__': True, | |
'__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", | |
'__import__': <built-in function __import__>, | |
'__name__': '__builtin__', | |
'__package__': None, | |
'abs': <built-in function abs>, | |
'all': <built-in function all>, | |
'any': <built-in function any>, | |
'apply': <built-in function apply>, | |
'basestring': <type 'basestring'>, | |
'bin': <built-in function bin>, | |
'bool': <type 'bool'>, | |
'buffer': <type 'buffer'>, | |
'bytearray': <type 'bytearray'>, | |
'bytes': <type 'str'>, | |
'callable': <built-in function callable>, | |
'chr': <built-in function chr>, | |
'classmethod': <type 'classmethod'>, | |
'cmp': <built-in function cmp>, | |
'coerce': <built-in function coerce>, | |
'compile': <built-in function compile>, | |
'complex': <type 'complex'>, | |
'copyright': 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., | |
'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands | |
for supporting Python development. See www.python.org for more information., | |
'delattr': <built-in function delattr>, | |
'dict': <type 'dict'>, | |
'dir': <built-in function dir>, | |
'divmod': <built-in function divmod>, | |
'enumerate': <type 'enumerate'>, | |
'eval': <built-in function eval>, | |
'execfile': <built-in function execfile>, | |
'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, | |
'file': <type 'file'>, | |
'filter': <built-in function filter>, | |
'float': <type 'float'>, | |
'format': <built-in function format>, | |
'frozenset': <type 'frozenset'>, | |
'getattr': <built-in function getattr>, | |
'globals': <built-in function globals>, | |
'hasattr': <built-in function hasattr>, | |
'hash': <built-in function hash>, | |
'help': Type help() for interactive help, or help(object) for help about object., | |
'hex': <built-in function hex>, | |
'id': <built-in function id>, | |
'input': <built-in function input>, | |
'int': <type 'int'>, | |
'intern': <built-in function intern>, | |
'isinstance': <built-in function isinstance>, | |
'issubclass': <built-in function issubclass>, | |
'iter': <built-in function iter>, | |
'len': <built-in function len>, | |
'license': Type license() to see the full license text, | |
'list': <type 'list'>, | |
'locals': <built-in function locals>, | |
'long': <type 'long'>, | |
'map': <built-in function map>, | |
'max': <built-in function max>, | |
'min': <built-in function min>, | |
'next': <built-in function next>, | |
'object': <type 'object'>, | |
'oct': <built-in function oct>, | |
'open': <built-in function open>, | |
'ord': <built-in function ord>, | |
'pow': <built-in function pow>, | |
'print': <built-in function print>, | |
'property': <type 'property'>, | |
'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, | |
'range': <built-in function range>, | |
'raw_input': <built-in function raw_input>, | |
'reduce': <built-in function reduce>, | |
'reload': <built-in function reload>, | |
'repr': <built-in function repr>, | |
'reversed': <type 'reversed'>, | |
'round': <built-in function round>, | |
'set': <type 'set'>, | |
'setattr': <built-in function setattr>, | |
'slice': <type 'slice'>, | |
'sorted': <built-in function sorted>, | |
'staticmethod': <type 'staticmethod'>, | |
'str': <type 'str'>, | |
'sum': <built-in function sum>, | |
'super': <type 'super'>, | |
'tuple': <type 'tuple'>, | |
'type': <type 'type'>, | |
'unichr': <built-in function unichr>, | |
'unicode': <type 'unicode'>, | |
'vars': <built-in function vars>, | |
'xrange': <type 'xrange'>, | |
'zip': <built-in function zip>}</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>▶</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>'INGESTION_SLAVE'</div></td> | |
</tr> | |
<tr> | |
<td>self</td> | |
<td class="code"><div><south.db.mysql.DatabaseOperations object at 0x3a99dd0></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')"> """</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')"> """</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('STORAGE_ENGINE') and self._get_setting('STORAGE_ENGINE'):</li><li onclick="toggle('pre59174992', 'post59174992')"> cursor.execute("SET storage_engine=%s;" % self._get_setting('STORAGE_ENGINE'))</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("SET FOREIGN_KEY_CHECKS=0;")</li><li onclick="toggle('pre59174992', 'post59174992')"> self.deferred_sql.append("SET FOREIGN_KEY_CHECKS=1;")</li><li onclick="toggle('pre59174992', 'post59174992')"></li></ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '59174992')"><span>▶</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><south.db.mysql.DatabaseOperations object at 0x3a99dd0></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>▶</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><django.db.backends.mysql.base.DatabaseWrapper object at 0x24523c0></div></td> | |
</tr> | |
<tr> | |
<td>settings</td> | |
<td class="code"><div><django.conf.LazySettings object at 0x7f05dc55a0d0></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['host'] = settings_dict['HOST']</li><li onclick="toggle('pre59178592', 'post59178592')"> if settings_dict['PORT']:</li><li onclick="toggle('pre59178592', 'post59178592')"> kwargs['port'] = int(settings_dict['PORT'])</li><li onclick="toggle('pre59178592', 'post59178592')"> # We need the number of potentially affected rows after an</li><li onclick="toggle('pre59178592', 'post59178592')"> # "UPDATE", not the number of changed rows.</li><li onclick="toggle('pre59178592', 'post59178592')"> kwargs['client_flag'] = CLIENT.FOUND_ROWS</li><li onclick="toggle('pre59178592', 'post59178592')"> kwargs.update(settings_dict['OPTIONS'])</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>▶</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>{'charset': 'utf8', | |
'client_flag': 2, | |
'conv': {0: <function typecast_decimal at 0x1ae3320>, | |
1: <type 'int'>, | |
2: <type 'int'>, | |
3: <type 'long'>, | |
4: <type 'float'>, | |
5: <type 'float'>, | |
7: <function mysql_timestamp_converter at 0x1af31b8>, | |
8: <type 'long'>, | |
9: <type 'int'>, | |
10: <function Date_or_None at 0x1af3050>, | |
11: <function typecast_time at 0x1ae31b8>, | |
12: <function DateTime_or_None at 0x1aece60>, | |
13: <type 'int'>, | |
15: [(128, <type 'str'>)], | |
246: <function typecast_decimal at 0x1ae3320>, | |
248: <function Str2Set at 0x1af3b90>, | |
252: [(128, <type 'str'>)], | |
253: [(128, <type 'str'>)], | |
254: [(128, <type 'str'>)], | |
<type 'datetime.datetime'>: <function DateTime2literal at 0x1af30c8>, | |
<type 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x1af3140>, | |
<type 'bool'>: <function Bool2Str at 0x1af60c8>, | |
<type 'instance'>: <function Instance2Str at 0x1af3ed8>, | |
<type 'float'>: <function Float2Str at 0x1af3d70>, | |
<type 'int'>: <function Thing2Str at 0x1af3c80>, | |
<type 'list'>: <built-in function escape_sequence>, | |
<type 'long'>: <function Thing2Str at 0x1af3c80>, | |
<type 'dict'>: <built-in function escape_dict>, | |
<type 'NoneType'>: <function None2NULL at 0x1af3de8>, | |
<type 'set'>: <function Set2Str at 0x1af3c08>, | |
<type 'str'>: <function Thing2Literal at 0x1af3e60>, | |
<type 'tuple'>: <built-in function escape_sequence>, | |
<type 'object'>: <function Instance2Str at 0x1af3ed8>, | |
<type 'unicode'>: <function Unicode2Str at 0x1af3cf8>, | |
<type 'array.array'>: <function array2Str at 0x1af6050>}, | |
'db': 'ingestion', | |
'init_command': 'SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED', | |
'passwd': 'z0l4', | |
'use_unicode': True, | |
'user': 'zoladb'}</div></td> | |
</tr> | |
<tr> | |
<td>self</td> | |
<td class="code"><div><django.db.backends.mysql.base.DatabaseWrapper object at 0x24523c0></div></td> | |
</tr> | |
<tr> | |
<td>settings_dict</td> | |
<td class="code"><div>{'ENGINE': 'django.db.backends.mysql', | |
'HOST': '', | |
'NAME': 'ingestion', | |
'OPTIONS': {'init_command': 'SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED'}, | |
'PASSWORD': 'z0l4', | |
'PORT': '', | |
'STORAGE_ENGINE': 'InnoDB', | |
'TEST_CHARSET': None, | |
'TEST_COLLATION': None, | |
'TEST_MIRROR': 'INGESTION_MASTER', | |
'TEST_NAME': None, | |
'TIME_ZONE': 'America/Los_Angeles', | |
'USER': 'zoladb'}</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')"> """Factory function for connections.Connection."""</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__ = [ 'BINARY', 'Binary', 'Connect', 'Connection', 'DATE',</li><li onclick="toggle('pre59177872', 'post59177872')"> 'Date', 'Time', 'Timestamp', 'DateFromTicks', 'TimeFromTicks',</li><li onclick="toggle('pre59177872', 'post59177872')"> 'TimestampFromTicks', 'DataError', 'DatabaseError', 'Error',</li></ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '59177872')"><span>▶</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><class 'MySQLdb.connections.Connection'></div></td> | |
</tr> | |
<tr> | |
<td>args</td> | |
<td class="code"><div>()</div></td> | |
</tr> | |
<tr> | |
<td>kwargs</td> | |
<td class="code"><div>{'charset': 'utf8', | |
'client_flag': 2, | |
'conv': {0: <function typecast_decimal at 0x1ae3320>, | |
1: <type 'int'>, | |
2: <type 'int'>, | |
3: <type 'long'>, | |
4: <type 'float'>, | |
5: <type 'float'>, | |
7: <function mysql_timestamp_converter at 0x1af31b8>, | |
8: <type 'long'>, | |
9: <type 'int'>, | |
10: <function Date_or_None at 0x1af3050>, | |
11: <function typecast_time at 0x1ae31b8>, | |
12: <function DateTime_or_None at 0x1aece60>, | |
13: <type 'int'>, | |
15: [(128, <type 'str'>)], | |
246: <function typecast_decimal at 0x1ae3320>, | |
248: <function Str2Set at 0x1af3b90>, | |
252: [(128, <type 'str'>)], | |
253: [(128, <type 'str'>)], | |
254: [(128, <type 'str'>)], | |
<type 'datetime.datetime'>: <function DateTime2literal at 0x1af30c8>, | |
<type 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x1af3140>, | |
<type 'bool'>: <function Bool2Str at 0x1af60c8>, | |
<type 'instance'>: <function Instance2Str at 0x1af3ed8>, | |
<type 'float'>: <function Float2Str at 0x1af3d70>, | |
<type 'int'>: <function Thing2Str at 0x1af3c80>, | |
<type 'list'>: <built-in function escape_sequence>, | |
<type 'long'>: <function Thing2Str at 0x1af3c80>, | |
<type 'dict'>: <built-in function escape_dict>, | |
<type 'NoneType'>: <function None2NULL at 0x1af3de8>, | |
<type 'set'>: <function Set2Str at 0x1af3c08>, | |
<type 'str'>: <function Thing2Literal at 0x1af3e60>, | |
<type 'tuple'>: <built-in function escape_sequence>, | |
<type 'object'>: <function Instance2Str at 0x1af3ed8>, | |
<type 'unicode'>: <function Unicode2Str at 0x1af3cf8>, | |
<type 'array.array'>: <function array2Str at 0x1af6050>}, | |
'db': 'ingestion', | |
'init_command': 'SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED', | |
'passwd': 'z0l4', | |
'use_unicode': True, | |
'user': 'zoladb'}</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 >= (4, 1):</li><li onclick="toggle('pre59177800', 'post59177800')"> client_flag |= CLIENT.MULTI_STATEMENTS</li><li onclick="toggle('pre59177800', 'post59177800')"> if client_version >= (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['client_flag'] = 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('.')[:2] ])</li><li onclick="toggle('pre59177800', 'post59177800')"></li></ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '59177800')"><span>▶</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><module 'MySQLdb.constants.CLIENT' from '/usr/lib/pymodules/python2.6/MySQLdb/constants/CLIENT.pyc'></div></td> | |
</tr> | |
<tr> | |
<td>FIELD_TYPE</td> | |
<td class="code"><div><module 'MySQLdb.constants.FIELD_TYPE' from '/usr/lib/pymodules/python2.6/MySQLdb/constants/FIELD_TYPE.pyc'></div></td> | |
</tr> | |
<tr> | |
<td>WeakValueDictionary</td> | |
<td class="code"><div><class weakref.WeakValueDictionary at 0x1431e90></div></td> | |
</tr> | |
<tr> | |
<td>args</td> | |
<td class="code"><div>()</div></td> | |
</tr> | |
<tr> | |
<td>charset</td> | |
<td class="code"><div>'utf8'</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: <function typecast_decimal at 0x1ae3320>, | |
1: <type 'int'>, | |
2: <type 'int'>, | |
3: <type 'long'>, | |
4: <type 'float'>, | |
5: <type 'float'>, | |
7: <function mysql_timestamp_converter at 0x1af31b8>, | |
8: <type 'long'>, | |
9: <type 'int'>, | |
10: <function Date_or_None at 0x1af3050>, | |
11: <function typecast_time at 0x1ae31b8>, | |
12: <function DateTime_or_None at 0x1aece60>, | |
13: <type 'int'>, | |
15: [(128, <type 'str'>)], | |
246: <function typecast_decimal at 0x1ae3320>, | |
248: <function Str2Set at 0x1af3b90>, | |
252: [(128, <type 'str'>)], | |
253: [(128, <type 'str'>)], | |
254: [(128, <type 'str'>)], | |
<type 'datetime.datetime'>: <function DateTime2literal at 0x1af30c8>, | |
<type 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x1af3140>, | |
<type 'bool'>: <function Bool2Str at 0x1af60c8>, | |
<type 'instance'>: <function Instance2Str at 0x1af3ed8>, | |
<type 'float'>: <function Float2Str at 0x1af3d70>, | |
<type 'int'>: <function Thing2Str at 0x1af3c80>, | |
<type 'list'>: <built-in function escape_sequence>, | |
<type 'long'>: <function Thing2Str at 0x1af3c80>, | |
<type 'dict'>: <built-in function escape_dict>, | |
<type 'NoneType'>: <function None2NULL at 0x1af3de8>, | |
<type 'set'>: <function Set2Str at 0x1af3c08>, | |
<type 'str'>: <function Thing2Literal at 0x1af3e60>, | |
<type 'tuple'>: <built-in function escape_sequence>, | |
<type 'object'>: <function Instance2Str at 0x1af3ed8>, | |
<type 'unicode'>: <function Unicode2Str at 0x1af3cf8>, | |
<type 'array.array'>: <function array2Str at 0x1af6050>}</div></td> | |
</tr> | |
<tr> | |
<td>conv2</td> | |
<td class="code"><div>{0: <function typecast_decimal at 0x1ae3320>, | |
1: <type 'int'>, | |
2: <type 'int'>, | |
3: <type 'long'>, | |
4: <type 'float'>, | |
5: <type 'float'>, | |
7: <function mysql_timestamp_converter at 0x1af31b8>, | |
8: <type 'long'>, | |
9: <type 'int'>, | |
10: <function Date_or_None at 0x1af3050>, | |
11: <function typecast_time at 0x1ae31b8>, | |
12: <function DateTime_or_None at 0x1aece60>, | |
13: <type 'int'>, | |
15: [(128, <type 'str'>)], | |
246: <function typecast_decimal at 0x1ae3320>, | |
248: <function Str2Set at 0x1af3b90>, | |
252: [(128, <type 'str'>)], | |
253: [(128, <type 'str'>)], | |
254: [(128, <type 'str'>)]}</div></td> | |
</tr> | |
<tr> | |
<td>conversions</td> | |
<td class="code"><div>{0: <class 'decimal.Decimal'>, | |
1: <type 'int'>, | |
2: <type 'int'>, | |
3: <type 'long'>, | |
4: <type 'float'>, | |
5: <type 'float'>, | |
7: <function mysql_timestamp_converter at 0x1af31b8>, | |
8: <type 'long'>, | |
9: <type 'int'>, | |
10: <function Date_or_None at 0x1af3050>, | |
11: <function TimeDelta_or_None at 0x1aeced8>, | |
12: <function DateTime_or_None at 0x1aece60>, | |
13: <type 'int'>, | |
15: [(128, <type 'str'>)], | |
246: <class 'decimal.Decimal'>, | |
248: <function Str2Set at 0x1af3b90>, | |
252: [(128, <type 'str'>)], | |
253: [(128, <type 'str'>)], | |
254: [(128, <type 'str'>)], | |
<type 'datetime.datetime'>: <function DateTime2literal at 0x1af30c8>, | |
<type 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x1af3140>, | |
<type 'bool'>: <function Bool2Str at 0x1af60c8>, | |
<type 'instance'>: <function Instance2Str at 0x1af3ed8>, | |
<type 'float'>: <function Float2Str at 0x1af3d70>, | |
<type 'int'>: <function Thing2Str at 0x1af3c80>, | |
<type 'list'>: <built-in function escape_sequence>, | |
<type 'long'>: <function Thing2Str at 0x1af3c80>, | |
<type 'dict'>: <built-in function escape_dict>, | |
<type 'NoneType'>: <function None2NULL at 0x1af3de8>, | |
<type 'set'>: <function Set2Str at 0x1af3c08>, | |
<type 'str'>: <function Thing2Literal at 0x1af3e60>, | |
<type 'tuple'>: <built-in function escape_sequence>, | |
<type 'object'>: <function Instance2Str at 0x1af3ed8>, | |
<type 'unicode'>: <function Unicode2Str at 0x1af3cf8>, | |
<type 'array.array'>: <function array2Str at 0x1af6050>}</div></td> | |
</tr> | |
<tr> | |
<td>k</td> | |
<td class="code"><div>254</div></td> | |
</tr> | |
<tr> | |
<td>kwargs</td> | |
<td class="code"><div>{'charset': 'utf8', | |
'client_flag': 2, | |
'conv': {0: <function typecast_decimal at 0x1ae3320>, | |
1: <type 'int'>, | |
2: <type 'int'>, | |
3: <type 'long'>, | |
4: <type 'float'>, | |
5: <type 'float'>, | |
7: <function mysql_timestamp_converter at 0x1af31b8>, | |
8: <type 'long'>, | |
9: <type 'int'>, | |
10: <function Date_or_None at 0x1af3050>, | |
11: <function typecast_time at 0x1ae31b8>, | |
12: <function DateTime_or_None at 0x1aece60>, | |
13: <type 'int'>, | |
15: [(128, <type 'str'>)], | |
246: <function typecast_decimal at 0x1ae3320>, | |
248: <function Str2Set at 0x1af3b90>, | |
252: [(128, <type 'str'>)], | |
253: [(128, <type 'str'>)], | |
254: [(128, <type 'str'>)], | |
<type 'datetime.datetime'>: <function DateTime2literal at 0x1af30c8>, | |
<type 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x1af3140>, | |
<type 'bool'>: <function Bool2Str at 0x1af60c8>, | |
<type 'instance'>: <function Instance2Str at 0x1af3ed8>, | |
<type 'float'>: <function Float2Str at 0x1af3d70>, | |
<type 'int'>: <function Thing2Str at 0x1af3c80>, | |
<type 'list'>: <built-in function escape_sequence>, | |
<type 'long'>: <function Thing2Str at 0x1af3c80>, | |
<type 'dict'>: <built-in function escape_dict>, | |
<type 'NoneType'>: <function None2NULL at 0x1af3de8>, | |
<type 'set'>: <function Set2Str at 0x1af3c08>, | |
<type 'str'>: <function Thing2Literal at 0x1af3e60>, | |
<type 'tuple'>: <built-in function escape_sequence>, | |
<type 'object'>: <function Instance2Str at 0x1af3ed8>, | |
<type 'unicode'>: <function Unicode2Str at 0x1af3cf8>, | |
<type 'array.array'>: <function array2Str at 0x1af6050>}, | |
'db': 'ingestion', | |
'init_command': 'SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED', | |
'passwd': 'z0l4', | |
'use_unicode': True, | |
'user': 'zoladb'}</div></td> | |
</tr> | |
<tr> | |
<td>kwargs2</td> | |
<td class="code"><div>{'client_flag': 196610, | |
'conv': {0: <function typecast_decimal at 0x1ae3320>, | |
1: <type 'int'>, | |
2: <type 'int'>, | |
3: <type 'long'>, | |
4: <type 'float'>, | |
5: <type 'float'>, | |
7: <function mysql_timestamp_converter at 0x1af31b8>, | |
8: <type 'long'>, | |
9: <type 'int'>, | |
10: <function Date_or_None at 0x1af3050>, | |
11: <function typecast_time at 0x1ae31b8>, | |
12: <function DateTime_or_None at 0x1aece60>, | |
13: <type 'int'>, | |
15: [(128, <type 'str'>)], | |
246: <function typecast_decimal at 0x1ae3320>, | |
248: <function Str2Set at 0x1af3b90>, | |
252: [(128, <type 'str'>)], | |
253: [(128, <type 'str'>)], | |
254: [(128, <type 'str'>)]}, | |
'db': 'ingestion', | |
'init_command': 'SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED', | |
'passwd': 'z0l4', | |
'user': 'zoladb'}</div></td> | |
</tr> | |
<tr> | |
<td>n</td> | |
<td class="code"><div>'1'</div></td> | |
</tr> | |
<tr> | |
<td>proxy</td> | |
<td class="code"><div><built-in function proxy></div></td> | |
</tr> | |
<tr> | |
<td>self</td> | |
<td class="code"><div><_mysql.connection closed at 491ead0></div></td> | |
</tr> | |
<tr> | |
<td>sql_mode</td> | |
<td class="code"><div>''</div></td> | |
</tr> | |
<tr> | |
<td>types</td> | |
<td class="code"><div><module 'types' from '/usr/lib/python2.6/types.pyc'></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, <type 'str'>)]</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: | |
['rdio.auth', | |
'django.contrib.contenttypes', | |
'django.contrib.sessions', | |
'django.contrib.sites', | |
'rdio.accounts', | |
'rdio.admin', | |
'rdio.library', | |
'rdio.network_updates', | |
'south', | |
'rdio.utils', | |
'rdio.utils.carbon', | |
'rdio.web.debug_toolbar', | |
'rdio.amg', | |
'rdio.search', | |
'rdio.web.api', | |
'rdio.download', | |
'rdio.comments', | |
'rdio.stats', | |
'rdio.payment', | |
'rdio.jambase', | |
'rdio.emails', | |
'rdio.devices', | |
'rdio.permanent_recorder', | |
'rdio.ce', | |
'cpserver', | |
'rdio.cache', | |
'rdio.offline', | |
'rdio.ingestions', | |
'rdio.ingestions.orchard', | |
'rdio.ingestions.sony', | |
'rdio.ingestions.warner', | |
'rdio.ingestions.ingrooves', | |
'rdio.ingestions.emi', | |
'rdio.ingestions.ioda', | |
'rdio.ingestions.universal', | |
'rdio.ingestions.iris', | |
'rdio.reporting', | |
'rdio.external.audioscrobbler', | |
'rdio.musicbrainz'] | |
Installed Middleware: | |
('rdio.utils.fixups.RequestFixupMiddleware', | |
'django.contrib.sessions.middleware.SessionMiddleware', | |
'django.middleware.common.CommonMiddleware', | |
'rdio.web.middleware.ajaxerror.AjaxErrorMiddleware', | |
'rdio.web.middleware.contentlength.ContentLengthMiddleware', | |
'rdio.web.middleware.carbon.CarbonMiddleware', | |
'rdio.auth.middleware.AuthenticationMiddleware', | |
'rdio.utils.perfmon.middleware.PerformanceMonitorMiddleware', | |
'rdio.web.admin.middleware.StaticPageFallbackMiddleware', | |
'django.middleware.doc.XViewMiddleware', | |
'rdio.web.middleware.local.ThreadLocalMiddleware', | |
'rdio.web.middleware.local.QuerySetCacheMiddleware', | |
'rdio.web.middleware.local.ModelInstanceCacheMiddleware', | |
'rdio.web.debug_toolbar.middleware.DebugToolbarMiddleware', | |
'rdio.web.middleware.error.ErrorLoggingMiddleware', | |
'rdio.web.mobile.mobileredirect.MobileRedirectMiddleware') | |
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('base.html', 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 'snippets/header/your_links_logged_in.html' %} | |
File "/srv/rdio/web/releases/20100803204233/rdio/web/templates/snippets/header/your_links_logged_in.html" in top-level template code | |
23. <li id="header_link_upgrade" {% if request.user.has_subscription(exclude_trial=True) %}style="display:none;"{% endif %}> | |
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 <module> | |
2. from south.db import DEFAULT_DB_ALIAS | |
File "/srv/rdio/web/current/contrib/south/db/__init__.py" in <module> | |
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, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)") | |
</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>'225830489.1968707507.1280841052.1280863702.1280867010.3'</div></td> | |
</tr> | |
<tr> | |
<td>__utmz</td> | |
<td class="code"><div>'225830489.1280841052.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)'</div></td> | |
</tr> | |
<tr> | |
<td>r</td> | |
<td class="code"><div>'eyJfdSI6IDUyMzAyLCAiX2UiOiAwfQ.AwgnvBbPUybH7sbwMz8m7akJasQ'</div></td> | |
</tr> | |
<tr> | |
<td>__utmb</td> | |
<td class="code"><div>'225830489.22.10.1280867010'</div></td> | |
</tr> | |
<tr> | |
<td>__utmc</td> | |
<td class="code"><div>'225830489'</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>''</div></td> | |
</tr> | |
<tr> | |
<td>CONTENT_TYPE</td> | |
<td class="code"><div>''</div></td> | |
</tr> | |
<tr> | |
<td>DOCUMENT_ROOT</td> | |
<td class="code"><div>'/usr/local/nginx/html'</div></td> | |
</tr> | |
<tr> | |
<td>HTTP_ACCEPT</td> | |
<td class="code"><div>'application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'</div></td> | |
</tr> | |
<tr> | |
<td>HTTP_ACCEPT_CHARSET</td> | |
<td class="code"><div>'ISO-8859-1,utf-8;q=0.7,*;q=0.3'</div></td> | |
</tr> | |
<tr> | |
<td>HTTP_ACCEPT_ENCODING</td> | |
<td class="code"><div>'gzip,deflate,sdch'</div></td> | |
</tr> | |
<tr> | |
<td>HTTP_ACCEPT_LANGUAGE</td> | |
<td class="code"><div>'en-US,en;q=0.8'</div></td> | |
</tr> | |
<tr> | |
<td>HTTP_CACHE_CONTROL</td> | |
<td class="code"><div>'max-age=0'</div></td> | |
</tr> | |
<tr> | |
<td>HTTP_CONNECTION</td> | |
<td class="code"><div>'close'</div></td> | |
</tr> | |
<tr> | |
<td>HTTP_COOKIE</td> | |
<td class="code"><div>'__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'</div></td> | |
</tr> | |
<tr> | |
<td>HTTP_HOST</td> | |
<td class="code"><div>'www.rdio.com'</div></td> | |
</tr> | |
<tr> | |
<td>HTTP_USER_AGENT</td> | |
<td class="code"><div>'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'</div></td> | |
</tr> | |
<tr> | |
<td>HTTP_X_FORWARDED_FOR</td> | |
<td class="code"><div>'199.71.183.2'</div></td> | |
</tr> | |
<tr> | |
<td>HTTP_X_SCHEME</td> | |
<td class="code"><div>'http'</div></td> | |
</tr> | |
<tr> | |
<td>PATH_INFO</td> | |
<td class="code"><div>u'/'</div></td> | |
</tr> | |
<tr> | |
<td>QUERY_STRING</td> | |
<td class="code"><div>''</div></td> | |
</tr> | |
<tr> | |
<td>REMOTE_ADDR</td> | |
<td class="code"><div>'10.10.10.103'</div></td> | |
</tr> | |
<tr> | |
<td>REMOTE_PORT</td> | |
<td class="code"><div>'52238'</div></td> | |
</tr> | |
<tr> | |
<td>REQUEST_METHOD</td> | |
<td class="code"><div>'GET'</div></td> | |
</tr> | |
<tr> | |
<td>REQUEST_URI</td> | |
<td class="code"><div>'//'</div></td> | |
</tr> | |
<tr> | |
<td>SCRIPT_NAME</td> | |
<td class="code"><div>u''</div></td> | |
</tr> | |
<tr> | |
<td>SERVER_NAME</td> | |
<td class="code"><div>'srv-101-15'</div></td> | |
</tr> | |
<tr> | |
<td>SERVER_PORT</td> | |
<td class="code"><div>'80'</div></td> | |
</tr> | |
<tr> | |
<td>SERVER_PROTOCOL</td> | |
<td class="code"><div>'HTTP/1.0'</div></td> | |
</tr> | |
<tr> | |
<td>wsgi.errors</td> | |
<td class="code"><div><open file 'wsgi_input', mode 'w' at 0x382b8b0></div></td> | |
</tr> | |
<tr> | |
<td>wsgi.file_wrapper</td> | |
<td class="code"><div><built-in function uwsgi_sendfile></div></td> | |
</tr> | |
<tr> | |
<td>wsgi.input</td> | |
<td class="code"><div><open file 'wsgi_input', mode 'r' at 0x39fbf10></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>'http'</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>'/media/media/'</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>'rdio.auth.backends.ModelBackend'</div></td> | |
</tr> | |
<tr> | |
<td>AUTHENTICATION_BACKENDS</td> | |
<td class="code"><div>('django.contrib.auth.backends.ModelBackend',)</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>'127.0.0.1:8000/media/'</div></td> | |
</tr> | |
<tr> | |
<td>BASE_URL</td> | |
<td class="code"><div>'127.0.0.1:8000'</div></td> | |
</tr> | |
<tr> | |
<td>BROKER_HOST</td> | |
<td class="code"><div>'localhost'</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>'********************'</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>'devrdiomq'</div></td> | |
</tr> | |
<tr> | |
<td>BROKER_VHOST</td> | |
<td class="code"><div>'dev_rdio'</div></td> | |
</tr> | |
<tr> | |
<td>CACHE_BACKEND</td> | |
<td class="code"><div>'locmem://'</div></td> | |
</tr> | |
<tr> | |
<td>CACHE_MIDDLEWARE_KEY_PREFIX</td> | |
<td class="code"><div>''</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>'localhost'</div></td> | |
</tr> | |
<tr> | |
<td>CARROT_BACKEND</td> | |
<td class="code"><div>'amqplib'</div></td> | |
</tr> | |
<tr> | |
<td>CASSANDRA_HOSTS</td> | |
<td class="code"><div>['10.200.1.39:9160']</div></td> | |
</tr> | |
<tr> | |
<td>COMMAND_EMAIL_LIST</td> | |
<td class="code"><div>'debugspew@rd.io'</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>['US', 'CA']</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>'csrftoken'</div></td> | |
</tr> | |
<tr> | |
<td>CSRF_FAILURE_VIEW</td> | |
<td class="code"><div>'django.views.csrf.csrf_failure'</div></td> | |
</tr> | |
<tr> | |
<td>CYBERSOURCE_DEFAULT_CURRENCY</td> | |
<td class="code"><div>'USD'</div></td> | |
</tr> | |
<tr> | |
<td>CYBERSOURCE_MERCHANT_ID</td> | |
<td class="code"><div>'pulser'</div></td> | |
</tr> | |
<tr> | |
<td>CYBERSOURCE_PROCESSOR_URL</td> | |
<td class="code"><div>'https://ics2wstest.ic3.com/commerce/1.x/transactionProcessor/CyberSourceTransaction_1.26.wsdl'</div></td> | |
</tr> | |
<tr> | |
<td>CYBERSOURCE_TRANSACTION_KEY</td> | |
<td class="code"><div>'0W1c8sD3Y7q8BDbSJ+0nsVVBq+PWN8Dq2nwsQ+A59tSxrMVPCd/IJlGzviieMk/WJOAQGdyvT6bb0496RuzWN9PnjdiMx5vvAsI4KXDv4tY5PBWwTVcsmfrQerbZdaUj+hGvNgE7pAov/0013VooZ7uJ5GKULHSml/TXJwZjfIEYX8i0U/RlUaapUQQn7SexVUGr49Y3wOrafCxD4Dn21LGsxU8J38gmUbO+KJ4yT9Yk4BAZ3K9PptvTj3pG7NY30+eN2IzHm+8CwjgpcO/i1jk8FbBNVyyZ+tB6ttl1pSP6Ea82ATukCi//TTXdWihnu4nkYpQsdKaX9NcnBmN8gQ=='</div></td> | |
</tr> | |
<tr> | |
<td>DATABASES</td> | |
<td class="code"><div>{'INGESTION_MASTER': {'ENGINE': 'django.db.backends.mysql', | |
'HOST': '', | |
'NAME': 'ingestion', | |
'OPTIONS': {'init_command': 'SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED'}, | |
'PASSWORD': '********************', | |
'PORT': '', | |
'STORAGE_ENGINE': 'InnoDB', | |
'TEST_CHARSET': None, | |
'TEST_COLLATION': None, | |
'TEST_MIRROR': None, | |
'TEST_NAME': None, | |
'TIME_ZONE': 'America/Los_Angeles', | |
'USER': 'zoladb'}, | |
'INGESTION_SLAVE': {'ENGINE': 'django.db.backends.mysql', | |
'HOST': '', | |
'NAME': 'ingestion', | |
'OPTIONS': {'init_command': 'SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED'}, | |
'PASSWORD': '********************', | |
'PORT': '', | |
'STORAGE_ENGINE': 'InnoDB', | |
'TEST_CHARSET': None, | |
'TEST_COLLATION': None, | |
'TEST_MIRROR': 'INGESTION_MASTER', | |
'TEST_NAME': None, | |
'TIME_ZONE': 'America/Los_Angeles', | |
'USER': 'zoladb'}, | |
'default': {'ENGINE': 'django.db.backends.mysql', | |
'HOST': '10.10.60.43', | |
'NAME': 'rdio', | |
'OPTIONS': {'init_command': 'SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED'}, | |
'PASSWORD': '********************', | |
'PORT': '3306', | |
'TEST_CHARSET': None, | |
'TEST_COLLATION': None, | |
'TEST_MIRROR': None, | |
'TEST_NAME': None, | |
'TIME_ZONE': 'America/Los_Angeles', | |
'USER': 'rdiodb'}, | |
'default_0': {'ENGINE': 'django.db.backends.mysql', | |
'HOST': '10.10.60.43', | |
'NAME': 'rdio', | |
'OPTIONS': {'init_command': 'SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED'}, | |
'PASSWORD': '********************', | |
'PORT': '3306', | |
'TEST_CHARSET': None, | |
'TEST_COLLATION': None, | |
'TEST_MIRROR': 'default', | |
'TEST_NAME': None, | |
'TIME_ZONE': 'America/Los_Angeles', | |
'USER': 'rdiodb'}}</div></td> | |
</tr> | |
<tr> | |
<td>DATABASE_ENGINE</td> | |
<td class="code"><div>''</div></td> | |
</tr> | |
<tr> | |
<td>DATABASE_HOST</td> | |
<td class="code"><div>''</div></td> | |
</tr> | |
<tr> | |
<td>DATABASE_NAME</td> | |
<td class="code"><div>''</div></td> | |
</tr> | |
<tr> | |
<td>DATABASE_OPTIONS</td> | |
<td class="code"><div>{}</div></td> | |
</tr> | |
<tr> | |
<td>DATABASE_PASSWORD</td> | |
<td class="code"><div>'********************'</div></td> | |
</tr> | |
<tr> | |
<td>DATABASE_PORT</td> | |
<td class="code"><div>''</div></td> | |
</tr> | |
<tr> | |
<td>DATABASE_ROUTERS</td> | |
<td class="code"><div>['rdio.utils.db.routers.IngestionRouter', 'rdio.utils.db.routers.SlaveRouter']</div></td> | |
</tr> | |
<tr> | |
<td>DATABASE_USER</td> | |
<td class="code"><div>'zoladb'</div></td> | |
</tr> | |
<tr> | |
<td>DATETIME_FORMAT</td> | |
<td class="code"><div>'N j, Y, P'</div></td> | |
</tr> | |
<tr> | |
<td>DATETIME_INPUT_FORMATS</td> | |
<td class="code"><div>('%Y-%m-%d %H:%M:%S', | |
'%Y-%m-%d %H:%M', | |
'%Y-%m-%d', | |
'%m/%d/%Y %H:%M:%S', | |
'%m/%d/%Y %H:%M', | |
'%m/%d/%Y', | |
'%m/%d/%y %H:%M:%S', | |
'%m/%d/%y %H:%M', | |
'%m/%d/%y')</div></td> | |
</tr> | |
<tr> | |
<td>DATE_FORMAT</td> | |
<td class="code"><div>'N j, Y'</div></td> | |
</tr> | |
<tr> | |
<td>DATE_INPUT_FORMATS</td> | |
<td class="code"><div>('%Y-%m-%d', | |
'%m/%d/%Y', | |
'%m/%d/%y', | |
'%b %d %Y', | |
'%b %d, %Y', | |
'%d %b %Y', | |
'%d %b, %Y', | |
'%B %d %Y', | |
'%B %d, %Y', | |
'%d %B %Y', | |
'%d %B, %Y')</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>{'init_command': 'SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED'}</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>'.'</div></td> | |
</tr> | |
<tr> | |
<td>DEFAULT_CHARSET</td> | |
<td class="code"><div>'utf-8'</div></td> | |
</tr> | |
<tr> | |
<td>DEFAULT_CONTENT_TYPE</td> | |
<td class="code"><div>'text/html'</div></td> | |
</tr> | |
<tr> | |
<td>DEFAULT_FILE_STORAGE</td> | |
<td class="code"><div>'django.core.files.storage.FileSystemStorage'</div></td> | |
</tr> | |
<tr> | |
<td>DEFAULT_FROM_EMAIL</td> | |
<td class="code"><div>'webmaster@localhost'</div></td> | |
</tr> | |
<tr> | |
<td>DEFAULT_INDEX_TABLESPACE</td> | |
<td class="code"><div>''</div></td> | |
</tr> | |
<tr> | |
<td>DEFAULT_TABLESPACE</td> | |
<td class="code"><div>''</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>'http://downloads.aninternetstartup.com'</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>'django.core.mail.backends.smtp.EmailBackend'</div></td> | |
</tr> | |
<tr> | |
<td>EMAIL_HOST</td> | |
<td class="code"><div>'localhost'</div></td> | |
</tr> | |
<tr> | |
<td>EMAIL_HOST_PASSWORD</td> | |
<td class="code"><div>'********************'</div></td> | |
</tr> | |
<tr> | |
<td>EMAIL_HOST_USER</td> | |
<td class="code"><div>''</div></td> | |
</tr> | |
<tr> | |
<td>EMAIL_PORT</td> | |
<td class="code"><div>'25'</div></td> | |
</tr> | |
<tr> | |
<td>EMAIL_SUBJECT_PREFIX</td> | |
<td class="code"><div>'[Django] '</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>{'cassandra': 500, 'mysql': 15, 'redis': 500}</div></td> | |
</tr> | |
<tr> | |
<td>EVERY_BURGER_LOG_FILE</td> | |
<td class="code"><div>'/tmp/everyburger_log'</div></td> | |
</tr> | |
<tr> | |
<td>EVERY_BURGER_NODES</td> | |
<td class="code"><div>{'everyburger': {'designation': 'everyburger_king', | |
'host': '127.0.0.1', | |
'service_port': 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>'localhost'</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>'fce0cf9d3cc953a5da72eafd4a93c0f7'</div></td> | |
</tr> | |
<tr> | |
<td>FACEBOOK_CLIENT_ID</td> | |
<td class="code"><div>'124639620883758'</div></td> | |
</tr> | |
<tr> | |
<td>FACEBOOK_SECRET</td> | |
<td class="code"><div>'********************'</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>'utf-8'</div></td> | |
</tr> | |
<tr> | |
<td>FILE_UPLOAD_HANDLERS</td> | |
<td class="code"><div>('django.core.files.uploadhandler.MemoryFileUploadHandler', | |
'django.core.files.uploadhandler.TemporaryFileUploadHandler')</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>('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')</div></td> | |
</tr> | |
<tr> | |
<td>IGNORABLE_404_STARTS</td> | |
<td class="code"><div>('/cgi-bin/', '/_vti_bin', '/_vti_inf')</div></td> | |
</tr> | |
<tr> | |
<td>IMAGESERVER_ADDRESS</td> | |
<td class="code"><div>'http://www.rdio.com/_is/'</div></td> | |
</tr> | |
<tr> | |
<td>INGESTION_CONDUCTOR_HOST</td> | |
<td class="code"><div>'localhost'</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>'localhost'</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>{'ENGINE': 'django.db.backends.mysql', | |
'HOST': '', | |
'NAME': 'ingestion', | |
'OPTIONS': {'init_command': 'SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED'}, | |
'PASSWORD': '********************', | |
'PORT': '', | |
'STORAGE_ENGINE': 'InnoDB', | |
'TEST_CHARSET': None, | |
'TEST_COLLATION': None, | |
'TEST_MIRROR': None, | |
'TEST_NAME': None, | |
'TIME_ZONE': 'America/Los_Angeles', | |
'USER': 'zoladb'}</div></td> | |
</tr> | |
<tr> | |
<td>INGESTION_SLAVE</td> | |
<td class="code"><div>{'ENGINE': 'django.db.backends.mysql', | |
'HOST': '', | |
'NAME': 'ingestion', | |
'OPTIONS': {'init_command': 'SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED'}, | |
'PASSWORD': '********************', | |
'PORT': '', | |
'STORAGE_ENGINE': 'InnoDB', | |
'TEST_CHARSET': None, | |
'TEST_COLLATION': None, | |
'TEST_MIRROR': 'INGESTION_MASTER', | |
'TEST_NAME': None, | |
'TIME_ZONE': 'America/Los_Angeles', | |
'USER': 'zoladb'}</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>['rdio.auth', | |
'django.contrib.contenttypes', | |
'django.contrib.sessions', | |
'django.contrib.sites', | |
'rdio.accounts', | |
'rdio.admin', | |
'rdio.library', | |
'rdio.network_updates', | |
'south', | |
'rdio.utils', | |
'rdio.utils.carbon', | |
'rdio.web.debug_toolbar', | |
'rdio.amg', | |
'rdio.search', | |
'rdio.web.api', | |
'rdio.download', | |
'rdio.comments', | |
'rdio.stats', | |
'rdio.payment', | |
'rdio.jambase', | |
'rdio.emails', | |
'rdio.devices', | |
'rdio.permanent_recorder', | |
'rdio.ce', | |
'cpserver', | |
'rdio.cache', | |
'rdio.offline', | |
'rdio.ingestions', | |
'rdio.ingestions.orchard', | |
'rdio.ingestions.sony', | |
'rdio.ingestions.warner', | |
'rdio.ingestions.ingrooves', | |
'rdio.ingestions.emi', | |
'rdio.ingestions.ioda', | |
'rdio.ingestions.universal', | |
'rdio.ingestions.iris', | |
'rdio.reporting', | |
'rdio.external.audioscrobbler', | |
'rdio.musicbrainz']</div></td> | |
</tr> | |
<tr> | |
<td>INTERNAL_IPS</td> | |
<td class="code"><div>('127.0.0.1', '67.170.208.232')</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>(('ar', 'Arabic'), | |
('bg', 'Bulgarian'), | |
('bn', 'Bengali'), | |
('bs', 'Bosnian'), | |
('ca', 'Catalan'), | |
('cs', 'Czech'), | |
('cy', 'Welsh'), | |
('da', 'Danish'), | |
('de', 'German'), | |
('el', 'Greek'), | |
('en', 'English'), | |
('es', 'Spanish'), | |
('es-ar', 'Argentinean Spanish'), | |
('et', 'Estonian'), | |
('eu', 'Basque'), | |
('fa', 'Persian'), | |
('fi', 'Finnish'), | |
('fr', 'French'), | |
('fy-nl', 'Frisian'), | |
('ga', 'Irish'), | |
('gl', 'Galician'), | |
('he', 'Hebrew'), | |
('hi', 'Hindi'), | |
('hr', 'Croatian'), | |
('hu', 'Hungarian'), | |
('is', 'Icelandic'), | |
('it', 'Italian'), | |
('ja', 'Japanese'), | |
('ka', 'Georgian'), | |
('km', 'Khmer'), | |
('kn', 'Kannada'), | |
('ko', 'Korean'), | |
('lt', 'Lithuanian'), | |
('lv', 'Latvian'), | |
('mk', 'Macedonian'), | |
('nl', 'Dutch'), | |
('no', 'Norwegian'), | |
('pl', 'Polish'), | |
('pt', 'Portuguese'), | |
('pt-br', 'Brazilian Portuguese'), | |
('ro', 'Romanian'), | |
('ru', 'Russian'), | |
('sk', 'Slovak'), | |
('sl', 'Slovenian'), | |
('sq', 'Albanian'), | |
('sr', 'Serbian'), | |
('sr-latn', 'Serbian Latin'), | |
('sv', 'Swedish'), | |
('ta', 'Tamil'), | |
('te', 'Telugu'), | |
('th', 'Thai'), | |
('tr', 'Turkish'), | |
('uk', 'Ukrainian'), | |
('vi', 'Vietnamese'), | |
('zh-cn', 'Simplified Chinese'), | |
('zh-tw', 'Traditional Chinese'))</div></td> | |
</tr> | |
<tr> | |
<td>LANGUAGES_BIDI</td> | |
<td class="code"><div>('he', 'ar', 'fa')</div></td> | |
</tr> | |
<tr> | |
<td>LANGUAGE_CODE</td> | |
<td class="code"><div>'en-us'</div></td> | |
</tr> | |
<tr> | |
<td>LANGUAGE_COOKIE_NAME</td> | |
<td class="code"><div>'django_language'</div></td> | |
</tr> | |
<tr> | |
<td>LASTFM_API_KEY</td> | |
<td class="code"><div>'8f8401f602138394a93ec7dd2f8d6d0c'</div></td> | |
</tr> | |
<tr> | |
<td>LASTFM_SECRET</td> | |
<td class="code"><div>'********************'</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>'/usr/share/GeoIP'</div></td> | |
</tr> | |
<tr> | |
<td>LOGGING_FILE</td> | |
<td class="code"><div>'logging.console'</div></td> | |
</tr> | |
<tr> | |
<td>LOGIN_REDIRECT_URL</td> | |
<td class="code"><div>'/accounts/profile/'</div></td> | |
</tr> | |
<tr> | |
<td>LOGIN_URL</td> | |
<td class="code"><div>'/accounts/login/'</div></td> | |
</tr> | |
<tr> | |
<td>LOGOUT_URL</td> | |
<td class="code"><div>'/accounts/logout/'</div></td> | |
</tr> | |
<tr> | |
<td>MANAGERS</td> | |
<td class="code"><div>()</div></td> | |
</tr> | |
<tr> | |
<td>MEDIA_ROOT</td> | |
<td class="code"><div>'/srv/rdio/web/releases/20100803204233/rdio/web/media/'</div></td> | |
</tr> | |
<tr> | |
<td>MEDIA_URL</td> | |
<td class="code"><div>'/media/'</div></td> | |
</tr> | |
<tr> | |
<td>MEMCACHED_SERVERS</td> | |
<td class="code"><div>[('10.200.1.39', 11212)]</div></td> | |
</tr> | |
<tr> | |
<td>MESSAGE_STORAGE</td> | |
<td class="code"><div>'django.contrib.messages.storage.user_messages.LegacyFallbackStorage'</div></td> | |
</tr> | |
<tr> | |
<td>MIDDLEWARE_CLASSES</td> | |
<td class="code"><div>('rdio.utils.fixups.RequestFixupMiddleware', | |
'django.contrib.sessions.middleware.SessionMiddleware', | |
'django.middleware.common.CommonMiddleware', | |
'rdio.web.middleware.ajaxerror.AjaxErrorMiddleware', | |
'rdio.web.middleware.contentlength.ContentLengthMiddleware', | |
'rdio.web.middleware.carbon.CarbonMiddleware', | |
'rdio.auth.middleware.AuthenticationMiddleware', | |
'rdio.utils.perfmon.middleware.PerformanceMonitorMiddleware', | |
'rdio.web.admin.middleware.StaticPageFallbackMiddleware', | |
'django.middleware.doc.XViewMiddleware', | |
'rdio.web.middleware.local.ThreadLocalMiddleware', | |
'rdio.web.middleware.local.QuerySetCacheMiddleware', | |
'rdio.web.middleware.local.ModelInstanceCacheMiddleware', | |
'rdio.web.debug_toolbar.middleware.DebugToolbarMiddleware', | |
'rdio.web.middleware.error.ErrorLoggingMiddleware', | |
'rdio.web.mobile.mobileredirect.MobileRedirectMiddleware')</div></td> | |
</tr> | |
<tr> | |
<td>MONGO_MASTER</td> | |
<td class="code"><div>('10.200.1.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>'F j'</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>'********************'</div></td> | |
</tr> | |
<tr> | |
<td>PERMANENT_RECORDER_BASE_PATH</td> | |
<td class="code"><div>'/srv/rdio/permanent_recorder_logs/dev'</div></td> | |
</tr> | |
<tr> | |
<td>PERMANENT_RECORDER_REDIS_NODES</td> | |
<td class="code"><div>[('127.0.0.1', 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>'http://media.aninternetstartup.com'</div></td> | |
</tr> | |
<tr> | |
<td>PROFANITIES_LIST</td> | |
<td class="code"><div>'********************'</div></td> | |
</tr> | |
<tr> | |
<td>PROFILE</td> | |
<td class="code"><div>''</div></td> | |
</tr> | |
<tr> | |
<td>RDIO_MASTER</td> | |
<td class="code"><div>{'ENGINE': 'django.db.backends.mysql', | |
'HOST': '10.10.60.43', | |
'NAME': 'rdio', | |
'OPTIONS': {'init_command': 'SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED'}, | |
'PASSWORD': '********************', | |
'PORT': '3306', | |
'TEST_CHARSET': None, | |
'TEST_COLLATION': None, | |
'TEST_MIRROR': None, | |
'TEST_NAME': None, | |
'TIME_ZONE': 'America/Los_Angeles', | |
'USER': 'rdiodb'}</div></td> | |
</tr> | |
<tr> | |
<td>RDIO_ROOT</td> | |
<td class="code"><div>'/srv/rdio/web/releases/20100803204233/rdio'</div></td> | |
</tr> | |
<tr> | |
<td>RDIO_SLAVE</td> | |
<td class="code"><div>{'ENGINE': 'django.db.backends.mysql', | |
'HOST': '10.10.60.43', | |
'NAME': 'rdio', | |
'OPTIONS': {'init_command': 'SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED'}, | |
'PASSWORD': '********************', | |
'PORT': '3306', | |
'TEST_CHARSET': None, | |
'TEST_COLLATION': None, | |
'TEST_MIRROR': 'default', | |
'TEST_NAME': None, | |
'TIME_ZONE': 'America/Los_Angeles', | |
'USER': 'rdiodb'}</div></td> | |
</tr> | |
<tr> | |
<td>RDIO_SLAVES</td> | |
<td class="code"><div>[{'ENGINE': 'django.db.backends.mysql', | |
'HOST': '10.10.60.43', | |
'NAME': 'rdio', | |
'OPTIONS': {'init_command': 'SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED'}, | |
'PASSWORD': 'Aw48sIyu99C7c8di7', | |
'PORT': '3306', | |
'TEST_CHARSET': None, | |
'TEST_COLLATION': None, | |
'TEST_MIRROR': 'default', | |
'TEST_NAME': None, | |
'TIME_ZONE': 'America/Los_Angeles', | |
'USER': 'rdiodb'}]</div></td> | |
</tr> | |
<tr> | |
<td>RDIO_SLAVE_2</td> | |
<td class="code"><div>{'ENGINE': 'django.db.backends.mysql', | |
'HOST': '10.10.60.44', | |
'NAME': 'rdio', | |
'OPTIONS': {'init_command': 'SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED'}, | |
'PASSWORD': '********************', | |
'PORT': '3306', | |
'USER': 'slaverdiodb'}</div></td> | |
</tr> | |
<tr> | |
<td>RDIO_SLAVE_3</td> | |
<td class="code"><div>{'ENGINE': 'django.db.backends.mysql', | |
'HOST': '10.10.60.51', | |
'NAME': 'rdio', | |
'OPTIONS': {'init_command': 'SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED'}, | |
'PASSWORD': '********************', | |
'PORT': '3306', | |
'USER': 'slaverdiodb'}</div></td> | |
</tr> | |
<tr> | |
<td>RDIO_SLAVE_4</td> | |
<td class="code"><div>{'ENGINE': 'django.db.backends.mysql', | |
'HOST': '10.10.60.53', | |
'NAME': 'rdio', | |
'OPTIONS': {'init_command': 'SET storage_engine=INNODB, SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED'}, | |
'PASSWORD': '********************', | |
'PORT': '3306', | |
'USER': 'slaverdiodb'}</div></td> | |
</tr> | |
<tr> | |
<td>RDIO_SLAVE_KEYS</td> | |
<td class="code"><div>['default_0']</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>[('default:0', '127.0.0.1', 6379)]</div></td> | |
</tr> | |
<tr> | |
<td>ROOT_URLCONF</td> | |
<td class="code"><div>'rdio.urls'</div></td> | |
</tr> | |
<tr> | |
<td>RUNCP_STARTUP_FUNCS</td> | |
<td class="code"><div>(('rdio.mq.message_bus', '_init_messagebus'),)</div></td> | |
</tr> | |
<tr> | |
<td>SEARCH_HOST</td> | |
<td class="code"><div>'localhost'</div></td> | |
</tr> | |
<tr> | |
<td>SEARCH_INDEX_PATH</td> | |
<td class="code"><div>'/srv/rdio/_dev_search_index'</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>'********************'</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>'root@localhost'</div></td> | |
</tr> | |
<tr> | |
<td>SERVER_HOSTNAME</td> | |
<td class="code"><div>'srv-101-15'</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>'r'</div></td> | |
</tr> | |
<tr> | |
<td>SESSION_COOKIE_PATH</td> | |
<td class="code"><div>'/'</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>'rdio.accounts.cookie_session'</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>'rdio.settings'</div></td> | |
</tr> | |
<tr> | |
<td>SHORT_DATETIME_FORMAT</td> | |
<td class="code"><div>'m/d/Y P'</div></td> | |
</tr> | |
<tr> | |
<td>SHORT_DATE_FORMAT</td> | |
<td class="code"><div>'m/d/Y'</div></td> | |
</tr> | |
<tr> | |
<td>SHORT_URL_DOMAIN</td> | |
<td class="code"><div>'http://127.0.0.1:8000'</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>'/srv/rdio/solr_data/dev'</div></td> | |
</tr> | |
<tr> | |
<td>SOLR_CORE</td> | |
<td class="code"><div>'rdio1'</div></td> | |
</tr> | |
<tr> | |
<td>SOLR_HOST</td> | |
<td class="code"><div>'localhost'</div></td> | |
</tr> | |
<tr> | |
<td>SOLR_INITIAL_MEM_SIZE</td> | |
<td class="code"><div>'512M'</div></td> | |
</tr> | |
<tr> | |
<td>SOLR_JETTY_HOST</td> | |
<td class="code"><div>'0.0.0.0'</div></td> | |
</tr> | |
<tr> | |
<td>SOLR_MAX_MEM_SIZE</td> | |
<td class="code"><div>'1024M'</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>'/srv/rdio/remote_backup/generated_reports'</div></td> | |
</tr> | |
<tr> | |
<td>TAKEDOWN_LISTENER_HOST</td> | |
<td class="code"><div>'localhost'</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>('django.core.context_processors.auth', | |
'django.core.context_processors.debug', | |
'django.core.context_processors.i18n', | |
'django.core.context_processors.media', | |
'django.core.context_processors.request', | |
'rdio.baseurl')</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>('/srv/rdio/web/releases/20100803204233/rdio/web/templates',)</div></td> | |
</tr> | |
<tr> | |
<td>TEMPLATE_LOADERS</td> | |
<td class="code"><div>('django.template.loaders.filesystem.load_template_source', | |
'django.template.loaders.app_directories.load_template_source')</div></td> | |
</tr> | |
<tr> | |
<td>TEMPLATE_STRING_IF_INVALID</td> | |
<td class="code"><div>''</div></td> | |
</tr> | |
<tr> | |
<td>TEMP_DIR</td> | |
<td class="code"><div>'/tmp/'</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>'django.test.simple.DjangoTestSuiteRunner'</div></td> | |
</tr> | |
<tr> | |
<td>THOUSAND_SEPARATOR</td> | |
<td class="code"><div>','</div></td> | |
</tr> | |
<tr> | |
<td>TIME_FORMAT</td> | |
<td class="code"><div>'P'</div></td> | |
</tr> | |
<tr> | |
<td>TIME_INPUT_FORMATS</td> | |
<td class="code"><div>('%H:%M:%S', '%H:%M')</div></td> | |
</tr> | |
<tr> | |
<td>TIME_ZONE</td> | |
<td class="code"><div>'America/Los_Angeles'</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>'OLAYZvnoehSIOLHc3yvw'</div></td> | |
</tr> | |
<tr> | |
<td>TWITTER_CONSUMER_SECRET</td> | |
<td class="code"><div>'********************'</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>'Django/1.2 beta 1 (http://www.djangoproject.com)'</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>'F Y'</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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is this for?
I notice it contains a Last.fm API key.