| 1 |
|
|---|
| 2 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|---|
| 3 | <html lang="en">
|
|---|
| 4 | <head>
|
|---|
| 5 | <meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|---|
| 6 | <meta name="robots" content="NONE,NOARCHIVE" />
|
|---|
| 7 | <title>TypeError at /databrowse/</title>
|
|---|
| 8 | <style type="text/css">
|
|---|
| 9 | html * { padding:0; margin:0; }
|
|---|
| 10 | body * { padding:10px 20px; }
|
|---|
| 11 | body * * { padding:0; }
|
|---|
| 12 | body { font:small sans-serif; }
|
|---|
| 13 | body>div { border-bottom:1px solid #ddd; }
|
|---|
| 14 | h1 { font-weight:normal; }
|
|---|
| 15 | h2 { margin-bottom:.8em; }
|
|---|
| 16 | h2 span { font-size:80%; color:#666; font-weight:normal; }
|
|---|
| 17 | h3 { margin:1em 0 .5em 0; }
|
|---|
| 18 | h4 { margin:0 0 .5em 0; font-weight: normal; }
|
|---|
| 19 | table { border:1px solid #ccc; border-collapse: collapse; width:100%; background:white; }
|
|---|
| 20 | tbody td, tbody th { vertical-align:top; padding:2px 3px; }
|
|---|
| 21 | thead th { padding:1px 6px 1px 3px; background:#fefefe; text-align:left; font-weight:normal; font-size:11px; border:1px solid #ddd; }
|
|---|
| 22 | tbody th { width:12em; text-align:right; color:#666; padding-right:.5em; }
|
|---|
| 23 | table.vars { margin:5px 0 2px 40px; }
|
|---|
| 24 | table.vars td, table.req td { font-family:monospace; }
|
|---|
| 25 | table td.code { width:100%; }
|
|---|
| 26 | table td.code div { overflow:hidden; }
|
|---|
| 27 | table.source th { color:#666; }
|
|---|
| 28 | table.source td { font-family:monospace; white-space:pre; border-bottom:1px solid #eee; }
|
|---|
| 29 | ul.traceback { list-style-type:none; }
|
|---|
| 30 | ul.traceback li.frame { margin-bottom:1em; }
|
|---|
| 31 | div.context { margin: 10px 0; }
|
|---|
| 32 | div.context ol { padding-left:30px; margin:0 10px; list-style-position: inside; }
|
|---|
| 33 | div.context ol li { font-family:monospace; white-space:pre; color:#666; cursor:pointer; }
|
|---|
| 34 | div.context ol.context-line li { color:black; background-color:#ccc; }
|
|---|
| 35 | div.context ol.context-line li span { float: right; }
|
|---|
| 36 | div.commands { margin-left: 40px; }
|
|---|
| 37 | div.commands a { color:black; text-decoration:none; }
|
|---|
| 38 | #summary { background: #ffc; }
|
|---|
| 39 | #summary h2 { font-weight: normal; color: #666; }
|
|---|
| 40 | #explanation { background:#eee; }
|
|---|
| 41 | #template, #template-not-exist { background:#f6f6f6; }
|
|---|
| 42 | #template-not-exist ul { margin: 0 0 0 20px; }
|
|---|
| 43 | #traceback { background:#eee; }
|
|---|
| 44 | #requestinfo { background:#f6f6f6; padding-left:120px; }
|
|---|
| 45 | #summary table { border:none; background:transparent; }
|
|---|
| 46 | #requestinfo h2, #requestinfo h3 { position:relative; margin-left:-100px; }
|
|---|
| 47 | #requestinfo h3 { margin-bottom:-1em; }
|
|---|
| 48 | .error { background: #ffc; }
|
|---|
| 49 | .specific { color:#cc3300; font-weight:bold; }
|
|---|
| 50 | </style>
|
|---|
| 51 | <script type="text/javascript">
|
|---|
| 52 | //<!--
|
|---|
| 53 | function getElementsByClassName(oElm, strTagName, strClassName){
|
|---|
| 54 | // Written by Jonathan Snook, http://www.snook.ca/jon; Add-ons by Robert Nyman, http://www.robertnyman.com
|
|---|
| 55 | var arrElements = (strTagName == "*" && document.all)? document.all :
|
|---|
| 56 | oElm.getElementsByTagName(strTagName);
|
|---|
| 57 | var arrReturnElements = new Array();
|
|---|
| 58 | strClassName = strClassName.replace(/\-/g, "\-");
|
|---|
| 59 | var oRegExp = new RegExp("(^|\s)" + strClassName + "(\s|$)");
|
|---|
| 60 | var oElement;
|
|---|
| 61 | for(var i=0; i<arrElements.length; i++){
|
|---|
| 62 | oElement = arrElements[i];
|
|---|
| 63 | if(oRegExp.test(oElement.className)){
|
|---|
| 64 | arrReturnElements.push(oElement);
|
|---|
| 65 | }
|
|---|
| 66 | }
|
|---|
| 67 | return (arrReturnElements)
|
|---|
| 68 | }
|
|---|
| 69 | function hideAll(elems) {
|
|---|
| 70 | for (var e = 0; e < elems.length; e++) {
|
|---|
| 71 | elems[e].style.display = 'none';
|
|---|
| 72 | }
|
|---|
| 73 | }
|
|---|
| 74 | window.onload = function() {
|
|---|
| 75 | hideAll(getElementsByClassName(document, 'table', 'vars'));
|
|---|
| 76 | hideAll(getElementsByClassName(document, 'ol', 'pre-context'));
|
|---|
| 77 | hideAll(getElementsByClassName(document, 'ol', 'post-context'));
|
|---|
| 78 | hideAll(getElementsByClassName(document, 'div', 'pastebin'));
|
|---|
| 79 | }
|
|---|
| 80 | function toggle() {
|
|---|
| 81 | for (var i = 0; i < arguments.length; i++) {
|
|---|
| 82 | var e = document.getElementById(arguments[i]);
|
|---|
| 83 | if (e) {
|
|---|
| 84 | e.style.display = e.style.display == 'none' ? 'block' : 'none';
|
|---|
| 85 | }
|
|---|
| 86 | }
|
|---|
| 87 | return false;
|
|---|
| 88 | }
|
|---|
| 89 | function varToggle(link, id) {
|
|---|
| 90 | toggle('v' + id);
|
|---|
| 91 | var s = link.getElementsByTagName('span')[0];
|
|---|
| 92 | var uarr = String.fromCharCode(0x25b6);
|
|---|
| 93 | var darr = String.fromCharCode(0x25bc);
|
|---|
| 94 | s.innerHTML = s.innerHTML == uarr ? darr : uarr;
|
|---|
| 95 | return false;
|
|---|
| 96 | }
|
|---|
| 97 | function switchPastebinFriendly(link) {
|
|---|
| 98 | s1 = "Switch to copy-and-paste view";
|
|---|
| 99 | s2 = "Switch back to interactive view";
|
|---|
| 100 | link.innerHTML = link.innerHTML == s1 ? s2 : s1;
|
|---|
| 101 | toggle('browserTraceback', 'pastebinTraceback');
|
|---|
| 102 | return false;
|
|---|
| 103 | }
|
|---|
| 104 | //-->
|
|---|
| 105 | </script>
|
|---|
| 106 | </head>
|
|---|
| 107 | <body>
|
|---|
| 108 |
|
|---|
| 109 | <div id="summary">
|
|---|
| 110 | <h1>TypeError at /databrowse/</h1>
|
|---|
| 111 | <h2>coercing to Unicode: need string or buffer, __proxy__ found</h2>
|
|---|
| 112 | <table class="meta">
|
|---|
| 113 | <tr>
|
|---|
| 114 | <th>Request Method:</th>
|
|---|
| 115 | <td>GET</td>
|
|---|
| 116 | </tr>
|
|---|
| 117 | <tr>
|
|---|
| 118 | <th>Request URL:</th>
|
|---|
| 119 | <td>http://bitprophet.dyndns.org:8080/databrowse/</td>
|
|---|
| 120 | </tr>
|
|---|
| 121 | <tr>
|
|---|
| 122 | <th>Exception Type:</th>
|
|---|
| 123 | <td>TypeError</td>
|
|---|
| 124 | </tr>
|
|---|
| 125 | <tr>
|
|---|
| 126 | <th>Exception Value:</th>
|
|---|
| 127 | <td>coercing to Unicode: need string or buffer, __proxy__ found</td>
|
|---|
| 128 | </tr>
|
|---|
| 129 | <tr>
|
|---|
| 130 | <th>Exception Location:</th>
|
|---|
| 131 | <td>/usr/lib/python2.5/site-packages/django/utils/encoding.py in force_unicode, line 38</td>
|
|---|
| 132 | </tr>
|
|---|
| 133 | <tr>
|
|---|
| 134 | <th>Python Executable:</th>
|
|---|
| 135 | <td>/usr/bin/python</td>
|
|---|
| 136 | </tr>
|
|---|
| 137 | <tr>
|
|---|
| 138 | <th>Python Version:</th>
|
|---|
| 139 | <td>2.5.0</td>
|
|---|
| 140 | </tr>
|
|---|
| 141 | </table>
|
|---|
| 142 | </div>
|
|---|
| 143 |
|
|---|
| 144 |
|
|---|
| 145 | <div id="template">
|
|---|
| 146 | <h2>Template error</h2>
|
|---|
| 147 | <p>In template <code>/usr/lib/python2.5/site-packages/django/contrib/databrowse/templates/databrowse/homepage.html</code>, error at line <strong>9</strong></p>
|
|---|
| 148 | <h3>Caught an exception while rendering: coercing to Unicode: need string or buffer, __proxy__ found</h3>
|
|---|
| 149 | <table class="source cut-top cut-bottom">
|
|---|
| 150 |
|
|---|
| 151 |
|
|---|
| 152 | <tr><th>1</th>
|
|---|
| 153 | <td>{% extends "databrowse/base.html" %}
|
|---|
| 154 | </td></tr>
|
|---|
| 155 |
|
|---|
| 156 |
|
|---|
| 157 |
|
|---|
| 158 | <tr><th>2</th>
|
|---|
| 159 | <td>
|
|---|
| 160 | </td></tr>
|
|---|
| 161 |
|
|---|
| 162 |
|
|---|
| 163 |
|
|---|
| 164 | <tr><th>3</th>
|
|---|
| 165 | <td>{% block title %}Databrowse{% endblock %}
|
|---|
| 166 | </td></tr>
|
|---|
| 167 |
|
|---|
| 168 |
|
|---|
| 169 |
|
|---|
| 170 | <tr><th>4</th>
|
|---|
| 171 | <td>
|
|---|
| 172 | </td></tr>
|
|---|
| 173 |
|
|---|
| 174 |
|
|---|
| 175 |
|
|---|
| 176 | <tr><th>5</th>
|
|---|
| 177 | <td>{% block bodyid %}homepage{% endblock %}
|
|---|
| 178 | </td></tr>
|
|---|
| 179 |
|
|---|
| 180 |
|
|---|
| 181 |
|
|---|
| 182 | <tr><th>6</th>
|
|---|
| 183 | <td>
|
|---|
| 184 | </td></tr>
|
|---|
| 185 |
|
|---|
| 186 |
|
|---|
| 187 |
|
|---|
| 188 | <tr><th>7</th>
|
|---|
| 189 | <td>{% block content %}
|
|---|
| 190 | </td></tr>
|
|---|
| 191 |
|
|---|
| 192 |
|
|---|
| 193 |
|
|---|
| 194 | <tr><th>8</th>
|
|---|
| 195 | <td>
|
|---|
| 196 | </td></tr>
|
|---|
| 197 |
|
|---|
| 198 |
|
|---|
| 199 |
|
|---|
| 200 | <tr class="error"><th>9</th>
|
|---|
| 201 | <td><span class="specific">{% for model in model_list %}</span>
|
|---|
| 202 | </td></tr>
|
|---|
| 203 |
|
|---|
| 204 |
|
|---|
| 205 |
|
|---|
| 206 | <tr><th>10</th>
|
|---|
| 207 | <td> <div class="modelgroup {% cycle even,odd %}">
|
|---|
| 208 | </td></tr>
|
|---|
| 209 |
|
|---|
| 210 |
|
|---|
| 211 |
|
|---|
| 212 | <tr><th>11</th>
|
|---|
| 213 | <td> <h2><a href="{{ model.url }}">{{ model.verbose_name_plural|capfirst }}</a></h2>
|
|---|
| 214 | </td></tr>
|
|---|
| 215 |
|
|---|
| 216 |
|
|---|
| 217 |
|
|---|
| 218 | <tr><th>12</th>
|
|---|
| 219 | <td> <p>
|
|---|
| 220 | </td></tr>
|
|---|
| 221 |
|
|---|
| 222 |
|
|---|
| 223 |
|
|---|
| 224 | <tr><th>13</th>
|
|---|
| 225 | <td> {% for object in model.sample_objects %}
|
|---|
| 226 | </td></tr>
|
|---|
| 227 |
|
|---|
| 228 |
|
|---|
| 229 |
|
|---|
| 230 | <tr><th>14</th>
|
|---|
| 231 | <td> <a href="{{ object.url }}">{{ object }}</a>,
|
|---|
| 232 | </td></tr>
|
|---|
| 233 |
|
|---|
| 234 |
|
|---|
| 235 |
|
|---|
| 236 | <tr><th>15</th>
|
|---|
| 237 | <td> {% endfor %}
|
|---|
| 238 | </td></tr>
|
|---|
| 239 |
|
|---|
| 240 |
|
|---|
| 241 |
|
|---|
| 242 | <tr><th>16</th>
|
|---|
| 243 | <td> <a class="more" href="{{ model.url }}">More &rarr;</a>
|
|---|
| 244 | </td></tr>
|
|---|
| 245 |
|
|---|
| 246 |
|
|---|
| 247 |
|
|---|
| 248 | <tr><th>17</th>
|
|---|
| 249 | <td> </p>
|
|---|
| 250 | </td></tr>
|
|---|
| 251 |
|
|---|
| 252 |
|
|---|
| 253 |
|
|---|
| 254 | <tr><th>18</th>
|
|---|
| 255 | <td> </div>
|
|---|
| 256 | </td></tr>
|
|---|
| 257 |
|
|---|
| 258 |
|
|---|
| 259 |
|
|---|
| 260 | <tr><th>19</th>
|
|---|
| 261 | <td>{% endfor %}
|
|---|
| 262 | </td></tr>
|
|---|
| 263 |
|
|---|
| 264 |
|
|---|
| 265 | </table>
|
|---|
| 266 | </div>
|
|---|
| 267 |
|
|---|
| 268 | <div id="traceback">
|
|---|
| 269 | <h2>Traceback <span>(innermost last)</span></h2>
|
|---|
| 270 | <div class="commands"><a href="#" onclick="return switchPastebinFriendly(this);">Switch to copy-and-paste view</a></div>
|
|---|
| 271 | <br/>
|
|---|
| 272 | <div id="browserTraceback">
|
|---|
| 273 | <ul class="traceback">
|
|---|
| 274 |
|
|---|
| 275 | <li class="frame">
|
|---|
| 276 | <code>/usr/lib/python2.5/site-packages/django/template/__init__.py</code> in <code>render_node</code>
|
|---|
| 277 |
|
|---|
| 278 |
|
|---|
| 279 | <div class="context" id="c154975044">
|
|---|
| 280 |
|
|---|
| 281 | <ol start="747" class="pre-context" id="pre154975044"><li onclick="toggle('pre154975044', 'post154975044')"></li><li onclick="toggle('pre154975044', 'post154975044')"> def render_node(self, node, context):</li><li onclick="toggle('pre154975044', 'post154975044')"> return node.render(context)</li><li onclick="toggle('pre154975044', 'post154975044')"></li><li onclick="toggle('pre154975044', 'post154975044')">class DebugNodeList(NodeList):</li><li onclick="toggle('pre154975044', 'post154975044')"> def render_node(self, node, context):</li><li onclick="toggle('pre154975044', 'post154975044')"> try:</li></ol>
|
|---|
| 282 |
|
|---|
| 283 | <ol start="754" class="context-line"><li onclick="toggle('pre154975044', 'post154975044')"> result = node.render(context) <span>...</span></li></ol>
|
|---|
| 284 |
|
|---|
| 285 | <ol start='755' class="post-context" id="post154975044"><li onclick="toggle('pre154975044', 'post154975044')"> except TemplateSyntaxError, e:</li><li onclick="toggle('pre154975044', 'post154975044')"> if not hasattr(e, 'source'):</li><li onclick="toggle('pre154975044', 'post154975044')"> e.source = node.source</li><li onclick="toggle('pre154975044', 'post154975044')"> raise</li><li onclick="toggle('pre154975044', 'post154975044')"> except Exception, e:</li><li onclick="toggle('pre154975044', 'post154975044')"> from sys import exc_info</li></ol>
|
|---|
| 286 |
|
|---|
| 287 | </div>
|
|---|
| 288 |
|
|---|
| 289 |
|
|---|
| 290 |
|
|---|
| 291 | <div class="commands">
|
|---|
| 292 | <a href="#" onclick="return varToggle(this, '154975044')"><span>▶</span> Local vars</a>
|
|---|
| 293 | </div>
|
|---|
| 294 | <table class="vars" id="v154975044">
|
|---|
| 295 | <thead>
|
|---|
| 296 | <tr>
|
|---|
| 297 | <th>Variable</th>
|
|---|
| 298 | <th>Value</th>
|
|---|
| 299 | </tr>
|
|---|
| 300 | </thead>
|
|---|
| 301 | <tbody>
|
|---|
| 302 |
|
|---|
| 303 | <tr>
|
|---|
| 304 | <td>context</td>
|
|---|
| 305 | <td class="code"><div>[{'forloop': {'parentloop': {}, 'last': False, 'counter': 2, 'revcounter0': 1, 'revcounter': 2, 'counter0': 1, 'first': False}, u'model': <EasyModel for Job>}, {'block': <Block Node: content. Contents: [<Text Node: '
|
|---|
| 306 |
|
|---|
| 307 | '>, <For Node: for model in model_list, tail_len: 11>, <Text Node: '
|
|---|
| 308 |
|
|---|
| 309 | '>]>}, {'root_url': u'/databrowse/', 'model_list': [<EasyModel for Person>, <EasyModel for Job>, <EasyModel for Company>]}]</div></td>
|
|---|
| 310 | </tr>
|
|---|
| 311 |
|
|---|
| 312 | <tr>
|
|---|
| 313 | <td>e</td>
|
|---|
| 314 | <td class="code"><div>TypeError('coercing to Unicode: need string or buffer, __proxy__ found',)</div></td>
|
|---|
| 315 | </tr>
|
|---|
| 316 |
|
|---|
| 317 | <tr>
|
|---|
| 318 | <td>exc_info</td>
|
|---|
| 319 | <td class="code"><div><built-in function exc_info></div></td>
|
|---|
| 320 | </tr>
|
|---|
| 321 |
|
|---|
| 322 | <tr>
|
|---|
| 323 | <td>node</td>
|
|---|
| 324 | <td class="code"><div><For Node: for model in model_list, tail_len: 11></div></td>
|
|---|
| 325 | </tr>
|
|---|
| 326 |
|
|---|
| 327 | <tr>
|
|---|
| 328 | <td>self</td>
|
|---|
| 329 | <td class="code"><div>[<Text Node: '
|
|---|
| 330 |
|
|---|
| 331 | '>,
|
|---|
| 332 | <For Node: for model in model_list, tail_len: 11>,
|
|---|
| 333 | <Text Node: '
|
|---|
| 334 |
|
|---|
| 335 | '>]</div></td>
|
|---|
| 336 | </tr>
|
|---|
| 337 |
|
|---|
| 338 | <tr>
|
|---|
| 339 | <td>wrapped</td>
|
|---|
| 340 | <td class="code"><div>TemplateSyntaxError('Caught an exception while rendering: coercing to Unicode: need string or buffer, __proxy__ found',)</div></td>
|
|---|
| 341 | </tr>
|
|---|
| 342 |
|
|---|
| 343 | </tbody>
|
|---|
| 344 | </table>
|
|---|
| 345 |
|
|---|
| 346 | </li>
|
|---|
| 347 |
|
|---|
| 348 | <li class="frame">
|
|---|
| 349 | <code>/usr/lib/python2.5/site-packages/django/template/defaulttags.py</code> in <code>render</code>
|
|---|
| 350 |
|
|---|
| 351 |
|
|---|
| 352 | <div class="context" id="c154975004">
|
|---|
| 353 |
|
|---|
| 354 | <ol start="127" class="pre-context" id="pre154975004"><li onclick="toggle('pre154975004', 'post154975004')"> }</li><li onclick="toggle('pre154975004', 'post154975004')"> if unpack:</li><li onclick="toggle('pre154975004', 'post154975004')"> # If there are multiple loop variables, unpack the item into them.</li><li onclick="toggle('pre154975004', 'post154975004')"> context.update(dict(zip(self.loopvars, item)))</li><li onclick="toggle('pre154975004', 'post154975004')"> else:</li><li onclick="toggle('pre154975004', 'post154975004')"> context[self.loopvars[0]] = item</li><li onclick="toggle('pre154975004', 'post154975004')"> for node in self.nodelist_loop:</li></ol>
|
|---|
| 355 |
|
|---|
| 356 | <ol start="134" class="context-line"><li onclick="toggle('pre154975004', 'post154975004')"> nodelist.append(node.render(context)) <span>...</span></li></ol>
|
|---|
| 357 |
|
|---|
| 358 | <ol start='135' class="post-context" id="post154975004"><li onclick="toggle('pre154975004', 'post154975004')"> if unpack:</li><li onclick="toggle('pre154975004', 'post154975004')"> # The loop variables were pushed on to the context so pop them</li><li onclick="toggle('pre154975004', 'post154975004')"> # off again. This is necessary because the tag lets the length</li><li onclick="toggle('pre154975004', 'post154975004')"> # of loopvars differ to the length of each set of items and we</li><li onclick="toggle('pre154975004', 'post154975004')"> # don't want to leave any vars from the previous loop on the</li><li onclick="toggle('pre154975004', 'post154975004')"> # context.</li></ol>
|
|---|
| 359 |
|
|---|
| 360 | </div>
|
|---|
| 361 |
|
|---|
| 362 |
|
|---|
| 363 |
|
|---|
| 364 | <div class="commands">
|
|---|
| 365 | <a href="#" onclick="return varToggle(this, '154975004')"><span>▶</span> Local vars</a>
|
|---|
| 366 | </div>
|
|---|
| 367 | <table class="vars" id="v154975004">
|
|---|
| 368 | <thead>
|
|---|
| 369 | <tr>
|
|---|
| 370 | <th>Variable</th>
|
|---|
| 371 | <th>Value</th>
|
|---|
| 372 | </tr>
|
|---|
| 373 | </thead>
|
|---|
| 374 | <tbody>
|
|---|
| 375 |
|
|---|
| 376 | <tr>
|
|---|
| 377 | <td>context</td>
|
|---|
| 378 | <td class="code"><div>[{'forloop': {'parentloop': {}, 'last': False, 'counter': 2, 'revcounter0': 1, 'revcounter': 2, 'counter0': 1, 'first': False}, u'model': <EasyModel for Job>}, {'block': <Block Node: content. Contents: [<Text Node: '
|
|---|
| 379 |
|
|---|
| 380 | '>, <For Node: for model in model_list, tail_len: 11>, <Text Node: '
|
|---|
| 381 |
|
|---|
| 382 | '>]>}, {'root_url': u'/databrowse/', 'model_list': [<EasyModel for Person>, <EasyModel for Job>, <EasyModel for Company>]}]</div></td>
|
|---|
| 383 | </tr>
|
|---|
| 384 |
|
|---|
| 385 | <tr>
|
|---|
| 386 | <td>i</td>
|
|---|
| 387 | <td class="code"><div>1</div></td>
|
|---|
| 388 | </tr>
|
|---|
| 389 |
|
|---|
| 390 | <tr>
|
|---|
| 391 | <td>item</td>
|
|---|
| 392 | <td class="code"><div><EasyModel for Job></div></td>
|
|---|
| 393 | </tr>
|
|---|
| 394 |
|
|---|
| 395 | <tr>
|
|---|
| 396 | <td>len_values</td>
|
|---|
| 397 | <td class="code"><div>3</div></td>
|
|---|
| 398 | </tr>
|
|---|
| 399 |
|
|---|
| 400 | <tr>
|
|---|
| 401 | <td>node</td>
|
|---|
| 402 | <td class="code"><div><Variable Node: model.verbose_name_plural|capfirst></div></td>
|
|---|
| 403 | </tr>
|
|---|
| 404 |
|
|---|
| 405 | <tr>
|
|---|
| 406 | <td>nodelist</td>
|
|---|
| 407 | <td class="code"><div>[u'\n <div class="modelgroup ',
|
|---|
| 408 | u'even',
|
|---|
| 409 | u'">\n\t <h2><a href="',
|
|---|
| 410 | u'/databrowse/jobs/person/',
|
|---|
| 411 | u'">',
|
|---|
| 412 | u'People',
|
|---|
| 413 | u'</a></h2>\n\t\t<p>\n\t\t',
|
|---|
| 414 | '',
|
|---|
| 415 | u'\n\t\t\t<a class="more" href="',
|
|---|
| 416 | u'/databrowse/jobs/person/',
|
|---|
| 417 | u'">More &rarr;</a>\n\t\t</p>\n </div>\n',
|
|---|
| 418 | u'\n <div class="modelgroup ',
|
|---|
| 419 | u'odd',
|
|---|
| 420 | u'">\n\t <h2><a href="',
|
|---|
| 421 | u'/databrowse/jobs/job/',
|
|---|
| 422 | u'">']</div></td>
|
|---|
| 423 | </tr>
|
|---|
| 424 |
|
|---|
| 425 | <tr>
|
|---|
| 426 | <td>parentloop</td>
|
|---|
| 427 | <td class="code"><div>{}</div></td>
|
|---|
| 428 | </tr>
|
|---|
| 429 |
|
|---|
| 430 | <tr>
|
|---|
| 431 | <td>self</td>
|
|---|
| 432 | <td class="code"><div><For Node: for model in model_list, tail_len: 11></div></td>
|
|---|
| 433 | </tr>
|
|---|
| 434 |
|
|---|
| 435 | <tr>
|
|---|
| 436 | <td>unpack</td>
|
|---|
| 437 | <td class="code"><div>False</div></td>
|
|---|
| 438 | </tr>
|
|---|
| 439 |
|
|---|
| 440 | <tr>
|
|---|
| 441 | <td>values</td>
|
|---|
| 442 | <td class="code"><div>[<EasyModel for Person>, <EasyModel for Job>, <EasyModel for Company>]</div></td>
|
|---|
| 443 | </tr>
|
|---|
| 444 |
|
|---|
| 445 | </tbody>
|
|---|
| 446 | </table>
|
|---|
| 447 |
|
|---|
| 448 | </li>
|
|---|
| 449 |
|
|---|
| 450 | <li class="frame">
|
|---|
| 451 | <code>/usr/lib/python2.5/site-packages/django/template/__init__.py</code> in <code>render</code>
|
|---|
| 452 |
|
|---|
| 453 |
|
|---|
| 454 | <div class="context" id="c154974964">
|
|---|
| 455 |
|
|---|
| 456 | <ol start="783" class="pre-context" id="pre154974964"><li onclick="toggle('pre154974964', 'post154974964')"></li><li onclick="toggle('pre154974964', 'post154974964')"> def render(self, context):</li><li onclick="toggle('pre154974964', 'post154974964')"> return self.filter_expression.resolve(context)</li><li onclick="toggle('pre154974964', 'post154974964')"></li><li onclick="toggle('pre154974964', 'post154974964')">class DebugVariableNode(VariableNode):</li><li onclick="toggle('pre154974964', 'post154974964')"> def render(self, context):</li><li onclick="toggle('pre154974964', 'post154974964')"> try:</li></ol>
|
|---|
| 457 |
|
|---|
| 458 | <ol start="790" class="context-line"><li onclick="toggle('pre154974964', 'post154974964')"> return self.filter_expression.resolve(context) <span>...</span></li></ol>
|
|---|
| 459 |
|
|---|
| 460 | <ol start='791' class="post-context" id="post154974964"><li onclick="toggle('pre154974964', 'post154974964')"> except TemplateSyntaxError, e:</li><li onclick="toggle('pre154974964', 'post154974964')"> if not hasattr(e, 'source'):</li><li onclick="toggle('pre154974964', 'post154974964')"> e.source = self.source</li><li onclick="toggle('pre154974964', 'post154974964')"> raise</li><li onclick="toggle('pre154974964', 'post154974964')"></li><li onclick="toggle('pre154974964', 'post154974964')">def generic_tag_compiler(params, defaults, name, node_class, parser, token):</li></ol>
|
|---|
| 461 |
|
|---|
| 462 | </div>
|
|---|
| 463 |
|
|---|
| 464 |
|
|---|
| 465 |
|
|---|
| 466 | <div class="commands">
|
|---|
| 467 | <a href="#" onclick="return varToggle(this, '154974964')"><span>▶</span> Local vars</a>
|
|---|
| 468 | </div>
|
|---|
| 469 | <table class="vars" id="v154974964">
|
|---|
| 470 | <thead>
|
|---|
| 471 | <tr>
|
|---|
| 472 | <th>Variable</th>
|
|---|
| 473 | <th>Value</th>
|
|---|
| 474 | </tr>
|
|---|
| 475 | </thead>
|
|---|
| 476 | <tbody>
|
|---|
| 477 |
|
|---|
| 478 | <tr>
|
|---|
| 479 | <td>context</td>
|
|---|
| 480 | <td class="code"><div>[{'forloop': {'parentloop': {}, 'last': False, 'counter': 2, 'revcounter0': 1, 'revcounter': 2, 'counter0': 1, 'first': False}, u'model': <EasyModel for Job>}, {'block': <Block Node: content. Contents: [<Text Node: '
|
|---|
| 481 |
|
|---|
| 482 | '>, <For Node: for model in model_list, tail_len: 11>, <Text Node: '
|
|---|
| 483 |
|
|---|
| 484 | '>]>}, {'root_url': u'/databrowse/', 'model_list': [<EasyModel for Person>, <EasyModel for Job>, <EasyModel for Company>]}]</div></td>
|
|---|
| 485 | </tr>
|
|---|
| 486 |
|
|---|
| 487 | <tr>
|
|---|
| 488 | <td>self</td>
|
|---|
| 489 | <td class="code"><div><Variable Node: model.verbose_name_plural|capfirst></div></td>
|
|---|
| 490 | </tr>
|
|---|
| 491 |
|
|---|
| 492 | </tbody>
|
|---|
| 493 | </table>
|
|---|
| 494 |
|
|---|
| 495 | </li>
|
|---|
| 496 |
|
|---|
| 497 | <li class="frame">
|
|---|
| 498 | <code>/usr/lib/python2.5/site-packages/django/template/__init__.py</code> in <code>resolve</code>
|
|---|
| 499 |
|
|---|
| 500 |
|
|---|
| 501 | <div class="context" id="c154974164">
|
|---|
| 502 |
|
|---|
| 503 | <ol start="575" class="pre-context" id="pre154974164"><li onclick="toggle('pre154974164', 'post154974164')"> upto = match.end()</li><li onclick="toggle('pre154974164', 'post154974164')"> if upto != len(token):</li><li onclick="toggle('pre154974164', 'post154974164')"> raise TemplateSyntaxError, "Could not parse the remainder: '%s' from '%s'" % (token[upto:], token)</li><li onclick="toggle('pre154974164', 'post154974164')"> self.var, self.filters = var, filters</li><li onclick="toggle('pre154974164', 'post154974164')"></li><li onclick="toggle('pre154974164', 'post154974164')"> def resolve(self, context, ignore_failures=False):</li><li onclick="toggle('pre154974164', 'post154974164')"> try:</li></ol>
|
|---|
| 504 |
|
|---|
| 505 | <ol start="582" class="context-line"><li onclick="toggle('pre154974164', 'post154974164')"> obj = resolve_variable(self.var, context) <span>...</span></li></ol>
|
|---|
| 506 |
|
|---|
| 507 | <ol start='583' class="post-context" id="post154974164"><li onclick="toggle('pre154974164', 'post154974164')"> except VariableDoesNotExist:</li><li onclick="toggle('pre154974164', 'post154974164')"> if ignore_failures:</li><li onclick="toggle('pre154974164', 'post154974164')"> obj = None</li><li onclick="toggle('pre154974164', 'post154974164')"> else:</li><li onclick="toggle('pre154974164', 'post154974164')"> if settings.TEMPLATE_STRING_IF_INVALID:</li><li onclick="toggle('pre154974164', 'post154974164')"> global invalid_var_format_string</li></ol>
|
|---|
| 508 |
|
|---|
| 509 | </div>
|
|---|
| 510 |
|
|---|
| 511 |
|
|---|
| 512 |
|
|---|
| 513 | <div class="commands">
|
|---|
| 514 | <a href="#" onclick="return varToggle(this, '154974164')"><span>▶</span> Local vars</a>
|
|---|
| 515 | </div>
|
|---|
| 516 | <table class="vars" id="v154974164">
|
|---|
| 517 | <thead>
|
|---|
| 518 | <tr>
|
|---|
| 519 | <th>Variable</th>
|
|---|
| 520 | <th>Value</th>
|
|---|
| 521 | </tr>
|
|---|
| 522 | </thead>
|
|---|
| 523 | <tbody>
|
|---|
| 524 |
|
|---|
| 525 | <tr>
|
|---|
| 526 | <td>context</td>
|
|---|
| 527 | <td class="code"><div>[{'forloop': {'parentloop': {}, 'last': False, 'counter': 2, 'revcounter0': 1, 'revcounter': 2, 'counter0': 1, 'first': False}, u'model': <EasyModel for Job>}, {'block': <Block Node: content. Contents: [<Text Node: '
|
|---|
| 528 |
|
|---|
| 529 | '>, <For Node: for model in model_list, tail_len: 11>, <Text Node: '
|
|---|
| 530 |
|
|---|
| 531 | '>]>}, {'root_url': u'/databrowse/', 'model_list': [<EasyModel for Person>, <EasyModel for Job>, <EasyModel for Company>]}]</div></td>
|
|---|
| 532 | </tr>
|
|---|
| 533 |
|
|---|
| 534 | <tr>
|
|---|
| 535 | <td>ignore_failures</td>
|
|---|
| 536 | <td class="code"><div>False</div></td>
|
|---|
| 537 | </tr>
|
|---|
| 538 |
|
|---|
| 539 | <tr>
|
|---|
| 540 | <td>self</td>
|
|---|
| 541 | <td class="code"><div><django.template.FilterExpression object at 0x93d166c></div></td>
|
|---|
| 542 | </tr>
|
|---|
| 543 |
|
|---|
| 544 | </tbody>
|
|---|
| 545 | </table>
|
|---|
| 546 |
|
|---|
| 547 | </li>
|
|---|
| 548 |
|
|---|
| 549 | <li class="frame">
|
|---|
| 550 | <code>/usr/lib/python2.5/site-packages/django/template/__init__.py</code> in <code>resolve_variable</code>
|
|---|
| 551 |
|
|---|
| 552 |
|
|---|
| 553 | <div class="context" id="c154974924">
|
|---|
| 554 |
|
|---|
| 555 | <ol start="700" class="pre-context" id="pre154974924"><li onclick="toggle('pre154974924', 'post154974924')"> if getattr(e, 'silent_variable_failure', False):</li><li onclick="toggle('pre154974924', 'post154974924')"> current = settings.TEMPLATE_STRING_IF_INVALID</li><li onclick="toggle('pre154974924', 'post154974924')"> else:</li><li onclick="toggle('pre154974924', 'post154974924')"> raise</li><li onclick="toggle('pre154974924', 'post154974924')"> del bits[0]</li><li onclick="toggle('pre154974924', 'post154974924')"> if isinstance(current, (basestring, Promise)):</li><li onclick="toggle('pre154974924', 'post154974924')"> try:</li></ol>
|
|---|
| 556 |
|
|---|
| 557 | <ol start="707" class="context-line"><li onclick="toggle('pre154974924', 'post154974924')"> current = force_unicode(current) <span>...</span></li></ol>
|
|---|
| 558 |
|
|---|
| 559 | <ol start='708' class="post-context" id="post154974924"><li onclick="toggle('pre154974924', 'post154974924')"> except UnicodeDecodeError:</li><li onclick="toggle('pre154974924', 'post154974924')"> # Failing to convert to unicode can happen sometimes (e.g. debug</li><li onclick="toggle('pre154974924', 'post154974924')"> # tracebacks). So we allow it in this particular instance.</li><li onclick="toggle('pre154974924', 'post154974924')"> pass</li><li onclick="toggle('pre154974924', 'post154974924')"> return current</li><li onclick="toggle('pre154974924', 'post154974924')"></li></ol>
|
|---|
| 560 |
|
|---|
| 561 | </div>
|
|---|
| 562 |
|
|---|
| 563 |
|
|---|
| 564 |
|
|---|
| 565 | <div class="commands">
|
|---|
| 566 | <a href="#" onclick="return varToggle(this, '154974924')"><span>▶</span> Local vars</a>
|
|---|
| 567 | </div>
|
|---|
| 568 | <table class="vars" id="v154974924">
|
|---|
| 569 | <thead>
|
|---|
| 570 | <tr>
|
|---|
| 571 | <th>Variable</th>
|
|---|
| 572 | <th>Value</th>
|
|---|
| 573 | </tr>
|
|---|
| 574 | </thead>
|
|---|
| 575 | <tbody>
|
|---|
| 576 |
|
|---|
| 577 | <tr>
|
|---|
| 578 | <td>bits</td>
|
|---|
| 579 | <td class="code"><div>[]</div></td>
|
|---|
| 580 | </tr>
|
|---|
| 581 |
|
|---|
| 582 | <tr>
|
|---|
| 583 | <td>context</td>
|
|---|
| 584 | <td class="code"><div>[{'forloop': {'parentloop': {}, 'last': False, 'counter': 2, 'revcounter0': 1, 'revcounter': 2, 'counter0': 1, 'first': False}, u'model': <EasyModel for Job>}, {'block': <Block Node: content. Contents: [<Text Node: '
|
|---|
| 585 |
|
|---|
| 586 | '>, <For Node: for model in model_list, tail_len: 11>, <Text Node: '
|
|---|
| 587 |
|
|---|
| 588 | '>]>}, {'root_url': u'/databrowse/', 'model_list': [<EasyModel for Person>, <EasyModel for Job>, <EasyModel for Company>]}]</div></td>
|
|---|
| 589 | </tr>
|
|---|
| 590 |
|
|---|
| 591 | <tr>
|
|---|
| 592 | <td>current</td>
|
|---|
| 593 | <td class="code"><div>u'jobs'</div></td>
|
|---|
| 594 | </tr>
|
|---|
| 595 |
|
|---|
| 596 | <tr>
|
|---|
| 597 | <td>path</td>
|
|---|
| 598 | <td class="code"><div>u'model.verbose_name_plural'</div></td>
|
|---|
| 599 | </tr>
|
|---|
| 600 |
|
|---|
| 601 | </tbody>
|
|---|
| 602 | </table>
|
|---|
| 603 |
|
|---|
| 604 | </li>
|
|---|
| 605 |
|
|---|
| 606 | <li class="frame">
|
|---|
| 607 | <code>/usr/lib/python2.5/site-packages/django/utils/encoding.py</code> in <code>force_unicode</code>
|
|---|
| 608 |
|
|---|
| 609 |
|
|---|
| 610 | <div class="context" id="c154974884">
|
|---|
| 611 |
|
|---|
| 612 | <ol start="31" class="pre-context" id="pre154974884"><li onclick="toggle('pre154974884', 'post154974884')"></li><li onclick="toggle('pre154974884', 'post154974884')"> If strings_only is True, don't convert (some) non-string-like objects.</li><li onclick="toggle('pre154974884', 'post154974884')"> """</li><li onclick="toggle('pre154974884', 'post154974884')"> if strings_only and isinstance(s, (types.NoneType, int)):</li><li onclick="toggle('pre154974884', 'post154974884')"> return s</li><li onclick="toggle('pre154974884', 'post154974884')"> if not isinstance(s, basestring,):</li><li onclick="toggle('pre154974884', 'post154974884')"> if hasattr(s, '__unicode__'):</li></ol>
|
|---|
| 613 |
|
|---|
| 614 | <ol start="38" class="context-line"><li onclick="toggle('pre154974884', 'post154974884')"> s = unicode(s) <span>...</span></li></ol>
|
|---|
| 615 |
|
|---|
| 616 | <ol start='39' class="post-context" id="post154974884"><li onclick="toggle('pre154974884', 'post154974884')"> else:</li><li onclick="toggle('pre154974884', 'post154974884')"> s = unicode(str(s), encoding, errors)</li><li onclick="toggle('pre154974884', 'post154974884')"> elif not isinstance(s, unicode):</li><li onclick="toggle('pre154974884', 'post154974884')"> s = unicode(s, encoding, errors)</li><li onclick="toggle('pre154974884', 'post154974884')"> return s</li><li onclick="toggle('pre154974884', 'post154974884')"></li></ol>
|
|---|
| 617 |
|
|---|
| 618 | </div>
|
|---|
| 619 |
|
|---|
| 620 |
|
|---|
| 621 |
|
|---|
| 622 | <div class="commands">
|
|---|
| 623 | <a href="#" onclick="return varToggle(this, '154974884')"><span>▶</span> Local vars</a>
|
|---|
| 624 | </div>
|
|---|
| 625 | <table class="vars" id="v154974884">
|
|---|
| 626 | <thead>
|
|---|
| 627 | <tr>
|
|---|
| 628 | <th>Variable</th>
|
|---|
| 629 | <th>Value</th>
|
|---|
| 630 | </tr>
|
|---|
| 631 | </thead>
|
|---|
| 632 | <tbody>
|
|---|
| 633 |
|
|---|
| 634 | <tr>
|
|---|
| 635 | <td>encoding</td>
|
|---|
| 636 | <td class="code"><div>u'utf-8'</div></td>
|
|---|
| 637 | </tr>
|
|---|
| 638 |
|
|---|
| 639 | <tr>
|
|---|
| 640 | <td>errors</td>
|
|---|
| 641 | <td class="code"><div>u'strict'</div></td>
|
|---|
| 642 | </tr>
|
|---|
| 643 |
|
|---|
| 644 | <tr>
|
|---|
| 645 | <td>s</td>
|
|---|
| 646 | <td class="code"><div>u'jobs'</div></td>
|
|---|
| 647 | </tr>
|
|---|
| 648 |
|
|---|
| 649 | <tr>
|
|---|
| 650 | <td>strings_only</td>
|
|---|
| 651 | <td class="code"><div>False</div></td>
|
|---|
| 652 | </tr>
|
|---|
| 653 |
|
|---|
| 654 | </tbody>
|
|---|
| 655 | </table>
|
|---|
| 656 |
|
|---|
| 657 | </li>
|
|---|
| 658 |
|
|---|
| 659 | </ul>
|
|---|
| 660 | </div>
|
|---|
| 661 | <div id="pastebinTraceback" class="pastebin">
|
|---|
| 662 | <table>
|
|---|
| 663 | <tbody>
|
|---|
| 664 | <tr>
|
|---|
| 665 | <td>
|
|---|
| 666 | <code>
|
|---|
| 667 | Traceback (most recent call last):<br/>
|
|---|
| 668 |
|
|---|
| 669 | File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in render_node<br/>
|
|---|
| 670 |
|
|---|
| 671 | 754. result = node.render(context)<br/>
|
|---|
| 672 |
|
|---|
| 673 |
|
|---|
| 674 | File "/usr/lib/python2.5/site-packages/django/template/defaulttags.py" in render<br/>
|
|---|
| 675 |
|
|---|
| 676 | 134. nodelist.append(node.render(context))<br/>
|
|---|
| 677 |
|
|---|
| 678 |
|
|---|
| 679 | File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in render<br/>
|
|---|
| 680 |
|
|---|
| 681 | 790. return self.filter_expression.resolve(context)<br/>
|
|---|
| 682 |
|
|---|
| 683 |
|
|---|
| 684 | File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in resolve<br/>
|
|---|
| 685 |
|
|---|
| 686 | 582. obj = resolve_variable(self.var, context)<br/>
|
|---|
| 687 |
|
|---|
| 688 |
|
|---|
| 689 | File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in resolve_variable<br/>
|
|---|
| 690 |
|
|---|
| 691 | 707. current = force_unicode(current)<br/>
|
|---|
| 692 |
|
|---|
| 693 |
|
|---|
| 694 | File "/usr/lib/python2.5/site-packages/django/utils/encoding.py" in force_unicode<br/>
|
|---|
| 695 |
|
|---|
| 696 | 38. s = unicode(s)<br/>
|
|---|
| 697 |
|
|---|
| 698 | <br/>
|
|---|
| 699 | TypeError at /databrowse/<br/>
|
|---|
| 700 | coercing to Unicode: need string or buffer, __proxy__ found</code>
|
|---|
| 701 | </td>
|
|---|
| 702 | </tr>
|
|---|
| 703 | </tbody>
|
|---|
| 704 | </table>
|
|---|
| 705 | </div>
|
|---|
| 706 | </div>
|
|---|
| 707 |
|
|---|
| 708 | <div id="requestinfo">
|
|---|
| 709 | <h2>Request information</h2>
|
|---|
| 710 |
|
|---|
| 711 | <h3 id="get-info">GET</h3>
|
|---|
| 712 |
|
|---|
| 713 | <p>No GET data</p>
|
|---|
| 714 |
|
|---|
| 715 |
|
|---|
| 716 | <h3 id="post-info">POST</h3>
|
|---|
| 717 |
|
|---|
| 718 | <p>No POST data</p>
|
|---|
| 719 |
|
|---|
| 720 |
|
|---|
| 721 | <h3 id="cookie-info">COOKIES</h3>
|
|---|
| 722 |
|
|---|
| 723 | <table class="req">
|
|---|
| 724 | <thead>
|
|---|
| 725 | <tr>
|
|---|
| 726 | <th>Variable</th>
|
|---|
| 727 | <th>Value</th>
|
|---|
| 728 | </tr>
|
|---|
| 729 | </thead>
|
|---|
| 730 | <tbody>
|
|---|
| 731 |
|
|---|
| 732 | <tr>
|
|---|
| 733 | <td>sessionid</td>
|
|---|
| 734 | <td class="code"><div>u'b02915429e7bf72557563a6f631475b2'</div></td>
|
|---|
| 735 | </tr>
|
|---|
| 736 |
|
|---|
| 737 | </tbody>
|
|---|
| 738 | </table>
|
|---|
| 739 |
|
|---|
| 740 |
|
|---|
| 741 | <h3 id="meta-info">META</h3>
|
|---|
| 742 | <table class="req">
|
|---|
| 743 | <thead>
|
|---|
| 744 | <tr>
|
|---|
| 745 | <th>Variable</th>
|
|---|
| 746 | <th>Value</th>
|
|---|
| 747 | </tr>
|
|---|
| 748 | </thead>
|
|---|
| 749 | <tbody>
|
|---|
| 750 |
|
|---|
| 751 | <tr>
|
|---|
| 752 | <td>AUTH_TYPE</td>
|
|---|
| 753 | <td class="code"><div>None</div></td>
|
|---|
| 754 | </tr>
|
|---|
| 755 |
|
|---|
| 756 | <tr>
|
|---|
| 757 | <td>CONTENT_LENGTH</td>
|
|---|
| 758 | <td class="code"><div>0L</div></td>
|
|---|
| 759 | </tr>
|
|---|
| 760 |
|
|---|
| 761 | <tr>
|
|---|
| 762 | <td>CONTENT_TYPE</td>
|
|---|
| 763 | <td class="code"><div>None</div></td>
|
|---|
| 764 | </tr>
|
|---|
| 765 |
|
|---|
| 766 | <tr>
|
|---|
| 767 | <td>GATEWAY_INTERFACE</td>
|
|---|
| 768 | <td class="code"><div>u'CGI/1.1'</div></td>
|
|---|
| 769 | </tr>
|
|---|
| 770 |
|
|---|
| 771 | <tr>
|
|---|
| 772 | <td>HTTP_ACCEPT</td>
|
|---|
| 773 | <td class="code"><div>u'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'</div></td>
|
|---|
| 774 | </tr>
|
|---|
| 775 |
|
|---|
| 776 | <tr>
|
|---|
| 777 | <td>HTTP_ACCEPT_CHARSET</td>
|
|---|
| 778 | <td class="code"><div>u'ISO-8859-1,utf-8;q=0.7,*;q=0.7'</div></td>
|
|---|
| 779 | </tr>
|
|---|
| 780 |
|
|---|
| 781 | <tr>
|
|---|
| 782 | <td>HTTP_ACCEPT_ENCODING</td>
|
|---|
| 783 | <td class="code"><div>u'gzip,deflate'</div></td>
|
|---|
| 784 | </tr>
|
|---|
| 785 |
|
|---|
| 786 | <tr>
|
|---|
| 787 | <td>HTTP_ACCEPT_LANGUAGE</td>
|
|---|
| 788 | <td class="code"><div>u'en-us,en;q=0.5'</div></td>
|
|---|
| 789 | </tr>
|
|---|
| 790 |
|
|---|
| 791 | <tr>
|
|---|
| 792 | <td>HTTP_COOKIE</td>
|
|---|
| 793 | <td class="code"><div>u'sessionid=b02915429e7bf72557563a6f631475b2'</div></td>
|
|---|
| 794 | </tr>
|
|---|
| 795 |
|
|---|
| 796 | <tr>
|
|---|
| 797 | <td>HTTP_HOST</td>
|
|---|
| 798 | <td class="code"><div>u'bitprophet.dyndns.org:8080'</div></td>
|
|---|
| 799 | </tr>
|
|---|
| 800 |
|
|---|
| 801 | <tr>
|
|---|
| 802 | <td>HTTP_MAX_FORWARDS</td>
|
|---|
| 803 | <td class="code"><div>u'10'</div></td>
|
|---|
| 804 | </tr>
|
|---|
| 805 |
|
|---|
| 806 | <tr>
|
|---|
| 807 | <td>HTTP_USER_AGENT</td>
|
|---|
| 808 | <td class="code"><div>u'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4'</div></td>
|
|---|
| 809 | </tr>
|
|---|
| 810 |
|
|---|
| 811 | <tr>
|
|---|
| 812 | <td>HTTP_VIA</td>
|
|---|
| 813 | <td class="code"><div>u'1.1 dev.bitprophet.org'</div></td>
|
|---|
| 814 | </tr>
|
|---|
| 815 |
|
|---|
| 816 | <tr>
|
|---|
| 817 | <td>HTTP_X_FORWARDED_FOR</td>
|
|---|
| 818 | <td class="code"><div>u'71.172.177.98'</div></td>
|
|---|
| 819 | </tr>
|
|---|
| 820 |
|
|---|
| 821 | <tr>
|
|---|
| 822 | <td>HTTP_X_FORWARDED_HOST</td>
|
|---|
| 823 | <td class="code"><div>u'dev.bitprophet.org'</div></td>
|
|---|
| 824 | </tr>
|
|---|
| 825 |
|
|---|
| 826 | <tr>
|
|---|
| 827 | <td>HTTP_X_FORWARDED_SERVER</td>
|
|---|
| 828 | <td class="code"><div>u'dev.bitprophet.org'</div></td>
|
|---|
| 829 | </tr>
|
|---|
| 830 |
|
|---|
| 831 | <tr>
|
|---|
| 832 | <td>PATH_INFO</td>
|
|---|
| 833 | <td class="code"><div>u'/'</div></td>
|
|---|
| 834 | </tr>
|
|---|
| 835 |
|
|---|
| 836 | <tr>
|
|---|
| 837 | <td>PATH_TRANSLATED</td>
|
|---|
| 838 | <td class="code"><div>None</div></td>
|
|---|
| 839 | </tr>
|
|---|
| 840 |
|
|---|
| 841 | <tr>
|
|---|
| 842 | <td>QUERY_STRING</td>
|
|---|
| 843 | <td class="code"><div>None</div></td>
|
|---|
| 844 | </tr>
|
|---|
| 845 |
|
|---|
| 846 | <tr>
|
|---|
| 847 | <td>REMOTE_ADDR</td>
|
|---|
| 848 | <td class="code"><div>u'207.210.242.136'</div></td>
|
|---|
| 849 | </tr>
|
|---|
| 850 |
|
|---|
| 851 | <tr>
|
|---|
| 852 | <td>REMOTE_HOST</td>
|
|---|
| 853 | <td class="code"><div>None</div></td>
|
|---|
| 854 | </tr>
|
|---|
| 855 |
|
|---|
| 856 | <tr>
|
|---|
| 857 | <td>REMOTE_IDENT</td>
|
|---|
| 858 | <td class="code"><div>None</div></td>
|
|---|
| 859 | </tr>
|
|---|
| 860 |
|
|---|
| 861 | <tr>
|
|---|
| 862 | <td>REMOTE_USER</td>
|
|---|
| 863 | <td class="code"><div>None</div></td>
|
|---|
| 864 | </tr>
|
|---|
| 865 |
|
|---|
| 866 | <tr>
|
|---|
| 867 | <td>REQUEST_METHOD</td>
|
|---|
| 868 | <td class="code"><div>u'GET'</div></td>
|
|---|
| 869 | </tr>
|
|---|
| 870 |
|
|---|
| 871 | <tr>
|
|---|
| 872 | <td>SCRIPT_NAME</td>
|
|---|
| 873 | <td class="code"><div>None</div></td>
|
|---|
| 874 | </tr>
|
|---|
| 875 |
|
|---|
| 876 | <tr>
|
|---|
| 877 | <td>SERVER_NAME</td>
|
|---|
| 878 | <td class="code"><div>u'dev.bitprophet.org'</div></td>
|
|---|
| 879 | </tr>
|
|---|
| 880 |
|
|---|
| 881 | <tr>
|
|---|
| 882 | <td>SERVER_PORT</td>
|
|---|
| 883 | <td class="code"><div>0</div></td>
|
|---|
| 884 | </tr>
|
|---|
| 885 |
|
|---|
| 886 | <tr>
|
|---|
| 887 | <td>SERVER_PROTOCOL</td>
|
|---|
| 888 | <td class="code"><div>u'HTTP/1.1'</div></td>
|
|---|
| 889 | </tr>
|
|---|
| 890 |
|
|---|
| 891 | <tr>
|
|---|
| 892 | <td>SERVER_SOFTWARE</td>
|
|---|
| 893 | <td class="code"><div>u'mod_python'</div></td>
|
|---|
| 894 | </tr>
|
|---|
| 895 |
|
|---|
| 896 | </tbody>
|
|---|
| 897 | </table>
|
|---|
| 898 |
|
|---|
| 899 | <h3 id="settings-info">Settings</h3>
|
|---|
| 900 | <h4>Using settings module <code>bitprophet.settings</code></h4>
|
|---|
| 901 | <table class="req">
|
|---|
| 902 | <thead>
|
|---|
| 903 | <tr>
|
|---|
| 904 | <th>Setting</th>
|
|---|
| 905 | <th>Value</th>
|
|---|
| 906 | </tr>
|
|---|
| 907 | </thead>
|
|---|
| 908 | <tbody>
|
|---|
| 909 |
|
|---|
| 910 | <tr>
|
|---|
| 911 | <td>ABSOLUTE_URL_OVERRIDES</td>
|
|---|
| 912 | <td class="code"><div>{}</div></td>
|
|---|
| 913 | </tr>
|
|---|
| 914 |
|
|---|
| 915 | <tr>
|
|---|
| 916 | <td>ADMINS</td>
|
|---|
| 917 | <td class="code"><div>(('Jeff Forcier', 'jeff@bitprophet.org'),)</div></td>
|
|---|
| 918 | </tr>
|
|---|
| 919 |
|
|---|
| 920 | <tr>
|
|---|
| 921 | <td>ADMIN_FOR</td>
|
|---|
| 922 | <td class="code"><div>()</div></td>
|
|---|
| 923 | </tr>
|
|---|
| 924 |
|
|---|
| 925 | <tr>
|
|---|
| 926 | <td>ADMIN_MEDIA_PREFIX</td>
|
|---|
| 927 | <td class="code"><div>u'/media/admin/'</div></td>
|
|---|
| 928 | </tr>
|
|---|
| 929 |
|
|---|
| 930 | <tr>
|
|---|
| 931 | <td>ALLOWED_INCLUDE_ROOTS</td>
|
|---|
| 932 | <td class="code"><div>()</div></td>
|
|---|
| 933 | </tr>
|
|---|
| 934 |
|
|---|
| 935 | <tr>
|
|---|
| 936 | <td>APPEND_SLASH</td>
|
|---|
| 937 | <td class="code"><div>True</div></td>
|
|---|
| 938 | </tr>
|
|---|
| 939 |
|
|---|
| 940 | <tr>
|
|---|
| 941 | <td>AUTHENTICATION_BACKENDS</td>
|
|---|
| 942 | <td class="code"><div>('django.contrib.auth.backends.ModelBackend',)</div></td>
|
|---|
| 943 | </tr>
|
|---|
| 944 |
|
|---|
| 945 | <tr>
|
|---|
| 946 | <td>BANNED_IPS</td>
|
|---|
| 947 | <td class="code"><div>()</div></td>
|
|---|
| 948 | </tr>
|
|---|
| 949 |
|
|---|
| 950 | <tr>
|
|---|
| 951 | <td>CACHE_BACKEND</td>
|
|---|
| 952 | <td class="code"><div>u'simple://'</div></td>
|
|---|
| 953 | </tr>
|
|---|
| 954 |
|
|---|
| 955 | <tr>
|
|---|
| 956 | <td>CACHE_MIDDLEWARE_KEY_PREFIX</td>
|
|---|
| 957 | <td class="code"><div>u''</div></td>
|
|---|
| 958 | </tr>
|
|---|
| 959 |
|
|---|
| 960 | <tr>
|
|---|
| 961 | <td>CACHE_MIDDLEWARE_SECONDS</td>
|
|---|
| 962 | <td class="code"><div>600</div></td>
|
|---|
| 963 | </tr>
|
|---|
| 964 |
|
|---|
| 965 | <tr>
|
|---|
| 966 | <td>COMMENTS_ALLOW_PROFANITIES</td>
|
|---|
| 967 | <td class="code"><div>False</div></td>
|
|---|
| 968 | </tr>
|
|---|
| 969 |
|
|---|
| 970 | <tr>
|
|---|
| 971 | <td>COMMENTS_BANNED_USERS_GROUP</td>
|
|---|
| 972 | <td class="code"><div>None</div></td>
|
|---|
| 973 | </tr>
|
|---|
| 974 |
|
|---|
| 975 | <tr>
|
|---|
| 976 | <td>COMMENTS_FIRST_FEW</td>
|
|---|
| 977 | <td class="code"><div>0</div></td>
|
|---|
| 978 | </tr>
|
|---|
| 979 |
|
|---|
| 980 | <tr>
|
|---|
| 981 | <td>COMMENTS_MODERATORS_GROUP</td>
|
|---|
| 982 | <td class="code"><div>None</div></td>
|
|---|
| 983 | </tr>
|
|---|
| 984 |
|
|---|
| 985 | <tr>
|
|---|
| 986 | <td>COMMENTS_SKETCHY_USERS_GROUP</td>
|
|---|
| 987 | <td class="code"><div>None</div></td>
|
|---|
| 988 | </tr>
|
|---|
| 989 |
|
|---|
| 990 | <tr>
|
|---|
| 991 | <td>DATABASE_ENGINE</td>
|
|---|
| 992 | <td class="code"><div>u'postgresql_psycopg2'</div></td>
|
|---|
| 993 | </tr>
|
|---|
| 994 |
|
|---|
| 995 | <tr>
|
|---|
| 996 | <td>DATABASE_HOST</td>
|
|---|
| 997 | <td class="code"><div>u''</div></td>
|
|---|
| 998 | </tr>
|
|---|
| 999 |
|
|---|
| 1000 | <tr>
|
|---|
| 1001 | <td>DATABASE_NAME</td>
|
|---|
| 1002 | <td class="code"><div>u'bitprophet'</div></td>
|
|---|
| 1003 | </tr>
|
|---|
| 1004 |
|
|---|
| 1005 | <tr>
|
|---|
| 1006 | <td>DATABASE_OPTIONS</td>
|
|---|
| 1007 | <td class="code"><div>{}</div></td>
|
|---|
| 1008 | </tr>
|
|---|
| 1009 |
|
|---|
| 1010 | <tr>
|
|---|
| 1011 | <td>DATABASE_PASSWORD</td>
|
|---|
| 1012 | <td class="code"><div>u'********************'</div></td>
|
|---|
| 1013 | </tr>
|
|---|
| 1014 |
|
|---|
| 1015 | <tr>
|
|---|
| 1016 | <td>DATABASE_PORT</td>
|
|---|
| 1017 | <td class="code"><div>u''</div></td>
|
|---|
| 1018 | </tr>
|
|---|
| 1019 |
|
|---|
| 1020 | <tr>
|
|---|
| 1021 | <td>DATABASE_USER</td>
|
|---|
| 1022 | <td class="code"><div>u'bitprophet'</div></td>
|
|---|
| 1023 | </tr>
|
|---|
| 1024 |
|
|---|
| 1025 | <tr>
|
|---|
| 1026 | <td>DATETIME_FORMAT</td>
|
|---|
| 1027 | <td class="code"><div>u'N j, Y, P'</div></td>
|
|---|
| 1028 | </tr>
|
|---|
| 1029 |
|
|---|
| 1030 | <tr>
|
|---|
| 1031 | <td>DATE_FORMAT</td>
|
|---|
| 1032 | <td class="code"><div>u'N j, Y'</div></td>
|
|---|
| 1033 | </tr>
|
|---|
| 1034 |
|
|---|
| 1035 | <tr>
|
|---|
| 1036 | <td>DEBUG</td>
|
|---|
| 1037 | <td class="code"><div>True</div></td>
|
|---|
| 1038 | </tr>
|
|---|
| 1039 |
|
|---|
| 1040 | <tr>
|
|---|
| 1041 | <td>DEFAULT_CHARSET</td>
|
|---|
| 1042 | <td class="code"><div>u'utf-8'</div></td>
|
|---|
| 1043 | </tr>
|
|---|
| 1044 |
|
|---|
| 1045 | <tr>
|
|---|
| 1046 | <td>DEFAULT_CONTENT_TYPE</td>
|
|---|
| 1047 | <td class="code"><div>u'text/html'</div></td>
|
|---|
| 1048 | </tr>
|
|---|
| 1049 |
|
|---|
| 1050 | <tr>
|
|---|
| 1051 | <td>DEFAULT_FROM_EMAIL</td>
|
|---|
| 1052 | <td class="code"><div>u'webmaster@localhost'</div></td>
|
|---|
| 1053 | </tr>
|
|---|
| 1054 |
|
|---|
| 1055 | <tr>
|
|---|
| 1056 | <td>DISALLOWED_USER_AGENTS</td>
|
|---|
| 1057 | <td class="code"><div>()</div></td>
|
|---|
| 1058 | </tr>
|
|---|
| 1059 |
|
|---|
| 1060 | <tr>
|
|---|
| 1061 | <td>EMAIL_HOST</td>
|
|---|
| 1062 | <td class="code"><div>u'localhost'</div></td>
|
|---|
| 1063 | </tr>
|
|---|
| 1064 |
|
|---|
| 1065 | <tr>
|
|---|
| 1066 | <td>EMAIL_HOST_PASSWORD</td>
|
|---|
| 1067 | <td class="code"><div>u'********************'</div></td>
|
|---|
| 1068 | </tr>
|
|---|
| 1069 |
|
|---|
| 1070 | <tr>
|
|---|
| 1071 | <td>EMAIL_HOST_USER</td>
|
|---|
| 1072 | <td class="code"><div>u''</div></td>
|
|---|
| 1073 | </tr>
|
|---|
| 1074 |
|
|---|
| 1075 | <tr>
|
|---|
| 1076 | <td>EMAIL_PORT</td>
|
|---|
| 1077 | <td class="code"><div>25</div></td>
|
|---|
| 1078 | </tr>
|
|---|
| 1079 |
|
|---|
| 1080 | <tr>
|
|---|
| 1081 | <td>EMAIL_SUBJECT_PREFIX</td>
|
|---|
| 1082 | <td class="code"><div>u'[Django] '</div></td>
|
|---|
| 1083 | </tr>
|
|---|
| 1084 |
|
|---|
| 1085 | <tr>
|
|---|
| 1086 | <td>EMAIL_USE_TLS</td>
|
|---|
| 1087 | <td class="code"><div>False</div></td>
|
|---|
| 1088 | </tr>
|
|---|
| 1089 |
|
|---|
| 1090 | <tr>
|
|---|
| 1091 | <td>FILE_CHARSET</td>
|
|---|
| 1092 | <td class="code"><div>u'utf-8'</div></td>
|
|---|
| 1093 | </tr>
|
|---|
| 1094 |
|
|---|
| 1095 | <tr>
|
|---|
| 1096 | <td>FIXTURE_DIRS</td>
|
|---|
| 1097 | <td class="code"><div>()</div></td>
|
|---|
| 1098 | </tr>
|
|---|
| 1099 |
|
|---|
| 1100 | <tr>
|
|---|
| 1101 | <td>IGNORABLE_404_ENDS</td>
|
|---|
| 1102 | <td class="code"><div>('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')</div></td>
|
|---|
| 1103 | </tr>
|
|---|
| 1104 |
|
|---|
| 1105 | <tr>
|
|---|
| 1106 | <td>IGNORABLE_404_STARTS</td>
|
|---|
| 1107 | <td class="code"><div>('/cgi-bin/', '/_vti_bin', '/_vti_inf')</div></td>
|
|---|
| 1108 | </tr>
|
|---|
| 1109 |
|
|---|
| 1110 | <tr>
|
|---|
| 1111 | <td>INSTALLED_APPS</td>
|
|---|
| 1112 | <td class="code"><div>['django.contrib.auth',
|
|---|
| 1113 | 'django.contrib.contenttypes',
|
|---|
| 1114 | 'django.contrib.sessions',
|
|---|
| 1115 | 'django.contrib.sites',
|
|---|
| 1116 | 'django.contrib.admin',
|
|---|
| 1117 | 'django.contrib.databrowse',
|
|---|
| 1118 | 'bitprophet.base',
|
|---|
| 1119 | 'bitprophet.todo',
|
|---|
| 1120 | 'bitprophet.jobs']</div></td>
|
|---|
| 1121 | </tr>
|
|---|
| 1122 |
|
|---|
| 1123 | <tr>
|
|---|
| 1124 | <td>INTERNAL_IPS</td>
|
|---|
| 1125 | <td class="code"><div>()</div></td>
|
|---|
| 1126 | </tr>
|
|---|
| 1127 |
|
|---|
| 1128 | <tr>
|
|---|
| 1129 | <td>JING_PATH</td>
|
|---|
| 1130 | <td class="code"><div>u'/usr/bin/jing'</div></td>
|
|---|
| 1131 | </tr>
|
|---|
| 1132 |
|
|---|
| 1133 | <tr>
|
|---|
| 1134 | <td>LANGUAGES</td>
|
|---|
| 1135 | <td class="code"><div>(('ar', 'Arabic'),
|
|---|
| 1136 | ('bn', 'Bengali'),
|
|---|
| 1137 | ('bg', 'Bulgarian'),
|
|---|
| 1138 | ('ca', 'Catalan'),
|
|---|
| 1139 | ('cs', 'Czech'),
|
|---|
| 1140 | ('cy', 'Welsh'),
|
|---|
| 1141 | ('da', 'Danish'),
|
|---|
| 1142 | ('de', 'German'),
|
|---|
| 1143 | ('el', 'Greek'),
|
|---|
| 1144 | ('en', 'English'),
|
|---|
| 1145 | ('es', 'Spanish'),
|
|---|
| 1146 | ('es_AR', 'Argentinean Spanish'),
|
|---|
| 1147 | ('fa', 'Persian'),
|
|---|
| 1148 | ('fi', 'Finnish'),
|
|---|
| 1149 | ('fr', 'French'),
|
|---|
| 1150 | ('gl', 'Galician'),
|
|---|
| 1151 | ('hu', 'Hungarian'),
|
|---|
| 1152 | ('he', 'Hebrew'),
|
|---|
| 1153 | ('is', 'Icelandic'),
|
|---|
| 1154 | ('it', 'Italian'),
|
|---|
| 1155 | ('ja', 'Japanese'),
|
|---|
| 1156 | ('ko', 'Korean'),
|
|---|
| 1157 | ('kn', 'Kannada'),
|
|---|
| 1158 | ('lv', 'Latvian'),
|
|---|
| 1159 | ('mk', 'Macedonian'),
|
|---|
| 1160 | ('nl', 'Dutch'),
|
|---|
| 1161 | ('no', 'Norwegian'),
|
|---|
| 1162 | ('pl', 'Polish'),
|
|---|
| 1163 | ('pt', 'Portugese'),
|
|---|
| 1164 | ('pt-br', 'Brazilian'),
|
|---|
| 1165 | ('ro', 'Romanian'),
|
|---|
| 1166 | ('ru', 'Russian'),
|
|---|
| 1167 | ('sk', 'Slovak'),
|
|---|
| 1168 | ('sl', 'Slovenian'),
|
|---|
| 1169 | ('sr', 'Serbian'),
|
|---|
| 1170 | ('sv', 'Swedish'),
|
|---|
| 1171 | ('ta', 'Tamil'),
|
|---|
| 1172 | ('te', 'Telugu'),
|
|---|
| 1173 | ('tr', 'Turkish'),
|
|---|
| 1174 | ('uk', 'Ukrainian'),
|
|---|
| 1175 | ('zh-cn', 'Simplified Chinese'),
|
|---|
| 1176 | ('zh-tw', 'Traditional Chinese'))</div></td>
|
|---|
| 1177 | </tr>
|
|---|
| 1178 |
|
|---|
| 1179 | <tr>
|
|---|
| 1180 | <td>LANGUAGES_BIDI</td>
|
|---|
| 1181 | <td class="code"><div>('he', 'ar')</div></td>
|
|---|
| 1182 | </tr>
|
|---|
| 1183 |
|
|---|
| 1184 | <tr>
|
|---|
| 1185 | <td>LANGUAGE_CODE</td>
|
|---|
| 1186 | <td class="code"><div>u'en-us'</div></td>
|
|---|
| 1187 | </tr>
|
|---|
| 1188 |
|
|---|
| 1189 | <tr>
|
|---|
| 1190 | <td>LOGIN_REDIRECT_URL</td>
|
|---|
| 1191 | <td class="code"><div>u'/accounts/profile/'</div></td>
|
|---|
| 1192 | </tr>
|
|---|
| 1193 |
|
|---|
| 1194 | <tr>
|
|---|
| 1195 | <td>LOGIN_URL</td>
|
|---|
| 1196 | <td class="code"><div>u'/login/'</div></td>
|
|---|
| 1197 | </tr>
|
|---|
| 1198 |
|
|---|
| 1199 | <tr>
|
|---|
| 1200 | <td>LOGOUT_URL</td>
|
|---|
| 1201 | <td class="code"><div>u'/accounts/logout/'</div></td>
|
|---|
| 1202 | </tr>
|
|---|
| 1203 |
|
|---|
| 1204 | <tr>
|
|---|
| 1205 | <td>MANAGERS</td>
|
|---|
| 1206 | <td class="code"><div>(('Jeff Forcier', 'jeff@bitprophet.org'),)</div></td>
|
|---|
| 1207 | </tr>
|
|---|
| 1208 |
|
|---|
| 1209 | <tr>
|
|---|
| 1210 | <td>MEDIA_ROOT</td>
|
|---|
| 1211 | <td class="code"><div>u''</div></td>
|
|---|
| 1212 | </tr>
|
|---|
| 1213 |
|
|---|
| 1214 | <tr>
|
|---|
| 1215 | <td>MEDIA_URL</td>
|
|---|
| 1216 | <td class="code"><div>u''</div></td>
|
|---|
| 1217 | </tr>
|
|---|
| 1218 |
|
|---|
| 1219 | <tr>
|
|---|
| 1220 | <td>MIDDLEWARE_CLASSES</td>
|
|---|
| 1221 | <td class="code"><div>('django.middleware.common.CommonMiddleware',
|
|---|
| 1222 | 'django.contrib.sessions.middleware.SessionMiddleware',
|
|---|
| 1223 | 'django.contrib.auth.middleware.AuthenticationMiddleware',
|
|---|
| 1224 | 'django.middleware.doc.XViewMiddleware',
|
|---|
| 1225 | 'bitprophet.base.middleware.RequireLoginMiddleware')</div></td>
|
|---|
| 1226 | </tr>
|
|---|
| 1227 |
|
|---|
| 1228 | <tr>
|
|---|
| 1229 | <td>MONTH_DAY_FORMAT</td>
|
|---|
| 1230 | <td class="code"><div>u'F j'</div></td>
|
|---|
| 1231 | </tr>
|
|---|
| 1232 |
|
|---|
| 1233 | <tr>
|
|---|
| 1234 | <td>PREPEND_WWW</td>
|
|---|
| 1235 | <td class="code"><div>False</div></td>
|
|---|
| 1236 | </tr>
|
|---|
| 1237 |
|
|---|
| 1238 | <tr>
|
|---|
| 1239 | <td>PROFANITIES_LIST</td>
|
|---|
| 1240 | <td class="code"><div>u'********************'</div></td>
|
|---|
| 1241 | </tr>
|
|---|
| 1242 |
|
|---|
| 1243 | <tr>
|
|---|
| 1244 | <td>ROOT_URLCONF</td>
|
|---|
| 1245 | <td class="code"><div>u'bitprophet.urls'</div></td>
|
|---|
| 1246 | </tr>
|
|---|
| 1247 |
|
|---|
| 1248 | <tr>
|
|---|
| 1249 | <td>SECRET_KEY</td>
|
|---|
| 1250 | <td class="code"><div>u'********************'</div></td>
|
|---|
| 1251 | </tr>
|
|---|
| 1252 |
|
|---|
| 1253 | <tr>
|
|---|
| 1254 | <td>SEND_BROKEN_LINK_EMAILS</td>
|
|---|
| 1255 | <td class="code"><div>False</div></td>
|
|---|
| 1256 | </tr>
|
|---|
| 1257 |
|
|---|
| 1258 | <tr>
|
|---|
| 1259 | <td>SERVER_EMAIL</td>
|
|---|
| 1260 | <td class="code"><div>u'root@localhost'</div></td>
|
|---|
| 1261 | </tr>
|
|---|
| 1262 |
|
|---|
| 1263 | <tr>
|
|---|
| 1264 | <td>SESSION_COOKIE_AGE</td>
|
|---|
| 1265 | <td class="code"><div>1209600</div></td>
|
|---|
| 1266 | </tr>
|
|---|
| 1267 |
|
|---|
| 1268 | <tr>
|
|---|
| 1269 | <td>SESSION_COOKIE_DOMAIN</td>
|
|---|
| 1270 | <td class="code"><div>None</div></td>
|
|---|
| 1271 | </tr>
|
|---|
| 1272 |
|
|---|
| 1273 | <tr>
|
|---|
| 1274 | <td>SESSION_COOKIE_NAME</td>
|
|---|
| 1275 | <td class="code"><div>u'sessionid'</div></td>
|
|---|
| 1276 | </tr>
|
|---|
| 1277 |
|
|---|
| 1278 | <tr>
|
|---|
| 1279 | <td>SESSION_COOKIE_SECURE</td>
|
|---|
| 1280 | <td class="code"><div>False</div></td>
|
|---|
| 1281 | </tr>
|
|---|
| 1282 |
|
|---|
| 1283 | <tr>
|
|---|
| 1284 | <td>SESSION_EXPIRE_AT_BROWSER_CLOSE</td>
|
|---|
| 1285 | <td class="code"><div>False</div></td>
|
|---|
| 1286 | </tr>
|
|---|
| 1287 |
|
|---|
| 1288 | <tr>
|
|---|
| 1289 | <td>SESSION_SAVE_EVERY_REQUEST</td>
|
|---|
| 1290 | <td class="code"><div>False</div></td>
|
|---|
| 1291 | </tr>
|
|---|
| 1292 |
|
|---|
| 1293 | <tr>
|
|---|
| 1294 | <td>SETTINGS_MODULE</td>
|
|---|
| 1295 | <td class="code"><div>u'bitprophet.settings'</div></td>
|
|---|
| 1296 | </tr>
|
|---|
| 1297 |
|
|---|
| 1298 | <tr>
|
|---|
| 1299 | <td>SITE_ID</td>
|
|---|
| 1300 | <td class="code"><div>1</div></td>
|
|---|
| 1301 | </tr>
|
|---|
| 1302 |
|
|---|
| 1303 | <tr>
|
|---|
| 1304 | <td>TEMPLATE_CONTEXT_PROCESSORS</td>
|
|---|
| 1305 | <td class="code"><div>('django.core.context_processors.auth',
|
|---|
| 1306 | 'django.core.context_processors.debug',
|
|---|
| 1307 | 'django.core.context_processors.i18n',
|
|---|
| 1308 | 'django.core.context_processors.media')</div></td>
|
|---|
| 1309 | </tr>
|
|---|
| 1310 |
|
|---|
| 1311 | <tr>
|
|---|
| 1312 | <td>TEMPLATE_DEBUG</td>
|
|---|
| 1313 | <td class="code"><div>True</div></td>
|
|---|
| 1314 | </tr>
|
|---|
| 1315 |
|
|---|
| 1316 | <tr>
|
|---|
| 1317 | <td>TEMPLATE_DIRS</td>
|
|---|
| 1318 | <td class="code"><div>('/usr/lib/python2.5/site-packages/bitprophet/templates/',)</div></td>
|
|---|
| 1319 | </tr>
|
|---|
| 1320 |
|
|---|
| 1321 | <tr>
|
|---|
| 1322 | <td>TEMPLATE_LOADERS</td>
|
|---|
| 1323 | <td class="code"><div>('django.template.loaders.filesystem.load_template_source',
|
|---|
| 1324 | 'django.template.loaders.app_directories.load_template_source')</div></td>
|
|---|
| 1325 | </tr>
|
|---|
| 1326 |
|
|---|
| 1327 | <tr>
|
|---|
| 1328 | <td>TEMPLATE_STRING_IF_INVALID</td>
|
|---|
| 1329 | <td class="code"><div>u''</div></td>
|
|---|
| 1330 | </tr>
|
|---|
| 1331 |
|
|---|
| 1332 | <tr>
|
|---|
| 1333 | <td>TEST_DATABASE_CHARSET</td>
|
|---|
| 1334 | <td class="code"><div>None</div></td>
|
|---|
| 1335 | </tr>
|
|---|
| 1336 |
|
|---|
| 1337 | <tr>
|
|---|
| 1338 | <td>TEST_DATABASE_COLLATION</td>
|
|---|
| 1339 | <td class="code"><div>None</div></td>
|
|---|
| 1340 | </tr>
|
|---|
| 1341 |
|
|---|
| 1342 | <tr>
|
|---|
| 1343 | <td>TEST_DATABASE_NAME</td>
|
|---|
| 1344 | <td class="code"><div>None</div></td>
|
|---|
| 1345 | </tr>
|
|---|
| 1346 |
|
|---|
| 1347 | <tr>
|
|---|
| 1348 | <td>TEST_RUNNER</td>
|
|---|
| 1349 | <td class="code"><div>u'django.test.simple.run_tests'</div></td>
|
|---|
| 1350 | </tr>
|
|---|
| 1351 |
|
|---|
| 1352 | <tr>
|
|---|
| 1353 | <td>TIME_FORMAT</td>
|
|---|
| 1354 | <td class="code"><div>u'P'</div></td>
|
|---|
| 1355 | </tr>
|
|---|
| 1356 |
|
|---|
| 1357 | <tr>
|
|---|
| 1358 | <td>TIME_ZONE</td>
|
|---|
| 1359 | <td class="code"><div>u'America/New_York'</div></td>
|
|---|
| 1360 | </tr>
|
|---|
| 1361 |
|
|---|
| 1362 | <tr>
|
|---|
| 1363 | <td>TRANSACTIONS_MANAGED</td>
|
|---|
| 1364 | <td class="code"><div>False</div></td>
|
|---|
| 1365 | </tr>
|
|---|
| 1366 |
|
|---|
| 1367 | <tr>
|
|---|
| 1368 | <td>URL_VALIDATOR_USER_AGENT</td>
|
|---|
| 1369 | <td class="code"><div>u'Django/0.97-pre (http://www.djangoproject.com)'</div></td>
|
|---|
| 1370 | </tr>
|
|---|
| 1371 |
|
|---|
| 1372 | <tr>
|
|---|
| 1373 | <td>USE_ETAGS</td>
|
|---|
| 1374 | <td class="code"><div>False</div></td>
|
|---|
| 1375 | </tr>
|
|---|
| 1376 |
|
|---|
| 1377 | <tr>
|
|---|
| 1378 | <td>USE_I18N</td>
|
|---|
| 1379 | <td class="code"><div>False</div></td>
|
|---|
| 1380 | </tr>
|
|---|
| 1381 |
|
|---|
| 1382 | <tr>
|
|---|
| 1383 | <td>YEAR_MONTH_FORMAT</td>
|
|---|
| 1384 | <td class="code"><div>u'F Y'</div></td>
|
|---|
| 1385 | </tr>
|
|---|
| 1386 |
|
|---|
| 1387 | </tbody>
|
|---|
| 1388 | </table>
|
|---|
| 1389 |
|
|---|
| 1390 | </div>
|
|---|
| 1391 |
|
|---|
| 1392 | <div id="explanation">
|
|---|
| 1393 | <p>
|
|---|
| 1394 | You're seeing this error because you have <code>DEBUG = True</code> in your
|
|---|
| 1395 | Django settings file. Change that to <code>False</code>, and Django will
|
|---|
| 1396 | display a standard 500 page.
|
|---|
| 1397 | </p>
|
|---|
| 1398 | </div>
|
|---|
| 1399 |
|
|---|
| 1400 | </body>
|
|---|
| 1401 | </html>
|
|---|