| 1 | <!DOCTYPE html>
|
|---|
| 2 | <html lang="en"><head>
|
|---|
| 3 | <meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|---|
| 4 | <meta name="robots" content="NONE,NOARCHIVE">
|
|---|
| 5 | <title>AttributeError at /admin/login/</title>
|
|---|
| 6 | <style type="text/css">
|
|---|
| 7 | html * { padding:0; margin:0; }
|
|---|
| 8 | body * { padding:10px 20px; }
|
|---|
| 9 | body * * { padding:0; }
|
|---|
| 10 | body { font:small sans-serif; }
|
|---|
| 11 | body>div { border-bottom:1px solid #ddd; }
|
|---|
| 12 | h1 { font-weight:normal; }
|
|---|
| 13 | h2 { margin-bottom:.8em; }
|
|---|
| 14 | h2 span { font-size:80%; color:#666; font-weight:normal; }
|
|---|
| 15 | h3 { margin:1em 0 .5em 0; }
|
|---|
| 16 | h4 { margin:0 0 .5em 0; font-weight: normal; }
|
|---|
| 17 | code, pre { font-size: 100%; white-space: pre-wrap; }
|
|---|
| 18 | table { border:1px solid #ccc; border-collapse: collapse; width:100%; background:white; }
|
|---|
| 19 | tbody td, tbody th { vertical-align:top; padding:2px 3px; }
|
|---|
| 20 | thead th {
|
|---|
| 21 | padding:1px 6px 1px 3px; background:#fefefe; text-align:left;
|
|---|
| 22 | font-weight:normal; font-size:11px; border:1px solid #ddd;
|
|---|
| 23 | }
|
|---|
| 24 | tbody th { width:12em; text-align:right; color:#666; padding-right:.5em; }
|
|---|
| 25 | table.vars { margin:5px 0 2px 40px; }
|
|---|
| 26 | table.vars td, table.req td { font-family:monospace; }
|
|---|
| 27 | table td.code { width:100%; }
|
|---|
| 28 | table td.code pre { overflow:hidden; }
|
|---|
| 29 | table.source th { color:#666; }
|
|---|
| 30 | table.source td { font-family:monospace; white-space:pre; border-bottom:1px solid #eee; }
|
|---|
| 31 | ul.traceback { list-style-type:none; color: #222; }
|
|---|
| 32 | ul.traceback li.frame { padding-bottom:1em; color:#666; }
|
|---|
| 33 | ul.traceback li.user { background-color:#e0e0e0; color:#000 }
|
|---|
| 34 | div.context { padding:10px 0; overflow:hidden; }
|
|---|
| 35 | div.context ol { padding-left:30px; margin:0 10px; list-style-position: inside; }
|
|---|
| 36 | div.context ol li { font-family:monospace; white-space:pre; color:#777; cursor:pointer; }
|
|---|
| 37 | div.context ol li pre { display:inline; }
|
|---|
| 38 | div.context ol.context-line li { color:#505050; background-color:#dfdfdf; }
|
|---|
| 39 | div.context ol.context-line li span { position:absolute; right:32px; }
|
|---|
| 40 | .user div.context ol.context-line li { background-color:#bbb; color:#000; }
|
|---|
| 41 | .user div.context ol li { color:#666; }
|
|---|
| 42 | div.commands { margin-left: 40px; }
|
|---|
| 43 | div.commands a { color:#555; text-decoration:none; }
|
|---|
| 44 | .user div.commands a { color: black; }
|
|---|
| 45 | #summary { background: #ffc; }
|
|---|
| 46 | #summary h2 { font-weight: normal; color: #666; }
|
|---|
| 47 | #explanation { background:#eee; }
|
|---|
| 48 | #template, #template-not-exist { background:#f6f6f6; }
|
|---|
| 49 | #template-not-exist ul { margin: 0 0 0 20px; }
|
|---|
| 50 | #unicode-hint { background:#eee; }
|
|---|
| 51 | #traceback { background:#eee; }
|
|---|
| 52 | #requestinfo { background:#f6f6f6; padding-left:120px; }
|
|---|
| 53 | #summary table { border:none; background:transparent; }
|
|---|
| 54 | #requestinfo h2, #requestinfo h3 { position:relative; margin-left:-100px; }
|
|---|
| 55 | #requestinfo h3 { margin-bottom:-1em; }
|
|---|
| 56 | .error { background: #ffc; }
|
|---|
| 57 | .specific { color:#cc3300; font-weight:bold; }
|
|---|
| 58 | h2 span.commands { font-size:.7em;}
|
|---|
| 59 | span.commands a:link {color:#5E5694;}
|
|---|
| 60 | pre.exception_value { font-family: sans-serif; color: #666; font-size: 1.5em; margin: 10px 0 10px 0; }
|
|---|
| 61 | </style>
|
|---|
| 62 |
|
|---|
| 63 | <script type="text/javascript">
|
|---|
| 64 | //<!--
|
|---|
| 65 | function getElementsByClassName(oElm, strTagName, strClassName){
|
|---|
| 66 | // Written by Jonathan Snook, http://www.snook.ca/jon; Add-ons by Robert Nyman, http://www.robertnyman.com
|
|---|
| 67 | var arrElements = (strTagName == "*" && document.all)? document.all :
|
|---|
| 68 | oElm.getElementsByTagName(strTagName);
|
|---|
| 69 | var arrReturnElements = new Array();
|
|---|
| 70 | strClassName = strClassName.replace(/\-/g, "\-");
|
|---|
| 71 | var oRegExp = new RegExp("(^|\s)" + strClassName + "(\s|$)");
|
|---|
| 72 | var oElement;
|
|---|
| 73 | for(var i=0; i<arrElements.length; i++){
|
|---|
| 74 | oElement = arrElements[i];
|
|---|
| 75 | if(oRegExp.test(oElement.className)){
|
|---|
| 76 | arrReturnElements.push(oElement);
|
|---|
| 77 | }
|
|---|
| 78 | }
|
|---|
| 79 | return (arrReturnElements)
|
|---|
| 80 | }
|
|---|
| 81 | function hideAll(elems) {
|
|---|
| 82 | for (var e = 0; e < elems.length; e++) {
|
|---|
| 83 | elems[e].style.display = 'none';
|
|---|
| 84 | }
|
|---|
| 85 | }
|
|---|
| 86 | window.onload = function() {
|
|---|
| 87 | hideAll(getElementsByClassName(document, 'table', 'vars'));
|
|---|
| 88 | hideAll(getElementsByClassName(document, 'ol', 'pre-context'));
|
|---|
| 89 | hideAll(getElementsByClassName(document, 'ol', 'post-context'));
|
|---|
| 90 | hideAll(getElementsByClassName(document, 'div', 'pastebin'));
|
|---|
| 91 | }
|
|---|
| 92 | function toggle() {
|
|---|
| 93 | for (var i = 0; i < arguments.length; i++) {
|
|---|
| 94 | var e = document.getElementById(arguments[i]);
|
|---|
| 95 | if (e) {
|
|---|
| 96 | e.style.display = e.style.display == 'none' ? 'block': 'none';
|
|---|
| 97 | }
|
|---|
| 98 | }
|
|---|
| 99 | return false;
|
|---|
| 100 | }
|
|---|
| 101 | function varToggle(link, id) {
|
|---|
| 102 | toggle('v' + id);
|
|---|
| 103 | var s = link.getElementsByTagName('span')[0];
|
|---|
| 104 | var uarr = String.fromCharCode(0x25b6);
|
|---|
| 105 | var darr = String.fromCharCode(0x25bc);
|
|---|
| 106 | s.innerHTML = s.innerHTML == uarr ? darr : uarr;
|
|---|
| 107 | return false;
|
|---|
| 108 | }
|
|---|
| 109 | function switchPastebinFriendly(link) {
|
|---|
| 110 | s1 = "Switch to copy-and-paste view";
|
|---|
| 111 | s2 = "Switch back to interactive view";
|
|---|
| 112 | link.innerHTML = link.innerHTML == s1 ? s2: s1;
|
|---|
| 113 | toggle('browserTraceback', 'pastebinTraceback');
|
|---|
| 114 | return false;
|
|---|
| 115 | }
|
|---|
| 116 | //-->
|
|---|
| 117 | </script>
|
|---|
| 118 |
|
|---|
| 119 | </head>
|
|---|
| 120 | <body>
|
|---|
| 121 | <div id="summary">
|
|---|
| 122 | <h1>AttributeError at /admin/login/</h1>
|
|---|
| 123 | <pre class="exception_value">'tuple' object has no attribute 'regex'</pre>
|
|---|
| 124 | <table class="meta">
|
|---|
| 125 |
|
|---|
| 126 | <tbody><tr>
|
|---|
| 127 | <th>Request Method:</th>
|
|---|
| 128 | <td>GET</td>
|
|---|
| 129 | </tr>
|
|---|
| 130 | <tr>
|
|---|
| 131 | <th>Request URL:</th>
|
|---|
| 132 | <td>http://127.0.0.1:8000/admin/login/?next=/admin/</td>
|
|---|
| 133 | </tr>
|
|---|
| 134 |
|
|---|
| 135 | <tr>
|
|---|
| 136 | <th>Django Version:</th>
|
|---|
| 137 | <td>1.8.2</td>
|
|---|
| 138 | </tr>
|
|---|
| 139 |
|
|---|
| 140 | <tr>
|
|---|
| 141 | <th>Exception Type:</th>
|
|---|
| 142 | <td>AttributeError</td>
|
|---|
| 143 | </tr>
|
|---|
| 144 |
|
|---|
| 145 |
|
|---|
| 146 | <tr>
|
|---|
| 147 | <th>Exception Value:</th>
|
|---|
| 148 | <td><pre>'tuple' object has no attribute 'regex'</pre></td>
|
|---|
| 149 | </tr>
|
|---|
| 150 |
|
|---|
| 151 |
|
|---|
| 152 | <tr>
|
|---|
| 153 | <th>Exception Location:</th>
|
|---|
| 154 | <td>/usr/local/lib/python3.4/dist-packages/django/core/urlresolvers.py in _populate, line 298</td>
|
|---|
| 155 | </tr>
|
|---|
| 156 |
|
|---|
| 157 | <tr>
|
|---|
| 158 | <th>Python Executable:</th>
|
|---|
| 159 | <td>/usr/bin/python3.4</td>
|
|---|
| 160 | </tr>
|
|---|
| 161 | <tr>
|
|---|
| 162 | <th>Python Version:</th>
|
|---|
| 163 | <td>3.4.0</td>
|
|---|
| 164 | </tr>
|
|---|
| 165 | <tr>
|
|---|
| 166 | <th>Python Path:</th>
|
|---|
| 167 | <td><pre>['/home/yidnekachew/Projects/Django/perfman2',
|
|---|
| 168 | '/usr/local/lib/python3.4/dist-packages/pip-7.1.0-py3.4.egg',
|
|---|
| 169 | '/home/yidnekachew/Projects/Django/perfman2',
|
|---|
| 170 | '/usr/lib/python3.4',
|
|---|
| 171 | '/usr/lib/python3.4/plat-x86_64-linux-gnu',
|
|---|
| 172 | '/usr/lib/python3.4/lib-dynload',
|
|---|
| 173 | '/home/yidnekachew/.local/lib/python3.4/site-packages',
|
|---|
| 174 | '/usr/local/lib/python3.4/dist-packages',
|
|---|
| 175 | '/usr/lib/python3/dist-packages']</pre></td>
|
|---|
| 176 | </tr>
|
|---|
| 177 | <tr>
|
|---|
| 178 | <th>Server time:</th>
|
|---|
| 179 | <td>Mon, 20 Jul 2015 13:29:30 +0000</td>
|
|---|
| 180 | </tr>
|
|---|
| 181 | </tbody></table>
|
|---|
| 182 | </div>
|
|---|
| 183 |
|
|---|
| 184 |
|
|---|
| 185 |
|
|---|
| 186 | <div id="template">
|
|---|
| 187 | <h2>Error during template rendering</h2>
|
|---|
| 188 | <p>In template <code>/usr/local/lib/python3.4/dist-packages/django/contrib/admin/templates/admin/base_site.html</code>, error at line <strong>6</strong></p>
|
|---|
| 189 | <h3>'tuple' object has no attribute 'regex'</h3>
|
|---|
| 190 | <table class="source cut-top
|
|---|
| 191 | ">
|
|---|
| 192 |
|
|---|
| 193 |
|
|---|
| 194 | <tbody><tr><th>1</th>
|
|---|
| 195 | <td>{% extends "admin/base.html" %}
|
|---|
| 196 | </td></tr>
|
|---|
| 197 |
|
|---|
| 198 |
|
|---|
| 199 |
|
|---|
| 200 | <tr><th>2</th>
|
|---|
| 201 | <td>
|
|---|
| 202 | </td></tr>
|
|---|
| 203 |
|
|---|
| 204 |
|
|---|
| 205 |
|
|---|
| 206 | <tr><th>3</th>
|
|---|
| 207 | <td>{% block title %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %}
|
|---|
| 208 | </td></tr>
|
|---|
| 209 |
|
|---|
| 210 |
|
|---|
| 211 |
|
|---|
| 212 | <tr><th>4</th>
|
|---|
| 213 | <td>
|
|---|
| 214 | </td></tr>
|
|---|
| 215 |
|
|---|
| 216 |
|
|---|
| 217 |
|
|---|
| 218 | <tr><th>5</th>
|
|---|
| 219 | <td>{% block branding %}
|
|---|
| 220 | </td></tr>
|
|---|
| 221 |
|
|---|
| 222 |
|
|---|
| 223 |
|
|---|
| 224 | <tr class="error"><th>6</th>
|
|---|
| 225 | <td>
|
|---|
| 226 | <h1 id="site-name"><a href="
|
|---|
| 227 | <span class="specific">{% url 'admin:index' %}</span>
|
|---|
| 228 | ">{{ site_header|default:_('Django administration') }}</a></h1>
|
|---|
| 229 |
|
|---|
| 230 | </td>
|
|---|
| 231 | </tr>
|
|---|
| 232 |
|
|---|
| 233 |
|
|---|
| 234 |
|
|---|
| 235 | <tr><th>7</th>
|
|---|
| 236 | <td>{% endblock %}
|
|---|
| 237 | </td></tr>
|
|---|
| 238 |
|
|---|
| 239 |
|
|---|
| 240 |
|
|---|
| 241 | <tr><th>8</th>
|
|---|
| 242 | <td>
|
|---|
| 243 | </td></tr>
|
|---|
| 244 |
|
|---|
| 245 |
|
|---|
| 246 |
|
|---|
| 247 | <tr><th>9</th>
|
|---|
| 248 | <td>{% block nav-global %}{% endblock %}
|
|---|
| 249 | </td></tr>
|
|---|
| 250 |
|
|---|
| 251 |
|
|---|
| 252 |
|
|---|
| 253 | <tr><th>10</th>
|
|---|
| 254 | <td></td></tr>
|
|---|
| 255 |
|
|---|
| 256 |
|
|---|
| 257 | </tbody></table>
|
|---|
| 258 | </div>
|
|---|
| 259 |
|
|---|
| 260 |
|
|---|
| 261 | <div id="traceback">
|
|---|
| 262 | <h2>Traceback <span class="commands"><a href="#" onclick="return switchPastebinFriendly(this);">Switch back to interactive view</a></span>
|
|---|
| 263 | </h2>
|
|---|
| 264 |
|
|---|
| 265 | <div style="display: block;" id="browserTraceback">
|
|---|
| 266 | <ul class="traceback">
|
|---|
| 267 |
|
|---|
| 268 | <li class="frame django">
|
|---|
| 269 | <code>/usr/local/lib/python3.4/dist-packages/django/core/handlers/base.py</code> in <code>get_response</code>
|
|---|
| 270 |
|
|---|
| 271 |
|
|---|
| 272 | <div class="context" id="c139958777839112">
|
|---|
| 273 |
|
|---|
| 274 | <ol style="display: none;" start="157" class="pre-context" id="pre139958777839112">
|
|---|
| 275 |
|
|---|
| 276 | <li onclick="toggle('pre139958777839112', 'post139958777839112')"><pre> response = middleware_method(request, response)</pre></li>
|
|---|
| 277 |
|
|---|
| 278 | <li onclick="toggle('pre139958777839112', 'post139958777839112')"><pre> # Complain if the template response middleware returned None (a common error).</pre></li>
|
|---|
| 279 |
|
|---|
| 280 | <li onclick="toggle('pre139958777839112', 'post139958777839112')"><pre> if response is None:</pre></li>
|
|---|
| 281 |
|
|---|
| 282 | <li onclick="toggle('pre139958777839112', 'post139958777839112')"><pre> raise ValueError(</pre></li>
|
|---|
| 283 |
|
|---|
| 284 | <li onclick="toggle('pre139958777839112', 'post139958777839112')"><pre> "%s.process_template_response didn't return an "</pre></li>
|
|---|
| 285 |
|
|---|
| 286 | <li onclick="toggle('pre139958777839112', 'post139958777839112')"><pre> "HttpResponse object. It returned None instead."</pre></li>
|
|---|
| 287 |
|
|---|
| 288 | <li onclick="toggle('pre139958777839112', 'post139958777839112')"><pre> % (middleware_method.__self__.__class__.__name__))</pre></li>
|
|---|
| 289 |
|
|---|
| 290 | </ol>
|
|---|
| 291 |
|
|---|
| 292 | <ol start="164" class="context-line">
|
|---|
| 293 | <li onclick="toggle('pre139958777839112', 'post139958777839112')"><pre> response = response.render()</pre> <span>...</span></li></ol>
|
|---|
| 294 |
|
|---|
| 295 | <ol style="display: none;" start="165" class="post-context" id="post139958777839112">
|
|---|
| 296 |
|
|---|
| 297 | <li onclick="toggle('pre139958777839112', 'post139958777839112')"><pre></pre></li>
|
|---|
| 298 |
|
|---|
| 299 | <li onclick="toggle('pre139958777839112', 'post139958777839112')"><pre> except http.Http404 as e:</pre></li>
|
|---|
| 300 |
|
|---|
| 301 | <li onclick="toggle('pre139958777839112', 'post139958777839112')"><pre> logger.warning('Not Found: %s', request.path,</pre></li>
|
|---|
| 302 |
|
|---|
| 303 | <li onclick="toggle('pre139958777839112', 'post139958777839112')"><pre> extra={</pre></li>
|
|---|
| 304 |
|
|---|
| 305 | <li onclick="toggle('pre139958777839112', 'post139958777839112')"><pre> 'status_code': 404,</pre></li>
|
|---|
| 306 |
|
|---|
| 307 | <li onclick="toggle('pre139958777839112', 'post139958777839112')"><pre> 'request': request</pre></li>
|
|---|
| 308 |
|
|---|
| 309 | </ol>
|
|---|
| 310 |
|
|---|
| 311 | </div>
|
|---|
| 312 |
|
|---|
| 313 |
|
|---|
| 314 |
|
|---|
| 315 | <div class="commands">
|
|---|
| 316 |
|
|---|
| 317 | <a href="#" onclick="return varToggle(this, '139958777839112')"><span>▶</span> Local vars</a>
|
|---|
| 318 |
|
|---|
| 319 | </div>
|
|---|
| 320 | <table style="display: none;" class="vars" id="v139958777839112">
|
|---|
| 321 | <thead>
|
|---|
| 322 | <tr>
|
|---|
| 323 | <th>Variable</th>
|
|---|
| 324 | <th>Value</th>
|
|---|
| 325 | </tr>
|
|---|
| 326 | </thead>
|
|---|
| 327 | <tbody>
|
|---|
| 328 |
|
|---|
| 329 | <tr>
|
|---|
| 330 | <td>self</td>
|
|---|
| 331 | <td class="code"><pre><django.core.handlers.wsgi.WSGIHandler object at 0x7f4ab4bf5320></pre></td>
|
|---|
| 332 | </tr>
|
|---|
| 333 |
|
|---|
| 334 | <tr>
|
|---|
| 335 | <td>resolver</td>
|
|---|
| 336 | <td class="code"><pre><RegexURLResolver 'perfman.urls' (None:None) ^/></pre></td>
|
|---|
| 337 | </tr>
|
|---|
| 338 |
|
|---|
| 339 | <tr>
|
|---|
| 340 | <td>wrapped_callback</td>
|
|---|
| 341 | <td class="code"><pre><bound method AdminSite.login of <django.contrib.admin.sites.AdminSite object at 0x7f4ab3d445f8>></pre></td>
|
|---|
| 342 | </tr>
|
|---|
| 343 |
|
|---|
| 344 | <tr>
|
|---|
| 345 | <td>resolver_match</td>
|
|---|
| 346 | <td class="code"><pre>ResolverMatch(func=django.contrib.admin.sites.login, args=(), kwargs={}, url_name=login, app_name=admin, namespaces=['admin'])</pre></td>
|
|---|
| 347 | </tr>
|
|---|
| 348 |
|
|---|
| 349 | <tr>
|
|---|
| 350 | <td>urlconf</td>
|
|---|
| 351 | <td class="code"><pre>'perfman.urls'</pre></td>
|
|---|
| 352 | </tr>
|
|---|
| 353 |
|
|---|
| 354 | <tr>
|
|---|
| 355 | <td>middleware_method</td>
|
|---|
| 356 | <td class="code"><pre><bound method
|
|---|
| 357 | CsrfViewMiddleware.process_view of
|
|---|
| 358 | <django.middleware.csrf.CsrfViewMiddleware object at
|
|---|
| 359 | 0x7f4ab1f6e5f8>></pre></td>
|
|---|
| 360 | </tr>
|
|---|
| 361 |
|
|---|
| 362 | <tr>
|
|---|
| 363 | <td>callback</td>
|
|---|
| 364 | <td class="code"><pre><bound method AdminSite.login of <django.contrib.admin.sites.AdminSite object at 0x7f4ab3d445f8>></pre></td>
|
|---|
| 365 | </tr>
|
|---|
| 366 |
|
|---|
| 367 | <tr>
|
|---|
| 368 | <td>callback_kwargs</td>
|
|---|
| 369 | <td class="code"><pre>{}</pre></td>
|
|---|
| 370 | </tr>
|
|---|
| 371 |
|
|---|
| 372 | <tr>
|
|---|
| 373 | <td>callback_args</td>
|
|---|
| 374 | <td class="code"><pre>()</pre></td>
|
|---|
| 375 | </tr>
|
|---|
| 376 |
|
|---|
| 377 | <tr>
|
|---|
| 378 | <td>request</td>
|
|---|
| 379 | <td class="code"><pre>'<WSGIRequest\n'
|
|---|
| 380 | 'path:/admin/login/,\n'
|
|---|
| 381 | "GET:<QueryDict: {'next': ['/admin/']}>,\n"
|
|---|
| 382 | 'POST:<QueryDict: {}>,\n'
|
|---|
| 383 | "COOKIES:{'csrftoken': 'BY2pIROTJeFofa1EcjSL1pekPrhjaIak',\n"
|
|---|
| 384 | " 'sessionid': 'ug3xxoy8os5ypw3hg3v8pdmmmz35pp22'},\n"
|
|---|
| 385 | "META:{'CLUTTER_IM_MODULE': 'xim',\n"
|
|---|
| 386 | " 'COMPIZ_BIN_PATH': '/usr/bin/',\n"
|
|---|
| 387 | " 'COMPIZ_CONFIG_PROFILE': 'ubuntu',\n"
|
|---|
| 388 | " 'CONTENT_LENGTH': '',\n"
|
|---|
| 389 | " 'CONTENT_TYPE': 'text/plain',\n"
|
|---|
| 390 | " 'CSRF_COOKIE': 'BY2pIROTJeFofa1EcjSL1pekPrhjaIak',\n"
|
|---|
| 391 | " 'DBUS_SESSION_BUS_ADDRESS': 'unix:abstract=/tmp/dbus-WXORzVO6wA',\n"
|
|---|
| 392 | " 'DEFAULTS_PATH': '/usr/share/gconf/ubuntu.default.path',\n"
|
|---|
| 393 | " 'DESKTOP_SESSION': 'ubuntu',\n"
|
|---|
| 394 | " 'DISPLAY': ':0',\n"
|
|---|
| 395 | " 'DJANGO_SETTINGS_MODULE': 'perfman.settings',\n"
|
|---|
| 396 | " 'GATEWAY_INTERFACE': 'CGI/1.1',\n"
|
|---|
| 397 | " 'GDMSESSION': 'ubuntu',\n"
|
|---|
| 398 | " 'GDM_LANG': 'en_US',\n"
|
|---|
| 399 | " 'GIO_LAUNCHED_DESKTOP_FILE': "
|
|---|
| 400 | "'/usr/share/applications/jetbrains-pycharm.desktop',\n"
|
|---|
| 401 | " 'GIO_LAUNCHED_DESKTOP_FILE_PID': '4155',\n"
|
|---|
| 402 | " 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated',\n"
|
|---|
| 403 | " 'GNOME_KEYRING_CONTROL': '/run/user/1001/keyring-sfoVTK',\n"
|
|---|
| 404 | " 'GNOME_KEYRING_PID': '2952',\n"
|
|---|
| 405 | " 'GPG_AGENT_INFO': '/run/user/1001/keyring-sfoVTK/gpg:0:1',\n"
|
|---|
| 406 | " 'GRAILS_HOME': '/opt/grails-2.3.11',\n"
|
|---|
| 407 | " 'GTK_IM_MODULE': 'ibus',\n"
|
|---|
| 408 | " 'GTK_MODULES': 'overlay-scrollbar:unity-gtk-module',\n"
|
|---|
| 409 | " 'HOME': '/home/yidnekachew',\n"
|
|---|
| 410 | " 'HTTP_ACCEPT': "
|
|---|
| 411 | "'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',\n"
|
|---|
| 412 | " 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',\n"
|
|---|
| 413 | " 'HTTP_ACCEPT_LANGUAGE': 'am,en-US;q=0.7,en;q=0.3',\n"
|
|---|
| 414 | " 'HTTP_CONNECTION': 'keep-alive',\n"
|
|---|
| 415 | " 'HTTP_COOKIE': 'csrftoken=BY2pIROTJeFofa1EcjSL1pekPrhjaIak; '\n"
|
|---|
| 416 | " 'sessionid=ug3xxoy8os5ypw3hg3v8pdmmmz35pp22',\n"
|
|---|
| 417 | " 'HTTP_HOST': '127.0.0.1:8000',\n"
|
|---|
| 418 | " 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0)
|
|---|
| 419 | '\n"
|
|---|
| 420 | " 'Gecko/20100101 Firefox/38.0',\n"
|
|---|
| 421 | " 'IM_CONFIG_PHASE': '1',\n"
|
|---|
| 422 | " 'INSTANCE': '',\n"
|
|---|
| 423 | " 'JAVA_HOME': '/usr/java/jdk1.6.0_30',\n"
|
|---|
| 424 | " 'JDK_HOME': '/usr/java/jdk1.6.0_30',\n"
|
|---|
| 425 | " 'JOB': 'dbus',\n"
|
|---|
| 426 | " 'LANG': 'en_US.UTF-8',\n"
|
|---|
| 427 | " 'LANGUAGE': 'en_US',\n"
|
|---|
| 428 | " 'LC_ADDRESS': 'am_ET',\n"
|
|---|
| 429 | " 'LC_IDENTIFICATION': 'am_ET',\n"
|
|---|
| 430 | " 'LC_MEASUREMENT': 'am_ET',\n"
|
|---|
| 431 | " 'LC_MONETARY': 'am_ET',\n"
|
|---|
| 432 | " 'LC_NAME': 'am_ET',\n"
|
|---|
| 433 | " 'LC_NUMERIC': 'am_ET',\n"
|
|---|
| 434 | " 'LC_PAPER': 'am_ET',\n"
|
|---|
| 435 | " 'LC_TELEPHONE': 'am_ET',\n"
|
|---|
| 436 | " 'LC_TIME': 'am_ET',\n"
|
|---|
| 437 | " 'LD_LIBRARY_PATH': "
|
|---|
| 438 | "'/usr/java/jdk1.6.0_30/jre/lib/amd64/server:/usr/java/jdk1.6.0_30/jre/lib/amd64:/usr/java/jdk1.6.0_30/jre/../lib/amd64:/home/yidnekachew/Desktop/My
|
|---|
| 439 | "
|
|---|
| 440 | "'\n"
|
|---|
| 441 | " 'Documents/pycharm-4.5.2/bin:',\n"
|
|---|
| 442 | " 'LOGNAME': 'yidnekachew',\n"
|
|---|
| 443 | " 'MANDATORY_PATH': '/usr/share/gconf/ubuntu.mandatory.path',\n"
|
|---|
| 444 | " 'NLSPATH': '/usr/dt/lib/nls/msg/%L/%N.cat',\n"
|
|---|
| 445 | " 'PAGA_ENC_ALGORITHM': 'PBEWithMD5AndTripleDES',\n"
|
|---|
| 446 | " 'PAGA_ENC_ITERATIONS': '1000',\n"
|
|---|
| 447 | " 'PAGA_ENC_KEY': 'dfjk38Gfdsj59sjFg',\n"
|
|---|
| 448 | " 'PATH': "
|
|---|
| 449 | "'/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/groovy-1.8.5/bin:/opt/grails-2.3.11/bin',\n"
|
|---|
| 450 | "
|
|---|
| 451 | 'PATH_INFO': '/admin/login/',\n"
|
|---|
| 452 | " 'PWD': '/home/yidnekachew',\n"
|
|---|
| 453 | " 'PYCHARM_HOSTED': '1',\n"
|
|---|
| 454 | " 'PYTHONIOENCODING': 'UTF-8',\n"
|
|---|
| 455 | " 'PYTHONPATH': '/home/yidnekachew/Projects/Django/perfman2',\n"
|
|---|
| 456 | " 'PYTHONUNBUFFERED': '1',\n"
|
|---|
| 457 | " 'QT4_IM_MODULE': 'xim',\n"
|
|---|
| 458 | " 'QT_IM_MODULE': 'ibus',\n"
|
|---|
| 459 | " 'QT_QPA_PLATFORMTHEME': 'appmenu-qt5',\n"
|
|---|
| 460 | " 'QUERY_STRING': 'next=/admin/',\n"
|
|---|
| 461 | " 'REMOTE_ADDR': '127.0.0.1',\n"
|
|---|
| 462 | " 'REMOTE_HOST': '',\n"
|
|---|
| 463 | " 'REQUEST_METHOD': 'GET',\n"
|
|---|
| 464 | " 'RUN_MAIN': 'true',\n"
|
|---|
| 465 | " 'SCRIPT_NAME': '',\n"
|
|---|
| 466 | " 'SELINUX_INIT': 'YES',\n"
|
|---|
| 467 | " 'SERVER_NAME': 'localhost',\n"
|
|---|
| 468 | " 'SERVER_PORT': '8000',\n"
|
|---|
| 469 | " 'SERVER_PROTOCOL': 'HTTP/1.1',\n"
|
|---|
| 470 | " 'SERVER_SOFTWARE': 'WSGIServer/0.2',\n"
|
|---|
| 471 | " 'SESSION': 'ubuntu',\n"
|
|---|
| 472 | " 'SESSIONTYPE': 'gnome-session',\n"
|
|---|
| 473 | " 'SESSION_MANAGER': "
|
|---|
| 474 | "'local/zkassa:@/tmp/.ICE-unix/3168,unix/zkassa:/tmp/.ICE-unix/3168',\n"
|
|---|
| 475 | " 'SHELL': '/bin/bash',\n"
|
|---|
| 476 | " 'SHLVL': '0',\n"
|
|---|
| 477 | " 'SSH_AUTH_SOCK': '/run/user/1001/keyring-sfoVTK/ssh',\n"
|
|---|
| 478 | " 'TEXTDOMAIN': 'im-config',\n"
|
|---|
| 479 | " 'TEXTDOMAINDIR': '/usr/share/locale/',\n"
|
|---|
| 480 | " 'TZ': 'UTC',\n"
|
|---|
| 481 | " 'UPSTART_SESSION':
|
|---|
| 482 | 'unix:abstract=/com/ubuntu/upstart-session/1001/2954',\n"
|
|---|
| 483 | " 'USER': 'yidnekache... <trimmed 5148 bytes string></pre></td>
|
|---|
| 484 | </tr>
|
|---|
| 485 |
|
|---|
| 486 | <tr>
|
|---|
| 487 | <td>response</td>
|
|---|
| 488 | <td class="code"><pre><django.template.response.TemplateResponse object at 0x7f4ab143c588></pre></td>
|
|---|
| 489 | </tr>
|
|---|
| 490 |
|
|---|
| 491 | </tbody>
|
|---|
| 492 | </table>
|
|---|
| 493 |
|
|---|
| 494 | </li>
|
|---|
| 495 |
|
|---|
| 496 | <li class="frame django">
|
|---|
| 497 | <code>/usr/local/lib/python3.4/dist-packages/django/template/response.py</code> in <code>render</code>
|
|---|
| 498 |
|
|---|
| 499 |
|
|---|
| 500 | <div class="context" id="c139958777838792">
|
|---|
| 501 |
|
|---|
| 502 | <ol style="display: none;" start="151" class="pre-context" id="pre139958777838792">
|
|---|
| 503 |
|
|---|
| 504 | <li onclick="toggle('pre139958777838792', 'post139958777838792')"><pre></pre></li>
|
|---|
| 505 |
|
|---|
| 506 | <li onclick="toggle('pre139958777838792', 'post139958777838792')"><pre> If the content has already been rendered, this is a no-op.</pre></li>
|
|---|
| 507 |
|
|---|
| 508 | <li onclick="toggle('pre139958777838792', 'post139958777838792')"><pre></pre></li>
|
|---|
| 509 |
|
|---|
| 510 | <li onclick="toggle('pre139958777838792', 'post139958777838792')"><pre> Returns the baked response instance.</pre></li>
|
|---|
| 511 |
|
|---|
| 512 | <li onclick="toggle('pre139958777838792', 'post139958777838792')"><pre> """</pre></li>
|
|---|
| 513 |
|
|---|
| 514 | <li onclick="toggle('pre139958777838792', 'post139958777838792')"><pre> retval = self</pre></li>
|
|---|
| 515 |
|
|---|
| 516 | <li onclick="toggle('pre139958777838792', 'post139958777838792')"><pre> if not self._is_rendered:</pre></li>
|
|---|
| 517 |
|
|---|
| 518 | </ol>
|
|---|
| 519 |
|
|---|
| 520 | <ol start="158" class="context-line">
|
|---|
| 521 | <li onclick="toggle('pre139958777838792', 'post139958777838792')"><pre> self.content = self.rendered_content</pre> <span>...</span></li></ol>
|
|---|
| 522 |
|
|---|
| 523 | <ol style="display: none;" start="159" class="post-context" id="post139958777838792">
|
|---|
| 524 |
|
|---|
| 525 | <li onclick="toggle('pre139958777838792', 'post139958777838792')"><pre> for post_callback in self._post_render_callbacks:</pre></li>
|
|---|
| 526 |
|
|---|
| 527 | <li onclick="toggle('pre139958777838792', 'post139958777838792')"><pre> newretval = post_callback(retval)</pre></li>
|
|---|
| 528 |
|
|---|
| 529 | <li onclick="toggle('pre139958777838792', 'post139958777838792')"><pre> if newretval is not None:</pre></li>
|
|---|
| 530 |
|
|---|
| 531 | <li onclick="toggle('pre139958777838792', 'post139958777838792')"><pre> retval = newretval</pre></li>
|
|---|
| 532 |
|
|---|
| 533 | <li onclick="toggle('pre139958777838792', 'post139958777838792')"><pre> return retval</pre></li>
|
|---|
| 534 |
|
|---|
| 535 | <li onclick="toggle('pre139958777838792', 'post139958777838792')"><pre></pre></li>
|
|---|
| 536 |
|
|---|
| 537 | </ol>
|
|---|
| 538 |
|
|---|
| 539 | </div>
|
|---|
| 540 |
|
|---|
| 541 |
|
|---|
| 542 |
|
|---|
| 543 | <div class="commands">
|
|---|
| 544 |
|
|---|
| 545 | <a href="#" onclick="return varToggle(this, '139958777838792')"><span>▶</span> Local vars</a>
|
|---|
| 546 |
|
|---|
| 547 | </div>
|
|---|
| 548 | <table style="display: none;" class="vars" id="v139958777838792">
|
|---|
| 549 | <thead>
|
|---|
| 550 | <tr>
|
|---|
| 551 | <th>Variable</th>
|
|---|
| 552 | <th>Value</th>
|
|---|
| 553 | </tr>
|
|---|
| 554 | </thead>
|
|---|
| 555 | <tbody>
|
|---|
| 556 |
|
|---|
| 557 | <tr>
|
|---|
| 558 | <td>self</td>
|
|---|
| 559 | <td class="code"><pre><django.template.response.TemplateResponse object at 0x7f4ab143c588></pre></td>
|
|---|
| 560 | </tr>
|
|---|
| 561 |
|
|---|
| 562 | <tr>
|
|---|
| 563 | <td>retval</td>
|
|---|
| 564 | <td class="code"><pre><django.template.response.TemplateResponse object at 0x7f4ab143c588></pre></td>
|
|---|
| 565 | </tr>
|
|---|
| 566 |
|
|---|
| 567 | </tbody>
|
|---|
| 568 | </table>
|
|---|
| 569 |
|
|---|
| 570 | </li>
|
|---|
| 571 |
|
|---|
| 572 | <li class="frame django">
|
|---|
| 573 | <code>/usr/local/lib/python3.4/dist-packages/django/template/response.py</code> in <code>rendered_content</code>
|
|---|
| 574 |
|
|---|
| 575 |
|
|---|
| 576 | <div class="context" id="c139958777836680">
|
|---|
| 577 |
|
|---|
| 578 | <ol style="display: none;" start="128" class="pre-context" id="pre139958777836680">
|
|---|
| 579 |
|
|---|
| 580 | <li onclick="toggle('pre139958777836680', 'post139958777836680')"><pre></pre></li>
|
|---|
| 581 |
|
|---|
| 582 | <li onclick="toggle('pre139958777836680', 'post139958777836680')"><pre> This *does not* set the final content of the response. To set the</pre></li>
|
|---|
| 583 |
|
|---|
| 584 | <li onclick="toggle('pre139958777836680', 'post139958777836680')"><pre> response content, you must either call render(), or set the</pre></li>
|
|---|
| 585 |
|
|---|
| 586 | <li onclick="toggle('pre139958777836680', 'post139958777836680')"><pre> content explicitly using the value of this property.</pre></li>
|
|---|
| 587 |
|
|---|
| 588 | <li onclick="toggle('pre139958777836680', 'post139958777836680')"><pre> """</pre></li>
|
|---|
| 589 |
|
|---|
| 590 | <li onclick="toggle('pre139958777836680', 'post139958777836680')"><pre> template = self._resolve_template(self.template_name)</pre></li>
|
|---|
| 591 |
|
|---|
| 592 | <li onclick="toggle('pre139958777836680', 'post139958777836680')"><pre> context = self._resolve_context(self.context_data)</pre></li>
|
|---|
| 593 |
|
|---|
| 594 | </ol>
|
|---|
| 595 |
|
|---|
| 596 | <ol start="135" class="context-line">
|
|---|
| 597 | <li onclick="toggle('pre139958777836680', 'post139958777836680')"><pre> content = template.render(context, self._request)</pre> <span>...</span></li></ol>
|
|---|
| 598 |
|
|---|
| 599 | <ol style="display: none;" start="136" class="post-context" id="post139958777836680">
|
|---|
| 600 |
|
|---|
| 601 | <li onclick="toggle('pre139958777836680', 'post139958777836680')"><pre> return content</pre></li>
|
|---|
| 602 |
|
|---|
| 603 | <li onclick="toggle('pre139958777836680', 'post139958777836680')"><pre></pre></li>
|
|---|
| 604 |
|
|---|
| 605 | <li onclick="toggle('pre139958777836680', 'post139958777836680')"><pre> def add_post_render_callback(self, callback):</pre></li>
|
|---|
| 606 |
|
|---|
| 607 | <li onclick="toggle('pre139958777836680', 'post139958777836680')"><pre> """Adds a new post-rendering callback.</pre></li>
|
|---|
| 608 |
|
|---|
| 609 | <li onclick="toggle('pre139958777836680', 'post139958777836680')"><pre></pre></li>
|
|---|
| 610 |
|
|---|
| 611 | <li onclick="toggle('pre139958777836680', 'post139958777836680')"><pre> If the response has already been rendered,</pre></li>
|
|---|
| 612 |
|
|---|
| 613 | </ol>
|
|---|
| 614 |
|
|---|
| 615 | </div>
|
|---|
| 616 |
|
|---|
| 617 |
|
|---|
| 618 |
|
|---|
| 619 | <div class="commands">
|
|---|
| 620 |
|
|---|
| 621 | <a href="#" onclick="return varToggle(this, '139958777836680')"><span>▶</span> Local vars</a>
|
|---|
| 622 |
|
|---|
| 623 | </div>
|
|---|
| 624 | <table style="display: none;" class="vars" id="v139958777836680">
|
|---|
| 625 | <thead>
|
|---|
| 626 | <tr>
|
|---|
| 627 | <th>Variable</th>
|
|---|
| 628 | <th>Value</th>
|
|---|
| 629 | </tr>
|
|---|
| 630 | </thead>
|
|---|
| 631 | <tbody>
|
|---|
| 632 |
|
|---|
| 633 | <tr>
|
|---|
| 634 | <td>context</td>
|
|---|
| 635 | <td class="code"><pre>{'app_path': '/admin/login/?next=/admin/',
|
|---|
| 636 | 'form': <AdminAuthenticationForm bound=False, valid=Unknown, fields=(username;password)>,
|
|---|
| 637 | 'has_permission': False,
|
|---|
| 638 | 'next': '/admin/',
|
|---|
| 639 | 'site': <django.contrib.sites.requests.RequestSite object at 0x7f4ab143c358>,
|
|---|
| 640 | 'site_header': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7f4ab3d40ac8>,
|
|---|
| 641 | 'site_name': '127.0.0.1:8000',
|
|---|
| 642 | 'site_title': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7f4ab3dd6eb8>,
|
|---|
| 643 | 'site_url': '/',
|
|---|
| 644 | 'title': 'Log in'}</pre></td>
|
|---|
| 645 | </tr>
|
|---|
| 646 |
|
|---|
| 647 | <tr>
|
|---|
| 648 | <td>template</td>
|
|---|
| 649 | <td class="code"><pre><django.template.backends.django.Template object at 0x7f4ab143c0f0></pre></td>
|
|---|
| 650 | </tr>
|
|---|
| 651 |
|
|---|
| 652 | <tr>
|
|---|
| 653 | <td>self</td>
|
|---|
| 654 | <td class="code"><pre><django.template.response.TemplateResponse object at 0x7f4ab143c588></pre></td>
|
|---|
| 655 | </tr>
|
|---|
| 656 |
|
|---|
| 657 | </tbody>
|
|---|
| 658 | </table>
|
|---|
| 659 |
|
|---|
| 660 | </li>
|
|---|
| 661 |
|
|---|
| 662 | <li class="frame django">
|
|---|
| 663 | <code>/usr/local/lib/python3.4/dist-packages/django/template/backends/django.py</code> in <code>render</code>
|
|---|
| 664 |
|
|---|
| 665 |
|
|---|
| 666 | <div class="context" id="c139958777837000">
|
|---|
| 667 |
|
|---|
| 668 | <ol style="display: none;" start="67" class="pre-context" id="pre139958777837000">
|
|---|
| 669 |
|
|---|
| 670 | <li onclick="toggle('pre139958777837000', 'post139958777837000')"><pre> warnings.warn(</pre></li>
|
|---|
| 671 |
|
|---|
| 672 | <li onclick="toggle('pre139958777837000', 'post139958777837000')"><pre> "render() must be called with a dict, not a Context.",</pre></li>
|
|---|
| 673 |
|
|---|
| 674 | <li onclick="toggle('pre139958777837000', 'post139958777837000')"><pre> RemovedInDjango20Warning, stacklevel=2)</pre></li>
|
|---|
| 675 |
|
|---|
| 676 | <li onclick="toggle('pre139958777837000', 'post139958777837000')"><pre></pre></li>
|
|---|
| 677 |
|
|---|
| 678 | <li onclick="toggle('pre139958777837000', 'post139958777837000')"><pre> else:</pre></li>
|
|---|
| 679 |
|
|---|
| 680 | <li onclick="toggle('pre139958777837000', 'post139958777837000')"><pre> context = make_context(context, request)</pre></li>
|
|---|
| 681 |
|
|---|
| 682 | <li onclick="toggle('pre139958777837000', 'post139958777837000')"><pre></pre></li>
|
|---|
| 683 |
|
|---|
| 684 | </ol>
|
|---|
| 685 |
|
|---|
| 686 | <ol start="74" class="context-line">
|
|---|
| 687 | <li onclick="toggle('pre139958777837000', 'post139958777837000')"><pre> return self.template.render(context)</pre> <span>...</span></li></ol>
|
|---|
| 688 |
|
|---|
| 689 | </div>
|
|---|
| 690 |
|
|---|
| 691 |
|
|---|
| 692 |
|
|---|
| 693 | <div class="commands">
|
|---|
| 694 |
|
|---|
| 695 | <a href="#" onclick="return varToggle(this, '139958777837000')"><span>▶</span> Local vars</a>
|
|---|
| 696 |
|
|---|
| 697 | </div>
|
|---|
| 698 | <table style="display: none;" class="vars" id="v139958777837000">
|
|---|
| 699 | <thead>
|
|---|
| 700 | <tr>
|
|---|
| 701 | <th>Variable</th>
|
|---|
| 702 | <th>Value</th>
|
|---|
| 703 | </tr>
|
|---|
| 704 | </thead>
|
|---|
| 705 | <tbody>
|
|---|
| 706 |
|
|---|
| 707 | <tr>
|
|---|
| 708 | <td>context</td>
|
|---|
| 709 | <td class="code"><pre>[{'False': False, 'True':
|
|---|
| 710 | True, 'None': None}, {}, {'form': <AdminAuthenticationForm
|
|---|
| 711 | bound=False, valid=Unknown, fields=(username;password)>, 'site_name':
|
|---|
| 712 | '127.0.0.1:8000', 'site_url': '/', 'site_title':
|
|---|
| 713 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 714 | 0x7f4ab3dd6eb8>, 'title': 'Log in', 'LANGUAGE_BIDI': False,
|
|---|
| 715 | 'has_permission': False, 'site':
|
|---|
| 716 | <django.contrib.sites.requests.RequestSite object at
|
|---|
| 717 | 0x7f4ab143c358>, 'site_header':
|
|---|
| 718 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 719 | 0x7f4ab3d40ac8>, 'next': '/admin/', 'app_path':
|
|---|
| 720 | '/admin/login/?next=/admin/', 'LANGUAGE_CODE': 'en-us'}]</pre></td>
|
|---|
| 721 | </tr>
|
|---|
| 722 |
|
|---|
| 723 | <tr>
|
|---|
| 724 | <td>self</td>
|
|---|
| 725 | <td class="code"><pre><django.template.backends.django.Template object at 0x7f4ab143c0f0></pre></td>
|
|---|
| 726 | </tr>
|
|---|
| 727 |
|
|---|
| 728 | <tr>
|
|---|
| 729 | <td>request</td>
|
|---|
| 730 | <td class="code"><pre>'<WSGIRequest\n'
|
|---|
| 731 | 'path:/admin/login/,\n'
|
|---|
| 732 | "GET:<QueryDict: {'next': ['/admin/']}>,\n"
|
|---|
| 733 | 'POST:<QueryDict: {}>,\n'
|
|---|
| 734 | "COOKIES:{'csrftoken': 'BY2pIROTJeFofa1EcjSL1pekPrhjaIak',\n"
|
|---|
| 735 | " 'sessionid': 'ug3xxoy8os5ypw3hg3v8pdmmmz35pp22'},\n"
|
|---|
| 736 | "META:{'CLUTTER_IM_MODULE': 'xim',\n"
|
|---|
| 737 | " 'COMPIZ_BIN_PATH': '/usr/bin/',\n"
|
|---|
| 738 | " 'COMPIZ_CONFIG_PROFILE': 'ubuntu',\n"
|
|---|
| 739 | " 'CONTENT_LENGTH': '',\n"
|
|---|
| 740 | " 'CONTENT_TYPE': 'text/plain',\n"
|
|---|
| 741 | " 'CSRF_COOKIE': 'BY2pIROTJeFofa1EcjSL1pekPrhjaIak',\n"
|
|---|
| 742 | " 'DBUS_SESSION_BUS_ADDRESS': 'unix:abstract=/tmp/dbus-WXORzVO6wA',\n"
|
|---|
| 743 | " 'DEFAULTS_PATH': '/usr/share/gconf/ubuntu.default.path',\n"
|
|---|
| 744 | " 'DESKTOP_SESSION': 'ubuntu',\n"
|
|---|
| 745 | " 'DISPLAY': ':0',\n"
|
|---|
| 746 | " 'DJANGO_SETTINGS_MODULE': 'perfman.settings',\n"
|
|---|
| 747 | " 'GATEWAY_INTERFACE': 'CGI/1.1',\n"
|
|---|
| 748 | " 'GDMSESSION': 'ubuntu',\n"
|
|---|
| 749 | " 'GDM_LANG': 'en_US',\n"
|
|---|
| 750 | " 'GIO_LAUNCHED_DESKTOP_FILE': "
|
|---|
| 751 | "'/usr/share/applications/jetbrains-pycharm.desktop',\n"
|
|---|
| 752 | " 'GIO_LAUNCHED_DESKTOP_FILE_PID': '4155',\n"
|
|---|
| 753 | " 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated',\n"
|
|---|
| 754 | " 'GNOME_KEYRING_CONTROL': '/run/user/1001/keyring-sfoVTK',\n"
|
|---|
| 755 | " 'GNOME_KEYRING_PID': '2952',\n"
|
|---|
| 756 | " 'GPG_AGENT_INFO': '/run/user/1001/keyring-sfoVTK/gpg:0:1',\n"
|
|---|
| 757 | " 'GRAILS_HOME': '/opt/grails-2.3.11',\n"
|
|---|
| 758 | " 'GTK_IM_MODULE': 'ibus',\n"
|
|---|
| 759 | " 'GTK_MODULES': 'overlay-scrollbar:unity-gtk-module',\n"
|
|---|
| 760 | " 'HOME': '/home/yidnekachew',\n"
|
|---|
| 761 | " 'HTTP_ACCEPT': "
|
|---|
| 762 | "'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',\n"
|
|---|
| 763 | " 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',\n"
|
|---|
| 764 | " 'HTTP_ACCEPT_LANGUAGE': 'am,en-US;q=0.7,en;q=0.3',\n"
|
|---|
| 765 | " 'HTTP_CONNECTION': 'keep-alive',\n"
|
|---|
| 766 | " 'HTTP_COOKIE': 'csrftoken=BY2pIROTJeFofa1EcjSL1pekPrhjaIak; '\n"
|
|---|
| 767 | " 'sessionid=ug3xxoy8os5ypw3hg3v8pdmmmz35pp22',\n"
|
|---|
| 768 | " 'HTTP_HOST': '127.0.0.1:8000',\n"
|
|---|
| 769 | " 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0)
|
|---|
| 770 | '\n"
|
|---|
| 771 | " 'Gecko/20100101 Firefox/38.0',\n"
|
|---|
| 772 | " 'IM_CONFIG_PHASE': '1',\n"
|
|---|
| 773 | " 'INSTANCE': '',\n"
|
|---|
| 774 | " 'JAVA_HOME': '/usr/java/jdk1.6.0_30',\n"
|
|---|
| 775 | " 'JDK_HOME': '/usr/java/jdk1.6.0_30',\n"
|
|---|
| 776 | " 'JOB': 'dbus',\n"
|
|---|
| 777 | " 'LANG': 'en_US.UTF-8',\n"
|
|---|
| 778 | " 'LANGUAGE': 'en_US',\n"
|
|---|
| 779 | " 'LC_ADDRESS': 'am_ET',\n"
|
|---|
| 780 | " 'LC_IDENTIFICATION': 'am_ET',\n"
|
|---|
| 781 | " 'LC_MEASUREMENT': 'am_ET',\n"
|
|---|
| 782 | " 'LC_MONETARY': 'am_ET',\n"
|
|---|
| 783 | " 'LC_NAME': 'am_ET',\n"
|
|---|
| 784 | " 'LC_NUMERIC': 'am_ET',\n"
|
|---|
| 785 | " 'LC_PAPER': 'am_ET',\n"
|
|---|
| 786 | " 'LC_TELEPHONE': 'am_ET',\n"
|
|---|
| 787 | " 'LC_TIME': 'am_ET',\n"
|
|---|
| 788 | " 'LD_LIBRARY_PATH': "
|
|---|
| 789 | "'/usr/java/jdk1.6.0_30/jre/lib/amd64/server:/usr/java/jdk1.6.0_30/jre/lib/amd64:/usr/java/jdk1.6.0_30/jre/../lib/amd64:/home/yidnekachew/Desktop/My
|
|---|
| 790 | "
|
|---|
| 791 | "'\n"
|
|---|
| 792 | " 'Documents/pycharm-4.5.2/bin:',\n"
|
|---|
| 793 | " 'LOGNAME': 'yidnekachew',\n"
|
|---|
| 794 | " 'MANDATORY_PATH': '/usr/share/gconf/ubuntu.mandatory.path',\n"
|
|---|
| 795 | " 'NLSPATH': '/usr/dt/lib/nls/msg/%L/%N.cat',\n"
|
|---|
| 796 | " 'PAGA_ENC_ALGORITHM': 'PBEWithMD5AndTripleDES',\n"
|
|---|
| 797 | " 'PAGA_ENC_ITERATIONS': '1000',\n"
|
|---|
| 798 | " 'PAGA_ENC_KEY': 'dfjk38Gfdsj59sjFg',\n"
|
|---|
| 799 | " 'PATH': "
|
|---|
| 800 | "'/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/groovy-1.8.5/bin:/opt/grails-2.3.11/bin',\n"
|
|---|
| 801 | "
|
|---|
| 802 | 'PATH_INFO': '/admin/login/',\n"
|
|---|
| 803 | " 'PWD': '/home/yidnekachew',\n"
|
|---|
| 804 | " 'PYCHARM_HOSTED': '1',\n"
|
|---|
| 805 | " 'PYTHONIOENCODING': 'UTF-8',\n"
|
|---|
| 806 | " 'PYTHONPATH': '/home/yidnekachew/Projects/Django/perfman2',\n"
|
|---|
| 807 | " 'PYTHONUNBUFFERED': '1',\n"
|
|---|
| 808 | " 'QT4_IM_MODULE': 'xim',\n"
|
|---|
| 809 | " 'QT_IM_MODULE': 'ibus',\n"
|
|---|
| 810 | " 'QT_QPA_PLATFORMTHEME': 'appmenu-qt5',\n"
|
|---|
| 811 | " 'QUERY_STRING': 'next=/admin/',\n"
|
|---|
| 812 | " 'REMOTE_ADDR': '127.0.0.1',\n"
|
|---|
| 813 | " 'REMOTE_HOST': '',\n"
|
|---|
| 814 | " 'REQUEST_METHOD': 'GET',\n"
|
|---|
| 815 | " 'RUN_MAIN': 'true',\n"
|
|---|
| 816 | " 'SCRIPT_NAME': '',\n"
|
|---|
| 817 | " 'SELINUX_INIT': 'YES',\n"
|
|---|
| 818 | " 'SERVER_NAME': 'localhost',\n"
|
|---|
| 819 | " 'SERVER_PORT': '8000',\n"
|
|---|
| 820 | " 'SERVER_PROTOCOL': 'HTTP/1.1',\n"
|
|---|
| 821 | " 'SERVER_SOFTWARE': 'WSGIServer/0.2',\n"
|
|---|
| 822 | " 'SESSION': 'ubuntu',\n"
|
|---|
| 823 | " 'SESSIONTYPE': 'gnome-session',\n"
|
|---|
| 824 | " 'SESSION_MANAGER': "
|
|---|
| 825 | "'local/zkassa:@/tmp/.ICE-unix/3168,unix/zkassa:/tmp/.ICE-unix/3168',\n"
|
|---|
| 826 | " 'SHELL': '/bin/bash',\n"
|
|---|
| 827 | " 'SHLVL': '0',\n"
|
|---|
| 828 | " 'SSH_AUTH_SOCK': '/run/user/1001/keyring-sfoVTK/ssh',\n"
|
|---|
| 829 | " 'TEXTDOMAIN': 'im-config',\n"
|
|---|
| 830 | " 'TEXTDOMAINDIR': '/usr/share/locale/',\n"
|
|---|
| 831 | " 'TZ': 'UTC',\n"
|
|---|
| 832 | " 'UPSTART_SESSION':
|
|---|
| 833 | 'unix:abstract=/com/ubuntu/upstart-session/1001/2954',\n"
|
|---|
| 834 | " 'USER': 'yidnekache... <trimmed 5148 bytes string></pre></td>
|
|---|
| 835 | </tr>
|
|---|
| 836 |
|
|---|
| 837 | </tbody>
|
|---|
| 838 | </table>
|
|---|
| 839 |
|
|---|
| 840 | </li>
|
|---|
| 841 |
|
|---|
| 842 | <li class="frame django">
|
|---|
| 843 | <code>/usr/local/lib/python3.4/dist-packages/django/template/base.py</code> in <code>render</code>
|
|---|
| 844 |
|
|---|
| 845 |
|
|---|
| 846 | <div class="context" id="c139958777838472">
|
|---|
| 847 |
|
|---|
| 848 | <ol style="display: none;" start="202" class="pre-context" id="pre139958777838472">
|
|---|
| 849 |
|
|---|
| 850 | <li onclick="toggle('pre139958777838472', 'post139958777838472')"><pre></pre></li>
|
|---|
| 851 |
|
|---|
| 852 | <li onclick="toggle('pre139958777838472', 'post139958777838472')"><pre> def render(self, context):</pre></li>
|
|---|
| 853 |
|
|---|
| 854 | <li onclick="toggle('pre139958777838472', 'post139958777838472')"><pre> "Display stage -- can be called many times"</pre></li>
|
|---|
| 855 |
|
|---|
| 856 | <li onclick="toggle('pre139958777838472', 'post139958777838472')"><pre> context.render_context.push()</pre></li>
|
|---|
| 857 |
|
|---|
| 858 | <li onclick="toggle('pre139958777838472', 'post139958777838472')"><pre> try:</pre></li>
|
|---|
| 859 |
|
|---|
| 860 | <li onclick="toggle('pre139958777838472', 'post139958777838472')"><pre> if context.template is None:</pre></li>
|
|---|
| 861 |
|
|---|
| 862 | <li onclick="toggle('pre139958777838472', 'post139958777838472')"><pre> with context.bind_template(self):</pre></li>
|
|---|
| 863 |
|
|---|
| 864 | </ol>
|
|---|
| 865 |
|
|---|
| 866 | <ol start="209" class="context-line">
|
|---|
| 867 | <li onclick="toggle('pre139958777838472', 'post139958777838472')"><pre> return self._render(context)</pre> <span>...</span></li></ol>
|
|---|
| 868 |
|
|---|
| 869 | <ol style="display: none;" start="210" class="post-context" id="post139958777838472">
|
|---|
| 870 |
|
|---|
| 871 | <li onclick="toggle('pre139958777838472', 'post139958777838472')"><pre> else:</pre></li>
|
|---|
| 872 |
|
|---|
| 873 | <li onclick="toggle('pre139958777838472', 'post139958777838472')"><pre> return self._render(context)</pre></li>
|
|---|
| 874 |
|
|---|
| 875 | <li onclick="toggle('pre139958777838472', 'post139958777838472')"><pre> finally:</pre></li>
|
|---|
| 876 |
|
|---|
| 877 | <li onclick="toggle('pre139958777838472', 'post139958777838472')"><pre> context.render_context.pop()</pre></li>
|
|---|
| 878 |
|
|---|
| 879 | <li onclick="toggle('pre139958777838472', 'post139958777838472')"><pre></pre></li>
|
|---|
| 880 |
|
|---|
| 881 | <li onclick="toggle('pre139958777838472', 'post139958777838472')"><pre></pre></li>
|
|---|
| 882 |
|
|---|
| 883 | </ol>
|
|---|
| 884 |
|
|---|
| 885 | </div>
|
|---|
| 886 |
|
|---|
| 887 |
|
|---|
| 888 |
|
|---|
| 889 | <div class="commands">
|
|---|
| 890 |
|
|---|
| 891 | <a href="#" onclick="return varToggle(this, '139958777838472')"><span>▶</span> Local vars</a>
|
|---|
| 892 |
|
|---|
| 893 | </div>
|
|---|
| 894 | <table style="display: none;" class="vars" id="v139958777838472">
|
|---|
| 895 | <thead>
|
|---|
| 896 | <tr>
|
|---|
| 897 | <th>Variable</th>
|
|---|
| 898 | <th>Value</th>
|
|---|
| 899 | </tr>
|
|---|
| 900 | </thead>
|
|---|
| 901 | <tbody>
|
|---|
| 902 |
|
|---|
| 903 | <tr>
|
|---|
| 904 | <td>context</td>
|
|---|
| 905 | <td class="code"><pre>[{'False': False, 'True':
|
|---|
| 906 | True, 'None': None}, {}, {'form': <AdminAuthenticationForm
|
|---|
| 907 | bound=False, valid=Unknown, fields=(username;password)>, 'site_name':
|
|---|
| 908 | '127.0.0.1:8000', 'site_url': '/', 'site_title':
|
|---|
| 909 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 910 | 0x7f4ab3dd6eb8>, 'title': 'Log in', 'LANGUAGE_BIDI': False,
|
|---|
| 911 | 'has_permission': False, 'site':
|
|---|
| 912 | <django.contrib.sites.requests.RequestSite object at
|
|---|
| 913 | 0x7f4ab143c358>, 'site_header':
|
|---|
| 914 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 915 | 0x7f4ab3d40ac8>, 'next': '/admin/', 'app_path':
|
|---|
| 916 | '/admin/login/?next=/admin/', 'LANGUAGE_CODE': 'en-us'}]</pre></td>
|
|---|
| 917 | </tr>
|
|---|
| 918 |
|
|---|
| 919 | <tr>
|
|---|
| 920 | <td>self</td>
|
|---|
| 921 | <td class="code"><pre><django.template.base.Template object at 0x7f4ab14440f0></pre></td>
|
|---|
| 922 | </tr>
|
|---|
| 923 |
|
|---|
| 924 | </tbody>
|
|---|
| 925 | </table>
|
|---|
| 926 |
|
|---|
| 927 | </li>
|
|---|
| 928 |
|
|---|
| 929 | <li class="frame django">
|
|---|
| 930 | <code>/usr/local/lib/python3.4/dist-packages/django/template/base.py</code> in <code>_render</code>
|
|---|
| 931 |
|
|---|
| 932 |
|
|---|
| 933 | <div class="context" id="c139958777838536">
|
|---|
| 934 |
|
|---|
| 935 | <ol style="display: none;" start="194" class="pre-context" id="pre139958777838536">
|
|---|
| 936 |
|
|---|
| 937 | <li onclick="toggle('pre139958777838536', 'post139958777838536')"><pre></pre></li>
|
|---|
| 938 |
|
|---|
| 939 | <li onclick="toggle('pre139958777838536', 'post139958777838536')"><pre> def __iter__(self):</pre></li>
|
|---|
| 940 |
|
|---|
| 941 | <li onclick="toggle('pre139958777838536', 'post139958777838536')"><pre> for node in self.nodelist:</pre></li>
|
|---|
| 942 |
|
|---|
| 943 | <li onclick="toggle('pre139958777838536', 'post139958777838536')"><pre> for subnode in node:</pre></li>
|
|---|
| 944 |
|
|---|
| 945 | <li onclick="toggle('pre139958777838536', 'post139958777838536')"><pre> yield subnode</pre></li>
|
|---|
| 946 |
|
|---|
| 947 | <li onclick="toggle('pre139958777838536', 'post139958777838536')"><pre></pre></li>
|
|---|
| 948 |
|
|---|
| 949 | <li onclick="toggle('pre139958777838536', 'post139958777838536')"><pre> def _render(self, context):</pre></li>
|
|---|
| 950 |
|
|---|
| 951 | </ol>
|
|---|
| 952 |
|
|---|
| 953 | <ol start="201" class="context-line">
|
|---|
| 954 | <li onclick="toggle('pre139958777838536', 'post139958777838536')"><pre> return self.nodelist.render(context)</pre> <span>...</span></li></ol>
|
|---|
| 955 |
|
|---|
| 956 | <ol style="display: none;" start="202" class="post-context" id="post139958777838536">
|
|---|
| 957 |
|
|---|
| 958 | <li onclick="toggle('pre139958777838536', 'post139958777838536')"><pre></pre></li>
|
|---|
| 959 |
|
|---|
| 960 | <li onclick="toggle('pre139958777838536', 'post139958777838536')"><pre> def render(self, context):</pre></li>
|
|---|
| 961 |
|
|---|
| 962 | <li onclick="toggle('pre139958777838536', 'post139958777838536')"><pre> "Display stage -- can be called many times"</pre></li>
|
|---|
| 963 |
|
|---|
| 964 | <li onclick="toggle('pre139958777838536', 'post139958777838536')"><pre> context.render_context.push()</pre></li>
|
|---|
| 965 |
|
|---|
| 966 | <li onclick="toggle('pre139958777838536', 'post139958777838536')"><pre> try:</pre></li>
|
|---|
| 967 |
|
|---|
| 968 | <li onclick="toggle('pre139958777838536', 'post139958777838536')"><pre> if context.template is None:</pre></li>
|
|---|
| 969 |
|
|---|
| 970 | </ol>
|
|---|
| 971 |
|
|---|
| 972 | </div>
|
|---|
| 973 |
|
|---|
| 974 |
|
|---|
| 975 |
|
|---|
| 976 | <div class="commands">
|
|---|
| 977 |
|
|---|
| 978 | <a href="#" onclick="return varToggle(this, '139958777838536')"><span>▶</span> Local vars</a>
|
|---|
| 979 |
|
|---|
| 980 | </div>
|
|---|
| 981 | <table style="display: none;" class="vars" id="v139958777838536">
|
|---|
| 982 | <thead>
|
|---|
| 983 | <tr>
|
|---|
| 984 | <th>Variable</th>
|
|---|
| 985 | <th>Value</th>
|
|---|
| 986 | </tr>
|
|---|
| 987 | </thead>
|
|---|
| 988 | <tbody>
|
|---|
| 989 |
|
|---|
| 990 | <tr>
|
|---|
| 991 | <td>context</td>
|
|---|
| 992 | <td class="code"><pre>[{'False': False, 'True':
|
|---|
| 993 | True, 'None': None}, {}, {'form': <AdminAuthenticationForm
|
|---|
| 994 | bound=False, valid=Unknown, fields=(username;password)>, 'site_name':
|
|---|
| 995 | '127.0.0.1:8000', 'site_url': '/', 'site_title':
|
|---|
| 996 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 997 | 0x7f4ab3dd6eb8>, 'title': 'Log in', 'LANGUAGE_BIDI': False,
|
|---|
| 998 | 'has_permission': False, 'site':
|
|---|
| 999 | <django.contrib.sites.requests.RequestSite object at
|
|---|
| 1000 | 0x7f4ab143c358>, 'site_header':
|
|---|
| 1001 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 1002 | 0x7f4ab3d40ac8>, 'next': '/admin/', 'app_path':
|
|---|
| 1003 | '/admin/login/?next=/admin/', 'LANGUAGE_CODE': 'en-us'}]</pre></td>
|
|---|
| 1004 | </tr>
|
|---|
| 1005 |
|
|---|
| 1006 | <tr>
|
|---|
| 1007 | <td>self</td>
|
|---|
| 1008 | <td class="code"><pre><django.template.base.Template object at 0x7f4ab14440f0></pre></td>
|
|---|
| 1009 | </tr>
|
|---|
| 1010 |
|
|---|
| 1011 | </tbody>
|
|---|
| 1012 | </table>
|
|---|
| 1013 |
|
|---|
| 1014 | </li>
|
|---|
| 1015 |
|
|---|
| 1016 | <li class="frame django">
|
|---|
| 1017 | <code>/usr/local/lib/python3.4/dist-packages/django/template/base.py</code> in <code>render</code>
|
|---|
| 1018 |
|
|---|
| 1019 |
|
|---|
| 1020 | <div class="context" id="c139958777836872">
|
|---|
| 1021 |
|
|---|
| 1022 | <ol style="display: none;" start="896" class="pre-context" id="pre139958777836872">
|
|---|
| 1023 |
|
|---|
| 1024 | <li onclick="toggle('pre139958777836872', 'post139958777836872')"><pre> # extend_nodelist().</pre></li>
|
|---|
| 1025 |
|
|---|
| 1026 | <li onclick="toggle('pre139958777836872', 'post139958777836872')"><pre> contains_nontext = False</pre></li>
|
|---|
| 1027 |
|
|---|
| 1028 | <li onclick="toggle('pre139958777836872', 'post139958777836872')"><pre></pre></li>
|
|---|
| 1029 |
|
|---|
| 1030 | <li onclick="toggle('pre139958777836872', 'post139958777836872')"><pre> def render(self, context):</pre></li>
|
|---|
| 1031 |
|
|---|
| 1032 | <li onclick="toggle('pre139958777836872', 'post139958777836872')"><pre> bits = []</pre></li>
|
|---|
| 1033 |
|
|---|
| 1034 | <li onclick="toggle('pre139958777836872', 'post139958777836872')"><pre> for node in self:</pre></li>
|
|---|
| 1035 |
|
|---|
| 1036 | <li onclick="toggle('pre139958777836872', 'post139958777836872')"><pre> if isinstance(node, Node):</pre></li>
|
|---|
| 1037 |
|
|---|
| 1038 | </ol>
|
|---|
| 1039 |
|
|---|
| 1040 | <ol start="903" class="context-line">
|
|---|
| 1041 | <li onclick="toggle('pre139958777836872', 'post139958777836872')"><pre> bit = self.render_node(node, context)</pre> <span>...</span></li></ol>
|
|---|
| 1042 |
|
|---|
| 1043 | <ol style="display: none;" start="904" class="post-context" id="post139958777836872">
|
|---|
| 1044 |
|
|---|
| 1045 | <li onclick="toggle('pre139958777836872', 'post139958777836872')"><pre> else:</pre></li>
|
|---|
| 1046 |
|
|---|
| 1047 | <li onclick="toggle('pre139958777836872', 'post139958777836872')"><pre> bit = node</pre></li>
|
|---|
| 1048 |
|
|---|
| 1049 | <li onclick="toggle('pre139958777836872', 'post139958777836872')"><pre> bits.append(force_text(bit))</pre></li>
|
|---|
| 1050 |
|
|---|
| 1051 | <li onclick="toggle('pre139958777836872', 'post139958777836872')"><pre> return mark_safe(''.join(bits))</pre></li>
|
|---|
| 1052 |
|
|---|
| 1053 | <li onclick="toggle('pre139958777836872', 'post139958777836872')"><pre></pre></li>
|
|---|
| 1054 |
|
|---|
| 1055 | <li onclick="toggle('pre139958777836872', 'post139958777836872')"><pre> def get_nodes_by_type(self, nodetype):</pre></li>
|
|---|
| 1056 |
|
|---|
| 1057 | </ol>
|
|---|
| 1058 |
|
|---|
| 1059 | </div>
|
|---|
| 1060 |
|
|---|
| 1061 |
|
|---|
| 1062 |
|
|---|
| 1063 | <div class="commands">
|
|---|
| 1064 |
|
|---|
| 1065 | <a href="#" onclick="return varToggle(this, '139958777836872')"><span>▶</span> Local vars</a>
|
|---|
| 1066 |
|
|---|
| 1067 | </div>
|
|---|
| 1068 | <table style="display: none;" class="vars" id="v139958777836872">
|
|---|
| 1069 | <thead>
|
|---|
| 1070 | <tr>
|
|---|
| 1071 | <th>Variable</th>
|
|---|
| 1072 | <th>Value</th>
|
|---|
| 1073 | </tr>
|
|---|
| 1074 | </thead>
|
|---|
| 1075 | <tbody>
|
|---|
| 1076 |
|
|---|
| 1077 | <tr>
|
|---|
| 1078 | <td>node</td>
|
|---|
| 1079 | <td class="code"><pre><ExtendsNode: extends "admin/base_site.html"></pre></td>
|
|---|
| 1080 | </tr>
|
|---|
| 1081 |
|
|---|
| 1082 | <tr>
|
|---|
| 1083 | <td>context</td>
|
|---|
| 1084 | <td class="code"><pre>[{'False': False, 'True':
|
|---|
| 1085 | True, 'None': None}, {}, {'form': <AdminAuthenticationForm
|
|---|
| 1086 | bound=False, valid=Unknown, fields=(username;password)>, 'site_name':
|
|---|
| 1087 | '127.0.0.1:8000', 'site_url': '/', 'site_title':
|
|---|
| 1088 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 1089 | 0x7f4ab3dd6eb8>, 'title': 'Log in', 'LANGUAGE_BIDI': False,
|
|---|
| 1090 | 'has_permission': False, 'site':
|
|---|
| 1091 | <django.contrib.sites.requests.RequestSite object at
|
|---|
| 1092 | 0x7f4ab143c358>, 'site_header':
|
|---|
| 1093 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 1094 | 0x7f4ab3d40ac8>, 'next': '/admin/', 'app_path':
|
|---|
| 1095 | '/admin/login/?next=/admin/', 'LANGUAGE_CODE': 'en-us'}]</pre></td>
|
|---|
| 1096 | </tr>
|
|---|
| 1097 |
|
|---|
| 1098 | <tr>
|
|---|
| 1099 | <td>bits</td>
|
|---|
| 1100 | <td class="code"><pre>[]</pre></td>
|
|---|
| 1101 | </tr>
|
|---|
| 1102 |
|
|---|
| 1103 | <tr>
|
|---|
| 1104 | <td>self</td>
|
|---|
| 1105 | <td class="code"><pre>[<ExtendsNode: extends "admin/base_site.html">]</pre></td>
|
|---|
| 1106 | </tr>
|
|---|
| 1107 |
|
|---|
| 1108 | </tbody>
|
|---|
| 1109 | </table>
|
|---|
| 1110 |
|
|---|
| 1111 | </li>
|
|---|
| 1112 |
|
|---|
| 1113 | <li class="frame django">
|
|---|
| 1114 | <code>/usr/local/lib/python3.4/dist-packages/django/template/debug.py</code> in <code>render_node</code>
|
|---|
| 1115 |
|
|---|
| 1116 |
|
|---|
| 1117 | <div class="context" id="c139958777838600">
|
|---|
| 1118 |
|
|---|
| 1119 | <ol style="display: none;" start="72" class="pre-context" id="pre139958777838600">
|
|---|
| 1120 |
|
|---|
| 1121 | <li onclick="toggle('pre139958777838600', 'post139958777838600')"><pre> if not hasattr(e, 'django_template_source'):</pre></li>
|
|---|
| 1122 |
|
|---|
| 1123 | <li onclick="toggle('pre139958777838600', 'post139958777838600')"><pre> e.django_template_source = token.source</pre></li>
|
|---|
| 1124 |
|
|---|
| 1125 | <li onclick="toggle('pre139958777838600', 'post139958777838600')"><pre></pre></li>
|
|---|
| 1126 |
|
|---|
| 1127 | <li onclick="toggle('pre139958777838600', 'post139958777838600')"><pre></pre></li>
|
|---|
| 1128 |
|
|---|
| 1129 | <li onclick="toggle('pre139958777838600', 'post139958777838600')"><pre>class DebugNodeList(NodeList):</pre></li>
|
|---|
| 1130 |
|
|---|
| 1131 | <li onclick="toggle('pre139958777838600', 'post139958777838600')"><pre> def render_node(self, node, context):</pre></li>
|
|---|
| 1132 |
|
|---|
| 1133 | <li onclick="toggle('pre139958777838600', 'post139958777838600')"><pre> try:</pre></li>
|
|---|
| 1134 |
|
|---|
| 1135 | </ol>
|
|---|
| 1136 |
|
|---|
| 1137 | <ol start="79" class="context-line">
|
|---|
| 1138 | <li onclick="toggle('pre139958777838600', 'post139958777838600')"><pre> return node.render(context)</pre> <span>...</span></li></ol>
|
|---|
| 1139 |
|
|---|
| 1140 | <ol style="display: none;" start="80" class="post-context" id="post139958777838600">
|
|---|
| 1141 |
|
|---|
| 1142 | <li onclick="toggle('pre139958777838600', 'post139958777838600')"><pre> except Exception as e:</pre></li>
|
|---|
| 1143 |
|
|---|
| 1144 | <li onclick="toggle('pre139958777838600', 'post139958777838600')"><pre> if not hasattr(e, 'django_template_source'):</pre></li>
|
|---|
| 1145 |
|
|---|
| 1146 | <li onclick="toggle('pre139958777838600', 'post139958777838600')"><pre> e.django_template_source = node.source</pre></li>
|
|---|
| 1147 |
|
|---|
| 1148 | <li onclick="toggle('pre139958777838600', 'post139958777838600')"><pre> raise</pre></li>
|
|---|
| 1149 |
|
|---|
| 1150 | <li onclick="toggle('pre139958777838600', 'post139958777838600')"><pre></pre></li>
|
|---|
| 1151 |
|
|---|
| 1152 | <li onclick="toggle('pre139958777838600', 'post139958777838600')"><pre></pre></li>
|
|---|
| 1153 |
|
|---|
| 1154 | </ol>
|
|---|
| 1155 |
|
|---|
| 1156 | </div>
|
|---|
| 1157 |
|
|---|
| 1158 |
|
|---|
| 1159 |
|
|---|
| 1160 | <div class="commands">
|
|---|
| 1161 |
|
|---|
| 1162 | <a href="#" onclick="return varToggle(this, '139958777838600')"><span>▶</span> Local vars</a>
|
|---|
| 1163 |
|
|---|
| 1164 | </div>
|
|---|
| 1165 | <table style="display: none;" class="vars" id="v139958777838600">
|
|---|
| 1166 | <thead>
|
|---|
| 1167 | <tr>
|
|---|
| 1168 | <th>Variable</th>
|
|---|
| 1169 | <th>Value</th>
|
|---|
| 1170 | </tr>
|
|---|
| 1171 | </thead>
|
|---|
| 1172 | <tbody>
|
|---|
| 1173 |
|
|---|
| 1174 | <tr>
|
|---|
| 1175 | <td>node</td>
|
|---|
| 1176 | <td class="code"><pre><ExtendsNode: extends "admin/base_site.html"></pre></td>
|
|---|
| 1177 | </tr>
|
|---|
| 1178 |
|
|---|
| 1179 | <tr>
|
|---|
| 1180 | <td>context</td>
|
|---|
| 1181 | <td class="code"><pre>[{'False': False, 'True':
|
|---|
| 1182 | True, 'None': None}, {}, {'form': <AdminAuthenticationForm
|
|---|
| 1183 | bound=False, valid=Unknown, fields=(username;password)>, 'site_name':
|
|---|
| 1184 | '127.0.0.1:8000', 'site_url': '/', 'site_title':
|
|---|
| 1185 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 1186 | 0x7f4ab3dd6eb8>, 'title': 'Log in', 'LANGUAGE_BIDI': False,
|
|---|
| 1187 | 'has_permission': False, 'site':
|
|---|
| 1188 | <django.contrib.sites.requests.RequestSite object at
|
|---|
| 1189 | 0x7f4ab143c358>, 'site_header':
|
|---|
| 1190 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 1191 | 0x7f4ab3d40ac8>, 'next': '/admin/', 'app_path':
|
|---|
| 1192 | '/admin/login/?next=/admin/', 'LANGUAGE_CODE': 'en-us'}]</pre></td>
|
|---|
| 1193 | </tr>
|
|---|
| 1194 |
|
|---|
| 1195 | <tr>
|
|---|
| 1196 | <td>self</td>
|
|---|
| 1197 | <td class="code"><pre>[<ExtendsNode: extends "admin/base_site.html">]</pre></td>
|
|---|
| 1198 | </tr>
|
|---|
| 1199 |
|
|---|
| 1200 | </tbody>
|
|---|
| 1201 | </table>
|
|---|
| 1202 |
|
|---|
| 1203 | </li>
|
|---|
| 1204 |
|
|---|
| 1205 | <li class="frame django">
|
|---|
| 1206 | <code>/usr/local/lib/python3.4/dist-packages/django/template/loader_tags.py</code> in <code>render</code>
|
|---|
| 1207 |
|
|---|
| 1208 |
|
|---|
| 1209 | <div class="context" id="c139958777838152">
|
|---|
| 1210 |
|
|---|
| 1211 | <ol style="display: none;" start="128" class="pre-context" id="pre139958777838152">
|
|---|
| 1212 |
|
|---|
| 1213 | <li onclick="toggle('pre139958777838152', 'post139958777838152')"><pre> blocks = {n.name: n for n in</pre></li>
|
|---|
| 1214 |
|
|---|
| 1215 | <li onclick="toggle('pre139958777838152', 'post139958777838152')"><pre> compiled_parent.nodelist.get_nodes_by_type(BlockNode)}</pre></li>
|
|---|
| 1216 |
|
|---|
| 1217 | <li onclick="toggle('pre139958777838152', 'post139958777838152')"><pre> block_context.add_blocks(blocks)</pre></li>
|
|---|
| 1218 |
|
|---|
| 1219 | <li onclick="toggle('pre139958777838152', 'post139958777838152')"><pre> break</pre></li>
|
|---|
| 1220 |
|
|---|
| 1221 | <li onclick="toggle('pre139958777838152', 'post139958777838152')"><pre></pre></li>
|
|---|
| 1222 |
|
|---|
| 1223 | <li onclick="toggle('pre139958777838152', 'post139958777838152')"><pre> # Call Template._render explicitly so the parser context stays</pre></li>
|
|---|
| 1224 |
|
|---|
| 1225 | <li onclick="toggle('pre139958777838152', 'post139958777838152')"><pre> # the same.</pre></li>
|
|---|
| 1226 |
|
|---|
| 1227 | </ol>
|
|---|
| 1228 |
|
|---|
| 1229 | <ol start="135" class="context-line">
|
|---|
| 1230 | <li onclick="toggle('pre139958777838152', 'post139958777838152')"><pre> return compiled_parent._render(context)</pre> <span>...</span></li></ol>
|
|---|
| 1231 |
|
|---|
| 1232 | <ol style="display: none;" start="136" class="post-context" id="post139958777838152">
|
|---|
| 1233 |
|
|---|
| 1234 | <li onclick="toggle('pre139958777838152', 'post139958777838152')"><pre></pre></li>
|
|---|
| 1235 |
|
|---|
| 1236 | <li onclick="toggle('pre139958777838152', 'post139958777838152')"><pre></pre></li>
|
|---|
| 1237 |
|
|---|
| 1238 | <li onclick="toggle('pre139958777838152', 'post139958777838152')"><pre>class IncludeNode(Node):</pre></li>
|
|---|
| 1239 |
|
|---|
| 1240 | <li onclick="toggle('pre139958777838152', 'post139958777838152')"><pre> def __init__(self, template, *args, **kwargs):</pre></li>
|
|---|
| 1241 |
|
|---|
| 1242 | <li onclick="toggle('pre139958777838152', 'post139958777838152')"><pre> self.template = template</pre></li>
|
|---|
| 1243 |
|
|---|
| 1244 | <li onclick="toggle('pre139958777838152', 'post139958777838152')"><pre> self.extra_context = kwargs.pop('extra_context', {})</pre></li>
|
|---|
| 1245 |
|
|---|
| 1246 | </ol>
|
|---|
| 1247 |
|
|---|
| 1248 | </div>
|
|---|
| 1249 |
|
|---|
| 1250 |
|
|---|
| 1251 |
|
|---|
| 1252 | <div class="commands">
|
|---|
| 1253 |
|
|---|
| 1254 | <a href="#" onclick="return varToggle(this, '139958777838152')"><span>▶</span> Local vars</a>
|
|---|
| 1255 |
|
|---|
| 1256 | </div>
|
|---|
| 1257 | <table style="display: none;" class="vars" id="v139958777838152">
|
|---|
| 1258 | <thead>
|
|---|
| 1259 | <tr>
|
|---|
| 1260 | <th>Variable</th>
|
|---|
| 1261 | <th>Value</th>
|
|---|
| 1262 | </tr>
|
|---|
| 1263 | </thead>
|
|---|
| 1264 | <tbody>
|
|---|
| 1265 |
|
|---|
| 1266 | <tr>
|
|---|
| 1267 | <td>block_context</td>
|
|---|
| 1268 | <td class="code"><pre><django.template.loader_tags.BlockContext object at 0x7f4ab147b400></pre></td>
|
|---|
| 1269 | </tr>
|
|---|
| 1270 |
|
|---|
| 1271 | <tr>
|
|---|
| 1272 | <td>node</td>
|
|---|
| 1273 | <td class="code"><pre><ExtendsNode: extends "admin/base.html"></pre></td>
|
|---|
| 1274 | </tr>
|
|---|
| 1275 |
|
|---|
| 1276 | <tr>
|
|---|
| 1277 | <td>context</td>
|
|---|
| 1278 | <td class="code"><pre>[{'False': False, 'True':
|
|---|
| 1279 | True, 'None': None}, {}, {'form': <AdminAuthenticationForm
|
|---|
| 1280 | bound=False, valid=Unknown, fields=(username;password)>, 'site_name':
|
|---|
| 1281 | '127.0.0.1:8000', 'site_url': '/', 'site_title':
|
|---|
| 1282 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 1283 | 0x7f4ab3dd6eb8>, 'title': 'Log in', 'LANGUAGE_BIDI': False,
|
|---|
| 1284 | 'has_permission': False, 'site':
|
|---|
| 1285 | <django.contrib.sites.requests.RequestSite object at
|
|---|
| 1286 | 0x7f4ab143c358>, 'site_header':
|
|---|
| 1287 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 1288 | 0x7f4ab3d40ac8>, 'next': '/admin/', 'app_path':
|
|---|
| 1289 | '/admin/login/?next=/admin/', 'LANGUAGE_CODE': 'en-us'}]</pre></td>
|
|---|
| 1290 | </tr>
|
|---|
| 1291 |
|
|---|
| 1292 | <tr>
|
|---|
| 1293 | <td>self</td>
|
|---|
| 1294 | <td class="code"><pre><ExtendsNode: extends "admin/base_site.html"></pre></td>
|
|---|
| 1295 | </tr>
|
|---|
| 1296 |
|
|---|
| 1297 | <tr>
|
|---|
| 1298 | <td>compiled_parent</td>
|
|---|
| 1299 | <td class="code"><pre><django.template.base.Template object at 0x7f4ab147b438></pre></td>
|
|---|
| 1300 | </tr>
|
|---|
| 1301 |
|
|---|
| 1302 | </tbody>
|
|---|
| 1303 | </table>
|
|---|
| 1304 |
|
|---|
| 1305 | </li>
|
|---|
| 1306 |
|
|---|
| 1307 | <li class="frame django">
|
|---|
| 1308 | <code>/usr/local/lib/python3.4/dist-packages/django/template/base.py</code> in <code>_render</code>
|
|---|
| 1309 |
|
|---|
| 1310 |
|
|---|
| 1311 | <div class="context" id="c139958777837320">
|
|---|
| 1312 |
|
|---|
| 1313 | <ol style="display: none;" start="194" class="pre-context" id="pre139958777837320">
|
|---|
| 1314 |
|
|---|
| 1315 | <li onclick="toggle('pre139958777837320', 'post139958777837320')"><pre></pre></li>
|
|---|
| 1316 |
|
|---|
| 1317 | <li onclick="toggle('pre139958777837320', 'post139958777837320')"><pre> def __iter__(self):</pre></li>
|
|---|
| 1318 |
|
|---|
| 1319 | <li onclick="toggle('pre139958777837320', 'post139958777837320')"><pre> for node in self.nodelist:</pre></li>
|
|---|
| 1320 |
|
|---|
| 1321 | <li onclick="toggle('pre139958777837320', 'post139958777837320')"><pre> for subnode in node:</pre></li>
|
|---|
| 1322 |
|
|---|
| 1323 | <li onclick="toggle('pre139958777837320', 'post139958777837320')"><pre> yield subnode</pre></li>
|
|---|
| 1324 |
|
|---|
| 1325 | <li onclick="toggle('pre139958777837320', 'post139958777837320')"><pre></pre></li>
|
|---|
| 1326 |
|
|---|
| 1327 | <li onclick="toggle('pre139958777837320', 'post139958777837320')"><pre> def _render(self, context):</pre></li>
|
|---|
| 1328 |
|
|---|
| 1329 | </ol>
|
|---|
| 1330 |
|
|---|
| 1331 | <ol start="201" class="context-line">
|
|---|
| 1332 | <li onclick="toggle('pre139958777837320', 'post139958777837320')"><pre> return self.nodelist.render(context)</pre> <span>...</span></li></ol>
|
|---|
| 1333 |
|
|---|
| 1334 | <ol style="display: none;" start="202" class="post-context" id="post139958777837320">
|
|---|
| 1335 |
|
|---|
| 1336 | <li onclick="toggle('pre139958777837320', 'post139958777837320')"><pre></pre></li>
|
|---|
| 1337 |
|
|---|
| 1338 | <li onclick="toggle('pre139958777837320', 'post139958777837320')"><pre> def render(self, context):</pre></li>
|
|---|
| 1339 |
|
|---|
| 1340 | <li onclick="toggle('pre139958777837320', 'post139958777837320')"><pre> "Display stage -- can be called many times"</pre></li>
|
|---|
| 1341 |
|
|---|
| 1342 | <li onclick="toggle('pre139958777837320', 'post139958777837320')"><pre> context.render_context.push()</pre></li>
|
|---|
| 1343 |
|
|---|
| 1344 | <li onclick="toggle('pre139958777837320', 'post139958777837320')"><pre> try:</pre></li>
|
|---|
| 1345 |
|
|---|
| 1346 | <li onclick="toggle('pre139958777837320', 'post139958777837320')"><pre> if context.template is None:</pre></li>
|
|---|
| 1347 |
|
|---|
| 1348 | </ol>
|
|---|
| 1349 |
|
|---|
| 1350 | </div>
|
|---|
| 1351 |
|
|---|
| 1352 |
|
|---|
| 1353 |
|
|---|
| 1354 | <div class="commands">
|
|---|
| 1355 |
|
|---|
| 1356 | <a href="#" onclick="return varToggle(this, '139958777837320')"><span>▶</span> Local vars</a>
|
|---|
| 1357 |
|
|---|
| 1358 | </div>
|
|---|
| 1359 | <table style="display: none;" class="vars" id="v139958777837320">
|
|---|
| 1360 | <thead>
|
|---|
| 1361 | <tr>
|
|---|
| 1362 | <th>Variable</th>
|
|---|
| 1363 | <th>Value</th>
|
|---|
| 1364 | </tr>
|
|---|
| 1365 | </thead>
|
|---|
| 1366 | <tbody>
|
|---|
| 1367 |
|
|---|
| 1368 | <tr>
|
|---|
| 1369 | <td>context</td>
|
|---|
| 1370 | <td class="code"><pre>[{'False': False, 'True':
|
|---|
| 1371 | True, 'None': None}, {}, {'form': <AdminAuthenticationForm
|
|---|
| 1372 | bound=False, valid=Unknown, fields=(username;password)>, 'site_name':
|
|---|
| 1373 | '127.0.0.1:8000', 'site_url': '/', 'site_title':
|
|---|
| 1374 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 1375 | 0x7f4ab3dd6eb8>, 'title': 'Log in', 'LANGUAGE_BIDI': False,
|
|---|
| 1376 | 'has_permission': False, 'site':
|
|---|
| 1377 | <django.contrib.sites.requests.RequestSite object at
|
|---|
| 1378 | 0x7f4ab143c358>, 'site_header':
|
|---|
| 1379 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 1380 | 0x7f4ab3d40ac8>, 'next': '/admin/', 'app_path':
|
|---|
| 1381 | '/admin/login/?next=/admin/', 'LANGUAGE_CODE': 'en-us'}]</pre></td>
|
|---|
| 1382 | </tr>
|
|---|
| 1383 |
|
|---|
| 1384 | <tr>
|
|---|
| 1385 | <td>self</td>
|
|---|
| 1386 | <td class="code"><pre><django.template.base.Template object at 0x7f4ab147b438></pre></td>
|
|---|
| 1387 | </tr>
|
|---|
| 1388 |
|
|---|
| 1389 | </tbody>
|
|---|
| 1390 | </table>
|
|---|
| 1391 |
|
|---|
| 1392 | </li>
|
|---|
| 1393 |
|
|---|
| 1394 | <li class="frame django">
|
|---|
| 1395 | <code>/usr/local/lib/python3.4/dist-packages/django/template/base.py</code> in <code>render</code>
|
|---|
| 1396 |
|
|---|
| 1397 |
|
|---|
| 1398 | <div class="context" id="c139958777837512">
|
|---|
| 1399 |
|
|---|
| 1400 | <ol style="display: none;" start="896" class="pre-context" id="pre139958777837512">
|
|---|
| 1401 |
|
|---|
| 1402 | <li onclick="toggle('pre139958777837512', 'post139958777837512')"><pre> # extend_nodelist().</pre></li>
|
|---|
| 1403 |
|
|---|
| 1404 | <li onclick="toggle('pre139958777837512', 'post139958777837512')"><pre> contains_nontext = False</pre></li>
|
|---|
| 1405 |
|
|---|
| 1406 | <li onclick="toggle('pre139958777837512', 'post139958777837512')"><pre></pre></li>
|
|---|
| 1407 |
|
|---|
| 1408 | <li onclick="toggle('pre139958777837512', 'post139958777837512')"><pre> def render(self, context):</pre></li>
|
|---|
| 1409 |
|
|---|
| 1410 | <li onclick="toggle('pre139958777837512', 'post139958777837512')"><pre> bits = []</pre></li>
|
|---|
| 1411 |
|
|---|
| 1412 | <li onclick="toggle('pre139958777837512', 'post139958777837512')"><pre> for node in self:</pre></li>
|
|---|
| 1413 |
|
|---|
| 1414 | <li onclick="toggle('pre139958777837512', 'post139958777837512')"><pre> if isinstance(node, Node):</pre></li>
|
|---|
| 1415 |
|
|---|
| 1416 | </ol>
|
|---|
| 1417 |
|
|---|
| 1418 | <ol start="903" class="context-line">
|
|---|
| 1419 | <li onclick="toggle('pre139958777837512', 'post139958777837512')"><pre> bit = self.render_node(node, context)</pre> <span>...</span></li></ol>
|
|---|
| 1420 |
|
|---|
| 1421 | <ol style="display: none;" start="904" class="post-context" id="post139958777837512">
|
|---|
| 1422 |
|
|---|
| 1423 | <li onclick="toggle('pre139958777837512', 'post139958777837512')"><pre> else:</pre></li>
|
|---|
| 1424 |
|
|---|
| 1425 | <li onclick="toggle('pre139958777837512', 'post139958777837512')"><pre> bit = node</pre></li>
|
|---|
| 1426 |
|
|---|
| 1427 | <li onclick="toggle('pre139958777837512', 'post139958777837512')"><pre> bits.append(force_text(bit))</pre></li>
|
|---|
| 1428 |
|
|---|
| 1429 | <li onclick="toggle('pre139958777837512', 'post139958777837512')"><pre> return mark_safe(''.join(bits))</pre></li>
|
|---|
| 1430 |
|
|---|
| 1431 | <li onclick="toggle('pre139958777837512', 'post139958777837512')"><pre></pre></li>
|
|---|
| 1432 |
|
|---|
| 1433 | <li onclick="toggle('pre139958777837512', 'post139958777837512')"><pre> def get_nodes_by_type(self, nodetype):</pre></li>
|
|---|
| 1434 |
|
|---|
| 1435 | </ol>
|
|---|
| 1436 |
|
|---|
| 1437 | </div>
|
|---|
| 1438 |
|
|---|
| 1439 |
|
|---|
| 1440 |
|
|---|
| 1441 | <div class="commands">
|
|---|
| 1442 |
|
|---|
| 1443 | <a href="#" onclick="return varToggle(this, '139958777837512')"><span>▶</span> Local vars</a>
|
|---|
| 1444 |
|
|---|
| 1445 | </div>
|
|---|
| 1446 | <table style="display: none;" class="vars" id="v139958777837512">
|
|---|
| 1447 | <thead>
|
|---|
| 1448 | <tr>
|
|---|
| 1449 | <th>Variable</th>
|
|---|
| 1450 | <th>Value</th>
|
|---|
| 1451 | </tr>
|
|---|
| 1452 | </thead>
|
|---|
| 1453 | <tbody>
|
|---|
| 1454 |
|
|---|
| 1455 | <tr>
|
|---|
| 1456 | <td>node</td>
|
|---|
| 1457 | <td class="code"><pre><ExtendsNode: extends "admin/base.html"></pre></td>
|
|---|
| 1458 | </tr>
|
|---|
| 1459 |
|
|---|
| 1460 | <tr>
|
|---|
| 1461 | <td>context</td>
|
|---|
| 1462 | <td class="code"><pre>[{'False': False, 'True':
|
|---|
| 1463 | True, 'None': None}, {}, {'form': <AdminAuthenticationForm
|
|---|
| 1464 | bound=False, valid=Unknown, fields=(username;password)>, 'site_name':
|
|---|
| 1465 | '127.0.0.1:8000', 'site_url': '/', 'site_title':
|
|---|
| 1466 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 1467 | 0x7f4ab3dd6eb8>, 'title': 'Log in', 'LANGUAGE_BIDI': False,
|
|---|
| 1468 | 'has_permission': False, 'site':
|
|---|
| 1469 | <django.contrib.sites.requests.RequestSite object at
|
|---|
| 1470 | 0x7f4ab143c358>, 'site_header':
|
|---|
| 1471 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 1472 | 0x7f4ab3d40ac8>, 'next': '/admin/', 'app_path':
|
|---|
| 1473 | '/admin/login/?next=/admin/', 'LANGUAGE_CODE': 'en-us'}]</pre></td>
|
|---|
| 1474 | </tr>
|
|---|
| 1475 |
|
|---|
| 1476 | <tr>
|
|---|
| 1477 | <td>bits</td>
|
|---|
| 1478 | <td class="code"><pre>[]</pre></td>
|
|---|
| 1479 | </tr>
|
|---|
| 1480 |
|
|---|
| 1481 | <tr>
|
|---|
| 1482 | <td>self</td>
|
|---|
| 1483 | <td class="code"><pre>[<ExtendsNode: extends "admin/base.html">]</pre></td>
|
|---|
| 1484 | </tr>
|
|---|
| 1485 |
|
|---|
| 1486 | </tbody>
|
|---|
| 1487 | </table>
|
|---|
| 1488 |
|
|---|
| 1489 | </li>
|
|---|
| 1490 |
|
|---|
| 1491 | <li class="frame django">
|
|---|
| 1492 | <code>/usr/local/lib/python3.4/dist-packages/django/template/debug.py</code> in <code>render_node</code>
|
|---|
| 1493 |
|
|---|
| 1494 |
|
|---|
| 1495 | <div class="context" id="c139958777837640">
|
|---|
| 1496 |
|
|---|
| 1497 | <ol style="display: none;" start="72" class="pre-context" id="pre139958777837640">
|
|---|
| 1498 |
|
|---|
| 1499 | <li onclick="toggle('pre139958777837640', 'post139958777837640')"><pre> if not hasattr(e, 'django_template_source'):</pre></li>
|
|---|
| 1500 |
|
|---|
| 1501 | <li onclick="toggle('pre139958777837640', 'post139958777837640')"><pre> e.django_template_source = token.source</pre></li>
|
|---|
| 1502 |
|
|---|
| 1503 | <li onclick="toggle('pre139958777837640', 'post139958777837640')"><pre></pre></li>
|
|---|
| 1504 |
|
|---|
| 1505 | <li onclick="toggle('pre139958777837640', 'post139958777837640')"><pre></pre></li>
|
|---|
| 1506 |
|
|---|
| 1507 | <li onclick="toggle('pre139958777837640', 'post139958777837640')"><pre>class DebugNodeList(NodeList):</pre></li>
|
|---|
| 1508 |
|
|---|
| 1509 | <li onclick="toggle('pre139958777837640', 'post139958777837640')"><pre> def render_node(self, node, context):</pre></li>
|
|---|
| 1510 |
|
|---|
| 1511 | <li onclick="toggle('pre139958777837640', 'post139958777837640')"><pre> try:</pre></li>
|
|---|
| 1512 |
|
|---|
| 1513 | </ol>
|
|---|
| 1514 |
|
|---|
| 1515 | <ol start="79" class="context-line">
|
|---|
| 1516 | <li onclick="toggle('pre139958777837640', 'post139958777837640')"><pre> return node.render(context)</pre> <span>...</span></li></ol>
|
|---|
| 1517 |
|
|---|
| 1518 | <ol style="display: none;" start="80" class="post-context" id="post139958777837640">
|
|---|
| 1519 |
|
|---|
| 1520 | <li onclick="toggle('pre139958777837640', 'post139958777837640')"><pre> except Exception as e:</pre></li>
|
|---|
| 1521 |
|
|---|
| 1522 | <li onclick="toggle('pre139958777837640', 'post139958777837640')"><pre> if not hasattr(e, 'django_template_source'):</pre></li>
|
|---|
| 1523 |
|
|---|
| 1524 | <li onclick="toggle('pre139958777837640', 'post139958777837640')"><pre> e.django_template_source = node.source</pre></li>
|
|---|
| 1525 |
|
|---|
| 1526 | <li onclick="toggle('pre139958777837640', 'post139958777837640')"><pre> raise</pre></li>
|
|---|
| 1527 |
|
|---|
| 1528 | <li onclick="toggle('pre139958777837640', 'post139958777837640')"><pre></pre></li>
|
|---|
| 1529 |
|
|---|
| 1530 | <li onclick="toggle('pre139958777837640', 'post139958777837640')"><pre></pre></li>
|
|---|
| 1531 |
|
|---|
| 1532 | </ol>
|
|---|
| 1533 |
|
|---|
| 1534 | </div>
|
|---|
| 1535 |
|
|---|
| 1536 |
|
|---|
| 1537 |
|
|---|
| 1538 | <div class="commands">
|
|---|
| 1539 |
|
|---|
| 1540 | <a href="#" onclick="return varToggle(this, '139958777837640')"><span>▶</span> Local vars</a>
|
|---|
| 1541 |
|
|---|
| 1542 | </div>
|
|---|
| 1543 | <table style="display: none;" class="vars" id="v139958777837640">
|
|---|
| 1544 | <thead>
|
|---|
| 1545 | <tr>
|
|---|
| 1546 | <th>Variable</th>
|
|---|
| 1547 | <th>Value</th>
|
|---|
| 1548 | </tr>
|
|---|
| 1549 | </thead>
|
|---|
| 1550 | <tbody>
|
|---|
| 1551 |
|
|---|
| 1552 | <tr>
|
|---|
| 1553 | <td>node</td>
|
|---|
| 1554 | <td class="code"><pre><ExtendsNode: extends "admin/base.html"></pre></td>
|
|---|
| 1555 | </tr>
|
|---|
| 1556 |
|
|---|
| 1557 | <tr>
|
|---|
| 1558 | <td>context</td>
|
|---|
| 1559 | <td class="code"><pre>[{'False': False, 'True':
|
|---|
| 1560 | True, 'None': None}, {}, {'form': <AdminAuthenticationForm
|
|---|
| 1561 | bound=False, valid=Unknown, fields=(username;password)>, 'site_name':
|
|---|
| 1562 | '127.0.0.1:8000', 'site_url': '/', 'site_title':
|
|---|
| 1563 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 1564 | 0x7f4ab3dd6eb8>, 'title': 'Log in', 'LANGUAGE_BIDI': False,
|
|---|
| 1565 | 'has_permission': False, 'site':
|
|---|
| 1566 | <django.contrib.sites.requests.RequestSite object at
|
|---|
| 1567 | 0x7f4ab143c358>, 'site_header':
|
|---|
| 1568 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 1569 | 0x7f4ab3d40ac8>, 'next': '/admin/', 'app_path':
|
|---|
| 1570 | '/admin/login/?next=/admin/', 'LANGUAGE_CODE': 'en-us'}]</pre></td>
|
|---|
| 1571 | </tr>
|
|---|
| 1572 |
|
|---|
| 1573 | <tr>
|
|---|
| 1574 | <td>self</td>
|
|---|
| 1575 | <td class="code"><pre>[<ExtendsNode: extends "admin/base.html">]</pre></td>
|
|---|
| 1576 | </tr>
|
|---|
| 1577 |
|
|---|
| 1578 | </tbody>
|
|---|
| 1579 | </table>
|
|---|
| 1580 |
|
|---|
| 1581 | </li>
|
|---|
| 1582 |
|
|---|
| 1583 | <li class="frame django">
|
|---|
| 1584 | <code>/usr/local/lib/python3.4/dist-packages/django/template/loader_tags.py</code> in <code>render</code>
|
|---|
| 1585 |
|
|---|
| 1586 |
|
|---|
| 1587 | <div class="context" id="c139958777837192">
|
|---|
| 1588 |
|
|---|
| 1589 | <ol style="display: none;" start="128" class="pre-context" id="pre139958777837192">
|
|---|
| 1590 |
|
|---|
| 1591 | <li onclick="toggle('pre139958777837192', 'post139958777837192')"><pre> blocks = {n.name: n for n in</pre></li>
|
|---|
| 1592 |
|
|---|
| 1593 | <li onclick="toggle('pre139958777837192', 'post139958777837192')"><pre> compiled_parent.nodelist.get_nodes_by_type(BlockNode)}</pre></li>
|
|---|
| 1594 |
|
|---|
| 1595 | <li onclick="toggle('pre139958777837192', 'post139958777837192')"><pre> block_context.add_blocks(blocks)</pre></li>
|
|---|
| 1596 |
|
|---|
| 1597 | <li onclick="toggle('pre139958777837192', 'post139958777837192')"><pre> break</pre></li>
|
|---|
| 1598 |
|
|---|
| 1599 | <li onclick="toggle('pre139958777837192', 'post139958777837192')"><pre></pre></li>
|
|---|
| 1600 |
|
|---|
| 1601 | <li onclick="toggle('pre139958777837192', 'post139958777837192')"><pre> # Call Template._render explicitly so the parser context stays</pre></li>
|
|---|
| 1602 |
|
|---|
| 1603 | <li onclick="toggle('pre139958777837192', 'post139958777837192')"><pre> # the same.</pre></li>
|
|---|
| 1604 |
|
|---|
| 1605 | </ol>
|
|---|
| 1606 |
|
|---|
| 1607 | <ol start="135" class="context-line">
|
|---|
| 1608 | <li onclick="toggle('pre139958777837192', 'post139958777837192')"><pre> return compiled_parent._render(context)</pre> <span>...</span></li></ol>
|
|---|
| 1609 |
|
|---|
| 1610 | <ol style="display: none;" start="136" class="post-context" id="post139958777837192">
|
|---|
| 1611 |
|
|---|
| 1612 | <li onclick="toggle('pre139958777837192', 'post139958777837192')"><pre></pre></li>
|
|---|
| 1613 |
|
|---|
| 1614 | <li onclick="toggle('pre139958777837192', 'post139958777837192')"><pre></pre></li>
|
|---|
| 1615 |
|
|---|
| 1616 | <li onclick="toggle('pre139958777837192', 'post139958777837192')"><pre>class IncludeNode(Node):</pre></li>
|
|---|
| 1617 |
|
|---|
| 1618 | <li onclick="toggle('pre139958777837192', 'post139958777837192')"><pre> def __init__(self, template, *args, **kwargs):</pre></li>
|
|---|
| 1619 |
|
|---|
| 1620 | <li onclick="toggle('pre139958777837192', 'post139958777837192')"><pre> self.template = template</pre></li>
|
|---|
| 1621 |
|
|---|
| 1622 | <li onclick="toggle('pre139958777837192', 'post139958777837192')"><pre> self.extra_context = kwargs.pop('extra_context', {})</pre></li>
|
|---|
| 1623 |
|
|---|
| 1624 | </ol>
|
|---|
| 1625 |
|
|---|
| 1626 | </div>
|
|---|
| 1627 |
|
|---|
| 1628 |
|
|---|
| 1629 |
|
|---|
| 1630 | <div class="commands">
|
|---|
| 1631 |
|
|---|
| 1632 | <a href="#" onclick="return varToggle(this, '139958777837192')"><span>▶</span> Local vars</a>
|
|---|
| 1633 |
|
|---|
| 1634 | </div>
|
|---|
| 1635 | <table style="display: none;" class="vars" id="v139958777837192">
|
|---|
| 1636 | <thead>
|
|---|
| 1637 | <tr>
|
|---|
| 1638 | <th>Variable</th>
|
|---|
| 1639 | <th>Value</th>
|
|---|
| 1640 | </tr>
|
|---|
| 1641 | </thead>
|
|---|
| 1642 | <tbody>
|
|---|
| 1643 |
|
|---|
| 1644 | <tr>
|
|---|
| 1645 | <td>block_context</td>
|
|---|
| 1646 | <td class="code"><pre><django.template.loader_tags.BlockContext object at 0x7f4ab147b400></pre></td>
|
|---|
| 1647 | </tr>
|
|---|
| 1648 |
|
|---|
| 1649 | <tr>
|
|---|
| 1650 | <td>context</td>
|
|---|
| 1651 | <td class="code"><pre>[{'False': False, 'True':
|
|---|
| 1652 | True, 'None': None}, {}, {'form': <AdminAuthenticationForm
|
|---|
| 1653 | bound=False, valid=Unknown, fields=(username;password)>, 'site_name':
|
|---|
| 1654 | '127.0.0.1:8000', 'site_url': '/', 'site_title':
|
|---|
| 1655 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 1656 | 0x7f4ab3dd6eb8>, 'title': 'Log in', 'LANGUAGE_BIDI': False,
|
|---|
| 1657 | 'has_permission': False, 'site':
|
|---|
| 1658 | <django.contrib.sites.requests.RequestSite object at
|
|---|
| 1659 | 0x7f4ab143c358>, 'site_header':
|
|---|
| 1660 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 1661 | 0x7f4ab3d40ac8>, 'next': '/admin/', 'app_path':
|
|---|
| 1662 | '/admin/login/?next=/admin/', 'LANGUAGE_CODE': 'en-us'}]</pre></td>
|
|---|
| 1663 | </tr>
|
|---|
| 1664 |
|
|---|
| 1665 | <tr>
|
|---|
| 1666 | <td>blocks</td>
|
|---|
| 1667 | <td class="code"><pre>{'blockbots': <Block Node:
|
|---|
| 1668 | blockbots. Contents: [<Text Node: '<meta name="robots"
|
|---|
| 1669 | conte'>]>,
|
|---|
| 1670 | 'bodyclass': <Block Node: bodyclass. Contents: []>,
|
|---|
| 1671 | 'branding': <Block Node: branding. Contents: []>,
|
|---|
| 1672 | 'breadcrumbs': <Block Node: breadcrumbs. Contents: [<Text Node: '
|
|---|
| 1673 | <div class="breadcru'>,
|
|---|
| 1674 | <django.template.defaulttags.URLNode object at 0x7f4ab143cd30>,
|
|---|
| 1675 | <Text Node: '">'>, <django.templatetags.i18n.TranslateNode
|
|---|
| 1676 | object at 0x7f4ab1f6e668>, <Text Node: '</a>
|
|---|
| 1677 | '>, <IfNode>, <Text Node: '
|
|---|
| 1678 | </div>
|
|---|
| 1679 | '>]>,
|
|---|
| 1680 | 'coltype': <Block Node: coltype. Contents: [<Text Node:
|
|---|
| 1681 | 'colM'>]>,
|
|---|
| 1682 | 'content': <Block Node: content. Contents: [<Text Node: '
|
|---|
| 1683 | '>, <Block Node: object-tools. Contents: []>, <Text
|
|---|
| 1684 | Node: '
|
|---|
| 1685 | '>, <Variable Node: content>, <Text Node: '
|
|---|
| 1686 | '>]>,
|
|---|
| 1687 | 'content_title': <Block Node: content_title. Contents:
|
|---|
| 1688 | [<IfNode>]>,
|
|---|
| 1689 | 'extrahead': <Block Node: extrahead. Contents: []>,
|
|---|
| 1690 | 'extrastyle': <Block Node: extrastyle. Contents: []>,
|
|---|
| 1691 | 'footer': <Block Node: footer. Contents: [<Text Node: '<div
|
|---|
| 1692 | id="footer"></div>'>]>,
|
|---|
| 1693 | 'messages': <Block Node: messages. Contents: [<Text Node: '
|
|---|
| 1694 | '>, <IfNode>, <Text Node: '
|
|---|
| 1695 | '>]>,
|
|---|
| 1696 | 'nav-global': <Block Node: nav-global. Contents: []>,
|
|---|
| 1697 | 'object-tools': <Block Node: object-tools. Contents: []>,
|
|---|
| 1698 | 'pretitle': <Block Node: pretitle. Contents: []>,
|
|---|
| 1699 | 'sidebar': <Block Node: sidebar. Contents: []>,
|
|---|
| 1700 | 'stylesheet': <Block Node: stylesheet. Contents:
|
|---|
| 1701 | [<django.template.base.Library.simple_tag.<locals>.dec.<locals>.SimpleNode
|
|---|
| 1702 | object at 0x7f4ab14b7dd8>]>,
|
|---|
| 1703 | 'stylesheet_ie': <Block Node: stylesheet_ie. Contents:
|
|---|
| 1704 | [<django.template.base.Library.simple_tag.<locals>.dec.<locals>.SimpleNode
|
|---|
| 1705 | object at 0x7f4ab140def0>]>,
|
|---|
| 1706 | 'stylesheet_rtl': <Block Node: stylesheet_rtl. Contents:
|
|---|
| 1707 | [<django.template.base.Library.simple_tag.<locals>.dec.<locals>.SimpleNode
|
|---|
| 1708 | object at 0x7f4ab1489898>]>,
|
|---|
| 1709 | 'title': <Block Node: title. Contents: []>,
|
|---|
| 1710 | 'userlinks': <Block Node: userlinks. Contents: [<Text Node: '
|
|---|
| 1711 | '>, <IfNode>, <Text Node: '
|
|---|
| 1712 | '>, <IfNode>, <Text Node: '
|
|---|
| 1713 | '>, <IfNode>, <Text Node: '
|
|---|
| 1714 | <a href='>,
|
|---|
| 1715 | <django.template.defaulttags.URLNode object at 0x7f4ab149cac8>,
|
|---|
| 1716 | <Text Node: '">'>, <django.templatetags.i18n.TranslateNode
|
|---|
| 1717 | object at 0x7f4ab149c5f8>, <Text Node: '</a>
|
|---|
| 1718 | '>]>,
|
|---|
| 1719 | 'usertools': <Block Node: usertools. Contents: [<Text Node: '
|
|---|
| 1720 | '>, <IfNode>, <Text Node: '
|
|---|
| 1721 | '>]>,
|
|---|
| 1722 | 'welcome-msg': <Block Node: welcome-msg. Contents: [<Text Node: '
|
|---|
| 1723 | '>, <django.templatetags.i18n.TranslateNode object
|
|---|
| 1724 | at 0x7f4ab1489c18>, <Text Node: '
|
|---|
| 1725 | <strong>'>,
|
|---|
| 1726 | <django.template.defaulttags.FirstOfNode object at
|
|---|
| 1727 | 0x7f4ab143c9b0>, <Text Node: '</strong>.
|
|---|
| 1728 | '>]>}</pre></td>
|
|---|
| 1729 | </tr>
|
|---|
| 1730 |
|
|---|
| 1731 | <tr>
|
|---|
| 1732 | <td>node</td>
|
|---|
| 1733 | <td class="code"><pre><django.template.defaulttags.LoadNode object at 0x7f4ab1478ac8></pre></td>
|
|---|
| 1734 | </tr>
|
|---|
| 1735 |
|
|---|
| 1736 | <tr>
|
|---|
| 1737 | <td>self</td>
|
|---|
| 1738 | <td class="code"><pre><ExtendsNode: extends "admin/base.html"></pre></td>
|
|---|
| 1739 | </tr>
|
|---|
| 1740 |
|
|---|
| 1741 | <tr>
|
|---|
| 1742 | <td>compiled_parent</td>
|
|---|
| 1743 | <td class="code"><pre><django.template.base.Template object at 0x7f4ab14b77f0></pre></td>
|
|---|
| 1744 | </tr>
|
|---|
| 1745 |
|
|---|
| 1746 | </tbody>
|
|---|
| 1747 | </table>
|
|---|
| 1748 |
|
|---|
| 1749 | </li>
|
|---|
| 1750 |
|
|---|
| 1751 | <li class="frame django">
|
|---|
| 1752 | <code>/usr/local/lib/python3.4/dist-packages/django/template/base.py</code> in <code>_render</code>
|
|---|
| 1753 |
|
|---|
| 1754 |
|
|---|
| 1755 | <div class="context" id="c139958777837448">
|
|---|
| 1756 |
|
|---|
| 1757 | <ol style="display: none;" start="194" class="pre-context" id="pre139958777837448">
|
|---|
| 1758 |
|
|---|
| 1759 | <li onclick="toggle('pre139958777837448', 'post139958777837448')"><pre></pre></li>
|
|---|
| 1760 |
|
|---|
| 1761 | <li onclick="toggle('pre139958777837448', 'post139958777837448')"><pre> def __iter__(self):</pre></li>
|
|---|
| 1762 |
|
|---|
| 1763 | <li onclick="toggle('pre139958777837448', 'post139958777837448')"><pre> for node in self.nodelist:</pre></li>
|
|---|
| 1764 |
|
|---|
| 1765 | <li onclick="toggle('pre139958777837448', 'post139958777837448')"><pre> for subnode in node:</pre></li>
|
|---|
| 1766 |
|
|---|
| 1767 | <li onclick="toggle('pre139958777837448', 'post139958777837448')"><pre> yield subnode</pre></li>
|
|---|
| 1768 |
|
|---|
| 1769 | <li onclick="toggle('pre139958777837448', 'post139958777837448')"><pre></pre></li>
|
|---|
| 1770 |
|
|---|
| 1771 | <li onclick="toggle('pre139958777837448', 'post139958777837448')"><pre> def _render(self, context):</pre></li>
|
|---|
| 1772 |
|
|---|
| 1773 | </ol>
|
|---|
| 1774 |
|
|---|
| 1775 | <ol start="201" class="context-line">
|
|---|
| 1776 | <li onclick="toggle('pre139958777837448', 'post139958777837448')"><pre> return self.nodelist.render(context)</pre> <span>...</span></li></ol>
|
|---|
| 1777 |
|
|---|
| 1778 | <ol style="display: none;" start="202" class="post-context" id="post139958777837448">
|
|---|
| 1779 |
|
|---|
| 1780 | <li onclick="toggle('pre139958777837448', 'post139958777837448')"><pre></pre></li>
|
|---|
| 1781 |
|
|---|
| 1782 | <li onclick="toggle('pre139958777837448', 'post139958777837448')"><pre> def render(self, context):</pre></li>
|
|---|
| 1783 |
|
|---|
| 1784 | <li onclick="toggle('pre139958777837448', 'post139958777837448')"><pre> "Display stage -- can be called many times"</pre></li>
|
|---|
| 1785 |
|
|---|
| 1786 | <li onclick="toggle('pre139958777837448', 'post139958777837448')"><pre> context.render_context.push()</pre></li>
|
|---|
| 1787 |
|
|---|
| 1788 | <li onclick="toggle('pre139958777837448', 'post139958777837448')"><pre> try:</pre></li>
|
|---|
| 1789 |
|
|---|
| 1790 | <li onclick="toggle('pre139958777837448', 'post139958777837448')"><pre> if context.template is None:</pre></li>
|
|---|
| 1791 |
|
|---|
| 1792 | </ol>
|
|---|
| 1793 |
|
|---|
| 1794 | </div>
|
|---|
| 1795 |
|
|---|
| 1796 |
|
|---|
| 1797 |
|
|---|
| 1798 | <div class="commands">
|
|---|
| 1799 |
|
|---|
| 1800 | <a href="#" onclick="return varToggle(this, '139958777837448')"><span>▶</span> Local vars</a>
|
|---|
| 1801 |
|
|---|
| 1802 | </div>
|
|---|
| 1803 | <table style="display: none;" class="vars" id="v139958777837448">
|
|---|
| 1804 | <thead>
|
|---|
| 1805 | <tr>
|
|---|
| 1806 | <th>Variable</th>
|
|---|
| 1807 | <th>Value</th>
|
|---|
| 1808 | </tr>
|
|---|
| 1809 | </thead>
|
|---|
| 1810 | <tbody>
|
|---|
| 1811 |
|
|---|
| 1812 | <tr>
|
|---|
| 1813 | <td>context</td>
|
|---|
| 1814 | <td class="code"><pre>[{'False': False, 'True':
|
|---|
| 1815 | True, 'None': None}, {}, {'form': <AdminAuthenticationForm
|
|---|
| 1816 | bound=False, valid=Unknown, fields=(username;password)>, 'site_name':
|
|---|
| 1817 | '127.0.0.1:8000', 'site_url': '/', 'site_title':
|
|---|
| 1818 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 1819 | 0x7f4ab3dd6eb8>, 'title': 'Log in', 'LANGUAGE_BIDI': False,
|
|---|
| 1820 | 'has_permission': False, 'site':
|
|---|
| 1821 | <django.contrib.sites.requests.RequestSite object at
|
|---|
| 1822 | 0x7f4ab143c358>, 'site_header':
|
|---|
| 1823 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 1824 | 0x7f4ab3d40ac8>, 'next': '/admin/', 'app_path':
|
|---|
| 1825 | '/admin/login/?next=/admin/', 'LANGUAGE_CODE': 'en-us'}]</pre></td>
|
|---|
| 1826 | </tr>
|
|---|
| 1827 |
|
|---|
| 1828 | <tr>
|
|---|
| 1829 | <td>self</td>
|
|---|
| 1830 | <td class="code"><pre><django.template.base.Template object at 0x7f4ab14b77f0></pre></td>
|
|---|
| 1831 | </tr>
|
|---|
| 1832 |
|
|---|
| 1833 | </tbody>
|
|---|
| 1834 | </table>
|
|---|
| 1835 |
|
|---|
| 1836 | </li>
|
|---|
| 1837 |
|
|---|
| 1838 | <li class="frame django">
|
|---|
| 1839 | <code>/usr/local/lib/python3.4/dist-packages/django/template/base.py</code> in <code>render</code>
|
|---|
| 1840 |
|
|---|
| 1841 |
|
|---|
| 1842 | <div class="context" id="c139958777839176">
|
|---|
| 1843 |
|
|---|
| 1844 | <ol style="display: none;" start="896" class="pre-context" id="pre139958777839176">
|
|---|
| 1845 |
|
|---|
| 1846 | <li onclick="toggle('pre139958777839176', 'post139958777839176')"><pre> # extend_nodelist().</pre></li>
|
|---|
| 1847 |
|
|---|
| 1848 | <li onclick="toggle('pre139958777839176', 'post139958777839176')"><pre> contains_nontext = False</pre></li>
|
|---|
| 1849 |
|
|---|
| 1850 | <li onclick="toggle('pre139958777839176', 'post139958777839176')"><pre></pre></li>
|
|---|
| 1851 |
|
|---|
| 1852 | <li onclick="toggle('pre139958777839176', 'post139958777839176')"><pre> def render(self, context):</pre></li>
|
|---|
| 1853 |
|
|---|
| 1854 | <li onclick="toggle('pre139958777839176', 'post139958777839176')"><pre> bits = []</pre></li>
|
|---|
| 1855 |
|
|---|
| 1856 | <li onclick="toggle('pre139958777839176', 'post139958777839176')"><pre> for node in self:</pre></li>
|
|---|
| 1857 |
|
|---|
| 1858 | <li onclick="toggle('pre139958777839176', 'post139958777839176')"><pre> if isinstance(node, Node):</pre></li>
|
|---|
| 1859 |
|
|---|
| 1860 | </ol>
|
|---|
| 1861 |
|
|---|
| 1862 | <ol start="903" class="context-line">
|
|---|
| 1863 | <li onclick="toggle('pre139958777839176', 'post139958777839176')"><pre> bit = self.render_node(node, context)</pre> <span>...</span></li></ol>
|
|---|
| 1864 |
|
|---|
| 1865 | <ol style="display: none;" start="904" class="post-context" id="post139958777839176">
|
|---|
| 1866 |
|
|---|
| 1867 | <li onclick="toggle('pre139958777839176', 'post139958777839176')"><pre> else:</pre></li>
|
|---|
| 1868 |
|
|---|
| 1869 | <li onclick="toggle('pre139958777839176', 'post139958777839176')"><pre> bit = node</pre></li>
|
|---|
| 1870 |
|
|---|
| 1871 | <li onclick="toggle('pre139958777839176', 'post139958777839176')"><pre> bits.append(force_text(bit))</pre></li>
|
|---|
| 1872 |
|
|---|
| 1873 | <li onclick="toggle('pre139958777839176', 'post139958777839176')"><pre> return mark_safe(''.join(bits))</pre></li>
|
|---|
| 1874 |
|
|---|
| 1875 | <li onclick="toggle('pre139958777839176', 'post139958777839176')"><pre></pre></li>
|
|---|
| 1876 |
|
|---|
| 1877 | <li onclick="toggle('pre139958777839176', 'post139958777839176')"><pre> def get_nodes_by_type(self, nodetype):</pre></li>
|
|---|
| 1878 |
|
|---|
| 1879 | </ol>
|
|---|
| 1880 |
|
|---|
| 1881 | </div>
|
|---|
| 1882 |
|
|---|
| 1883 |
|
|---|
| 1884 |
|
|---|
| 1885 | <div class="commands">
|
|---|
| 1886 |
|
|---|
| 1887 | <a href="#" onclick="return varToggle(this, '139958777839176')"><span>▶</span> Local vars</a>
|
|---|
| 1888 |
|
|---|
| 1889 | </div>
|
|---|
| 1890 | <table style="display: none;" class="vars" id="v139958777839176">
|
|---|
| 1891 | <thead>
|
|---|
| 1892 | <tr>
|
|---|
| 1893 | <th>Variable</th>
|
|---|
| 1894 | <th>Value</th>
|
|---|
| 1895 | </tr>
|
|---|
| 1896 | </thead>
|
|---|
| 1897 | <tbody>
|
|---|
| 1898 |
|
|---|
| 1899 | <tr>
|
|---|
| 1900 | <td>bit</td>
|
|---|
| 1901 | <td class="code"><pre>'">\n\n<!-- Container -->\n<div id="container">\n\n '</pre></td>
|
|---|
| 1902 | </tr>
|
|---|
| 1903 |
|
|---|
| 1904 | <tr>
|
|---|
| 1905 | <td>node</td>
|
|---|
| 1906 | <td class="code"><pre><IfNode></pre></td>
|
|---|
| 1907 | </tr>
|
|---|
| 1908 |
|
|---|
| 1909 | <tr>
|
|---|
| 1910 | <td>context</td>
|
|---|
| 1911 | <td class="code"><pre>[{'False': False, 'True':
|
|---|
| 1912 | True, 'None': None}, {}, {'form': <AdminAuthenticationForm
|
|---|
| 1913 | bound=False, valid=Unknown, fields=(username;password)>, 'site_name':
|
|---|
| 1914 | '127.0.0.1:8000', 'site_url': '/', 'site_title':
|
|---|
| 1915 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 1916 | 0x7f4ab3dd6eb8>, 'title': 'Log in', 'LANGUAGE_BIDI': False,
|
|---|
| 1917 | 'has_permission': False, 'site':
|
|---|
| 1918 | <django.contrib.sites.requests.RequestSite object at
|
|---|
| 1919 | 0x7f4ab143c358>, 'site_header':
|
|---|
| 1920 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 1921 | 0x7f4ab3d40ac8>, 'next': '/admin/', 'app_path':
|
|---|
| 1922 | '/admin/login/?next=/admin/', 'LANGUAGE_CODE': 'en-us'}]</pre></td>
|
|---|
| 1923 | </tr>
|
|---|
| 1924 |
|
|---|
| 1925 | <tr>
|
|---|
| 1926 | <td>bits</td>
|
|---|
| 1927 | <td class="code"><pre>['',
|
|---|
| 1928 | '<!DOCTYPE html>\n',
|
|---|
| 1929 | '',
|
|---|
| 1930 | '',
|
|---|
| 1931 | '\n<html lang="',
|
|---|
| 1932 | 'en-us',
|
|---|
| 1933 | '" ',
|
|---|
| 1934 | '',
|
|---|
| 1935 | '>\n<head>\n<title>',
|
|---|
| 1936 | 'Log in | Django site admin',
|
|---|
| 1937 | '</title>\n<link rel="stylesheet" type="text/css" href="',
|
|---|
| 1938 | '/static/admin/css/base.css',
|
|---|
| 1939 | '" />\n',
|
|---|
| 1940 | '<link rel="stylesheet" type="text/css" href="/static/admin/css/login.css" '
|
|---|
| 1941 | '/>',
|
|---|
| 1942 | '\n<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="',
|
|---|
| 1943 | '/static/admin/css/ie.css',
|
|---|
| 1944 | '" /><![endif]-->\n',
|
|---|
| 1945 | '',
|
|---|
| 1946 | '\n<script type="text/javascript">window.__admin_media_prefix__ = "',
|
|---|
| 1947 | '/static/admin/',
|
|---|
| 1948 | '";</script>\n<script type="text/javascript">window.__admin_utc_offset__ = "',
|
|---|
| 1949 | '0',
|
|---|
| 1950 | '";</script>\n',
|
|---|
| 1951 | '',
|
|---|
| 1952 | '\n',
|
|---|
| 1953 | '<meta name="robots" content="NONE,NOARCHIVE" />',
|
|---|
| 1954 | '\n</head>\n',
|
|---|
| 1955 | '',
|
|---|
| 1956 | '\n\n<body class="',
|
|---|
| 1957 | '',
|
|---|
| 1958 | ' login',
|
|---|
| 1959 | '">\n\n<!-- Container -->\n<div id="container">\n\n ']</pre></td>
|
|---|
| 1960 | </tr>
|
|---|
| 1961 |
|
|---|
| 1962 | <tr>
|
|---|
| 1963 | <td>self</td>
|
|---|
| 1964 | <td class="code"><pre>[<django.template.defaulttags.LoadNode
|
|---|
| 1965 | object at 0x7f4ab1478ac8>,
|
|---|
| 1966 | <Text Node: '<!DOCTYPE html>
|
|---|
| 1967 | '>,
|
|---|
| 1968 | <django.templatetags.i18n.GetCurrentLanguageNode object at
|
|---|
| 1969 | 0x7f4ab1478c18>,
|
|---|
| 1970 | <django.templatetags.i18n.GetCurrentLanguageBidiNode object at
|
|---|
| 1971 | 0x7f4ab14b7748>,
|
|---|
| 1972 | <Text Node: '
|
|---|
| 1973 | <html lang="'>,
|
|---|
| 1974 | <Variable Node: LANGUAGE_CODE|default:"en-us">,
|
|---|
| 1975 | <Text Node: '" '>,
|
|---|
| 1976 | <IfNode>,
|
|---|
| 1977 | <Text Node: '>
|
|---|
| 1978 | <head>
|
|---|
| 1979 | <title>'>,
|
|---|
| 1980 | <Block Node: title. Contents: []>,
|
|---|
| 1981 | <Text Node: '</title>
|
|---|
| 1982 | <link rel="style'>,
|
|---|
| 1983 | <Block Node: stylesheet. Contents:
|
|---|
| 1984 | [<django.template.base.Library.simple_tag.<locals>.dec.<locals>.SimpleNode
|
|---|
| 1985 | object at 0x7f4ab14b7dd8>]>,
|
|---|
| 1986 | <Text Node: '" />
|
|---|
| 1987 | '>,
|
|---|
| 1988 | <Block Node: extrastyle. Contents: []>,
|
|---|
| 1989 | <Text Node: '
|
|---|
| 1990 | <!--[if lte IE 7]><link '>,
|
|---|
| 1991 | <Block Node: stylesheet_ie. Contents:
|
|---|
| 1992 | [<django.template.base.Library.simple_tag.<locals>.dec.<locals>.SimpleNode
|
|---|
| 1993 | object at 0x7f4ab140def0>]>,
|
|---|
| 1994 | <Text Node: '" /><![endif]-->
|
|---|
| 1995 | '>,
|
|---|
| 1996 | <IfNode>,
|
|---|
| 1997 | <Text Node: '
|
|---|
| 1998 | <script type="text/javas'>,
|
|---|
| 1999 | <django.template.defaulttags.FilterNode object at
|
|---|
| 2000 | 0x7f4ab140d2e8>,
|
|---|
| 2001 | <Text Node: '";</script>
|
|---|
| 2002 | <script type='>,
|
|---|
| 2003 | <django.template.defaulttags.FilterNode object at
|
|---|
| 2004 | 0x7f4ab140d4e0>,
|
|---|
| 2005 | <Text Node: '";</script>
|
|---|
| 2006 | '>,
|
|---|
| 2007 | <Block Node: extrahead. Contents: []>,
|
|---|
| 2008 | <Text Node: '
|
|---|
| 2009 | '>,
|
|---|
| 2010 | <Block Node: blockbots. Contents: [<Text Node: '<meta
|
|---|
| 2011 | name="robots" conte'>]>,
|
|---|
| 2012 | <Text Node: '
|
|---|
| 2013 | </head>
|
|---|
| 2014 | '>,
|
|---|
| 2015 | <django.template.defaulttags.LoadNode object at 0x7f4ab140d668>,
|
|---|
| 2016 | <Text Node: '
|
|---|
| 2017 |
|
|---|
| 2018 | <body class="'>,
|
|---|
| 2019 | <IfNode>,
|
|---|
| 2020 | <Block Node: bodyclass. Contents: []>,
|
|---|
| 2021 | <Text Node: '">
|
|---|
| 2022 |
|
|---|
| 2023 | <!-- Container -->
|
|---|
| 2024 | <d'>,
|
|---|
| 2025 | <IfNode>,
|
|---|
| 2026 | <Text Node: '
|
|---|
| 2027 |
|
|---|
| 2028 | '>,
|
|---|
| 2029 | <Block Node: messages. Contents: [<Text Node: '
|
|---|
| 2030 | '>, <IfNode>, <Text Node: '
|
|---|
| 2031 | '>]>,
|
|---|
| 2032 | <Text Node: '
|
|---|
| 2033 |
|
|---|
| 2034 | <!-- Content -->
|
|---|
| 2035 | '>,
|
|---|
| 2036 | <Block Node: coltype. Contents: [<Text Node: 'colM'>]>,
|
|---|
| 2037 | <Text Node: '">
|
|---|
| 2038 | '>,
|
|---|
| 2039 | <Block Node: pretitle. Contents: []>,
|
|---|
| 2040 | <Text Node: '
|
|---|
| 2041 | '>,
|
|---|
| 2042 | <Block Node: content_title. Contents: [<IfNode>]>,
|
|---|
| 2043 | <Text Node: '
|
|---|
| 2044 | '>,
|
|---|
| 2045 | <Block Node: content. Contents: [<Text Node: '
|
|---|
| 2046 | '>, <Block Node: object-tools. Contents: []>, <Text
|
|---|
| 2047 | Node: '
|
|---|
| 2048 | '>, <Variable Node: content>, <Text Node: '
|
|---|
| 2049 | '>]>,
|
|---|
| 2050 | <Text Node: '
|
|---|
| 2051 | '>,
|
|---|
| 2052 | <Block Node: sidebar. Contents: []>,
|
|---|
| 2053 | <Text Node: '
|
|---|
| 2054 | <br class="clear'>,
|
|---|
| 2055 | <Block Node: footer. Contents: [<Text Node: '<div
|
|---|
| 2056 | id="footer"></div>'>]>,
|
|---|
| 2057 | <Text Node: '
|
|---|
| 2058 | </div>
|
|---|
| 2059 | <!-- END Containe'>]</pre></td>
|
|---|
| 2060 | </tr>
|
|---|
| 2061 |
|
|---|
| 2062 | </tbody>
|
|---|
| 2063 | </table>
|
|---|
| 2064 |
|
|---|
| 2065 | </li>
|
|---|
| 2066 |
|
|---|
| 2067 | <li class="frame django">
|
|---|
| 2068 | <code>/usr/local/lib/python3.4/dist-packages/django/template/debug.py</code> in <code>render_node</code>
|
|---|
| 2069 |
|
|---|
| 2070 |
|
|---|
| 2071 | <div class="context" id="c139958777838856">
|
|---|
| 2072 |
|
|---|
| 2073 | <ol style="display: none;" start="72" class="pre-context" id="pre139958777838856">
|
|---|
| 2074 |
|
|---|
| 2075 | <li onclick="toggle('pre139958777838856', 'post139958777838856')"><pre> if not hasattr(e, 'django_template_source'):</pre></li>
|
|---|
| 2076 |
|
|---|
| 2077 | <li onclick="toggle('pre139958777838856', 'post139958777838856')"><pre> e.django_template_source = token.source</pre></li>
|
|---|
| 2078 |
|
|---|
| 2079 | <li onclick="toggle('pre139958777838856', 'post139958777838856')"><pre></pre></li>
|
|---|
| 2080 |
|
|---|
| 2081 | <li onclick="toggle('pre139958777838856', 'post139958777838856')"><pre></pre></li>
|
|---|
| 2082 |
|
|---|
| 2083 | <li onclick="toggle('pre139958777838856', 'post139958777838856')"><pre>class DebugNodeList(NodeList):</pre></li>
|
|---|
| 2084 |
|
|---|
| 2085 | <li onclick="toggle('pre139958777838856', 'post139958777838856')"><pre> def render_node(self, node, context):</pre></li>
|
|---|
| 2086 |
|
|---|
| 2087 | <li onclick="toggle('pre139958777838856', 'post139958777838856')"><pre> try:</pre></li>
|
|---|
| 2088 |
|
|---|
| 2089 | </ol>
|
|---|
| 2090 |
|
|---|
| 2091 | <ol start="79" class="context-line">
|
|---|
| 2092 | <li onclick="toggle('pre139958777838856', 'post139958777838856')"><pre> return node.render(context)</pre> <span>...</span></li></ol>
|
|---|
| 2093 |
|
|---|
| 2094 | <ol style="display: none;" start="80" class="post-context" id="post139958777838856">
|
|---|
| 2095 |
|
|---|
| 2096 | <li onclick="toggle('pre139958777838856', 'post139958777838856')"><pre> except Exception as e:</pre></li>
|
|---|
| 2097 |
|
|---|
| 2098 | <li onclick="toggle('pre139958777838856', 'post139958777838856')"><pre> if not hasattr(e, 'django_template_source'):</pre></li>
|
|---|
| 2099 |
|
|---|
| 2100 | <li onclick="toggle('pre139958777838856', 'post139958777838856')"><pre> e.django_template_source = node.source</pre></li>
|
|---|
| 2101 |
|
|---|
| 2102 | <li onclick="toggle('pre139958777838856', 'post139958777838856')"><pre> raise</pre></li>
|
|---|
| 2103 |
|
|---|
| 2104 | <li onclick="toggle('pre139958777838856', 'post139958777838856')"><pre></pre></li>
|
|---|
| 2105 |
|
|---|
| 2106 | <li onclick="toggle('pre139958777838856', 'post139958777838856')"><pre></pre></li>
|
|---|
| 2107 |
|
|---|
| 2108 | </ol>
|
|---|
| 2109 |
|
|---|
| 2110 | </div>
|
|---|
| 2111 |
|
|---|
| 2112 |
|
|---|
| 2113 |
|
|---|
| 2114 | <div class="commands">
|
|---|
| 2115 |
|
|---|
| 2116 | <a href="#" onclick="return varToggle(this, '139958777838856')"><span>▶</span> Local vars</a>
|
|---|
| 2117 |
|
|---|
| 2118 | </div>
|
|---|
| 2119 | <table style="display: none;" class="vars" id="v139958777838856">
|
|---|
| 2120 | <thead>
|
|---|
| 2121 | <tr>
|
|---|
| 2122 | <th>Variable</th>
|
|---|
| 2123 | <th>Value</th>
|
|---|
| 2124 | </tr>
|
|---|
| 2125 | </thead>
|
|---|
| 2126 | <tbody>
|
|---|
| 2127 |
|
|---|
| 2128 | <tr>
|
|---|
| 2129 | <td>node</td>
|
|---|
| 2130 | <td class="code"><pre><IfNode></pre></td>
|
|---|
| 2131 | </tr>
|
|---|
| 2132 |
|
|---|
| 2133 | <tr>
|
|---|
| 2134 | <td>context</td>
|
|---|
| 2135 | <td class="code"><pre>[{'False': False, 'True':
|
|---|
| 2136 | True, 'None': None}, {}, {'form': <AdminAuthenticationForm
|
|---|
| 2137 | bound=False, valid=Unknown, fields=(username;password)>, 'site_name':
|
|---|
| 2138 | '127.0.0.1:8000', 'site_url': '/', 'site_title':
|
|---|
| 2139 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 2140 | 0x7f4ab3dd6eb8>, 'title': 'Log in', 'LANGUAGE_BIDI': False,
|
|---|
| 2141 | 'has_permission': False, 'site':
|
|---|
| 2142 | <django.contrib.sites.requests.RequestSite object at
|
|---|
| 2143 | 0x7f4ab143c358>, 'site_header':
|
|---|
| 2144 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 2145 | 0x7f4ab3d40ac8>, 'next': '/admin/', 'app_path':
|
|---|
| 2146 | '/admin/login/?next=/admin/', 'LANGUAGE_CODE': 'en-us'}]</pre></td>
|
|---|
| 2147 | </tr>
|
|---|
| 2148 |
|
|---|
| 2149 | <tr>
|
|---|
| 2150 | <td>self</td>
|
|---|
| 2151 | <td class="code"><pre>[<django.template.defaulttags.LoadNode
|
|---|
| 2152 | object at 0x7f4ab1478ac8>,
|
|---|
| 2153 | <Text Node: '<!DOCTYPE html>
|
|---|
| 2154 | '>,
|
|---|
| 2155 | <django.templatetags.i18n.GetCurrentLanguageNode object at
|
|---|
| 2156 | 0x7f4ab1478c18>,
|
|---|
| 2157 | <django.templatetags.i18n.GetCurrentLanguageBidiNode object at
|
|---|
| 2158 | 0x7f4ab14b7748>,
|
|---|
| 2159 | <Text Node: '
|
|---|
| 2160 | <html lang="'>,
|
|---|
| 2161 | <Variable Node: LANGUAGE_CODE|default:"en-us">,
|
|---|
| 2162 | <Text Node: '" '>,
|
|---|
| 2163 | <IfNode>,
|
|---|
| 2164 | <Text Node: '>
|
|---|
| 2165 | <head>
|
|---|
| 2166 | <title>'>,
|
|---|
| 2167 | <Block Node: title. Contents: []>,
|
|---|
| 2168 | <Text Node: '</title>
|
|---|
| 2169 | <link rel="style'>,
|
|---|
| 2170 | <Block Node: stylesheet. Contents:
|
|---|
| 2171 | [<django.template.base.Library.simple_tag.<locals>.dec.<locals>.SimpleNode
|
|---|
| 2172 | object at 0x7f4ab14b7dd8>]>,
|
|---|
| 2173 | <Text Node: '" />
|
|---|
| 2174 | '>,
|
|---|
| 2175 | <Block Node: extrastyle. Contents: []>,
|
|---|
| 2176 | <Text Node: '
|
|---|
| 2177 | <!--[if lte IE 7]><link '>,
|
|---|
| 2178 | <Block Node: stylesheet_ie. Contents:
|
|---|
| 2179 | [<django.template.base.Library.simple_tag.<locals>.dec.<locals>.SimpleNode
|
|---|
| 2180 | object at 0x7f4ab140def0>]>,
|
|---|
| 2181 | <Text Node: '" /><![endif]-->
|
|---|
| 2182 | '>,
|
|---|
| 2183 | <IfNode>,
|
|---|
| 2184 | <Text Node: '
|
|---|
| 2185 | <script type="text/javas'>,
|
|---|
| 2186 | <django.template.defaulttags.FilterNode object at
|
|---|
| 2187 | 0x7f4ab140d2e8>,
|
|---|
| 2188 | <Text Node: '";</script>
|
|---|
| 2189 | <script type='>,
|
|---|
| 2190 | <django.template.defaulttags.FilterNode object at
|
|---|
| 2191 | 0x7f4ab140d4e0>,
|
|---|
| 2192 | <Text Node: '";</script>
|
|---|
| 2193 | '>,
|
|---|
| 2194 | <Block Node: extrahead. Contents: []>,
|
|---|
| 2195 | <Text Node: '
|
|---|
| 2196 | '>,
|
|---|
| 2197 | <Block Node: blockbots. Contents: [<Text Node: '<meta
|
|---|
| 2198 | name="robots" conte'>]>,
|
|---|
| 2199 | <Text Node: '
|
|---|
| 2200 | </head>
|
|---|
| 2201 | '>,
|
|---|
| 2202 | <django.template.defaulttags.LoadNode object at 0x7f4ab140d668>,
|
|---|
| 2203 | <Text Node: '
|
|---|
| 2204 |
|
|---|
| 2205 | <body class="'>,
|
|---|
| 2206 | <IfNode>,
|
|---|
| 2207 | <Block Node: bodyclass. Contents: []>,
|
|---|
| 2208 | <Text Node: '">
|
|---|
| 2209 |
|
|---|
| 2210 | <!-- Container -->
|
|---|
| 2211 | <d'>,
|
|---|
| 2212 | <IfNode>,
|
|---|
| 2213 | <Text Node: '
|
|---|
| 2214 |
|
|---|
| 2215 | '>,
|
|---|
| 2216 | <Block Node: messages. Contents: [<Text Node: '
|
|---|
| 2217 | '>, <IfNode>, <Text Node: '
|
|---|
| 2218 | '>]>,
|
|---|
| 2219 | <Text Node: '
|
|---|
| 2220 |
|
|---|
| 2221 | <!-- Content -->
|
|---|
| 2222 | '>,
|
|---|
| 2223 | <Block Node: coltype. Contents: [<Text Node: 'colM'>]>,
|
|---|
| 2224 | <Text Node: '">
|
|---|
| 2225 | '>,
|
|---|
| 2226 | <Block Node: pretitle. Contents: []>,
|
|---|
| 2227 | <Text Node: '
|
|---|
| 2228 | '>,
|
|---|
| 2229 | <Block Node: content_title. Contents: [<IfNode>]>,
|
|---|
| 2230 | <Text Node: '
|
|---|
| 2231 | '>,
|
|---|
| 2232 | <Block Node: content. Contents: [<Text Node: '
|
|---|
| 2233 | '>, <Block Node: object-tools. Contents: []>, <Text
|
|---|
| 2234 | Node: '
|
|---|
| 2235 | '>, <Variable Node: content>, <Text Node: '
|
|---|
| 2236 | '>]>,
|
|---|
| 2237 | <Text Node: '
|
|---|
| 2238 | '>,
|
|---|
| 2239 | <Block Node: sidebar. Contents: []>,
|
|---|
| 2240 | <Text Node: '
|
|---|
| 2241 | <br class="clear'>,
|
|---|
| 2242 | <Block Node: footer. Contents: [<Text Node: '<div
|
|---|
| 2243 | id="footer"></div>'>]>,
|
|---|
| 2244 | <Text Node: '
|
|---|
| 2245 | </div>
|
|---|
| 2246 | <!-- END Containe'>]</pre></td>
|
|---|
| 2247 | </tr>
|
|---|
| 2248 |
|
|---|
| 2249 | </tbody>
|
|---|
| 2250 | </table>
|
|---|
| 2251 |
|
|---|
| 2252 | </li>
|
|---|
| 2253 |
|
|---|
| 2254 | <li class="frame django">
|
|---|
| 2255 | <code>/usr/local/lib/python3.4/dist-packages/django/template/defaulttags.py</code> in <code>render</code>
|
|---|
| 2256 |
|
|---|
| 2257 |
|
|---|
| 2258 | <div class="context" id="c139958777838280">
|
|---|
| 2259 |
|
|---|
| 2260 | <ol style="display: none;" start="322" class="pre-context" id="pre139958777838280">
|
|---|
| 2261 |
|
|---|
| 2262 | <li onclick="toggle('pre139958777838280', 'post139958777838280')"><pre> match = condition.eval(context)</pre></li>
|
|---|
| 2263 |
|
|---|
| 2264 | <li onclick="toggle('pre139958777838280', 'post139958777838280')"><pre> except VariableDoesNotExist:</pre></li>
|
|---|
| 2265 |
|
|---|
| 2266 | <li onclick="toggle('pre139958777838280', 'post139958777838280')"><pre> match = None</pre></li>
|
|---|
| 2267 |
|
|---|
| 2268 | <li onclick="toggle('pre139958777838280', 'post139958777838280')"><pre> else: # else clause</pre></li>
|
|---|
| 2269 |
|
|---|
| 2270 | <li onclick="toggle('pre139958777838280', 'post139958777838280')"><pre> match = True</pre></li>
|
|---|
| 2271 |
|
|---|
| 2272 | <li onclick="toggle('pre139958777838280', 'post139958777838280')"><pre></pre></li>
|
|---|
| 2273 |
|
|---|
| 2274 | <li onclick="toggle('pre139958777838280', 'post139958777838280')"><pre> if match:</pre></li>
|
|---|
| 2275 |
|
|---|
| 2276 | </ol>
|
|---|
| 2277 |
|
|---|
| 2278 | <ol start="329" class="context-line">
|
|---|
| 2279 | <li onclick="toggle('pre139958777838280', 'post139958777838280')"><pre> return nodelist.render(context)</pre> <span>...</span></li></ol>
|
|---|
| 2280 |
|
|---|
| 2281 | <ol style="display: none;" start="330" class="post-context" id="post139958777838280">
|
|---|
| 2282 |
|
|---|
| 2283 | <li onclick="toggle('pre139958777838280', 'post139958777838280')"><pre></pre></li>
|
|---|
| 2284 |
|
|---|
| 2285 | <li onclick="toggle('pre139958777838280', 'post139958777838280')"><pre> return ''</pre></li>
|
|---|
| 2286 |
|
|---|
| 2287 | <li onclick="toggle('pre139958777838280', 'post139958777838280')"><pre></pre></li>
|
|---|
| 2288 |
|
|---|
| 2289 | <li onclick="toggle('pre139958777838280', 'post139958777838280')"><pre></pre></li>
|
|---|
| 2290 |
|
|---|
| 2291 | <li onclick="toggle('pre139958777838280', 'post139958777838280')"><pre>class LoremNode(Node):</pre></li>
|
|---|
| 2292 |
|
|---|
| 2293 | <li onclick="toggle('pre139958777838280', 'post139958777838280')"><pre> def __init__(self, count, method, common):</pre></li>
|
|---|
| 2294 |
|
|---|
| 2295 | </ol>
|
|---|
| 2296 |
|
|---|
| 2297 | </div>
|
|---|
| 2298 |
|
|---|
| 2299 |
|
|---|
| 2300 |
|
|---|
| 2301 | <div class="commands">
|
|---|
| 2302 |
|
|---|
| 2303 | <a href="#" onclick="return varToggle(this, '139958777838280')"><span>▶</span> Local vars</a>
|
|---|
| 2304 |
|
|---|
| 2305 | </div>
|
|---|
| 2306 | <table style="display: none;" class="vars" id="v139958777838280">
|
|---|
| 2307 | <thead>
|
|---|
| 2308 | <tr>
|
|---|
| 2309 | <th>Variable</th>
|
|---|
| 2310 | <th>Value</th>
|
|---|
| 2311 | </tr>
|
|---|
| 2312 | </thead>
|
|---|
| 2313 | <tbody>
|
|---|
| 2314 |
|
|---|
| 2315 | <tr>
|
|---|
| 2316 | <td>nodelist</td>
|
|---|
| 2317 | <td class="code"><pre>[<Text Node: '
|
|---|
| 2318 | <!-- Header -->
|
|---|
| 2319 | '>,
|
|---|
| 2320 | <Block Node: branding. Contents: []>,
|
|---|
| 2321 | <Text Node: '
|
|---|
| 2322 | </div>
|
|---|
| 2323 | '>,
|
|---|
| 2324 | <Block Node: usertools. Contents: [<Text Node: '
|
|---|
| 2325 | '>, <IfNode>, <Text Node: '
|
|---|
| 2326 | '>]>,
|
|---|
| 2327 | <Text Node: '
|
|---|
| 2328 | '>,
|
|---|
| 2329 | <Block Node: nav-global. Contents: []>,
|
|---|
| 2330 | <Text Node: '
|
|---|
| 2331 | </div>
|
|---|
| 2332 | <!-- END '>,
|
|---|
| 2333 | <Block Node: breadcrumbs. Contents: [<Text Node: '
|
|---|
| 2334 | <div class="breadcru'>,
|
|---|
| 2335 | <django.template.defaulttags.URLNode object at 0x7f4ab143cd30>,
|
|---|
| 2336 | <Text Node: '">'>, <django.templatetags.i18n.TranslateNode
|
|---|
| 2337 | object at 0x7f4ab1f6e668>, <Text Node: '</a>
|
|---|
| 2338 | '>, <IfNode>, <Text Node: '
|
|---|
| 2339 | </div>
|
|---|
| 2340 | '>]>,
|
|---|
| 2341 | <Text Node: '
|
|---|
| 2342 | '>]</pre></td>
|
|---|
| 2343 | </tr>
|
|---|
| 2344 |
|
|---|
| 2345 | <tr>
|
|---|
| 2346 | <td>match</td>
|
|---|
| 2347 | <td class="code"><pre>True</pre></td>
|
|---|
| 2348 | </tr>
|
|---|
| 2349 |
|
|---|
| 2350 | <tr>
|
|---|
| 2351 | <td>self</td>
|
|---|
| 2352 | <td class="code"><pre><IfNode></pre></td>
|
|---|
| 2353 | </tr>
|
|---|
| 2354 |
|
|---|
| 2355 | <tr>
|
|---|
| 2356 | <td>context</td>
|
|---|
| 2357 | <td class="code"><pre>[{'False': False, 'True':
|
|---|
| 2358 | True, 'None': None}, {}, {'form': <AdminAuthenticationForm
|
|---|
| 2359 | bound=False, valid=Unknown, fields=(username;password)>, 'site_name':
|
|---|
| 2360 | '127.0.0.1:8000', 'site_url': '/', 'site_title':
|
|---|
| 2361 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 2362 | 0x7f4ab3dd6eb8>, 'title': 'Log in', 'LANGUAGE_BIDI': False,
|
|---|
| 2363 | 'has_permission': False, 'site':
|
|---|
| 2364 | <django.contrib.sites.requests.RequestSite object at
|
|---|
| 2365 | 0x7f4ab143c358>, 'site_header':
|
|---|
| 2366 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 2367 | 0x7f4ab3d40ac8>, 'next': '/admin/', 'app_path':
|
|---|
| 2368 | '/admin/login/?next=/admin/', 'LANGUAGE_CODE': 'en-us'}]</pre></td>
|
|---|
| 2369 | </tr>
|
|---|
| 2370 |
|
|---|
| 2371 | <tr>
|
|---|
| 2372 | <td>condition</td>
|
|---|
| 2373 | <td class="code"><pre>(not (literal <django.template.base.FilterExpression object at 0x7f4ab140dbe0>))</pre></td>
|
|---|
| 2374 | </tr>
|
|---|
| 2375 |
|
|---|
| 2376 | </tbody>
|
|---|
| 2377 | </table>
|
|---|
| 2378 |
|
|---|
| 2379 | </li>
|
|---|
| 2380 |
|
|---|
| 2381 | <li class="frame django">
|
|---|
| 2382 | <code>/usr/local/lib/python3.4/dist-packages/django/template/base.py</code> in <code>render</code>
|
|---|
| 2383 |
|
|---|
| 2384 |
|
|---|
| 2385 | <div class="context" id="c139958777839240">
|
|---|
| 2386 |
|
|---|
| 2387 | <ol style="display: none;" start="896" class="pre-context" id="pre139958777839240">
|
|---|
| 2388 |
|
|---|
| 2389 | <li onclick="toggle('pre139958777839240', 'post139958777839240')"><pre> # extend_nodelist().</pre></li>
|
|---|
| 2390 |
|
|---|
| 2391 | <li onclick="toggle('pre139958777839240', 'post139958777839240')"><pre> contains_nontext = False</pre></li>
|
|---|
| 2392 |
|
|---|
| 2393 | <li onclick="toggle('pre139958777839240', 'post139958777839240')"><pre></pre></li>
|
|---|
| 2394 |
|
|---|
| 2395 | <li onclick="toggle('pre139958777839240', 'post139958777839240')"><pre> def render(self, context):</pre></li>
|
|---|
| 2396 |
|
|---|
| 2397 | <li onclick="toggle('pre139958777839240', 'post139958777839240')"><pre> bits = []</pre></li>
|
|---|
| 2398 |
|
|---|
| 2399 | <li onclick="toggle('pre139958777839240', 'post139958777839240')"><pre> for node in self:</pre></li>
|
|---|
| 2400 |
|
|---|
| 2401 | <li onclick="toggle('pre139958777839240', 'post139958777839240')"><pre> if isinstance(node, Node):</pre></li>
|
|---|
| 2402 |
|
|---|
| 2403 | </ol>
|
|---|
| 2404 |
|
|---|
| 2405 | <ol start="903" class="context-line">
|
|---|
| 2406 | <li onclick="toggle('pre139958777839240', 'post139958777839240')"><pre> bit = self.render_node(node, context)</pre> <span>...</span></li></ol>
|
|---|
| 2407 |
|
|---|
| 2408 | <ol style="display: none;" start="904" class="post-context" id="post139958777839240">
|
|---|
| 2409 |
|
|---|
| 2410 | <li onclick="toggle('pre139958777839240', 'post139958777839240')"><pre> else:</pre></li>
|
|---|
| 2411 |
|
|---|
| 2412 | <li onclick="toggle('pre139958777839240', 'post139958777839240')"><pre> bit = node</pre></li>
|
|---|
| 2413 |
|
|---|
| 2414 | <li onclick="toggle('pre139958777839240', 'post139958777839240')"><pre> bits.append(force_text(bit))</pre></li>
|
|---|
| 2415 |
|
|---|
| 2416 | <li onclick="toggle('pre139958777839240', 'post139958777839240')"><pre> return mark_safe(''.join(bits))</pre></li>
|
|---|
| 2417 |
|
|---|
| 2418 | <li onclick="toggle('pre139958777839240', 'post139958777839240')"><pre></pre></li>
|
|---|
| 2419 |
|
|---|
| 2420 | <li onclick="toggle('pre139958777839240', 'post139958777839240')"><pre> def get_nodes_by_type(self, nodetype):</pre></li>
|
|---|
| 2421 |
|
|---|
| 2422 | </ol>
|
|---|
| 2423 |
|
|---|
| 2424 | </div>
|
|---|
| 2425 |
|
|---|
| 2426 |
|
|---|
| 2427 |
|
|---|
| 2428 | <div class="commands">
|
|---|
| 2429 |
|
|---|
| 2430 | <a href="#" onclick="return varToggle(this, '139958777839240')"><span>▶</span> Local vars</a>
|
|---|
| 2431 |
|
|---|
| 2432 | </div>
|
|---|
| 2433 | <table style="display: none;" class="vars" id="v139958777839240">
|
|---|
| 2434 | <thead>
|
|---|
| 2435 | <tr>
|
|---|
| 2436 | <th>Variable</th>
|
|---|
| 2437 | <th>Value</th>
|
|---|
| 2438 | </tr>
|
|---|
| 2439 | </thead>
|
|---|
| 2440 | <tbody>
|
|---|
| 2441 |
|
|---|
| 2442 | <tr>
|
|---|
| 2443 | <td>bit</td>
|
|---|
| 2444 | <td class="code"><pre>'\n'
|
|---|
| 2445 | ' <!-- Header -->\n'
|
|---|
| 2446 | ' <div id="header">\n'
|
|---|
| 2447 | ' <div id="branding">\n'
|
|---|
| 2448 | ' '</pre></td>
|
|---|
| 2449 | </tr>
|
|---|
| 2450 |
|
|---|
| 2451 | <tr>
|
|---|
| 2452 | <td>node</td>
|
|---|
| 2453 | <td class="code"><pre><Block Node: branding. Contents: []></pre></td>
|
|---|
| 2454 | </tr>
|
|---|
| 2455 |
|
|---|
| 2456 | <tr>
|
|---|
| 2457 | <td>context</td>
|
|---|
| 2458 | <td class="code"><pre>[{'False': False, 'True':
|
|---|
| 2459 | True, 'None': None}, {}, {'form': <AdminAuthenticationForm
|
|---|
| 2460 | bound=False, valid=Unknown, fields=(username;password)>, 'site_name':
|
|---|
| 2461 | '127.0.0.1:8000', 'site_url': '/', 'site_title':
|
|---|
| 2462 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 2463 | 0x7f4ab3dd6eb8>, 'title': 'Log in', 'LANGUAGE_BIDI': False,
|
|---|
| 2464 | 'has_permission': False, 'site':
|
|---|
| 2465 | <django.contrib.sites.requests.RequestSite object at
|
|---|
| 2466 | 0x7f4ab143c358>, 'site_header':
|
|---|
| 2467 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 2468 | 0x7f4ab3d40ac8>, 'next': '/admin/', 'app_path':
|
|---|
| 2469 | '/admin/login/?next=/admin/', 'LANGUAGE_CODE': 'en-us'}]</pre></td>
|
|---|
| 2470 | </tr>
|
|---|
| 2471 |
|
|---|
| 2472 | <tr>
|
|---|
| 2473 | <td>bits</td>
|
|---|
| 2474 | <td class="code"><pre>['\n'
|
|---|
| 2475 | ' <!-- Header -->\n'
|
|---|
| 2476 | ' <div id="header">\n'
|
|---|
| 2477 | ' <div id="branding">\n'
|
|---|
| 2478 | ' ']</pre></td>
|
|---|
| 2479 | </tr>
|
|---|
| 2480 |
|
|---|
| 2481 | <tr>
|
|---|
| 2482 | <td>self</td>
|
|---|
| 2483 | <td class="code"><pre>[<Text Node: '
|
|---|
| 2484 | <!-- Header -->
|
|---|
| 2485 | '>,
|
|---|
| 2486 | <Block Node: branding. Contents: []>,
|
|---|
| 2487 | <Text Node: '
|
|---|
| 2488 | </div>
|
|---|
| 2489 | '>,
|
|---|
| 2490 | <Block Node: usertools. Contents: [<Text Node: '
|
|---|
| 2491 | '>, <IfNode>, <Text Node: '
|
|---|
| 2492 | '>]>,
|
|---|
| 2493 | <Text Node: '
|
|---|
| 2494 | '>,
|
|---|
| 2495 | <Block Node: nav-global. Contents: []>,
|
|---|
| 2496 | <Text Node: '
|
|---|
| 2497 | </div>
|
|---|
| 2498 | <!-- END '>,
|
|---|
| 2499 | <Block Node: breadcrumbs. Contents: [<Text Node: '
|
|---|
| 2500 | <div class="breadcru'>,
|
|---|
| 2501 | <django.template.defaulttags.URLNode object at 0x7f4ab143cd30>,
|
|---|
| 2502 | <Text Node: '">'>, <django.templatetags.i18n.TranslateNode
|
|---|
| 2503 | object at 0x7f4ab1f6e668>, <Text Node: '</a>
|
|---|
| 2504 | '>, <IfNode>, <Text Node: '
|
|---|
| 2505 | </div>
|
|---|
| 2506 | '>]>,
|
|---|
| 2507 | <Text Node: '
|
|---|
| 2508 | '>]</pre></td>
|
|---|
| 2509 | </tr>
|
|---|
| 2510 |
|
|---|
| 2511 | </tbody>
|
|---|
| 2512 | </table>
|
|---|
| 2513 |
|
|---|
| 2514 | </li>
|
|---|
| 2515 |
|
|---|
| 2516 | <li class="frame django">
|
|---|
| 2517 | <code>/usr/local/lib/python3.4/dist-packages/django/template/debug.py</code> in <code>render_node</code>
|
|---|
| 2518 |
|
|---|
| 2519 |
|
|---|
| 2520 | <div class="context" id="c139958777838216">
|
|---|
| 2521 |
|
|---|
| 2522 | <ol style="display: none;" start="72" class="pre-context" id="pre139958777838216">
|
|---|
| 2523 |
|
|---|
| 2524 | <li onclick="toggle('pre139958777838216', 'post139958777838216')"><pre> if not hasattr(e, 'django_template_source'):</pre></li>
|
|---|
| 2525 |
|
|---|
| 2526 | <li onclick="toggle('pre139958777838216', 'post139958777838216')"><pre> e.django_template_source = token.source</pre></li>
|
|---|
| 2527 |
|
|---|
| 2528 | <li onclick="toggle('pre139958777838216', 'post139958777838216')"><pre></pre></li>
|
|---|
| 2529 |
|
|---|
| 2530 | <li onclick="toggle('pre139958777838216', 'post139958777838216')"><pre></pre></li>
|
|---|
| 2531 |
|
|---|
| 2532 | <li onclick="toggle('pre139958777838216', 'post139958777838216')"><pre>class DebugNodeList(NodeList):</pre></li>
|
|---|
| 2533 |
|
|---|
| 2534 | <li onclick="toggle('pre139958777838216', 'post139958777838216')"><pre> def render_node(self, node, context):</pre></li>
|
|---|
| 2535 |
|
|---|
| 2536 | <li onclick="toggle('pre139958777838216', 'post139958777838216')"><pre> try:</pre></li>
|
|---|
| 2537 |
|
|---|
| 2538 | </ol>
|
|---|
| 2539 |
|
|---|
| 2540 | <ol start="79" class="context-line">
|
|---|
| 2541 | <li onclick="toggle('pre139958777838216', 'post139958777838216')"><pre> return node.render(context)</pre> <span>...</span></li></ol>
|
|---|
| 2542 |
|
|---|
| 2543 | <ol style="display: none;" start="80" class="post-context" id="post139958777838216">
|
|---|
| 2544 |
|
|---|
| 2545 | <li onclick="toggle('pre139958777838216', 'post139958777838216')"><pre> except Exception as e:</pre></li>
|
|---|
| 2546 |
|
|---|
| 2547 | <li onclick="toggle('pre139958777838216', 'post139958777838216')"><pre> if not hasattr(e, 'django_template_source'):</pre></li>
|
|---|
| 2548 |
|
|---|
| 2549 | <li onclick="toggle('pre139958777838216', 'post139958777838216')"><pre> e.django_template_source = node.source</pre></li>
|
|---|
| 2550 |
|
|---|
| 2551 | <li onclick="toggle('pre139958777838216', 'post139958777838216')"><pre> raise</pre></li>
|
|---|
| 2552 |
|
|---|
| 2553 | <li onclick="toggle('pre139958777838216', 'post139958777838216')"><pre></pre></li>
|
|---|
| 2554 |
|
|---|
| 2555 | <li onclick="toggle('pre139958777838216', 'post139958777838216')"><pre></pre></li>
|
|---|
| 2556 |
|
|---|
| 2557 | </ol>
|
|---|
| 2558 |
|
|---|
| 2559 | </div>
|
|---|
| 2560 |
|
|---|
| 2561 |
|
|---|
| 2562 |
|
|---|
| 2563 | <div class="commands">
|
|---|
| 2564 |
|
|---|
| 2565 | <a href="#" onclick="return varToggle(this, '139958777838216')"><span>▶</span> Local vars</a>
|
|---|
| 2566 |
|
|---|
| 2567 | </div>
|
|---|
| 2568 | <table style="display: none;" class="vars" id="v139958777838216">
|
|---|
| 2569 | <thead>
|
|---|
| 2570 | <tr>
|
|---|
| 2571 | <th>Variable</th>
|
|---|
| 2572 | <th>Value</th>
|
|---|
| 2573 | </tr>
|
|---|
| 2574 | </thead>
|
|---|
| 2575 | <tbody>
|
|---|
| 2576 |
|
|---|
| 2577 | <tr>
|
|---|
| 2578 | <td>node</td>
|
|---|
| 2579 | <td class="code"><pre><Block Node: branding. Contents: []></pre></td>
|
|---|
| 2580 | </tr>
|
|---|
| 2581 |
|
|---|
| 2582 | <tr>
|
|---|
| 2583 | <td>context</td>
|
|---|
| 2584 | <td class="code"><pre>[{'False': False, 'True':
|
|---|
| 2585 | True, 'None': None}, {}, {'form': <AdminAuthenticationForm
|
|---|
| 2586 | bound=False, valid=Unknown, fields=(username;password)>, 'site_name':
|
|---|
| 2587 | '127.0.0.1:8000', 'site_url': '/', 'site_title':
|
|---|
| 2588 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 2589 | 0x7f4ab3dd6eb8>, 'title': 'Log in', 'LANGUAGE_BIDI': False,
|
|---|
| 2590 | 'has_permission': False, 'site':
|
|---|
| 2591 | <django.contrib.sites.requests.RequestSite object at
|
|---|
| 2592 | 0x7f4ab143c358>, 'site_header':
|
|---|
| 2593 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 2594 | 0x7f4ab3d40ac8>, 'next': '/admin/', 'app_path':
|
|---|
| 2595 | '/admin/login/?next=/admin/', 'LANGUAGE_CODE': 'en-us'}]</pre></td>
|
|---|
| 2596 | </tr>
|
|---|
| 2597 |
|
|---|
| 2598 | <tr>
|
|---|
| 2599 | <td>self</td>
|
|---|
| 2600 | <td class="code"><pre>[<Text Node: '
|
|---|
| 2601 | <!-- Header -->
|
|---|
| 2602 | '>,
|
|---|
| 2603 | <Block Node: branding. Contents: []>,
|
|---|
| 2604 | <Text Node: '
|
|---|
| 2605 | </div>
|
|---|
| 2606 | '>,
|
|---|
| 2607 | <Block Node: usertools. Contents: [<Text Node: '
|
|---|
| 2608 | '>, <IfNode>, <Text Node: '
|
|---|
| 2609 | '>]>,
|
|---|
| 2610 | <Text Node: '
|
|---|
| 2611 | '>,
|
|---|
| 2612 | <Block Node: nav-global. Contents: []>,
|
|---|
| 2613 | <Text Node: '
|
|---|
| 2614 | </div>
|
|---|
| 2615 | <!-- END '>,
|
|---|
| 2616 | <Block Node: breadcrumbs. Contents: [<Text Node: '
|
|---|
| 2617 | <div class="breadcru'>,
|
|---|
| 2618 | <django.template.defaulttags.URLNode object at 0x7f4ab143cd30>,
|
|---|
| 2619 | <Text Node: '">'>, <django.templatetags.i18n.TranslateNode
|
|---|
| 2620 | object at 0x7f4ab1f6e668>, <Text Node: '</a>
|
|---|
| 2621 | '>, <IfNode>, <Text Node: '
|
|---|
| 2622 | </div>
|
|---|
| 2623 | '>]>,
|
|---|
| 2624 | <Text Node: '
|
|---|
| 2625 | '>]</pre></td>
|
|---|
| 2626 | </tr>
|
|---|
| 2627 |
|
|---|
| 2628 | </tbody>
|
|---|
| 2629 | </table>
|
|---|
| 2630 |
|
|---|
| 2631 | </li>
|
|---|
| 2632 |
|
|---|
| 2633 | <li class="frame django">
|
|---|
| 2634 | <code>/usr/local/lib/python3.4/dist-packages/django/template/loader_tags.py</code> in <code>render</code>
|
|---|
| 2635 |
|
|---|
| 2636 |
|
|---|
| 2637 | <div class="context" id="c139958777838984">
|
|---|
| 2638 |
|
|---|
| 2639 | <ol style="display: none;" start="58" class="pre-context" id="pre139958777838984">
|
|---|
| 2640 |
|
|---|
| 2641 | <li onclick="toggle('pre139958777838984', 'post139958777838984')"><pre> push = block = block_context.pop(self.name)</pre></li>
|
|---|
| 2642 |
|
|---|
| 2643 | <li onclick="toggle('pre139958777838984', 'post139958777838984')"><pre> if block is None:</pre></li>
|
|---|
| 2644 |
|
|---|
| 2645 | <li onclick="toggle('pre139958777838984', 'post139958777838984')"><pre> block = self</pre></li>
|
|---|
| 2646 |
|
|---|
| 2647 | <li onclick="toggle('pre139958777838984', 'post139958777838984')"><pre> # Create new block so we can store context without thread-safety issues.</pre></li>
|
|---|
| 2648 |
|
|---|
| 2649 | <li onclick="toggle('pre139958777838984', 'post139958777838984')"><pre> block = type(self)(block.name, block.nodelist)</pre></li>
|
|---|
| 2650 |
|
|---|
| 2651 | <li onclick="toggle('pre139958777838984', 'post139958777838984')"><pre> block.context = context</pre></li>
|
|---|
| 2652 |
|
|---|
| 2653 | <li onclick="toggle('pre139958777838984', 'post139958777838984')"><pre> context['block'] = block</pre></li>
|
|---|
| 2654 |
|
|---|
| 2655 | </ol>
|
|---|
| 2656 |
|
|---|
| 2657 | <ol start="65" class="context-line">
|
|---|
| 2658 | <li onclick="toggle('pre139958777838984', 'post139958777838984')"><pre> result = block.nodelist.render(context)</pre> <span>...</span></li></ol>
|
|---|
| 2659 |
|
|---|
| 2660 | <ol style="display: none;" start="66" class="post-context" id="post139958777838984">
|
|---|
| 2661 |
|
|---|
| 2662 | <li onclick="toggle('pre139958777838984', 'post139958777838984')"><pre> if push is not None:</pre></li>
|
|---|
| 2663 |
|
|---|
| 2664 | <li onclick="toggle('pre139958777838984', 'post139958777838984')"><pre> block_context.push(self.name, push)</pre></li>
|
|---|
| 2665 |
|
|---|
| 2666 | <li onclick="toggle('pre139958777838984', 'post139958777838984')"><pre> return result</pre></li>
|
|---|
| 2667 |
|
|---|
| 2668 | <li onclick="toggle('pre139958777838984', 'post139958777838984')"><pre></pre></li>
|
|---|
| 2669 |
|
|---|
| 2670 | <li onclick="toggle('pre139958777838984', 'post139958777838984')"><pre> def super(self):</pre></li>
|
|---|
| 2671 |
|
|---|
| 2672 | <li onclick="toggle('pre139958777838984', 'post139958777838984')"><pre> if not hasattr(self, 'context'):</pre></li>
|
|---|
| 2673 |
|
|---|
| 2674 | </ol>
|
|---|
| 2675 |
|
|---|
| 2676 | </div>
|
|---|
| 2677 |
|
|---|
| 2678 |
|
|---|
| 2679 |
|
|---|
| 2680 | <div class="commands">
|
|---|
| 2681 |
|
|---|
| 2682 | <a href="#" onclick="return varToggle(this, '139958777838984')"><span>▶</span> Local vars</a>
|
|---|
| 2683 |
|
|---|
| 2684 | </div>
|
|---|
| 2685 | <table style="display: none;" class="vars" id="v139958777838984">
|
|---|
| 2686 | <thead>
|
|---|
| 2687 | <tr>
|
|---|
| 2688 | <th>Variable</th>
|
|---|
| 2689 | <th>Value</th>
|
|---|
| 2690 | </tr>
|
|---|
| 2691 | </thead>
|
|---|
| 2692 | <tbody>
|
|---|
| 2693 |
|
|---|
| 2694 | <tr>
|
|---|
| 2695 | <td>block_context</td>
|
|---|
| 2696 | <td class="code"><pre><django.template.loader_tags.BlockContext object at 0x7f4ab147b400></pre></td>
|
|---|
| 2697 | </tr>
|
|---|
| 2698 |
|
|---|
| 2699 | <tr>
|
|---|
| 2700 | <td>block</td>
|
|---|
| 2701 | <td class="code"><pre><Block Node: branding.
|
|---|
| 2702 | Contents: [<Text Node: '
|
|---|
| 2703 | <h1 id="site-name"><a hr'>,
|
|---|
| 2704 | <django.template.defaulttags.URLNode object at 0x7f4ab14b7588>,
|
|---|
| 2705 | <Text Node: '">'>, <Variable Node:
|
|---|
| 2706 | site_header|default:_('Django administration')>, <Text Node:
|
|---|
| 2707 | '</a></h1>
|
|---|
| 2708 | '>]></pre></td>
|
|---|
| 2709 | </tr>
|
|---|
| 2710 |
|
|---|
| 2711 | <tr>
|
|---|
| 2712 | <td>context</td>
|
|---|
| 2713 | <td class="code"><pre>[{'False': False, 'True':
|
|---|
| 2714 | True, 'None': None}, {}, {'form': <AdminAuthenticationForm
|
|---|
| 2715 | bound=False, valid=Unknown, fields=(username;password)>, 'site_name':
|
|---|
| 2716 | '127.0.0.1:8000', 'site_url': '/', 'site_title':
|
|---|
| 2717 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 2718 | 0x7f4ab3dd6eb8>, 'title': 'Log in', 'LANGUAGE_BIDI': False,
|
|---|
| 2719 | 'has_permission': False, 'site':
|
|---|
| 2720 | <django.contrib.sites.requests.RequestSite object at
|
|---|
| 2721 | 0x7f4ab143c358>, 'site_header':
|
|---|
| 2722 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 2723 | 0x7f4ab3d40ac8>, 'next': '/admin/', 'app_path':
|
|---|
| 2724 | '/admin/login/?next=/admin/', 'LANGUAGE_CODE': 'en-us'}]</pre></td>
|
|---|
| 2725 | </tr>
|
|---|
| 2726 |
|
|---|
| 2727 | <tr>
|
|---|
| 2728 | <td>push</td>
|
|---|
| 2729 | <td class="code"><pre><Block Node: branding.
|
|---|
| 2730 | Contents: [<Text Node: '
|
|---|
| 2731 | <h1 id="site-name"><a hr'>,
|
|---|
| 2732 | <django.template.defaulttags.URLNode object at 0x7f4ab14b7588>,
|
|---|
| 2733 | <Text Node: '">'>, <Variable Node:
|
|---|
| 2734 | site_header|default:_('Django administration')>, <Text Node:
|
|---|
| 2735 | '</a></h1>
|
|---|
| 2736 | '>]></pre></td>
|
|---|
| 2737 | </tr>
|
|---|
| 2738 |
|
|---|
| 2739 | <tr>
|
|---|
| 2740 | <td>self</td>
|
|---|
| 2741 | <td class="code"><pre><Block Node: branding. Contents: []></pre></td>
|
|---|
| 2742 | </tr>
|
|---|
| 2743 |
|
|---|
| 2744 | </tbody>
|
|---|
| 2745 | </table>
|
|---|
| 2746 |
|
|---|
| 2747 | </li>
|
|---|
| 2748 |
|
|---|
| 2749 | <li class="frame django">
|
|---|
| 2750 | <code>/usr/local/lib/python3.4/dist-packages/django/template/base.py</code> in <code>render</code>
|
|---|
| 2751 |
|
|---|
| 2752 |
|
|---|
| 2753 | <div class="context" id="c139958777837832">
|
|---|
| 2754 |
|
|---|
| 2755 | <ol style="display: none;" start="896" class="pre-context" id="pre139958777837832">
|
|---|
| 2756 |
|
|---|
| 2757 | <li onclick="toggle('pre139958777837832', 'post139958777837832')"><pre> # extend_nodelist().</pre></li>
|
|---|
| 2758 |
|
|---|
| 2759 | <li onclick="toggle('pre139958777837832', 'post139958777837832')"><pre> contains_nontext = False</pre></li>
|
|---|
| 2760 |
|
|---|
| 2761 | <li onclick="toggle('pre139958777837832', 'post139958777837832')"><pre></pre></li>
|
|---|
| 2762 |
|
|---|
| 2763 | <li onclick="toggle('pre139958777837832', 'post139958777837832')"><pre> def render(self, context):</pre></li>
|
|---|
| 2764 |
|
|---|
| 2765 | <li onclick="toggle('pre139958777837832', 'post139958777837832')"><pre> bits = []</pre></li>
|
|---|
| 2766 |
|
|---|
| 2767 | <li onclick="toggle('pre139958777837832', 'post139958777837832')"><pre> for node in self:</pre></li>
|
|---|
| 2768 |
|
|---|
| 2769 | <li onclick="toggle('pre139958777837832', 'post139958777837832')"><pre> if isinstance(node, Node):</pre></li>
|
|---|
| 2770 |
|
|---|
| 2771 | </ol>
|
|---|
| 2772 |
|
|---|
| 2773 | <ol start="903" class="context-line">
|
|---|
| 2774 | <li onclick="toggle('pre139958777837832', 'post139958777837832')"><pre> bit = self.render_node(node, context)</pre> <span>...</span></li></ol>
|
|---|
| 2775 |
|
|---|
| 2776 | <ol style="display: none;" start="904" class="post-context" id="post139958777837832">
|
|---|
| 2777 |
|
|---|
| 2778 | <li onclick="toggle('pre139958777837832', 'post139958777837832')"><pre> else:</pre></li>
|
|---|
| 2779 |
|
|---|
| 2780 | <li onclick="toggle('pre139958777837832', 'post139958777837832')"><pre> bit = node</pre></li>
|
|---|
| 2781 |
|
|---|
| 2782 | <li onclick="toggle('pre139958777837832', 'post139958777837832')"><pre> bits.append(force_text(bit))</pre></li>
|
|---|
| 2783 |
|
|---|
| 2784 | <li onclick="toggle('pre139958777837832', 'post139958777837832')"><pre> return mark_safe(''.join(bits))</pre></li>
|
|---|
| 2785 |
|
|---|
| 2786 | <li onclick="toggle('pre139958777837832', 'post139958777837832')"><pre></pre></li>
|
|---|
| 2787 |
|
|---|
| 2788 | <li onclick="toggle('pre139958777837832', 'post139958777837832')"><pre> def get_nodes_by_type(self, nodetype):</pre></li>
|
|---|
| 2789 |
|
|---|
| 2790 | </ol>
|
|---|
| 2791 |
|
|---|
| 2792 | </div>
|
|---|
| 2793 |
|
|---|
| 2794 |
|
|---|
| 2795 |
|
|---|
| 2796 | <div class="commands">
|
|---|
| 2797 |
|
|---|
| 2798 | <a href="#" onclick="return varToggle(this, '139958777837832')"><span>▶</span> Local vars</a>
|
|---|
| 2799 |
|
|---|
| 2800 | </div>
|
|---|
| 2801 | <table style="display: none;" class="vars" id="v139958777837832">
|
|---|
| 2802 | <thead>
|
|---|
| 2803 | <tr>
|
|---|
| 2804 | <th>Variable</th>
|
|---|
| 2805 | <th>Value</th>
|
|---|
| 2806 | </tr>
|
|---|
| 2807 | </thead>
|
|---|
| 2808 | <tbody>
|
|---|
| 2809 |
|
|---|
| 2810 | <tr>
|
|---|
| 2811 | <td>bit</td>
|
|---|
| 2812 | <td class="code"><pre>'\n<h1 id="site-name"><a href="'</pre></td>
|
|---|
| 2813 | </tr>
|
|---|
| 2814 |
|
|---|
| 2815 | <tr>
|
|---|
| 2816 | <td>node</td>
|
|---|
| 2817 | <td class="code"><pre><django.template.defaulttags.URLNode object at 0x7f4ab14b7588></pre></td>
|
|---|
| 2818 | </tr>
|
|---|
| 2819 |
|
|---|
| 2820 | <tr>
|
|---|
| 2821 | <td>context</td>
|
|---|
| 2822 | <td class="code"><pre>[{'False': False, 'True':
|
|---|
| 2823 | True, 'None': None}, {}, {'form': <AdminAuthenticationForm
|
|---|
| 2824 | bound=False, valid=Unknown, fields=(username;password)>, 'site_name':
|
|---|
| 2825 | '127.0.0.1:8000', 'site_url': '/', 'site_title':
|
|---|
| 2826 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 2827 | 0x7f4ab3dd6eb8>, 'title': 'Log in', 'LANGUAGE_BIDI': False,
|
|---|
| 2828 | 'has_permission': False, 'site':
|
|---|
| 2829 | <django.contrib.sites.requests.RequestSite object at
|
|---|
| 2830 | 0x7f4ab143c358>, 'site_header':
|
|---|
| 2831 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 2832 | 0x7f4ab3d40ac8>, 'next': '/admin/', 'app_path':
|
|---|
| 2833 | '/admin/login/?next=/admin/', 'LANGUAGE_CODE': 'en-us'}]</pre></td>
|
|---|
| 2834 | </tr>
|
|---|
| 2835 |
|
|---|
| 2836 | <tr>
|
|---|
| 2837 | <td>bits</td>
|
|---|
| 2838 | <td class="code"><pre>['\n<h1 id="site-name"><a href="']</pre></td>
|
|---|
| 2839 | </tr>
|
|---|
| 2840 |
|
|---|
| 2841 | <tr>
|
|---|
| 2842 | <td>self</td>
|
|---|
| 2843 | <td class="code"><pre>[<Text Node: '
|
|---|
| 2844 | <h1 id="site-name"><a hr'>,
|
|---|
| 2845 | <django.template.defaulttags.URLNode object at 0x7f4ab14b7588>,
|
|---|
| 2846 | <Text Node: '">'>,
|
|---|
| 2847 | <Variable Node: site_header|default:_('Django administration')>,
|
|---|
| 2848 | <Text Node: '</a></h1>
|
|---|
| 2849 | '>]</pre></td>
|
|---|
| 2850 | </tr>
|
|---|
| 2851 |
|
|---|
| 2852 | </tbody>
|
|---|
| 2853 | </table>
|
|---|
| 2854 |
|
|---|
| 2855 | </li>
|
|---|
| 2856 |
|
|---|
| 2857 | <li class="frame django">
|
|---|
| 2858 | <code>/usr/local/lib/python3.4/dist-packages/django/template/debug.py</code> in <code>render_node</code>
|
|---|
| 2859 |
|
|---|
| 2860 |
|
|---|
| 2861 | <div class="context" id="c139958777838664">
|
|---|
| 2862 |
|
|---|
| 2863 | <ol style="display: none;" start="72" class="pre-context" id="pre139958777838664">
|
|---|
| 2864 |
|
|---|
| 2865 | <li onclick="toggle('pre139958777838664', 'post139958777838664')"><pre> if not hasattr(e, 'django_template_source'):</pre></li>
|
|---|
| 2866 |
|
|---|
| 2867 | <li onclick="toggle('pre139958777838664', 'post139958777838664')"><pre> e.django_template_source = token.source</pre></li>
|
|---|
| 2868 |
|
|---|
| 2869 | <li onclick="toggle('pre139958777838664', 'post139958777838664')"><pre></pre></li>
|
|---|
| 2870 |
|
|---|
| 2871 | <li onclick="toggle('pre139958777838664', 'post139958777838664')"><pre></pre></li>
|
|---|
| 2872 |
|
|---|
| 2873 | <li onclick="toggle('pre139958777838664', 'post139958777838664')"><pre>class DebugNodeList(NodeList):</pre></li>
|
|---|
| 2874 |
|
|---|
| 2875 | <li onclick="toggle('pre139958777838664', 'post139958777838664')"><pre> def render_node(self, node, context):</pre></li>
|
|---|
| 2876 |
|
|---|
| 2877 | <li onclick="toggle('pre139958777838664', 'post139958777838664')"><pre> try:</pre></li>
|
|---|
| 2878 |
|
|---|
| 2879 | </ol>
|
|---|
| 2880 |
|
|---|
| 2881 | <ol start="79" class="context-line">
|
|---|
| 2882 | <li onclick="toggle('pre139958777838664', 'post139958777838664')"><pre> return node.render(context)</pre> <span>...</span></li></ol>
|
|---|
| 2883 |
|
|---|
| 2884 | <ol style="display: none;" start="80" class="post-context" id="post139958777838664">
|
|---|
| 2885 |
|
|---|
| 2886 | <li onclick="toggle('pre139958777838664', 'post139958777838664')"><pre> except Exception as e:</pre></li>
|
|---|
| 2887 |
|
|---|
| 2888 | <li onclick="toggle('pre139958777838664', 'post139958777838664')"><pre> if not hasattr(e, 'django_template_source'):</pre></li>
|
|---|
| 2889 |
|
|---|
| 2890 | <li onclick="toggle('pre139958777838664', 'post139958777838664')"><pre> e.django_template_source = node.source</pre></li>
|
|---|
| 2891 |
|
|---|
| 2892 | <li onclick="toggle('pre139958777838664', 'post139958777838664')"><pre> raise</pre></li>
|
|---|
| 2893 |
|
|---|
| 2894 | <li onclick="toggle('pre139958777838664', 'post139958777838664')"><pre></pre></li>
|
|---|
| 2895 |
|
|---|
| 2896 | <li onclick="toggle('pre139958777838664', 'post139958777838664')"><pre></pre></li>
|
|---|
| 2897 |
|
|---|
| 2898 | </ol>
|
|---|
| 2899 |
|
|---|
| 2900 | </div>
|
|---|
| 2901 |
|
|---|
| 2902 |
|
|---|
| 2903 |
|
|---|
| 2904 | <div class="commands">
|
|---|
| 2905 |
|
|---|
| 2906 | <a href="#" onclick="return varToggle(this, '139958777838664')"><span>▶</span> Local vars</a>
|
|---|
| 2907 |
|
|---|
| 2908 | </div>
|
|---|
| 2909 | <table style="display: none;" class="vars" id="v139958777838664">
|
|---|
| 2910 | <thead>
|
|---|
| 2911 | <tr>
|
|---|
| 2912 | <th>Variable</th>
|
|---|
| 2913 | <th>Value</th>
|
|---|
| 2914 | </tr>
|
|---|
| 2915 | </thead>
|
|---|
| 2916 | <tbody>
|
|---|
| 2917 |
|
|---|
| 2918 | <tr>
|
|---|
| 2919 | <td>node</td>
|
|---|
| 2920 | <td class="code"><pre><django.template.defaulttags.URLNode object at 0x7f4ab14b7588></pre></td>
|
|---|
| 2921 | </tr>
|
|---|
| 2922 |
|
|---|
| 2923 | <tr>
|
|---|
| 2924 | <td>context</td>
|
|---|
| 2925 | <td class="code"><pre>[{'False': False, 'True':
|
|---|
| 2926 | True, 'None': None}, {}, {'form': <AdminAuthenticationForm
|
|---|
| 2927 | bound=False, valid=Unknown, fields=(username;password)>, 'site_name':
|
|---|
| 2928 | '127.0.0.1:8000', 'site_url': '/', 'site_title':
|
|---|
| 2929 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 2930 | 0x7f4ab3dd6eb8>, 'title': 'Log in', 'LANGUAGE_BIDI': False,
|
|---|
| 2931 | 'has_permission': False, 'site':
|
|---|
| 2932 | <django.contrib.sites.requests.RequestSite object at
|
|---|
| 2933 | 0x7f4ab143c358>, 'site_header':
|
|---|
| 2934 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 2935 | 0x7f4ab3d40ac8>, 'next': '/admin/', 'app_path':
|
|---|
| 2936 | '/admin/login/?next=/admin/', 'LANGUAGE_CODE': 'en-us'}]</pre></td>
|
|---|
| 2937 | </tr>
|
|---|
| 2938 |
|
|---|
| 2939 | <tr>
|
|---|
| 2940 | <td>self</td>
|
|---|
| 2941 | <td class="code"><pre>[<Text Node: '
|
|---|
| 2942 | <h1 id="site-name"><a hr'>,
|
|---|
| 2943 | <django.template.defaulttags.URLNode object at 0x7f4ab14b7588>,
|
|---|
| 2944 | <Text Node: '">'>,
|
|---|
| 2945 | <Variable Node: site_header|default:_('Django administration')>,
|
|---|
| 2946 | <Text Node: '</a></h1>
|
|---|
| 2947 | '>]</pre></td>
|
|---|
| 2948 | </tr>
|
|---|
| 2949 |
|
|---|
| 2950 | </tbody>
|
|---|
| 2951 | </table>
|
|---|
| 2952 |
|
|---|
| 2953 | </li>
|
|---|
| 2954 |
|
|---|
| 2955 | <li class="frame django">
|
|---|
| 2956 | <code>/usr/local/lib/python3.4/dist-packages/django/template/defaulttags.py</code> in <code>render</code>
|
|---|
| 2957 |
|
|---|
| 2958 |
|
|---|
| 2959 | <div class="context" id="c139958777838088">
|
|---|
| 2960 |
|
|---|
| 2961 | <ol style="display: none;" start="486" class="pre-context" id="pre139958777838088">
|
|---|
| 2962 |
|
|---|
| 2963 | <li onclick="toggle('pre139958777838088', 'post139958777838088')"><pre></pre></li>
|
|---|
| 2964 |
|
|---|
| 2965 | <li onclick="toggle('pre139958777838088', 'post139958777838088')"><pre> # Try to look up the URL twice: once given the view name, and again</pre></li>
|
|---|
| 2966 |
|
|---|
| 2967 | <li onclick="toggle('pre139958777838088', 'post139958777838088')"><pre> # relative to what we guess is the "main" app. If they both fail,</pre></li>
|
|---|
| 2968 |
|
|---|
| 2969 | <li onclick="toggle('pre139958777838088', 'post139958777838088')"><pre> # re-raise the NoReverseMatch unless we're using the</pre></li>
|
|---|
| 2970 |
|
|---|
| 2971 | <li onclick="toggle('pre139958777838088', 'post139958777838088')"><pre> # {% url ... as var %} construct in which case return nothing.</pre></li>
|
|---|
| 2972 |
|
|---|
| 2973 | <li onclick="toggle('pre139958777838088', 'post139958777838088')"><pre> url = ''</pre></li>
|
|---|
| 2974 |
|
|---|
| 2975 | <li onclick="toggle('pre139958777838088', 'post139958777838088')"><pre> try:</pre></li>
|
|---|
| 2976 |
|
|---|
| 2977 | </ol>
|
|---|
| 2978 |
|
|---|
| 2979 | <ol start="493" class="context-line">
|
|---|
| 2980 | <li onclick="toggle('pre139958777838088', 'post139958777838088')"><pre> url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)</pre> <span>...</span></li></ol>
|
|---|
| 2981 |
|
|---|
| 2982 | <ol style="display: none;" start="494" class="post-context" id="post139958777838088">
|
|---|
| 2983 |
|
|---|
| 2984 | <li onclick="toggle('pre139958777838088', 'post139958777838088')"><pre> except NoReverseMatch:</pre></li>
|
|---|
| 2985 |
|
|---|
| 2986 | <li onclick="toggle('pre139958777838088', 'post139958777838088')"><pre> exc_info = sys.exc_info()</pre></li>
|
|---|
| 2987 |
|
|---|
| 2988 | <li onclick="toggle('pre139958777838088', 'post139958777838088')"><pre> if settings.SETTINGS_MODULE:</pre></li>
|
|---|
| 2989 |
|
|---|
| 2990 | <li onclick="toggle('pre139958777838088', 'post139958777838088')"><pre> project_name = settings.SETTINGS_MODULE.split('.')[0]</pre></li>
|
|---|
| 2991 |
|
|---|
| 2992 | <li onclick="toggle('pre139958777838088', 'post139958777838088')"><pre> try:</pre></li>
|
|---|
| 2993 |
|
|---|
| 2994 | <li onclick="toggle('pre139958777838088', 'post139958777838088')"><pre> url = reverse(project_name + '.' + view_name,</pre></li>
|
|---|
| 2995 |
|
|---|
| 2996 | </ol>
|
|---|
| 2997 |
|
|---|
| 2998 | </div>
|
|---|
| 2999 |
|
|---|
| 3000 |
|
|---|
| 3001 |
|
|---|
| 3002 | <div class="commands">
|
|---|
| 3003 |
|
|---|
| 3004 | <a href="#" onclick="return varToggle(this, '139958777838088')"><span>▶</span> Local vars</a>
|
|---|
| 3005 |
|
|---|
| 3006 | </div>
|
|---|
| 3007 | <table style="display: none;" class="vars" id="v139958777838088">
|
|---|
| 3008 | <thead>
|
|---|
| 3009 | <tr>
|
|---|
| 3010 | <th>Variable</th>
|
|---|
| 3011 | <th>Value</th>
|
|---|
| 3012 | </tr>
|
|---|
| 3013 | </thead>
|
|---|
| 3014 | <tbody>
|
|---|
| 3015 |
|
|---|
| 3016 | <tr>
|
|---|
| 3017 | <td>url</td>
|
|---|
| 3018 | <td class="code"><pre>''</pre></td>
|
|---|
| 3019 | </tr>
|
|---|
| 3020 |
|
|---|
| 3021 | <tr>
|
|---|
| 3022 | <td>view_name</td>
|
|---|
| 3023 | <td class="code"><pre>'admin:index'</pre></td>
|
|---|
| 3024 | </tr>
|
|---|
| 3025 |
|
|---|
| 3026 | <tr>
|
|---|
| 3027 | <td>context</td>
|
|---|
| 3028 | <td class="code"><pre>[{'False': False, 'True':
|
|---|
| 3029 | True, 'None': None}, {}, {'form': <AdminAuthenticationForm
|
|---|
| 3030 | bound=False, valid=Unknown, fields=(username;password)>, 'site_name':
|
|---|
| 3031 | '127.0.0.1:8000', 'site_url': '/', 'site_title':
|
|---|
| 3032 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 3033 | 0x7f4ab3dd6eb8>, 'title': 'Log in', 'LANGUAGE_BIDI': False,
|
|---|
| 3034 | 'has_permission': False, 'site':
|
|---|
| 3035 | <django.contrib.sites.requests.RequestSite object at
|
|---|
| 3036 | 0x7f4ab143c358>, 'site_header':
|
|---|
| 3037 | <django.utils.functional.lazy.<locals>.__proxy__ object at
|
|---|
| 3038 | 0x7f4ab3d40ac8>, 'next': '/admin/', 'app_path':
|
|---|
| 3039 | '/admin/login/?next=/admin/', 'LANGUAGE_CODE': 'en-us'}]</pre></td>
|
|---|
| 3040 | </tr>
|
|---|
| 3041 |
|
|---|
| 3042 | <tr>
|
|---|
| 3043 | <td>kwargs</td>
|
|---|
| 3044 | <td class="code"><pre>{}</pre></td>
|
|---|
| 3045 | </tr>
|
|---|
| 3046 |
|
|---|
| 3047 | <tr>
|
|---|
| 3048 | <td>args</td>
|
|---|
| 3049 | <td class="code"><pre>[]</pre></td>
|
|---|
| 3050 | </tr>
|
|---|
| 3051 |
|
|---|
| 3052 | <tr>
|
|---|
| 3053 | <td>current_app</td>
|
|---|
| 3054 | <td class="code"><pre>'admin'</pre></td>
|
|---|
| 3055 | </tr>
|
|---|
| 3056 |
|
|---|
| 3057 | <tr>
|
|---|
| 3058 | <td>self</td>
|
|---|
| 3059 | <td class="code"><pre><django.template.defaulttags.URLNode object at 0x7f4ab14b7588></pre></td>
|
|---|
| 3060 | </tr>
|
|---|
| 3061 |
|
|---|
| 3062 | <tr>
|
|---|
| 3063 | <td>NoReverseMatch</td>
|
|---|
| 3064 | <td class="code"><pre><class 'django.core.urlresolvers.NoReverseMatch'></pre></td>
|
|---|
| 3065 | </tr>
|
|---|
| 3066 |
|
|---|
| 3067 | <tr>
|
|---|
| 3068 | <td>reverse</td>
|
|---|
| 3069 | <td class="code"><pre><function reverse at 0x7f4ab3e942f0></pre></td>
|
|---|
| 3070 | </tr>
|
|---|
| 3071 |
|
|---|
| 3072 | </tbody>
|
|---|
| 3073 | </table>
|
|---|
| 3074 |
|
|---|
| 3075 | </li>
|
|---|
| 3076 |
|
|---|
| 3077 | <li class="frame django">
|
|---|
| 3078 | <code>/usr/local/lib/python3.4/dist-packages/django/core/urlresolvers.py</code> in <code>reverse</code>
|
|---|
| 3079 |
|
|---|
| 3080 |
|
|---|
| 3081 | <div class="context" id="c139958777836616">
|
|---|
| 3082 |
|
|---|
| 3083 | <ol style="display: none;" start="543" class="pre-context" id="pre139958777836616">
|
|---|
| 3084 |
|
|---|
| 3085 | <li onclick="toggle('pre139958777836616', 'post139958777836616')"><pre> resolved_path = []</pre></li>
|
|---|
| 3086 |
|
|---|
| 3087 | <li onclick="toggle('pre139958777836616', 'post139958777836616')"><pre> ns_pattern = ''</pre></li>
|
|---|
| 3088 |
|
|---|
| 3089 | <li onclick="toggle('pre139958777836616', 'post139958777836616')"><pre> while path:</pre></li>
|
|---|
| 3090 |
|
|---|
| 3091 | <li onclick="toggle('pre139958777836616', 'post139958777836616')"><pre> ns = path.pop()</pre></li>
|
|---|
| 3092 |
|
|---|
| 3093 | <li onclick="toggle('pre139958777836616', 'post139958777836616')"><pre></pre></li>
|
|---|
| 3094 |
|
|---|
| 3095 | <li onclick="toggle('pre139958777836616', 'post139958777836616')"><pre> # Lookup the name to see if it could be an app identifier</pre></li>
|
|---|
| 3096 |
|
|---|
| 3097 | <li onclick="toggle('pre139958777836616', 'post139958777836616')"><pre> try:</pre></li>
|
|---|
| 3098 |
|
|---|
| 3099 | </ol>
|
|---|
| 3100 |
|
|---|
| 3101 | <ol start="550" class="context-line">
|
|---|
| 3102 | <li onclick="toggle('pre139958777836616', 'post139958777836616')"><pre> app_list = resolver.app_dict[ns]</pre> <span>...</span></li></ol>
|
|---|
| 3103 |
|
|---|
| 3104 | <ol style="display: none;" start="551" class="post-context" id="post139958777836616">
|
|---|
| 3105 |
|
|---|
| 3106 | <li onclick="toggle('pre139958777836616', 'post139958777836616')"><pre> # Yes! Path part matches an app in the current Resolver</pre></li>
|
|---|
| 3107 |
|
|---|
| 3108 | <li onclick="toggle('pre139958777836616', 'post139958777836616')"><pre> if current_app and current_app in app_list:</pre></li>
|
|---|
| 3109 |
|
|---|
| 3110 | <li onclick="toggle('pre139958777836616', 'post139958777836616')"><pre> # If we are reversing for a particular app,</pre></li>
|
|---|
| 3111 |
|
|---|
| 3112 | <li onclick="toggle('pre139958777836616', 'post139958777836616')"><pre> # use that namespace</pre></li>
|
|---|
| 3113 |
|
|---|
| 3114 | <li onclick="toggle('pre139958777836616', 'post139958777836616')"><pre> ns = current_app</pre></li>
|
|---|
| 3115 |
|
|---|
| 3116 | <li onclick="toggle('pre139958777836616', 'post139958777836616')"><pre> elif ns not in app_list:</pre></li>
|
|---|
| 3117 |
|
|---|
| 3118 | </ol>
|
|---|
| 3119 |
|
|---|
| 3120 | </div>
|
|---|
| 3121 |
|
|---|
| 3122 |
|
|---|
| 3123 |
|
|---|
| 3124 | <div class="commands">
|
|---|
| 3125 |
|
|---|
| 3126 | <a href="#" onclick="return varToggle(this, '139958777836616')"><span>▶</span> Local vars</a>
|
|---|
| 3127 |
|
|---|
| 3128 | </div>
|
|---|
| 3129 | <table style="display: none;" class="vars" id="v139958777836616">
|
|---|
| 3130 | <thead>
|
|---|
| 3131 | <tr>
|
|---|
| 3132 | <th>Variable</th>
|
|---|
| 3133 | <th>Value</th>
|
|---|
| 3134 | </tr>
|
|---|
| 3135 | </thead>
|
|---|
| 3136 | <tbody>
|
|---|
| 3137 |
|
|---|
| 3138 | <tr>
|
|---|
| 3139 | <td>ns_pattern</td>
|
|---|
| 3140 | <td class="code"><pre>''</pre></td>
|
|---|
| 3141 | </tr>
|
|---|
| 3142 |
|
|---|
| 3143 | <tr>
|
|---|
| 3144 | <td>view</td>
|
|---|
| 3145 | <td class="code"><pre>'index'</pre></td>
|
|---|
| 3146 | </tr>
|
|---|
| 3147 |
|
|---|
| 3148 | <tr>
|
|---|
| 3149 | <td>urlconf</td>
|
|---|
| 3150 | <td class="code"><pre>'perfman.urls'</pre></td>
|
|---|
| 3151 | </tr>
|
|---|
| 3152 |
|
|---|
| 3153 | <tr>
|
|---|
| 3154 | <td>current_app</td>
|
|---|
| 3155 | <td class="code"><pre>'admin'</pre></td>
|
|---|
| 3156 | </tr>
|
|---|
| 3157 |
|
|---|
| 3158 | <tr>
|
|---|
| 3159 | <td>args</td>
|
|---|
| 3160 | <td class="code"><pre>[]</pre></td>
|
|---|
| 3161 | </tr>
|
|---|
| 3162 |
|
|---|
| 3163 | <tr>
|
|---|
| 3164 | <td>parts</td>
|
|---|
| 3165 | <td class="code"><pre>['index', 'admin']</pre></td>
|
|---|
| 3166 | </tr>
|
|---|
| 3167 |
|
|---|
| 3168 | <tr>
|
|---|
| 3169 | <td>viewname</td>
|
|---|
| 3170 | <td class="code"><pre>'admin:index'</pre></td>
|
|---|
| 3171 | </tr>
|
|---|
| 3172 |
|
|---|
| 3173 | <tr>
|
|---|
| 3174 | <td>ns</td>
|
|---|
| 3175 | <td class="code"><pre>'admin'</pre></td>
|
|---|
| 3176 | </tr>
|
|---|
| 3177 |
|
|---|
| 3178 | <tr>
|
|---|
| 3179 | <td>path</td>
|
|---|
| 3180 | <td class="code"><pre>[]</pre></td>
|
|---|
| 3181 | </tr>
|
|---|
| 3182 |
|
|---|
| 3183 | <tr>
|
|---|
| 3184 | <td>resolver</td>
|
|---|
| 3185 | <td class="code"><pre><RegexURLResolver 'perfman.urls' (None:None) ^/></pre></td>
|
|---|
| 3186 | </tr>
|
|---|
| 3187 |
|
|---|
| 3188 | <tr>
|
|---|
| 3189 | <td>kwargs</td>
|
|---|
| 3190 | <td class="code"><pre>{}</pre></td>
|
|---|
| 3191 | </tr>
|
|---|
| 3192 |
|
|---|
| 3193 | <tr>
|
|---|
| 3194 | <td>prefix</td>
|
|---|
| 3195 | <td class="code"><pre>'/'</pre></td>
|
|---|
| 3196 | </tr>
|
|---|
| 3197 |
|
|---|
| 3198 | <tr>
|
|---|
| 3199 | <td>resolved_path</td>
|
|---|
| 3200 | <td class="code"><pre>[]</pre></td>
|
|---|
| 3201 | </tr>
|
|---|
| 3202 |
|
|---|
| 3203 | </tbody>
|
|---|
| 3204 | </table>
|
|---|
| 3205 |
|
|---|
| 3206 | </li>
|
|---|
| 3207 |
|
|---|
| 3208 | <li class="frame django">
|
|---|
| 3209 | <code>/usr/local/lib/python3.4/dist-packages/django/core/urlresolvers.py</code> in <code>app_dict</code>
|
|---|
| 3210 |
|
|---|
| 3211 |
|
|---|
| 3212 | <div class="context" id="c139958777838344">
|
|---|
| 3213 |
|
|---|
| 3214 | <ol style="display: none;" start="345" class="pre-context" id="pre139958777838344">
|
|---|
| 3215 |
|
|---|
| 3216 | <li onclick="toggle('pre139958777838344', 'post139958777838344')"><pre> self._populate()</pre></li>
|
|---|
| 3217 |
|
|---|
| 3218 | <li onclick="toggle('pre139958777838344', 'post139958777838344')"><pre> return self._namespace_dict[language_code]</pre></li>
|
|---|
| 3219 |
|
|---|
| 3220 | <li onclick="toggle('pre139958777838344', 'post139958777838344')"><pre></pre></li>
|
|---|
| 3221 |
|
|---|
| 3222 | <li onclick="toggle('pre139958777838344', 'post139958777838344')"><pre> @property</pre></li>
|
|---|
| 3223 |
|
|---|
| 3224 | <li onclick="toggle('pre139958777838344', 'post139958777838344')"><pre> def app_dict(self):</pre></li>
|
|---|
| 3225 |
|
|---|
| 3226 | <li onclick="toggle('pre139958777838344', 'post139958777838344')"><pre> language_code = get_language()</pre></li>
|
|---|
| 3227 |
|
|---|
| 3228 | <li onclick="toggle('pre139958777838344', 'post139958777838344')"><pre> if language_code not in self._app_dict:</pre></li>
|
|---|
| 3229 |
|
|---|
| 3230 | </ol>
|
|---|
| 3231 |
|
|---|
| 3232 | <ol start="352" class="context-line">
|
|---|
| 3233 | <li onclick="toggle('pre139958777838344', 'post139958777838344')"><pre> self._populate()</pre> <span>...</span></li></ol>
|
|---|
| 3234 |
|
|---|
| 3235 | <ol style="display: none;" start="353" class="post-context" id="post139958777838344">
|
|---|
| 3236 |
|
|---|
| 3237 | <li onclick="toggle('pre139958777838344', 'post139958777838344')"><pre> return self._app_dict[language_code]</pre></li>
|
|---|
| 3238 |
|
|---|
| 3239 | <li onclick="toggle('pre139958777838344', 'post139958777838344')"><pre></pre></li>
|
|---|
| 3240 |
|
|---|
| 3241 | <li onclick="toggle('pre139958777838344', 'post139958777838344')"><pre> def _is_callback(self, name):</pre></li>
|
|---|
| 3242 |
|
|---|
| 3243 | <li onclick="toggle('pre139958777838344', 'post139958777838344')"><pre> if not self._populated:</pre></li>
|
|---|
| 3244 |
|
|---|
| 3245 | <li onclick="toggle('pre139958777838344', 'post139958777838344')"><pre> self._populate()</pre></li>
|
|---|
| 3246 |
|
|---|
| 3247 | <li onclick="toggle('pre139958777838344', 'post139958777838344')"><pre> return name in self._callback_strs</pre></li>
|
|---|
| 3248 |
|
|---|
| 3249 | </ol>
|
|---|
| 3250 |
|
|---|
| 3251 | </div>
|
|---|
| 3252 |
|
|---|
| 3253 |
|
|---|
| 3254 |
|
|---|
| 3255 | <div class="commands">
|
|---|
| 3256 |
|
|---|
| 3257 | <a href="#" onclick="return varToggle(this, '139958777838344')"><span>▶</span> Local vars</a>
|
|---|
| 3258 |
|
|---|
| 3259 | </div>
|
|---|
| 3260 | <table style="display: none;" class="vars" id="v139958777838344">
|
|---|
| 3261 | <thead>
|
|---|
| 3262 | <tr>
|
|---|
| 3263 | <th>Variable</th>
|
|---|
| 3264 | <th>Value</th>
|
|---|
| 3265 | </tr>
|
|---|
| 3266 | </thead>
|
|---|
| 3267 | <tbody>
|
|---|
| 3268 |
|
|---|
| 3269 | <tr>
|
|---|
| 3270 | <td>language_code</td>
|
|---|
| 3271 | <td class="code"><pre>'en-us'</pre></td>
|
|---|
| 3272 | </tr>
|
|---|
| 3273 |
|
|---|
| 3274 | <tr>
|
|---|
| 3275 | <td>self</td>
|
|---|
| 3276 | <td class="code"><pre><RegexURLResolver 'perfman.urls' (None:None) ^/></pre></td>
|
|---|
| 3277 | </tr>
|
|---|
| 3278 |
|
|---|
| 3279 | </tbody>
|
|---|
| 3280 | </table>
|
|---|
| 3281 |
|
|---|
| 3282 | </li>
|
|---|
| 3283 |
|
|---|
| 3284 | <li class="frame django">
|
|---|
| 3285 | <code>/usr/local/lib/python3.4/dist-packages/django/core/urlresolvers.py</code> in <code>_populate</code>
|
|---|
| 3286 |
|
|---|
| 3287 |
|
|---|
| 3288 | <div class="context" id="c139958778242696">
|
|---|
| 3289 |
|
|---|
| 3290 | <ol style="display: none;" start="291" class="pre-context" id="pre139958778242696">
|
|---|
| 3291 |
|
|---|
| 3292 | <li onclick="toggle('pre139958778242696', 'post139958778242696')"><pre> callback = callback.func</pre></li>
|
|---|
| 3293 |
|
|---|
| 3294 | <li onclick="toggle('pre139958778242696', 'post139958778242696')"><pre></pre></li>
|
|---|
| 3295 |
|
|---|
| 3296 | <li onclick="toggle('pre139958778242696', 'post139958778242696')"><pre> if not hasattr(callback, '__name__'):</pre></li>
|
|---|
| 3297 |
|
|---|
| 3298 | <li onclick="toggle('pre139958778242696', 'post139958778242696')"><pre> lookup_str = callback.__module__ + "." + callback.__class__.__name__</pre></li>
|
|---|
| 3299 |
|
|---|
| 3300 | <li onclick="toggle('pre139958778242696', 'post139958778242696')"><pre> else:</pre></li>
|
|---|
| 3301 |
|
|---|
| 3302 | <li onclick="toggle('pre139958778242696', 'post139958778242696')"><pre> lookup_str = callback.__module__ + "." + callback.__name__</pre></li>
|
|---|
| 3303 |
|
|---|
| 3304 | <li onclick="toggle('pre139958778242696', 'post139958778242696')"><pre> self._callback_strs.add(lookup_str)</pre></li>
|
|---|
| 3305 |
|
|---|
| 3306 | </ol>
|
|---|
| 3307 |
|
|---|
| 3308 | <ol start="298" class="context-line">
|
|---|
| 3309 | <li onclick="toggle('pre139958778242696', 'post139958778242696')"><pre> p_pattern = pattern.regex.pattern</pre> <span>...</span></li></ol>
|
|---|
| 3310 |
|
|---|
| 3311 | <ol style="display: none;" start="299" class="post-context" id="post139958778242696">
|
|---|
| 3312 |
|
|---|
| 3313 | <li onclick="toggle('pre139958778242696', 'post139958778242696')"><pre> if p_pattern.startswith('^'):</pre></li>
|
|---|
| 3314 |
|
|---|
| 3315 | <li onclick="toggle('pre139958778242696', 'post139958778242696')"><pre> p_pattern = p_pattern[1:]</pre></li>
|
|---|
| 3316 |
|
|---|
| 3317 | <li onclick="toggle('pre139958778242696', 'post139958778242696')"><pre> if isinstance(pattern, RegexURLResolver):</pre></li>
|
|---|
| 3318 |
|
|---|
| 3319 | <li onclick="toggle('pre139958778242696', 'post139958778242696')"><pre> if pattern.namespace:</pre></li>
|
|---|
| 3320 |
|
|---|
| 3321 | <li onclick="toggle('pre139958778242696', 'post139958778242696')"><pre> namespaces[pattern.namespace] = (p_pattern, pattern)</pre></li>
|
|---|
| 3322 |
|
|---|
| 3323 | <li onclick="toggle('pre139958778242696', 'post139958778242696')"><pre> if pattern.app_name:</pre></li>
|
|---|
| 3324 |
|
|---|
| 3325 | </ol>
|
|---|
| 3326 |
|
|---|
| 3327 | </div>
|
|---|
| 3328 |
|
|---|
| 3329 |
|
|---|
| 3330 |
|
|---|
| 3331 | <div class="commands">
|
|---|
| 3332 |
|
|---|
| 3333 | <a href="#" onclick="return varToggle(this, '139958778242696')"><span>▶</span> Local vars</a>
|
|---|
| 3334 |
|
|---|
| 3335 | </div>
|
|---|
| 3336 | <table style="display: none;" class="vars" id="v139958778242696">
|
|---|
| 3337 | <thead>
|
|---|
| 3338 | <tr>
|
|---|
| 3339 | <th>Variable</th>
|
|---|
| 3340 | <th>Value</th>
|
|---|
| 3341 | </tr>
|
|---|
| 3342 | </thead>
|
|---|
| 3343 | <tbody>
|
|---|
| 3344 |
|
|---|
| 3345 | <tr>
|
|---|
| 3346 | <td>language_code</td>
|
|---|
| 3347 | <td class="code"><pre>'en-us'</pre></td>
|
|---|
| 3348 | </tr>
|
|---|
| 3349 |
|
|---|
| 3350 | <tr>
|
|---|
| 3351 | <td>self</td>
|
|---|
| 3352 | <td class="code"><pre><RegexURLResolver 'perfman.urls' (None:None) ^/></pre></td>
|
|---|
| 3353 | </tr>
|
|---|
| 3354 |
|
|---|
| 3355 | <tr>
|
|---|
| 3356 | <td>lookups</td>
|
|---|
| 3357 | <td class="code"><pre><MultiValueDict: {}></pre></td>
|
|---|
| 3358 | </tr>
|
|---|
| 3359 |
|
|---|
| 3360 | <tr>
|
|---|
| 3361 | <td>namespaces</td>
|
|---|
| 3362 | <td class="code"><pre>{}</pre></td>
|
|---|
| 3363 | </tr>
|
|---|
| 3364 |
|
|---|
| 3365 | <tr>
|
|---|
| 3366 | <td>pattern</td>
|
|---|
| 3367 | <td class="code"><pre>('^accounts/login/$',
|
|---|
| 3368 | 'django.contrib.auth.views.login',
|
|---|
| 3369 | {'template_name': 'auth.html'})</pre></td>
|
|---|
| 3370 | </tr>
|
|---|
| 3371 |
|
|---|
| 3372 | <tr>
|
|---|
| 3373 | <td>apps</td>
|
|---|
| 3374 | <td class="code"><pre>{}</pre></td>
|
|---|
| 3375 | </tr>
|
|---|
| 3376 |
|
|---|
| 3377 | </tbody>
|
|---|
| 3378 | </table>
|
|---|
| 3379 |
|
|---|
| 3380 | </li>
|
|---|
| 3381 |
|
|---|
| 3382 | </ul>
|
|---|
| 3383 | </div>
|
|---|
| 3384 |
|
|---|
| 3385 | <form action="http://dpaste.com/" name="pasteform" id="pasteform" method="post">
|
|---|
| 3386 |
|
|---|
| 3387 | <div style="display: none;" id="pastebinTraceback" class="pastebin">
|
|---|
| 3388 | <input name="language" value="PythonConsole" type="hidden">
|
|---|
| 3389 | <input name="title" value="AttributeError at /admin/login/" type="hidden">
|
|---|
| 3390 | <input name="source" value="Django Dpaste Agent" type="hidden">
|
|---|
| 3391 | <input name="poster" value="Django" type="hidden">
|
|---|
| 3392 | <textarea name="content" id="traceback_area" cols="140" rows="25">Environment:
|
|---|
| 3393 |
|
|---|
| 3394 |
|
|---|
| 3395 | Request
|
|---|
| 3396 | Method: GET
|
|---|
| 3397 | Request URL: http://127.0.0.1:8000/admin/login/?next=/admin/
|
|---|
| 3398 |
|
|---|
| 3399 | Django Version: 1.8.2
|
|---|
| 3400 | Python Version: 3.4.0
|
|---|
| 3401 | Installed Applications:
|
|---|
| 3402 | ('django.contrib.admin',
|
|---|
| 3403 | 'django.contrib.auth',
|
|---|
| 3404 | 'django.contrib.contenttypes',
|
|---|
| 3405 | 'django.contrib.sessions',
|
|---|
| 3406 | 'django.contrib.messages',
|
|---|
| 3407 | 'django.contrib.staticfiles',
|
|---|
| 3408 | 'hrm')
|
|---|
| 3409 | Installed Middleware:
|
|---|
| 3410 | ('django.contrib.sessions.middleware.SessionMiddleware',
|
|---|
| 3411 | 'django.middleware.common.CommonMiddleware',
|
|---|
| 3412 | 'django.middleware.csrf.CsrfViewMiddleware',
|
|---|
| 3413 | 'django.contrib.auth.middleware.AuthenticationMiddleware',
|
|---|
| 3414 | 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
|
|---|
| 3415 | 'django.contrib.messages.middleware.MessageMiddleware',
|
|---|
| 3416 | 'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
|---|
| 3417 | 'django.middleware.security.SecurityMiddleware')
|
|---|
| 3418 |
|
|---|
| 3419 |
|
|---|
| 3420 | Template error:
|
|---|
| 3421 | In template
|
|---|
| 3422 | /usr/local/lib/python3.4/dist-packages/django/contrib/admin/templates/admin/base_site.html,
|
|---|
| 3423 | error at line 6
|
|---|
| 3424 | 'tuple' object has no attribute 'regex'
|
|---|
| 3425 |
|
|---|
| 3426 | 1 : {% extends "admin/base.html" %}
|
|---|
| 3427 |
|
|---|
| 3428 |
|
|---|
| 3429 |
|
|---|
| 3430 | 2 :
|
|---|
| 3431 |
|
|---|
| 3432 |
|
|---|
| 3433 |
|
|---|
| 3434 | 3 : {% block title %}{{ title }} | {{ site_title|default:_('Django
|
|---|
| 3435 | site admin') }}{% endblock %}
|
|---|
| 3436 |
|
|---|
| 3437 |
|
|---|
| 3438 |
|
|---|
| 3439 | 4 :
|
|---|
| 3440 |
|
|---|
| 3441 |
|
|---|
| 3442 |
|
|---|
| 3443 | 5 : {% block branding %}
|
|---|
| 3444 |
|
|---|
| 3445 |
|
|---|
| 3446 |
|
|---|
| 3447 | 6 : <h1 id="site-name"><a href=" {% url 'admin:index' %}
|
|---|
| 3448 | ">{{ site_header|default:_('Django administration')
|
|---|
| 3449 | }}</a></h1>
|
|---|
| 3450 |
|
|---|
| 3451 |
|
|---|
| 3452 |
|
|---|
| 3453 | 7 : {% endblock %}
|
|---|
| 3454 |
|
|---|
| 3455 |
|
|---|
| 3456 |
|
|---|
| 3457 | 8 :
|
|---|
| 3458 |
|
|---|
| 3459 |
|
|---|
| 3460 |
|
|---|
| 3461 | 9 : {% block nav-global %}{% endblock %}
|
|---|
| 3462 |
|
|---|
| 3463 |
|
|---|
| 3464 |
|
|---|
| 3465 | 10 :
|
|---|
| 3466 |
|
|---|
| 3467 | Traceback:
|
|---|
| 3468 | File
|
|---|
| 3469 | "/usr/local/lib/python3.4/dist-packages/django/core/handlers/base.py" in
|
|---|
| 3470 | get_response
|
|---|
| 3471 | 164. response = response.render()
|
|---|
| 3472 | File
|
|---|
| 3473 | "/usr/local/lib/python3.4/dist-packages/django/template/response.py" in
|
|---|
| 3474 | render
|
|---|
| 3475 | 158. self.content = self.rendered_content
|
|---|
| 3476 | File
|
|---|
| 3477 | "/usr/local/lib/python3.4/dist-packages/django/template/response.py" in
|
|---|
| 3478 | rendered_content
|
|---|
| 3479 | 135. content = template.render(context, self._request)
|
|---|
| 3480 | File
|
|---|
| 3481 | "/usr/local/lib/python3.4/dist-packages/django/template/backends/django.py"
|
|---|
| 3482 | in render
|
|---|
| 3483 | 74. return self.template.render(context)
|
|---|
| 3484 | File "/usr/local/lib/python3.4/dist-packages/django/template/base.py" in
|
|---|
| 3485 | render
|
|---|
| 3486 | 209. return self._render(context)
|
|---|
| 3487 | File "/usr/local/lib/python3.4/dist-packages/django/template/base.py" in
|
|---|
| 3488 | _render
|
|---|
| 3489 | 201. return self.nodelist.render(context)
|
|---|
| 3490 | File "/usr/local/lib/python3.4/dist-packages/django/template/base.py" in
|
|---|
| 3491 | render
|
|---|
| 3492 | 903. bit = self.render_node(node, context)
|
|---|
| 3493 | File "/usr/local/lib/python3.4/dist-packages/django/template/debug.py"
|
|---|
| 3494 | in render_node
|
|---|
| 3495 | 79. return node.render(context)
|
|---|
| 3496 | File
|
|---|
| 3497 | "/usr/local/lib/python3.4/dist-packages/django/template/loader_tags.py"
|
|---|
| 3498 | in render
|
|---|
| 3499 | 135. return compiled_parent._render(context)
|
|---|
| 3500 | File "/usr/local/lib/python3.4/dist-packages/django/template/base.py" in
|
|---|
| 3501 | _render
|
|---|
| 3502 | 201. return self.nodelist.render(context)
|
|---|
| 3503 | File "/usr/local/lib/python3.4/dist-packages/django/template/base.py" in
|
|---|
| 3504 | render
|
|---|
| 3505 | 903. bit = self.render_node(node, context)
|
|---|
| 3506 | File "/usr/local/lib/python3.4/dist-packages/django/template/debug.py"
|
|---|
| 3507 | in render_node
|
|---|
| 3508 | 79. return node.render(context)
|
|---|
| 3509 | File
|
|---|
| 3510 | "/usr/local/lib/python3.4/dist-packages/django/template/loader_tags.py"
|
|---|
| 3511 | in render
|
|---|
| 3512 | 135. return compiled_parent._render(context)
|
|---|
| 3513 | File "/usr/local/lib/python3.4/dist-packages/django/template/base.py" in
|
|---|
| 3514 | _render
|
|---|
| 3515 | 201. return self.nodelist.render(context)
|
|---|
| 3516 | File "/usr/local/lib/python3.4/dist-packages/django/template/base.py" in
|
|---|
| 3517 | render
|
|---|
| 3518 | 903. bit = self.render_node(node, context)
|
|---|
| 3519 | File "/usr/local/lib/python3.4/dist-packages/django/template/debug.py"
|
|---|
| 3520 | in render_node
|
|---|
| 3521 | 79. return node.render(context)
|
|---|
| 3522 | File
|
|---|
| 3523 | "/usr/local/lib/python3.4/dist-packages/django/template/defaulttags.py"
|
|---|
| 3524 | in render
|
|---|
| 3525 | 329. return nodelist.render(context)
|
|---|
| 3526 | File "/usr/local/lib/python3.4/dist-packages/django/template/base.py" in
|
|---|
| 3527 | render
|
|---|
| 3528 | 903. bit = self.render_node(node, context)
|
|---|
| 3529 | File "/usr/local/lib/python3.4/dist-packages/django/template/debug.py"
|
|---|
| 3530 | in render_node
|
|---|
| 3531 | 79. return node.render(context)
|
|---|
| 3532 | File
|
|---|
| 3533 | "/usr/local/lib/python3.4/dist-packages/django/template/loader_tags.py"
|
|---|
| 3534 | in render
|
|---|
| 3535 | 65. result = block.nodelist.render(context)
|
|---|
| 3536 | File "/usr/local/lib/python3.4/dist-packages/django/template/base.py" in
|
|---|
| 3537 | render
|
|---|
| 3538 | 903. bit = self.render_node(node, context)
|
|---|
| 3539 | File "/usr/local/lib/python3.4/dist-packages/django/template/debug.py"
|
|---|
| 3540 | in render_node
|
|---|
| 3541 | 79. return node.render(context)
|
|---|
| 3542 | File
|
|---|
| 3543 | "/usr/local/lib/python3.4/dist-packages/django/template/defaulttags.py"
|
|---|
| 3544 | in render
|
|---|
| 3545 | 493. url = reverse(view_name, args=args, kwargs=kwargs,
|
|---|
| 3546 | current_app=current_app)
|
|---|
| 3547 | File
|
|---|
| 3548 | "/usr/local/lib/python3.4/dist-packages/django/core/urlresolvers.py" in
|
|---|
| 3549 | reverse
|
|---|
| 3550 | 550. app_list = resolver.app_dict[ns]
|
|---|
| 3551 | File
|
|---|
| 3552 | "/usr/local/lib/python3.4/dist-packages/django/core/urlresolvers.py" in
|
|---|
| 3553 | app_dict
|
|---|
| 3554 | 352. self._populate()
|
|---|
| 3555 | File
|
|---|
| 3556 | "/usr/local/lib/python3.4/dist-packages/django/core/urlresolvers.py" in
|
|---|
| 3557 | _populate
|
|---|
| 3558 | 298. p_pattern = pattern.regex.pattern
|
|---|
| 3559 |
|
|---|
| 3560 | Exception Type: AttributeError at /admin/login/
|
|---|
| 3561 | Exception Value: 'tuple' object has no attribute 'regex'
|
|---|
| 3562 | </textarea>
|
|---|
| 3563 | <br><br>
|
|---|
| 3564 | <input value="Share this traceback on a public Web site" type="submit">
|
|---|
| 3565 | </div>
|
|---|
| 3566 | </form>
|
|---|
| 3567 | </div>
|
|---|
| 3568 |
|
|---|
| 3569 |
|
|---|
| 3570 |
|
|---|
| 3571 | <div id="requestinfo">
|
|---|
| 3572 | <h2>Request information</h2>
|
|---|
| 3573 |
|
|---|
| 3574 |
|
|---|
| 3575 | <h3 id="get-info">GET</h3>
|
|---|
| 3576 |
|
|---|
| 3577 | <table class="req">
|
|---|
| 3578 | <thead>
|
|---|
| 3579 | <tr>
|
|---|
| 3580 | <th>Variable</th>
|
|---|
| 3581 | <th>Value</th>
|
|---|
| 3582 | </tr>
|
|---|
| 3583 | </thead>
|
|---|
| 3584 | <tbody>
|
|---|
| 3585 |
|
|---|
| 3586 | <tr>
|
|---|
| 3587 | <td>next</td>
|
|---|
| 3588 | <td class="code"><pre>'/admin/'</pre></td>
|
|---|
| 3589 | </tr>
|
|---|
| 3590 |
|
|---|
| 3591 | </tbody>
|
|---|
| 3592 | </table>
|
|---|
| 3593 |
|
|---|
| 3594 |
|
|---|
| 3595 | <h3 id="post-info">POST</h3>
|
|---|
| 3596 |
|
|---|
| 3597 | <p>No POST data</p>
|
|---|
| 3598 |
|
|---|
| 3599 | <h3 id="files-info">FILES</h3>
|
|---|
| 3600 |
|
|---|
| 3601 | <p>No FILES data</p>
|
|---|
| 3602 |
|
|---|
| 3603 |
|
|---|
| 3604 |
|
|---|
| 3605 | <h3 id="cookie-info">COOKIES</h3>
|
|---|
| 3606 |
|
|---|
| 3607 | <table class="req">
|
|---|
| 3608 | <thead>
|
|---|
| 3609 | <tr>
|
|---|
| 3610 | <th>Variable</th>
|
|---|
| 3611 | <th>Value</th>
|
|---|
| 3612 | </tr>
|
|---|
| 3613 | </thead>
|
|---|
| 3614 | <tbody>
|
|---|
| 3615 |
|
|---|
| 3616 | <tr>
|
|---|
| 3617 | <td>csrftoken</td>
|
|---|
| 3618 | <td class="code"><pre>'BY2pIROTJeFofa1EcjSL1pekPrhjaIak'</pre></td>
|
|---|
| 3619 | </tr>
|
|---|
| 3620 |
|
|---|
| 3621 | <tr>
|
|---|
| 3622 | <td>sessionid</td>
|
|---|
| 3623 | <td class="code"><pre>'ug3xxoy8os5ypw3hg3v8pdmmmz35pp22'</pre></td>
|
|---|
| 3624 | </tr>
|
|---|
| 3625 |
|
|---|
| 3626 | </tbody>
|
|---|
| 3627 | </table>
|
|---|
| 3628 |
|
|---|
| 3629 |
|
|---|
| 3630 | <h3 id="meta-info">META</h3>
|
|---|
| 3631 | <table class="req">
|
|---|
| 3632 | <thead>
|
|---|
| 3633 | <tr>
|
|---|
| 3634 | <th>Variable</th>
|
|---|
| 3635 | <th>Value</th>
|
|---|
| 3636 | </tr>
|
|---|
| 3637 | </thead>
|
|---|
| 3638 | <tbody>
|
|---|
| 3639 |
|
|---|
| 3640 | <tr>
|
|---|
| 3641 | <td>wsgi.errors</td>
|
|---|
| 3642 | <td class="code"><pre><_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'></pre></td>
|
|---|
| 3643 | </tr>
|
|---|
| 3644 |
|
|---|
| 3645 | <tr>
|
|---|
| 3646 | <td>LC_IDENTIFICATION</td>
|
|---|
| 3647 | <td class="code"><pre>'am_ET'</pre></td>
|
|---|
| 3648 | </tr>
|
|---|
| 3649 |
|
|---|
| 3650 | <tr>
|
|---|
| 3651 | <td>XDG_RUNTIME_DIR</td>
|
|---|
| 3652 | <td class="code"><pre>'/run/user/1001'</pre></td>
|
|---|
| 3653 | </tr>
|
|---|
| 3654 |
|
|---|
| 3655 | <tr>
|
|---|
| 3656 | <td>JDK_HOME</td>
|
|---|
| 3657 | <td class="code"><pre>'/usr/java/jdk1.6.0_30'</pre></td>
|
|---|
| 3658 | </tr>
|
|---|
| 3659 |
|
|---|
| 3660 | <tr>
|
|---|
| 3661 | <td>LANG</td>
|
|---|
| 3662 | <td class="code"><pre>'en_US.UTF-8'</pre></td>
|
|---|
| 3663 | </tr>
|
|---|
| 3664 |
|
|---|
| 3665 | <tr>
|
|---|
| 3666 | <td>SSH_AUTH_SOCK</td>
|
|---|
| 3667 | <td class="code"><pre>'/run/user/1001/keyring-sfoVTK/ssh'</pre></td>
|
|---|
| 3668 | </tr>
|
|---|
| 3669 |
|
|---|
| 3670 | <tr>
|
|---|
| 3671 | <td>REQUEST_METHOD</td>
|
|---|
| 3672 | <td class="code"><pre>'GET'</pre></td>
|
|---|
| 3673 | </tr>
|
|---|
| 3674 |
|
|---|
| 3675 | <tr>
|
|---|
| 3676 | <td>HTTP_ACCEPT_ENCODING</td>
|
|---|
| 3677 | <td class="code"><pre>'gzip, deflate'</pre></td>
|
|---|
| 3678 | </tr>
|
|---|
| 3679 |
|
|---|
| 3680 | <tr>
|
|---|
| 3681 | <td>HTTP_USER_AGENT</td>
|
|---|
| 3682 | <td class="code"><pre>'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0'</pre></td>
|
|---|
| 3683 | </tr>
|
|---|
| 3684 |
|
|---|
| 3685 | <tr>
|
|---|
| 3686 | <td>LC_MEASUREMENT</td>
|
|---|
| 3687 | <td class="code"><pre>'am_ET'</pre></td>
|
|---|
| 3688 | </tr>
|
|---|
| 3689 |
|
|---|
| 3690 | <tr>
|
|---|
| 3691 | <td>LC_PAPER</td>
|
|---|
| 3692 | <td class="code"><pre>'am_ET'</pre></td>
|
|---|
| 3693 | </tr>
|
|---|
| 3694 |
|
|---|
| 3695 | <tr>
|
|---|
| 3696 | <td>CONTENT_TYPE</td>
|
|---|
| 3697 | <td class="code"><pre>'text/plain'</pre></td>
|
|---|
| 3698 | </tr>
|
|---|
| 3699 |
|
|---|
| 3700 | <tr>
|
|---|
| 3701 | <td>SHELL</td>
|
|---|
| 3702 | <td class="code"><pre>'/bin/bash'</pre></td>
|
|---|
| 3703 | </tr>
|
|---|
| 3704 |
|
|---|
| 3705 | <tr>
|
|---|
| 3706 | <td>HOME</td>
|
|---|
| 3707 | <td class="code"><pre>'/home/yidnekachew'</pre></td>
|
|---|
| 3708 | </tr>
|
|---|
| 3709 |
|
|---|
| 3710 | <tr>
|
|---|
| 3711 | <td>LOGNAME</td>
|
|---|
| 3712 | <td class="code"><pre>'yidnekachew'</pre></td>
|
|---|
| 3713 | </tr>
|
|---|
| 3714 |
|
|---|
| 3715 | <tr>
|
|---|
| 3716 | <td>PAGA_ENC_ITERATIONS</td>
|
|---|
| 3717 | <td class="code"><pre>'1000'</pre></td>
|
|---|
| 3718 | </tr>
|
|---|
| 3719 |
|
|---|
| 3720 | <tr>
|
|---|
| 3721 | <td>PYTHONPATH</td>
|
|---|
| 3722 | <td class="code"><pre>'/home/yidnekachew/Projects/Django/perfman2'</pre></td>
|
|---|
| 3723 | </tr>
|
|---|
| 3724 |
|
|---|
| 3725 | <tr>
|
|---|
| 3726 | <td>LC_TIME</td>
|
|---|
| 3727 | <td class="code"><pre>'am_ET'</pre></td>
|
|---|
| 3728 | </tr>
|
|---|
| 3729 |
|
|---|
| 3730 | <tr>
|
|---|
| 3731 | <td>COMPIZ_BIN_PATH</td>
|
|---|
| 3732 | <td class="code"><pre>'/usr/bin/'</pre></td>
|
|---|
| 3733 | </tr>
|
|---|
| 3734 |
|
|---|
| 3735 | <tr>
|
|---|
| 3736 | <td>LC_MONETARY</td>
|
|---|
| 3737 | <td class="code"><pre>'am_ET'</pre></td>
|
|---|
| 3738 | </tr>
|
|---|
| 3739 |
|
|---|
| 3740 | <tr>
|
|---|
| 3741 | <td>GNOME_KEYRING_CONTROL</td>
|
|---|
| 3742 | <td class="code"><pre>'/run/user/1001/keyring-sfoVTK'</pre></td>
|
|---|
| 3743 | </tr>
|
|---|
| 3744 |
|
|---|
| 3745 | <tr>
|
|---|
| 3746 | <td>XDG_VTNR</td>
|
|---|
| 3747 | <td class="code"><pre>'7'</pre></td>
|
|---|
| 3748 | </tr>
|
|---|
| 3749 |
|
|---|
| 3750 | <tr>
|
|---|
| 3751 | <td>COMPIZ_CONFIG_PROFILE</td>
|
|---|
| 3752 | <td class="code"><pre>'ubuntu'</pre></td>
|
|---|
| 3753 | </tr>
|
|---|
| 3754 |
|
|---|
| 3755 | <tr>
|
|---|
| 3756 | <td>HTTP_HOST</td>
|
|---|
| 3757 | <td class="code"><pre>'127.0.0.1:8000'</pre></td>
|
|---|
| 3758 | </tr>
|
|---|
| 3759 |
|
|---|
| 3760 | <tr>
|
|---|
| 3761 | <td>SESSION_MANAGER</td>
|
|---|
| 3762 | <td class="code"><pre>'local/zkassa:@/tmp/.ICE-unix/3168,unix/zkassa:/tmp/.ICE-unix/3168'</pre></td>
|
|---|
| 3763 | </tr>
|
|---|
| 3764 |
|
|---|
| 3765 | <tr>
|
|---|
| 3766 | <td>IM_CONFIG_PHASE</td>
|
|---|
| 3767 | <td class="code"><pre>'1'</pre></td>
|
|---|
| 3768 | </tr>
|
|---|
| 3769 |
|
|---|
| 3770 | <tr>
|
|---|
| 3771 | <td>LC_TELEPHONE</td>
|
|---|
| 3772 | <td class="code"><pre>'am_ET'</pre></td>
|
|---|
| 3773 | </tr>
|
|---|
| 3774 |
|
|---|
| 3775 | <tr>
|
|---|
| 3776 | <td>XDG_GREETER_DATA_DIR</td>
|
|---|
| 3777 | <td class="code"><pre>'/var/lib/lightdm-data/yidnekachew'</pre></td>
|
|---|
| 3778 | </tr>
|
|---|
| 3779 |
|
|---|
| 3780 | <tr>
|
|---|
| 3781 | <td>GIO_LAUNCHED_DESKTOP_FILE_PID</td>
|
|---|
| 3782 | <td class="code"><pre>'4155'</pre></td>
|
|---|
| 3783 | </tr>
|
|---|
| 3784 |
|
|---|
| 3785 | <tr>
|
|---|
| 3786 | <td>DESKTOP_SESSION</td>
|
|---|
| 3787 | <td class="code"><pre>'ubuntu'</pre></td>
|
|---|
| 3788 | </tr>
|
|---|
| 3789 |
|
|---|
| 3790 | <tr>
|
|---|
| 3791 | <td>wsgi.run_once</td>
|
|---|
| 3792 | <td class="code"><pre>False</pre></td>
|
|---|
| 3793 | </tr>
|
|---|
| 3794 |
|
|---|
| 3795 | <tr>
|
|---|
| 3796 | <td>wsgi.file_wrapper</td>
|
|---|
| 3797 | <td class="code"><pre>''</pre></td>
|
|---|
| 3798 | </tr>
|
|---|
| 3799 |
|
|---|
| 3800 | <tr>
|
|---|
| 3801 | <td>wsgi.url_scheme</td>
|
|---|
| 3802 | <td class="code"><pre>'http'</pre></td>
|
|---|
| 3803 | </tr>
|
|---|
| 3804 |
|
|---|
| 3805 | <tr>
|
|---|
| 3806 | <td>SCRIPT_NAME</td>
|
|---|
| 3807 | <td class="code"><pre>''</pre></td>
|
|---|
| 3808 | </tr>
|
|---|
| 3809 |
|
|---|
| 3810 | <tr>
|
|---|
| 3811 | <td>XDG_DATA_DIRS</td>
|
|---|
| 3812 | <td class="code"><pre>'/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/'</pre></td>
|
|---|
| 3813 | </tr>
|
|---|
| 3814 |
|
|---|
| 3815 | <tr>
|
|---|
| 3816 | <td>UPSTART_SESSION</td>
|
|---|
| 3817 | <td class="code"><pre>'unix:abstract=/com/ubuntu/upstart-session/1001/2954'</pre></td>
|
|---|
| 3818 | </tr>
|
|---|
| 3819 |
|
|---|
| 3820 | <tr>
|
|---|
| 3821 | <td>DBUS_SESSION_BUS_ADDRESS</td>
|
|---|
| 3822 | <td class="code"><pre>'unix:abstract=/tmp/dbus-WXORzVO6wA'</pre></td>
|
|---|
| 3823 | </tr>
|
|---|
| 3824 |
|
|---|
| 3825 | <tr>
|
|---|
| 3826 | <td>TZ</td>
|
|---|
| 3827 | <td class="code"><pre>'UTC'</pre></td>
|
|---|
| 3828 | </tr>
|
|---|
| 3829 |
|
|---|
| 3830 | <tr>
|
|---|
| 3831 | <td>XFILESEARCHPATH</td>
|
|---|
| 3832 | <td class="code"><pre>'/usr/dt/app-defaults/%L/Dt'</pre></td>
|
|---|
| 3833 | </tr>
|
|---|
| 3834 |
|
|---|
| 3835 | <tr>
|
|---|
| 3836 | <td>wsgi.multithread</td>
|
|---|
| 3837 | <td class="code"><pre>True</pre></td>
|
|---|
| 3838 | </tr>
|
|---|
| 3839 |
|
|---|
| 3840 | <tr>
|
|---|
| 3841 | <td>GRAILS_HOME</td>
|
|---|
| 3842 | <td class="code"><pre>'/opt/grails-2.3.11'</pre></td>
|
|---|
| 3843 | </tr>
|
|---|
| 3844 |
|
|---|
| 3845 | <tr>
|
|---|
| 3846 | <td>JAVA_HOME</td>
|
|---|
| 3847 | <td class="code"><pre>'/usr/java/jdk1.6.0_30'</pre></td>
|
|---|
| 3848 | </tr>
|
|---|
| 3849 |
|
|---|
| 3850 | <tr>
|
|---|
| 3851 | <td>HTTP_ACCEPT_LANGUAGE</td>
|
|---|
| 3852 | <td class="code"><pre>'am,en-US;q=0.7,en;q=0.3'</pre></td>
|
|---|
| 3853 | </tr>
|
|---|
| 3854 |
|
|---|
| 3855 | <tr>
|
|---|
| 3856 | <td>PYCHARM_HOSTED</td>
|
|---|
| 3857 | <td class="code"><pre>'1'</pre></td>
|
|---|
| 3858 | </tr>
|
|---|
| 3859 |
|
|---|
| 3860 | <tr>
|
|---|
| 3861 | <td>XDG_SESSION_ID</td>
|
|---|
| 3862 | <td class="code"><pre>'c5'</pre></td>
|
|---|
| 3863 | </tr>
|
|---|
| 3864 |
|
|---|
| 3865 | <tr>
|
|---|
| 3866 | <td>MANDATORY_PATH</td>
|
|---|
| 3867 | <td class="code"><pre>'/usr/share/gconf/ubuntu.mandatory.path'</pre></td>
|
|---|
| 3868 | </tr>
|
|---|
| 3869 |
|
|---|
| 3870 | <tr>
|
|---|
| 3871 | <td>XDG_SESSION_PATH</td>
|
|---|
| 3872 | <td class="code"><pre>'/org/freedesktop/DisplayManager/Session0'</pre></td>
|
|---|
| 3873 | </tr>
|
|---|
| 3874 |
|
|---|
| 3875 | <tr>
|
|---|
| 3876 | <td>XDG_CONFIG_DIRS</td>
|
|---|
| 3877 | <td class="code"><pre>'/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg'</pre></td>
|
|---|
| 3878 | </tr>
|
|---|
| 3879 |
|
|---|
| 3880 | <tr>
|
|---|
| 3881 | <td>PAGA_ENC_ALGORITHM</td>
|
|---|
| 3882 | <td class="code"><pre>'PBEWithMD5AndTripleDES'</pre></td>
|
|---|
| 3883 | </tr>
|
|---|
| 3884 |
|
|---|
| 3885 | <tr>
|
|---|
| 3886 | <td>XMODIFIERS</td>
|
|---|
| 3887 | <td class="code"><pre>'@im=ibus'</pre></td>
|
|---|
| 3888 | </tr>
|
|---|
| 3889 |
|
|---|
| 3890 | <tr>
|
|---|
| 3891 | <td>PYTHONUNBUFFERED</td>
|
|---|
| 3892 | <td class="code"><pre>'1'</pre></td>
|
|---|
| 3893 | </tr>
|
|---|
| 3894 |
|
|---|
| 3895 | <tr>
|
|---|
| 3896 | <td>SERVER_SOFTWARE</td>
|
|---|
| 3897 | <td class="code"><pre>'WSGIServer/0.2'</pre></td>
|
|---|
| 3898 | </tr>
|
|---|
| 3899 |
|
|---|
| 3900 | <tr>
|
|---|
| 3901 | <td>GNOME_DESKTOP_SESSION_ID</td>
|
|---|
| 3902 | <td class="code"><pre>'this-is-deprecated'</pre></td>
|
|---|
| 3903 | </tr>
|
|---|
| 3904 |
|
|---|
| 3905 | <tr>
|
|---|
| 3906 | <td>SESSIONTYPE</td>
|
|---|
| 3907 | <td class="code"><pre>'gnome-session'</pre></td>
|
|---|
| 3908 | </tr>
|
|---|
| 3909 |
|
|---|
| 3910 | <tr>
|
|---|
| 3911 | <td>CONTENT_LENGTH</td>
|
|---|
| 3912 | <td class="code"><pre>''</pre></td>
|
|---|
| 3913 | </tr>
|
|---|
| 3914 |
|
|---|
| 3915 | <tr>
|
|---|
| 3916 | <td>GATEWAY_INTERFACE</td>
|
|---|
| 3917 | <td class="code"><pre>'CGI/1.1'</pre></td>
|
|---|
| 3918 | </tr>
|
|---|
| 3919 |
|
|---|
| 3920 | <tr>
|
|---|
| 3921 | <td>USER</td>
|
|---|
| 3922 | <td class="code"><pre>'yidnekachew'</pre></td>
|
|---|
| 3923 | </tr>
|
|---|
| 3924 |
|
|---|
| 3925 | <tr>
|
|---|
| 3926 | <td>XDG_SEAT</td>
|
|---|
| 3927 | <td class="code"><pre>'seat0'</pre></td>
|
|---|
| 3928 | </tr>
|
|---|
| 3929 |
|
|---|
| 3930 | <tr>
|
|---|
| 3931 | <td>LC_NAME</td>
|
|---|
| 3932 | <td class="code"><pre>'am_ET'</pre></td>
|
|---|
| 3933 | </tr>
|
|---|
| 3934 |
|
|---|
| 3935 | <tr>
|
|---|
| 3936 | <td>TEXTDOMAINDIR</td>
|
|---|
| 3937 | <td class="code"><pre>'/usr/share/locale/'</pre></td>
|
|---|
| 3938 | </tr>
|
|---|
| 3939 |
|
|---|
| 3940 | <tr>
|
|---|
| 3941 | <td>XDG_MENU_PREFIX</td>
|
|---|
| 3942 | <td class="code"><pre>'gnome-'</pre></td>
|
|---|
| 3943 | </tr>
|
|---|
| 3944 |
|
|---|
| 3945 | <tr>
|
|---|
| 3946 | <td>wsgi.version</td>
|
|---|
| 3947 | <td class="code"><pre>(1, 0)</pre></td>
|
|---|
| 3948 | </tr>
|
|---|
| 3949 |
|
|---|
| 3950 | <tr>
|
|---|
| 3951 | <td>JOB</td>
|
|---|
| 3952 | <td class="code"><pre>'dbus'</pre></td>
|
|---|
| 3953 | </tr>
|
|---|
| 3954 |
|
|---|
| 3955 | <tr>
|
|---|
| 3956 | <td>LC_NUMERIC</td>
|
|---|
| 3957 | <td class="code"><pre>'am_ET'</pre></td>
|
|---|
| 3958 | </tr>
|
|---|
| 3959 |
|
|---|
| 3960 | <tr>
|
|---|
| 3961 | <td>DJANGO_SETTINGS_MODULE</td>
|
|---|
| 3962 | <td class="code"><pre>'perfman.settings'</pre></td>
|
|---|
| 3963 | </tr>
|
|---|
| 3964 |
|
|---|
| 3965 | <tr>
|
|---|
| 3966 | <td>PATH</td>
|
|---|
| 3967 | <td class="code"><pre>'/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/groovy-1.8.5/bin:/opt/grails-2.3.11/bin'</pre></td>
|
|---|
| 3968 | </tr>
|
|---|
| 3969 |
|
|---|
| 3970 | <tr>
|
|---|
| 3971 | <td>GDMSESSION</td>
|
|---|
| 3972 | <td class="code"><pre>'ubuntu'</pre></td>
|
|---|
| 3973 | </tr>
|
|---|
| 3974 |
|
|---|
| 3975 | <tr>
|
|---|
| 3976 | <td>REMOTE_HOST</td>
|
|---|
| 3977 | <td class="code"><pre>''</pre></td>
|
|---|
| 3978 | </tr>
|
|---|
| 3979 |
|
|---|
| 3980 | <tr>
|
|---|
| 3981 | <td>SERVER_NAME</td>
|
|---|
| 3982 | <td class="code"><pre>'localhost'</pre></td>
|
|---|
| 3983 | </tr>
|
|---|
| 3984 |
|
|---|
| 3985 | <tr>
|
|---|
| 3986 | <td>TEXTDOMAIN</td>
|
|---|
| 3987 | <td class="code"><pre>'im-config'</pre></td>
|
|---|
| 3988 | </tr>
|
|---|
| 3989 |
|
|---|
| 3990 | <tr>
|
|---|
| 3991 | <td>DEFAULTS_PATH</td>
|
|---|
| 3992 | <td class="code"><pre>'/usr/share/gconf/ubuntu.default.path'</pre></td>
|
|---|
| 3993 | </tr>
|
|---|
| 3994 |
|
|---|
| 3995 | <tr>
|
|---|
| 3996 | <td>PWD</td>
|
|---|
| 3997 | <td class="code"><pre>'/home/yidnekachew'</pre></td>
|
|---|
| 3998 | </tr>
|
|---|
| 3999 |
|
|---|
| 4000 | <tr>
|
|---|
| 4001 | <td>RUN_MAIN</td>
|
|---|
| 4002 | <td class="code"><pre>'true'</pre></td>
|
|---|
| 4003 | </tr>
|
|---|
| 4004 |
|
|---|
| 4005 | <tr>
|
|---|
| 4006 | <td>GDM_LANG</td>
|
|---|
| 4007 | <td class="code"><pre>'en_US'</pre></td>
|
|---|
| 4008 | </tr>
|
|---|
| 4009 |
|
|---|
| 4010 | <tr>
|
|---|
| 4011 | <td>NLSPATH</td>
|
|---|
| 4012 | <td class="code"><pre>'/usr/dt/lib/nls/msg/%L/%N.cat'</pre></td>
|
|---|
| 4013 | </tr>
|
|---|
| 4014 |
|
|---|
| 4015 | <tr>
|
|---|
| 4016 | <td>QT_IM_MODULE</td>
|
|---|
| 4017 | <td class="code"><pre>'ibus'</pre></td>
|
|---|
| 4018 | </tr>
|
|---|
| 4019 |
|
|---|
| 4020 | <tr>
|
|---|
| 4021 | <td>PYTHONIOENCODING</td>
|
|---|
| 4022 | <td class="code"><pre>'UTF-8'</pre></td>
|
|---|
| 4023 | </tr>
|
|---|
| 4024 |
|
|---|
| 4025 | <tr>
|
|---|
| 4026 | <td>LD_LIBRARY_PATH</td>
|
|---|
| 4027 | <td class="code"><pre>'/usr/java/jdk1.6.0_30/jre/lib/amd64/server:/usr/java/jdk1.6.0_30/jre/lib/amd64:/usr/java/jdk1.6.0_30/jre/../lib/amd64:/home/yidnekachew/Desktop/My
|
|---|
| 4028 | '
|
|---|
| 4029 | 'Documents/pycharm-4.5.2/bin:'</pre></td>
|
|---|
| 4030 | </tr>
|
|---|
| 4031 |
|
|---|
| 4032 | <tr>
|
|---|
| 4033 | <td>GTK_MODULES</td>
|
|---|
| 4034 | <td class="code"><pre>'overlay-scrollbar:unity-gtk-module'</pre></td>
|
|---|
| 4035 | </tr>
|
|---|
| 4036 |
|
|---|
| 4037 | <tr>
|
|---|
| 4038 | <td>PAGA_ENC_KEY</td>
|
|---|
| 4039 | <td class="code"><pre>'dfjk38Gfdsj59sjFg'</pre></td>
|
|---|
| 4040 | </tr>
|
|---|
| 4041 |
|
|---|
| 4042 | <tr>
|
|---|
| 4043 | <td>QT4_IM_MODULE</td>
|
|---|
| 4044 | <td class="code"><pre>'xim'</pre></td>
|
|---|
| 4045 | </tr>
|
|---|
| 4046 |
|
|---|
| 4047 | <tr>
|
|---|
| 4048 | <td>GPG_AGENT_INFO</td>
|
|---|
| 4049 | <td class="code"><pre>'/run/user/1001/keyring-sfoVTK/gpg:0:1'</pre></td>
|
|---|
| 4050 | </tr>
|
|---|
| 4051 |
|
|---|
| 4052 | <tr>
|
|---|
| 4053 | <td>DISPLAY</td>
|
|---|
| 4054 | <td class="code"><pre>':0'</pre></td>
|
|---|
| 4055 | </tr>
|
|---|
| 4056 |
|
|---|
| 4057 | <tr>
|
|---|
| 4058 | <td>GIO_LAUNCHED_DESKTOP_FILE</td>
|
|---|
| 4059 | <td class="code"><pre>'/usr/share/applications/jetbrains-pycharm.desktop'</pre></td>
|
|---|
| 4060 | </tr>
|
|---|
| 4061 |
|
|---|
| 4062 | <tr>
|
|---|
| 4063 | <td>XAUTHORITY</td>
|
|---|
| 4064 | <td class="code"><pre>'/home/yidnekachew/.Xauthority'</pre></td>
|
|---|
| 4065 | </tr>
|
|---|
| 4066 |
|
|---|
| 4067 | <tr>
|
|---|
| 4068 | <td>LANGUAGE</td>
|
|---|
| 4069 | <td class="code"><pre>'en_US'</pre></td>
|
|---|
| 4070 | </tr>
|
|---|
| 4071 |
|
|---|
| 4072 | <tr>
|
|---|
| 4073 | <td>HTTP_ACCEPT</td>
|
|---|
| 4074 | <td class="code"><pre>'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'</pre></td>
|
|---|
| 4075 | </tr>
|
|---|
| 4076 |
|
|---|
| 4077 | <tr>
|
|---|
| 4078 | <td>SHLVL</td>
|
|---|
| 4079 | <td class="code"><pre>'0'</pre></td>
|
|---|
| 4080 | </tr>
|
|---|
| 4081 |
|
|---|
| 4082 | <tr>
|
|---|
| 4083 | <td>QT_QPA_PLATFORMTHEME</td>
|
|---|
| 4084 | <td class="code"><pre>'appmenu-qt5'</pre></td>
|
|---|
| 4085 | </tr>
|
|---|
| 4086 |
|
|---|
| 4087 | <tr>
|
|---|
| 4088 | <td>XDG_CURRENT_DESKTOP</td>
|
|---|
| 4089 | <td class="code"><pre>'Unity'</pre></td>
|
|---|
| 4090 | </tr>
|
|---|
| 4091 |
|
|---|
| 4092 | <tr>
|
|---|
| 4093 | <td>QUERY_STRING</td>
|
|---|
| 4094 | <td class="code"><pre>'next=/admin/'</pre></td>
|
|---|
| 4095 | </tr>
|
|---|
| 4096 |
|
|---|
| 4097 | <tr>
|
|---|
| 4098 | <td>INSTANCE</td>
|
|---|
| 4099 | <td class="code"><pre>''</pre></td>
|
|---|
| 4100 | </tr>
|
|---|
| 4101 |
|
|---|
| 4102 | <tr>
|
|---|
| 4103 | <td>wsgi.input</td>
|
|---|
| 4104 | <td class="code"><pre><_io.BufferedReader name=5></pre></td>
|
|---|
| 4105 | </tr>
|
|---|
| 4106 |
|
|---|
| 4107 | <tr>
|
|---|
| 4108 | <td>XDG_SEAT_PATH</td>
|
|---|
| 4109 | <td class="code"><pre>'/org/freedesktop/DisplayManager/Seat0'</pre></td>
|
|---|
| 4110 | </tr>
|
|---|
| 4111 |
|
|---|
| 4112 | <tr>
|
|---|
| 4113 | <td>LC_ADDRESS</td>
|
|---|
| 4114 | <td class="code"><pre>'am_ET'</pre></td>
|
|---|
| 4115 | </tr>
|
|---|
| 4116 |
|
|---|
| 4117 | <tr>
|
|---|
| 4118 | <td>HTTP_CONNECTION</td>
|
|---|
| 4119 | <td class="code"><pre>'keep-alive'</pre></td>
|
|---|
| 4120 | </tr>
|
|---|
| 4121 |
|
|---|
| 4122 | <tr>
|
|---|
| 4123 | <td>SELINUX_INIT</td>
|
|---|
| 4124 | <td class="code"><pre>'YES'</pre></td>
|
|---|
| 4125 | </tr>
|
|---|
| 4126 |
|
|---|
| 4127 | <tr>
|
|---|
| 4128 | <td>CLUTTER_IM_MODULE</td>
|
|---|
| 4129 | <td class="code"><pre>'xim'</pre></td>
|
|---|
| 4130 | </tr>
|
|---|
| 4131 |
|
|---|
| 4132 | <tr>
|
|---|
| 4133 | <td>HTTP_COOKIE</td>
|
|---|
| 4134 | <td class="code"><pre>'csrftoken=BY2pIROTJeFofa1EcjSL1pekPrhjaIak; '
|
|---|
| 4135 | 'sessionid=ug3xxoy8os5ypw3hg3v8pdmmmz35pp22'</pre></td>
|
|---|
| 4136 | </tr>
|
|---|
| 4137 |
|
|---|
| 4138 | <tr>
|
|---|
| 4139 | <td>PATH_INFO</td>
|
|---|
| 4140 | <td class="code"><pre>'/admin/login/'</pre></td>
|
|---|
| 4141 | </tr>
|
|---|
| 4142 |
|
|---|
| 4143 | <tr>
|
|---|
| 4144 | <td>GNOME_KEYRING_PID</td>
|
|---|
| 4145 | <td class="code"><pre>'2952'</pre></td>
|
|---|
| 4146 | </tr>
|
|---|
| 4147 |
|
|---|
| 4148 | <tr>
|
|---|
| 4149 | <td>SERVER_PROTOCOL</td>
|
|---|
| 4150 | <td class="code"><pre>'HTTP/1.1'</pre></td>
|
|---|
| 4151 | </tr>
|
|---|
| 4152 |
|
|---|
| 4153 | <tr>
|
|---|
| 4154 | <td>REMOTE_ADDR</td>
|
|---|
| 4155 | <td class="code"><pre>'127.0.0.1'</pre></td>
|
|---|
| 4156 | </tr>
|
|---|
| 4157 |
|
|---|
| 4158 | <tr>
|
|---|
| 4159 | <td>wsgi.multiprocess</td>
|
|---|
| 4160 | <td class="code"><pre>False</pre></td>
|
|---|
| 4161 | </tr>
|
|---|
| 4162 |
|
|---|
| 4163 | <tr>
|
|---|
| 4164 | <td>SERVER_PORT</td>
|
|---|
| 4165 | <td class="code"><pre>'8000'</pre></td>
|
|---|
| 4166 | </tr>
|
|---|
| 4167 |
|
|---|
| 4168 | <tr>
|
|---|
| 4169 | <td>SESSION</td>
|
|---|
| 4170 | <td class="code"><pre>'ubuntu'</pre></td>
|
|---|
| 4171 | </tr>
|
|---|
| 4172 |
|
|---|
| 4173 | <tr>
|
|---|
| 4174 | <td>CSRF_COOKIE</td>
|
|---|
| 4175 | <td class="code"><pre>'BY2pIROTJeFofa1EcjSL1pekPrhjaIak'</pre></td>
|
|---|
| 4176 | </tr>
|
|---|
| 4177 |
|
|---|
| 4178 | <tr>
|
|---|
| 4179 | <td>GTK_IM_MODULE</td>
|
|---|
| 4180 | <td class="code"><pre>'ibus'</pre></td>
|
|---|
| 4181 | </tr>
|
|---|
| 4182 |
|
|---|
| 4183 | </tbody>
|
|---|
| 4184 | </table>
|
|---|
| 4185 |
|
|---|
| 4186 |
|
|---|
| 4187 | <h3 id="settings-info">Settings</h3>
|
|---|
| 4188 | <h4>Using settings module <code>perfman.settings</code></h4>
|
|---|
| 4189 | <table class="req">
|
|---|
| 4190 | <thead>
|
|---|
| 4191 | <tr>
|
|---|
| 4192 | <th>Setting</th>
|
|---|
| 4193 | <th>Value</th>
|
|---|
| 4194 | </tr>
|
|---|
| 4195 | </thead>
|
|---|
| 4196 | <tbody>
|
|---|
| 4197 |
|
|---|
| 4198 | <tr>
|
|---|
| 4199 | <td>MESSAGE_STORAGE</td>
|
|---|
| 4200 | <td class="code"><pre>'django.contrib.messages.storage.fallback.FallbackStorage'</pre></td>
|
|---|
| 4201 | </tr>
|
|---|
| 4202 |
|
|---|
| 4203 | <tr>
|
|---|
| 4204 | <td>SESSION_FILE_PATH</td>
|
|---|
| 4205 | <td class="code"><pre>None</pre></td>
|
|---|
| 4206 | </tr>
|
|---|
| 4207 |
|
|---|
| 4208 | <tr>
|
|---|
| 4209 | <td>CSRF_FAILURE_VIEW</td>
|
|---|
| 4210 | <td class="code"><pre>'django.views.csrf.csrf_failure'</pre></td>
|
|---|
| 4211 | </tr>
|
|---|
| 4212 |
|
|---|
| 4213 | <tr>
|
|---|
| 4214 | <td>INTERNAL_IPS</td>
|
|---|
| 4215 | <td class="code"><pre>()</pre></td>
|
|---|
| 4216 | </tr>
|
|---|
| 4217 |
|
|---|
| 4218 | <tr>
|
|---|
| 4219 | <td>LOGIN_REDIRECT_URL</td>
|
|---|
| 4220 | <td class="code"><pre>'/accounts/profile/'</pre></td>
|
|---|
| 4221 | </tr>
|
|---|
| 4222 |
|
|---|
| 4223 | <tr>
|
|---|
| 4224 | <td>CSRF_COOKIE_HTTPONLY</td>
|
|---|
| 4225 | <td class="code"><pre>False</pre></td>
|
|---|
| 4226 | </tr>
|
|---|
| 4227 |
|
|---|
| 4228 | <tr>
|
|---|
| 4229 | <td>TEMPLATE_DIRS</td>
|
|---|
| 4230 | <td class="code"><pre>()</pre></td>
|
|---|
| 4231 | </tr>
|
|---|
| 4232 |
|
|---|
| 4233 | <tr>
|
|---|
| 4234 | <td>USE_X_FORWARDED_HOST</td>
|
|---|
| 4235 | <td class="code"><pre>False</pre></td>
|
|---|
| 4236 | </tr>
|
|---|
| 4237 |
|
|---|
| 4238 | <tr>
|
|---|
| 4239 | <td>CACHE_MIDDLEWARE_SECONDS</td>
|
|---|
| 4240 | <td class="code"><pre>600</pre></td>
|
|---|
| 4241 | </tr>
|
|---|
| 4242 |
|
|---|
| 4243 | <tr>
|
|---|
| 4244 | <td>FILE_UPLOAD_PERMISSIONS</td>
|
|---|
| 4245 | <td class="code"><pre>None</pre></td>
|
|---|
| 4246 | </tr>
|
|---|
| 4247 |
|
|---|
| 4248 | <tr>
|
|---|
| 4249 | <td>DEFAULT_INDEX_TABLESPACE</td>
|
|---|
| 4250 | <td class="code"><pre>''</pre></td>
|
|---|
| 4251 | </tr>
|
|---|
| 4252 |
|
|---|
| 4253 | <tr>
|
|---|
| 4254 | <td>ABSOLUTE_URL_OVERRIDES</td>
|
|---|
| 4255 | <td class="code"><pre>{}</pre></td>
|
|---|
| 4256 | </tr>
|
|---|
| 4257 |
|
|---|
| 4258 | <tr>
|
|---|
| 4259 | <td>TEST_NON_SERIALIZED_APPS</td>
|
|---|
| 4260 | <td class="code"><pre>[]</pre></td>
|
|---|
| 4261 | </tr>
|
|---|
| 4262 |
|
|---|
| 4263 | <tr>
|
|---|
| 4264 | <td>SESSION_COOKIE_NAME</td>
|
|---|
| 4265 | <td class="code"><pre>'sessionid'</pre></td>
|
|---|
| 4266 | </tr>
|
|---|
| 4267 |
|
|---|
| 4268 | <tr>
|
|---|
| 4269 | <td>MANAGERS</td>
|
|---|
| 4270 | <td class="code"><pre>()</pre></td>
|
|---|
| 4271 | </tr>
|
|---|
| 4272 |
|
|---|
| 4273 | <tr>
|
|---|
| 4274 | <td>LANGUAGE_COOKIE_PATH</td>
|
|---|
| 4275 | <td class="code"><pre>'/'</pre></td>
|
|---|
| 4276 | </tr>
|
|---|
| 4277 |
|
|---|
| 4278 | <tr>
|
|---|
| 4279 | <td>DEBUG</td>
|
|---|
| 4280 | <td class="code"><pre>True</pre></td>
|
|---|
| 4281 | </tr>
|
|---|
| 4282 |
|
|---|
| 4283 | <tr>
|
|---|
| 4284 | <td>CSRF_COOKIE_AGE</td>
|
|---|
| 4285 | <td class="code"><pre>31449600</pre></td>
|
|---|
| 4286 | </tr>
|
|---|
| 4287 |
|
|---|
| 4288 | <tr>
|
|---|
| 4289 | <td>FILE_UPLOAD_HANDLERS</td>
|
|---|
| 4290 | <td class="code"><pre>('django.core.files.uploadhandler.MemoryFileUploadHandler',
|
|---|
| 4291 | 'django.core.files.uploadhandler.TemporaryFileUploadHandler')</pre></td>
|
|---|
| 4292 | </tr>
|
|---|
| 4293 |
|
|---|
| 4294 | <tr>
|
|---|
| 4295 | <td>FILE_UPLOAD_TEMP_DIR</td>
|
|---|
| 4296 | <td class="code"><pre>None</pre></td>
|
|---|
| 4297 | </tr>
|
|---|
| 4298 |
|
|---|
| 4299 | <tr>
|
|---|
| 4300 | <td>APPEND_SLASH</td>
|
|---|
| 4301 | <td class="code"><pre>True</pre></td>
|
|---|
| 4302 | </tr>
|
|---|
| 4303 |
|
|---|
| 4304 | <tr>
|
|---|
| 4305 | <td>DATETIME_FORMAT</td>
|
|---|
| 4306 | <td class="code"><pre>'N j, Y, P'</pre></td>
|
|---|
| 4307 | </tr>
|
|---|
| 4308 |
|
|---|
| 4309 | <tr>
|
|---|
| 4310 | <td>MEDIA_ROOT</td>
|
|---|
| 4311 | <td class="code"><pre>''</pre></td>
|
|---|
| 4312 | </tr>
|
|---|
| 4313 |
|
|---|
| 4314 | <tr>
|
|---|
| 4315 | <td>CACHE_MIDDLEWARE_ALIAS</td>
|
|---|
| 4316 | <td class="code"><pre>'default'</pre></td>
|
|---|
| 4317 | </tr>
|
|---|
| 4318 |
|
|---|
| 4319 | <tr>
|
|---|
| 4320 | <td>NUMBER_GROUPING</td>
|
|---|
| 4321 | <td class="code"><pre>0</pre></td>
|
|---|
| 4322 | </tr>
|
|---|
| 4323 |
|
|---|
| 4324 | <tr>
|
|---|
| 4325 | <td>CSRF_COOKIE_PATH</td>
|
|---|
| 4326 | <td class="code"><pre>'/'</pre></td>
|
|---|
| 4327 | </tr>
|
|---|
| 4328 |
|
|---|
| 4329 | <tr>
|
|---|
| 4330 | <td>SECURE_HSTS_SECONDS</td>
|
|---|
| 4331 | <td class="code"><pre>0</pre></td>
|
|---|
| 4332 | </tr>
|
|---|
| 4333 |
|
|---|
| 4334 | <tr>
|
|---|
| 4335 | <td>PASSWORD_HASHERS</td>
|
|---|
| 4336 | <td class="code"><pre>'********************'</pre></td>
|
|---|
| 4337 | </tr>
|
|---|
| 4338 |
|
|---|
| 4339 | <tr>
|
|---|
| 4340 | <td>DEFAULT_TABLESPACE</td>
|
|---|
| 4341 | <td class="code"><pre>''</pre></td>
|
|---|
| 4342 | </tr>
|
|---|
| 4343 |
|
|---|
| 4344 | <tr>
|
|---|
| 4345 | <td>CSRF_COOKIE_DOMAIN</td>
|
|---|
| 4346 | <td class="code"><pre>None</pre></td>
|
|---|
| 4347 | </tr>
|
|---|
| 4348 |
|
|---|
| 4349 | <tr>
|
|---|
| 4350 | <td>LANGUAGE_CODE</td>
|
|---|
| 4351 | <td class="code"><pre>'en-us'</pre></td>
|
|---|
| 4352 | </tr>
|
|---|
| 4353 |
|
|---|
| 4354 | <tr>
|
|---|
| 4355 | <td>STATICFILES_FINDERS</td>
|
|---|
| 4356 | <td class="code"><pre>('django.contrib.staticfiles.finders.FileSystemFinder',
|
|---|
| 4357 | 'django.contrib.staticfiles.finders.AppDirectoriesFinder')</pre></td>
|
|---|
| 4358 | </tr>
|
|---|
| 4359 |
|
|---|
| 4360 | <tr>
|
|---|
| 4361 | <td>USE_L10N</td>
|
|---|
| 4362 | <td class="code"><pre>True</pre></td>
|
|---|
| 4363 | </tr>
|
|---|
| 4364 |
|
|---|
| 4365 | <tr>
|
|---|
| 4366 | <td>LANGUAGE_COOKIE_DOMAIN</td>
|
|---|
| 4367 | <td class="code"><pre>None</pre></td>
|
|---|
| 4368 | </tr>
|
|---|
| 4369 |
|
|---|
| 4370 | <tr>
|
|---|
| 4371 | <td>DATE_INPUT_FORMATS</td>
|
|---|
| 4372 | <td class="code"><pre>('%Y-%m-%d',
|
|---|
| 4373 | '%m/%d/%Y',
|
|---|
| 4374 | '%m/%d/%y',
|
|---|
| 4375 | '%b %d %Y',
|
|---|
| 4376 | '%b %d, %Y',
|
|---|
| 4377 | '%d %b %Y',
|
|---|
| 4378 | '%d %b, %Y',
|
|---|
| 4379 | '%B %d %Y',
|
|---|
| 4380 | '%B %d, %Y',
|
|---|
| 4381 | '%d %B %Y',
|
|---|
| 4382 | '%d %B, %Y')</pre></td>
|
|---|
| 4383 | </tr>
|
|---|
| 4384 |
|
|---|
| 4385 | <tr>
|
|---|
| 4386 | <td>SECURE_SSL_REDIRECT</td>
|
|---|
| 4387 | <td class="code"><pre>False</pre></td>
|
|---|
| 4388 | </tr>
|
|---|
| 4389 |
|
|---|
| 4390 | <tr>
|
|---|
| 4391 | <td>CACHES</td>
|
|---|
| 4392 | <td class="code"><pre>{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}</pre></td>
|
|---|
| 4393 | </tr>
|
|---|
| 4394 |
|
|---|
| 4395 | <tr>
|
|---|
| 4396 | <td>X_FRAME_OPTIONS</td>
|
|---|
| 4397 | <td class="code"><pre>'SAMEORIGIN'</pre></td>
|
|---|
| 4398 | </tr>
|
|---|
| 4399 |
|
|---|
| 4400 | <tr>
|
|---|
| 4401 | <td>EMAIL_SSL_CERTFILE</td>
|
|---|
| 4402 | <td class="code"><pre>None</pre></td>
|
|---|
| 4403 | </tr>
|
|---|
| 4404 |
|
|---|
| 4405 | <tr>
|
|---|
| 4406 | <td>LOGGING</td>
|
|---|
| 4407 | <td class="code"><pre>{}</pre></td>
|
|---|
| 4408 | </tr>
|
|---|
| 4409 |
|
|---|
| 4410 | <tr>
|
|---|
| 4411 | <td>BASE_DIR</td>
|
|---|
| 4412 | <td class="code"><pre>'/home/yidnekachew/Projects/Django/perfman2'</pre></td>
|
|---|
| 4413 | </tr>
|
|---|
| 4414 |
|
|---|
| 4415 | <tr>
|
|---|
| 4416 | <td>EMAIL_USE_TLS</td>
|
|---|
| 4417 | <td class="code"><pre>False</pre></td>
|
|---|
| 4418 | </tr>
|
|---|
| 4419 |
|
|---|
| 4420 | <tr>
|
|---|
| 4421 | <td>SESSION_SERIALIZER</td>
|
|---|
| 4422 | <td class="code"><pre>'django.contrib.sessions.serializers.JSONSerializer'</pre></td>
|
|---|
| 4423 | </tr>
|
|---|
| 4424 |
|
|---|
| 4425 | <tr>
|
|---|
| 4426 | <td>EMAIL_SUBJECT_PREFIX</td>
|
|---|
| 4427 | <td class="code"><pre>'[Django] '</pre></td>
|
|---|
| 4428 | </tr>
|
|---|
| 4429 |
|
|---|
| 4430 | <tr>
|
|---|
| 4431 | <td>SECURE_HSTS_INCLUDE_SUBDOMAINS</td>
|
|---|
| 4432 | <td class="code"><pre>False</pre></td>
|
|---|
| 4433 | </tr>
|
|---|
| 4434 |
|
|---|
| 4435 | <tr>
|
|---|
| 4436 | <td>THOUSAND_SEPARATOR</td>
|
|---|
| 4437 | <td class="code"><pre>','</pre></td>
|
|---|
| 4438 | </tr>
|
|---|
| 4439 |
|
|---|
| 4440 | <tr>
|
|---|
| 4441 | <td>USE_ETAGS</td>
|
|---|
| 4442 | <td class="code"><pre>False</pre></td>
|
|---|
| 4443 | </tr>
|
|---|
| 4444 |
|
|---|
| 4445 | <tr>
|
|---|
| 4446 | <td>MEDIA_URL</td>
|
|---|
| 4447 | <td class="code"><pre>''</pre></td>
|
|---|
| 4448 | </tr>
|
|---|
| 4449 |
|
|---|
| 4450 | <tr>
|
|---|
| 4451 | <td>DEFAULT_FILE_STORAGE</td>
|
|---|
| 4452 | <td class="code"><pre>'django.core.files.storage.FileSystemStorage'</pre></td>
|
|---|
| 4453 | </tr>
|
|---|
| 4454 |
|
|---|
| 4455 | <tr>
|
|---|
| 4456 | <td>EMAIL_USE_SSL</td>
|
|---|
| 4457 | <td class="code"><pre>False</pre></td>
|
|---|
| 4458 | </tr>
|
|---|
| 4459 |
|
|---|
| 4460 | <tr>
|
|---|
| 4461 | <td>EMAIL_HOST_USER</td>
|
|---|
| 4462 | <td class="code"><pre>''</pre></td>
|
|---|
| 4463 | </tr>
|
|---|
| 4464 |
|
|---|
| 4465 | <tr>
|
|---|
| 4466 | <td>DATABASE_ROUTERS</td>
|
|---|
| 4467 | <td class="code"><pre>[]</pre></td>
|
|---|
| 4468 | </tr>
|
|---|
| 4469 |
|
|---|
| 4470 | <tr>
|
|---|
| 4471 | <td>TEMPLATE_STRING_IF_INVALID</td>
|
|---|
| 4472 | <td class="code"><pre>''</pre></td>
|
|---|
| 4473 | </tr>
|
|---|
| 4474 |
|
|---|
| 4475 | <tr>
|
|---|
| 4476 | <td>SECURE_REDIRECT_EXEMPT</td>
|
|---|
| 4477 | <td class="code"><pre>[]</pre></td>
|
|---|
| 4478 | </tr>
|
|---|
| 4479 |
|
|---|
| 4480 | <tr>
|
|---|
| 4481 | <td>EMAIL_SSL_KEYFILE</td>
|
|---|
| 4482 | <td class="code"><pre>'********************'</pre></td>
|
|---|
| 4483 | </tr>
|
|---|
| 4484 |
|
|---|
| 4485 | <tr>
|
|---|
| 4486 | <td>LANGUAGE_COOKIE_NAME</td>
|
|---|
| 4487 | <td class="code"><pre>'django_language'</pre></td>
|
|---|
| 4488 | </tr>
|
|---|
| 4489 |
|
|---|
| 4490 | <tr>
|
|---|
| 4491 | <td>LANGUAGES</td>
|
|---|
| 4492 | <td class="code"><pre>(('af', 'Afrikaans'),
|
|---|
| 4493 | ('ar', 'Arabic'),
|
|---|
| 4494 | ('ast', 'Asturian'),
|
|---|
| 4495 | ('az', 'Azerbaijani'),
|
|---|
| 4496 | ('bg', 'Bulgarian'),
|
|---|
| 4497 | ('be', 'Belarusian'),
|
|---|
| 4498 | ('bn', 'Bengali'),
|
|---|
| 4499 | ('br', 'Breton'),
|
|---|
| 4500 | ('bs', 'Bosnian'),
|
|---|
| 4501 | ('ca', 'Catalan'),
|
|---|
| 4502 | ('cs', 'Czech'),
|
|---|
| 4503 | ('cy', 'Welsh'),
|
|---|
| 4504 | ('da', 'Danish'),
|
|---|
| 4505 | ('de', 'German'),
|
|---|
| 4506 | ('el', 'Greek'),
|
|---|
| 4507 | ('en', 'English'),
|
|---|
| 4508 | ('en-au', 'Australian English'),
|
|---|
| 4509 | ('en-gb', 'British English'),
|
|---|
| 4510 | ('eo', 'Esperanto'),
|
|---|
| 4511 | ('es', 'Spanish'),
|
|---|
| 4512 | ('es-ar', 'Argentinian Spanish'),
|
|---|
| 4513 | ('es-mx', 'Mexican Spanish'),
|
|---|
| 4514 | ('es-ni', 'Nicaraguan Spanish'),
|
|---|
| 4515 | ('es-ve', 'Venezuelan Spanish'),
|
|---|
| 4516 | ('et', 'Estonian'),
|
|---|
| 4517 | ('eu', 'Basque'),
|
|---|
| 4518 | ('fa', 'Persian'),
|
|---|
| 4519 | ('fi', 'Finnish'),
|
|---|
| 4520 | ('fr', 'French'),
|
|---|
| 4521 | ('fy', 'Frisian'),
|
|---|
| 4522 | ('ga', 'Irish'),
|
|---|
| 4523 | ('gl', 'Galician'),
|
|---|
| 4524 | ('he', 'Hebrew'),
|
|---|
| 4525 | ('hi', 'Hindi'),
|
|---|
| 4526 | ('hr', 'Croatian'),
|
|---|
| 4527 | ('hu', 'Hungarian'),
|
|---|
| 4528 | ('ia', 'Interlingua'),
|
|---|
| 4529 | ('id', 'Indonesian'),
|
|---|
| 4530 | ('io', 'Ido'),
|
|---|
| 4531 | ('is', 'Icelandic'),
|
|---|
| 4532 | ('it', 'Italian'),
|
|---|
| 4533 | ('ja', 'Japanese'),
|
|---|
| 4534 | ('ka', 'Georgian'),
|
|---|
| 4535 | ('kk', 'Kazakh'),
|
|---|
| 4536 | ('km', 'Khmer'),
|
|---|
| 4537 | ('kn', 'Kannada'),
|
|---|
| 4538 | ('ko', 'Korean'),
|
|---|
| 4539 | ('lb', 'Luxembourgish'),
|
|---|
| 4540 | ('lt', 'Lithuanian'),
|
|---|
| 4541 | ('lv', 'Latvian'),
|
|---|
| 4542 | ('mk', 'Macedonian'),
|
|---|
| 4543 | ('ml', 'Malayalam'),
|
|---|
| 4544 | ('mn', 'Mongolian'),
|
|---|
| 4545 | ('mr', 'Marathi'),
|
|---|
| 4546 | ('my', 'Burmese'),
|
|---|
| 4547 | ('nb', 'Norwegian Bokmal'),
|
|---|
| 4548 | ('ne', 'Nepali'),
|
|---|
| 4549 | ('nl', 'Dutch'),
|
|---|
| 4550 | ('nn', 'Norwegian Nynorsk'),
|
|---|
| 4551 | ('os', 'Ossetic'),
|
|---|
| 4552 | ('pa', 'Punjabi'),
|
|---|
| 4553 | ('pl', 'Polish'),
|
|---|
| 4554 | ('pt', 'Portuguese'),
|
|---|
| 4555 | ('pt-br', 'Brazilian Portuguese'),
|
|---|
| 4556 | ('ro', 'Romanian'),
|
|---|
| 4557 | ('ru', 'Russian'),
|
|---|
| 4558 | ('sk', 'Slovak'),
|
|---|
| 4559 | ('sl', 'Slovenian'),
|
|---|
| 4560 | ('sq', 'Albanian'),
|
|---|
| 4561 | ('sr', 'Serbian'),
|
|---|
| 4562 | ('sr-latn', 'Serbian Latin'),
|
|---|
| 4563 | ('sv', 'Swedish'),
|
|---|
| 4564 | ('sw', 'Swahili'),
|
|---|
| 4565 | ('ta', 'Tamil'),
|
|---|
| 4566 | ('te', 'Telugu'),
|
|---|
| 4567 | ('th', 'Thai'),
|
|---|
| 4568 | ('tr', 'Turkish'),
|
|---|
| 4569 | ('tt', 'Tatar'),
|
|---|
| 4570 | ('udm', 'Udmurt'),
|
|---|
| 4571 | ('uk', 'Ukrainian'),
|
|---|
| 4572 | ('ur', 'Urdu'),
|
|---|
| 4573 | ('vi', 'Vietnamese'),
|
|---|
| 4574 | ('zh-cn', 'Simplified Chinese'),
|
|---|
| 4575 | ('zh-hans', 'Simplified Chinese'),
|
|---|
| 4576 | ('zh-hant', 'Traditional Chinese'),
|
|---|
| 4577 | ('zh-tw', 'Traditional Chinese'))</pre></td>
|
|---|
| 4578 | </tr>
|
|---|
| 4579 |
|
|---|
| 4580 | <tr>
|
|---|
| 4581 | <td>AUTH_USER_MODEL</td>
|
|---|
| 4582 | <td class="code"><pre>'auth.User'</pre></td>
|
|---|
| 4583 | </tr>
|
|---|
| 4584 |
|
|---|
| 4585 | <tr>
|
|---|
| 4586 | <td>SECURE_PROXY_SSL_HEADER</td>
|
|---|
| 4587 | <td class="code"><pre>None</pre></td>
|
|---|
| 4588 | </tr>
|
|---|
| 4589 |
|
|---|
| 4590 | <tr>
|
|---|
| 4591 | <td>LOCALE_PATHS</td>
|
|---|
| 4592 | <td class="code"><pre>()</pre></td>
|
|---|
| 4593 | </tr>
|
|---|
| 4594 |
|
|---|
| 4595 | <tr>
|
|---|
| 4596 | <td>FILE_UPLOAD_MAX_MEMORY_SIZE</td>
|
|---|
| 4597 | <td class="code"><pre>2621440</pre></td>
|
|---|
| 4598 | </tr>
|
|---|
| 4599 |
|
|---|
| 4600 | <tr>
|
|---|
| 4601 | <td>PASSWORD_RESET_TIMEOUT_DAYS</td>
|
|---|
| 4602 | <td class="code"><pre>'********************'</pre></td>
|
|---|
| 4603 | </tr>
|
|---|
| 4604 |
|
|---|
| 4605 | <tr>
|
|---|
| 4606 | <td>FORMAT_MODULE_PATH</td>
|
|---|
| 4607 | <td class="code"><pre>None</pre></td>
|
|---|
| 4608 | </tr>
|
|---|
| 4609 |
|
|---|
| 4610 | <tr>
|
|---|
| 4611 | <td>DEFAULT_CHARSET</td>
|
|---|
| 4612 | <td class="code"><pre>'utf-8'</pre></td>
|
|---|
| 4613 | </tr>
|
|---|
| 4614 |
|
|---|
| 4615 | <tr>
|
|---|
| 4616 | <td>ALLOWED_INCLUDE_ROOTS</td>
|
|---|
| 4617 | <td class="code"><pre>()</pre></td>
|
|---|
| 4618 | </tr>
|
|---|
| 4619 |
|
|---|
| 4620 | <tr>
|
|---|
| 4621 | <td>DEFAULT_CONTENT_TYPE</td>
|
|---|
| 4622 | <td class="code"><pre>'text/html'</pre></td>
|
|---|
| 4623 | </tr>
|
|---|
| 4624 |
|
|---|
| 4625 | <tr>
|
|---|
| 4626 | <td>TEMPLATE_DEBUG</td>
|
|---|
| 4627 | <td class="code"><pre>False</pre></td>
|
|---|
| 4628 | </tr>
|
|---|
| 4629 |
|
|---|
| 4630 | <tr>
|
|---|
| 4631 | <td>EMAIL_PORT</td>
|
|---|
| 4632 | <td class="code"><pre>25</pre></td>
|
|---|
| 4633 | </tr>
|
|---|
| 4634 |
|
|---|
| 4635 | <tr>
|
|---|
| 4636 | <td>ALLOWED_HOSTS</td>
|
|---|
| 4637 | <td class="code"><pre>[]</pre></td>
|
|---|
| 4638 | </tr>
|
|---|
| 4639 |
|
|---|
| 4640 | <tr>
|
|---|
| 4641 | <td>FILE_CHARSET</td>
|
|---|
| 4642 | <td class="code"><pre>'utf-8'</pre></td>
|
|---|
| 4643 | </tr>
|
|---|
| 4644 |
|
|---|
| 4645 | <tr>
|
|---|
| 4646 | <td>DECIMAL_SEPARATOR</td>
|
|---|
| 4647 | <td class="code"><pre>'.'</pre></td>
|
|---|
| 4648 | </tr>
|
|---|
| 4649 |
|
|---|
| 4650 | <tr>
|
|---|
| 4651 | <td>STATIC_URL</td>
|
|---|
| 4652 | <td class="code"><pre>'/static/'</pre></td>
|
|---|
| 4653 | </tr>
|
|---|
| 4654 |
|
|---|
| 4655 | <tr>
|
|---|
| 4656 | <td>EMAIL_HOST</td>
|
|---|
| 4657 | <td class="code"><pre>'localhost'</pre></td>
|
|---|
| 4658 | </tr>
|
|---|
| 4659 |
|
|---|
| 4660 | <tr>
|
|---|
| 4661 | <td>FIXTURE_DIRS</td>
|
|---|
| 4662 | <td class="code"><pre>()</pre></td>
|
|---|
| 4663 | </tr>
|
|---|
| 4664 |
|
|---|
| 4665 | <tr>
|
|---|
| 4666 | <td>LANGUAGES_BIDI</td>
|
|---|
| 4667 | <td class="code"><pre>('he', 'ar', 'fa', 'ur')</pre></td>
|
|---|
| 4668 | </tr>
|
|---|
| 4669 |
|
|---|
| 4670 | <tr>
|
|---|
| 4671 | <td>DEFAULT_FROM_EMAIL</td>
|
|---|
| 4672 | <td class="code"><pre>'webmaster@localhost'</pre></td>
|
|---|
| 4673 | </tr>
|
|---|
| 4674 |
|
|---|
| 4675 | <tr>
|
|---|
| 4676 | <td>EMAIL_HOST_PASSWORD</td>
|
|---|
| 4677 | <td class="code"><pre>'********************'</pre></td>
|
|---|
| 4678 | </tr>
|
|---|
| 4679 |
|
|---|
| 4680 | <tr>
|
|---|
| 4681 | <td>DEFAULT_EXCEPTION_REPORTER_FILTER</td>
|
|---|
| 4682 | <td class="code"><pre>'django.views.debug.SafeExceptionReporterFilter'</pre></td>
|
|---|
| 4683 | </tr>
|
|---|
| 4684 |
|
|---|
| 4685 | <tr>
|
|---|
| 4686 | <td>TEMPLATES</td>
|
|---|
| 4687 | <td class="code"><pre>[{'APP_DIRS': True,
|
|---|
| 4688 | 'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
|---|
| 4689 | 'DIRS': ['/home/yidnekachew/Projects/Django/perfman2/templates'],
|
|---|
| 4690 | 'OPTIONS': {'context_processors': ['django.template.context_processors.debug',
|
|---|
| 4691 | 'django.template.context_processors.request',
|
|---|
| 4692 | 'django.contrib.auth.context_processors.auth',
|
|---|
| 4693 | 'django.contrib.messages.context_processors.messages']}}]</pre></td>
|
|---|
| 4694 | </tr>
|
|---|
| 4695 |
|
|---|
| 4696 | <tr>
|
|---|
| 4697 | <td>DATETIME_INPUT_FORMATS</td>
|
|---|
| 4698 | <td class="code"><pre>('%Y-%m-%d %H:%M:%S',
|
|---|
| 4699 | '%Y-%m-%d %H:%M:%S.%f',
|
|---|
| 4700 | '%Y-%m-%d %H:%M',
|
|---|
| 4701 | '%Y-%m-%d',
|
|---|
| 4702 | '%m/%d/%Y %H:%M:%S',
|
|---|
| 4703 | '%m/%d/%Y %H:%M:%S.%f',
|
|---|
| 4704 | '%m/%d/%Y %H:%M',
|
|---|
| 4705 | '%m/%d/%Y',
|
|---|
| 4706 | '%m/%d/%y %H:%M:%S',
|
|---|
| 4707 | '%m/%d/%y %H:%M:%S.%f',
|
|---|
| 4708 | '%m/%d/%y %H:%M',
|
|---|
| 4709 | '%m/%d/%y')</pre></td>
|
|---|
| 4710 | </tr>
|
|---|
| 4711 |
|
|---|
| 4712 | <tr>
|
|---|
| 4713 | <td>SESSION_COOKIE_SECURE</td>
|
|---|
| 4714 | <td class="code"><pre>False</pre></td>
|
|---|
| 4715 | </tr>
|
|---|
| 4716 |
|
|---|
| 4717 | <tr>
|
|---|
| 4718 | <td>SERVER_EMAIL</td>
|
|---|
| 4719 | <td class="code"><pre>'root@localhost'</pre></td>
|
|---|
| 4720 | </tr>
|
|---|
| 4721 |
|
|---|
| 4722 | <tr>
|
|---|
| 4723 | <td>STATICFILES_STORAGE</td>
|
|---|
| 4724 | <td class="code"><pre>'django.contrib.staticfiles.storage.StaticFilesStorage'</pre></td>
|
|---|
| 4725 | </tr>
|
|---|
| 4726 |
|
|---|
| 4727 | <tr>
|
|---|
| 4728 | <td>DEBUG_PROPAGATE_EXCEPTIONS</td>
|
|---|
| 4729 | <td class="code"><pre>False</pre></td>
|
|---|
| 4730 | </tr>
|
|---|
| 4731 |
|
|---|
| 4732 | <tr>
|
|---|
| 4733 | <td>TIME_INPUT_FORMATS</td>
|
|---|
| 4734 | <td class="code"><pre>('%H:%M:%S', '%H:%M:%S.%f', '%H:%M')</pre></td>
|
|---|
| 4735 | </tr>
|
|---|
| 4736 |
|
|---|
| 4737 | <tr>
|
|---|
| 4738 | <td>SESSION_COOKIE_DOMAIN</td>
|
|---|
| 4739 | <td class="code"><pre>None</pre></td>
|
|---|
| 4740 | </tr>
|
|---|
| 4741 |
|
|---|
| 4742 | <tr>
|
|---|
| 4743 | <td>SECURE_SSL_HOST</td>
|
|---|
| 4744 | <td class="code"><pre>None</pre></td>
|
|---|
| 4745 | </tr>
|
|---|
| 4746 |
|
|---|
| 4747 | <tr>
|
|---|
| 4748 | <td>TIME_FORMAT</td>
|
|---|
| 4749 | <td class="code"><pre>'P'</pre></td>
|
|---|
| 4750 | </tr>
|
|---|
| 4751 |
|
|---|
| 4752 | <tr>
|
|---|
| 4753 | <td>DATE_FORMAT</td>
|
|---|
| 4754 | <td class="code"><pre>'N j, Y'</pre></td>
|
|---|
| 4755 | </tr>
|
|---|
| 4756 |
|
|---|
| 4757 | <tr>
|
|---|
| 4758 | <td>DISALLOWED_USER_AGENTS</td>
|
|---|
| 4759 | <td class="code"><pre>()</pre></td>
|
|---|
| 4760 | </tr>
|
|---|
| 4761 |
|
|---|
| 4762 | <tr>
|
|---|
| 4763 | <td>USE_THOUSAND_SEPARATOR</td>
|
|---|
| 4764 | <td class="code"><pre>False</pre></td>
|
|---|
| 4765 | </tr>
|
|---|
| 4766 |
|
|---|
| 4767 | <tr>
|
|---|
| 4768 | <td>ROOT_URLCONF</td>
|
|---|
| 4769 | <td class="code"><pre>'perfman.urls'</pre></td>
|
|---|
| 4770 | </tr>
|
|---|
| 4771 |
|
|---|
| 4772 | <tr>
|
|---|
| 4773 | <td>IGNORABLE_404_URLS</td>
|
|---|
| 4774 | <td class="code"><pre>()</pre></td>
|
|---|
| 4775 | </tr>
|
|---|
| 4776 |
|
|---|
| 4777 | <tr>
|
|---|
| 4778 | <td>USE_I18N</td>
|
|---|
| 4779 | <td class="code"><pre>True</pre></td>
|
|---|
| 4780 | </tr>
|
|---|
| 4781 |
|
|---|
| 4782 | <tr>
|
|---|
| 4783 | <td>AUTHENTICATION_BACKENDS</td>
|
|---|
| 4784 | <td class="code"><pre>('django.contrib.auth.backends.ModelBackend',)</pre></td>
|
|---|
| 4785 | </tr>
|
|---|
| 4786 |
|
|---|
| 4787 | <tr>
|
|---|
| 4788 | <td>SESSION_SAVE_EVERY_REQUEST</td>
|
|---|
| 4789 | <td class="code"><pre>False</pre></td>
|
|---|
| 4790 | </tr>
|
|---|
| 4791 |
|
|---|
| 4792 | <tr>
|
|---|
| 4793 | <td>TIME_ZONE</td>
|
|---|
| 4794 | <td class="code"><pre>'UTC'</pre></td>
|
|---|
| 4795 | </tr>
|
|---|
| 4796 |
|
|---|
| 4797 | <tr>
|
|---|
| 4798 | <td>STATIC_ROOT</td>
|
|---|
| 4799 | <td class="code"><pre>None</pre></td>
|
|---|
| 4800 | </tr>
|
|---|
| 4801 |
|
|---|
| 4802 | <tr>
|
|---|
| 4803 | <td>SIGNING_BACKEND</td>
|
|---|
| 4804 | <td class="code"><pre>'django.core.signing.TimestampSigner'</pre></td>
|
|---|
| 4805 | </tr>
|
|---|
| 4806 |
|
|---|
| 4807 | <tr>
|
|---|
| 4808 | <td>TEST_RUNNER</td>
|
|---|
| 4809 | <td class="code"><pre>'django.test.runner.DiscoverRunner'</pre></td>
|
|---|
| 4810 | </tr>
|
|---|
| 4811 |
|
|---|
| 4812 | <tr>
|
|---|
| 4813 | <td>WSGI_APPLICATION</td>
|
|---|
| 4814 | <td class="code"><pre>'perfman.wsgi.application'</pre></td>
|
|---|
| 4815 | </tr>
|
|---|
| 4816 |
|
|---|
| 4817 | <tr>
|
|---|
| 4818 | <td>PREPEND_WWW</td>
|
|---|
| 4819 | <td class="code"><pre>False</pre></td>
|
|---|
| 4820 | </tr>
|
|---|
| 4821 |
|
|---|
| 4822 | <tr>
|
|---|
| 4823 | <td>SESSION_COOKIE_HTTPONLY</td>
|
|---|
| 4824 | <td class="code"><pre>True</pre></td>
|
|---|
| 4825 | </tr>
|
|---|
| 4826 |
|
|---|
| 4827 | <tr>
|
|---|
| 4828 | <td>SESSION_ENGINE</td>
|
|---|
| 4829 | <td class="code"><pre>'django.contrib.sessions.backends.db'</pre></td>
|
|---|
| 4830 | </tr>
|
|---|
| 4831 |
|
|---|
| 4832 | <tr>
|
|---|
| 4833 | <td>CSRF_COOKIE_NAME</td>
|
|---|
| 4834 | <td class="code"><pre>'csrftoken'</pre></td>
|
|---|
| 4835 | </tr>
|
|---|
| 4836 |
|
|---|
| 4837 | <tr>
|
|---|
| 4838 | <td>SHORT_DATETIME_FORMAT</td>
|
|---|
| 4839 | <td class="code"><pre>'m/d/Y P'</pre></td>
|
|---|
| 4840 | </tr>
|
|---|
| 4841 |
|
|---|
| 4842 | <tr>
|
|---|
| 4843 | <td>YEAR_MONTH_FORMAT</td>
|
|---|
| 4844 | <td class="code"><pre>'F Y'</pre></td>
|
|---|
| 4845 | </tr>
|
|---|
| 4846 |
|
|---|
| 4847 | <tr>
|
|---|
| 4848 | <td>TEMPLATE_CONTEXT_PROCESSORS</td>
|
|---|
| 4849 | <td class="code"><pre>('django.contrib.auth.context_processors.auth',
|
|---|
| 4850 | 'django.template.context_processors.debug',
|
|---|
| 4851 | 'django.template.context_processors.i18n',
|
|---|
| 4852 | 'django.template.context_processors.media',
|
|---|
| 4853 | 'django.template.context_processors.static',
|
|---|
| 4854 | 'django.template.context_processors.tz',
|
|---|
| 4855 | 'django.contrib.messages.context_processors.messages')</pre></td>
|
|---|
| 4856 | </tr>
|
|---|
| 4857 |
|
|---|
| 4858 | <tr>
|
|---|
| 4859 | <td>SESSION_CACHE_ALIAS</td>
|
|---|
| 4860 | <td class="code"><pre>'default'</pre></td>
|
|---|
| 4861 | </tr>
|
|---|
| 4862 |
|
|---|
| 4863 | <tr>
|
|---|
| 4864 | <td>FORCE_SCRIPT_NAME</td>
|
|---|
| 4865 | <td class="code"><pre>None</pre></td>
|
|---|
| 4866 | </tr>
|
|---|
| 4867 |
|
|---|
| 4868 | <tr>
|
|---|
| 4869 | <td>SESSION_COOKIE_AGE</td>
|
|---|
| 4870 | <td class="code"><pre>1209600</pre></td>
|
|---|
| 4871 | </tr>
|
|---|
| 4872 |
|
|---|
| 4873 | <tr>
|
|---|
| 4874 | <td>SECURE_CONTENT_TYPE_NOSNIFF</td>
|
|---|
| 4875 | <td class="code"><pre>False</pre></td>
|
|---|
| 4876 | </tr>
|
|---|
| 4877 |
|
|---|
| 4878 | <tr>
|
|---|
| 4879 | <td>MIDDLEWARE_CLASSES</td>
|
|---|
| 4880 | <td class="code"><pre>('django.contrib.sessions.middleware.SessionMiddleware',
|
|---|
| 4881 | 'django.middleware.common.CommonMiddleware',
|
|---|
| 4882 | 'django.middleware.csrf.CsrfViewMiddleware',
|
|---|
| 4883 | 'django.contrib.auth.middleware.AuthenticationMiddleware',
|
|---|
| 4884 | 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
|
|---|
| 4885 | 'django.contrib.messages.middleware.MessageMiddleware',
|
|---|
| 4886 | 'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
|---|
| 4887 | 'django.middleware.security.SecurityMiddleware')</pre></td>
|
|---|
| 4888 | </tr>
|
|---|
| 4889 |
|
|---|
| 4890 | <tr>
|
|---|
| 4891 | <td>MONTH_DAY_FORMAT</td>
|
|---|
| 4892 | <td class="code"><pre>'F j'</pre></td>
|
|---|
| 4893 | </tr>
|
|---|
| 4894 |
|
|---|
| 4895 | <tr>
|
|---|
| 4896 | <td>CSRF_COOKIE_SECURE</td>
|
|---|
| 4897 | <td class="code"><pre>False</pre></td>
|
|---|
| 4898 | </tr>
|
|---|
| 4899 |
|
|---|
| 4900 | <tr>
|
|---|
| 4901 | <td>SECRET_KEY</td>
|
|---|
| 4902 | <td class="code"><pre>'********************'</pre></td>
|
|---|
| 4903 | </tr>
|
|---|
| 4904 |
|
|---|
| 4905 | <tr>
|
|---|
| 4906 | <td>LOGIN_URL</td>
|
|---|
| 4907 | <td class="code"><pre>'/accounts/login/'</pre></td>
|
|---|
| 4908 | </tr>
|
|---|
| 4909 |
|
|---|
| 4910 | <tr>
|
|---|
| 4911 | <td>DATABASES</td>
|
|---|
| 4912 | <td class="code"><pre>{'default': {'ATOMIC_REQUESTS': False,
|
|---|
| 4913 | 'AUTOCOMMIT': True,
|
|---|
| 4914 | 'CONN_MAX_AGE': 0,
|
|---|
| 4915 | 'ENGINE': 'django.db.backends.mysql',
|
|---|
| 4916 | 'HOST': '',
|
|---|
| 4917 | 'NAME': 'perfman2',
|
|---|
| 4918 | 'OPTIONS': {},
|
|---|
| 4919 | 'PASSWORD': '********************',
|
|---|
| 4920 | 'PORT': '3306',
|
|---|
| 4921 | 'TEST': {'CHARSET': None,
|
|---|
| 4922 | 'COLLATION': None,
|
|---|
| 4923 | 'MIRROR': None,
|
|---|
| 4924 | 'NAME': None},
|
|---|
| 4925 | 'TIME_ZONE': 'UTC',
|
|---|
| 4926 | 'USER': 'root'}}</pre></td>
|
|---|
| 4927 | </tr>
|
|---|
| 4928 |
|
|---|
| 4929 | <tr>
|
|---|
| 4930 | <td>SETTINGS_MODULE</td>
|
|---|
| 4931 | <td class="code"><pre>'perfman.settings'</pre></td>
|
|---|
| 4932 | </tr>
|
|---|
| 4933 |
|
|---|
| 4934 | <tr>
|
|---|
| 4935 | <td>ADMINS</td>
|
|---|
| 4936 | <td class="code"><pre>()</pre></td>
|
|---|
| 4937 | </tr>
|
|---|
| 4938 |
|
|---|
| 4939 | <tr>
|
|---|
| 4940 | <td>SESSION_COOKIE_PATH</td>
|
|---|
| 4941 | <td class="code"><pre>'/'</pre></td>
|
|---|
| 4942 | </tr>
|
|---|
| 4943 |
|
|---|
| 4944 | <tr>
|
|---|
| 4945 | <td>MIGRATION_MODULES</td>
|
|---|
| 4946 | <td class="code"><pre>{}</pre></td>
|
|---|
| 4947 | </tr>
|
|---|
| 4948 |
|
|---|
| 4949 | <tr>
|
|---|
| 4950 | <td>TEMPLATE_LOADERS</td>
|
|---|
| 4951 | <td class="code"><pre>('django.template.loaders.filesystem.Loader',
|
|---|
| 4952 | 'django.template.loaders.app_directories.Loader')</pre></td>
|
|---|
| 4953 | </tr>
|
|---|
| 4954 |
|
|---|
| 4955 | <tr>
|
|---|
| 4956 | <td>EMAIL_BACKEND</td>
|
|---|
| 4957 | <td class="code"><pre>'django.core.mail.backends.smtp.EmailBackend'</pre></td>
|
|---|
| 4958 | </tr>
|
|---|
| 4959 |
|
|---|
| 4960 | <tr>
|
|---|
| 4961 | <td>SILENCED_SYSTEM_CHECKS</td>
|
|---|
| 4962 | <td class="code"><pre>[]</pre></td>
|
|---|
| 4963 | </tr>
|
|---|
| 4964 |
|
|---|
| 4965 | <tr>
|
|---|
| 4966 | <td>LOGGING_CONFIG</td>
|
|---|
| 4967 | <td class="code"><pre>'logging.config.dictConfig'</pre></td>
|
|---|
| 4968 | </tr>
|
|---|
| 4969 |
|
|---|
| 4970 | <tr>
|
|---|
| 4971 | <td>FILE_UPLOAD_DIRECTORY_PERMISSIONS</td>
|
|---|
| 4972 | <td class="code"><pre>None</pre></td>
|
|---|
| 4973 | </tr>
|
|---|
| 4974 |
|
|---|
| 4975 | <tr>
|
|---|
| 4976 | <td>STATICFILES_DIRS</td>
|
|---|
| 4977 | <td class="code"><pre>()</pre></td>
|
|---|
| 4978 | </tr>
|
|---|
| 4979 |
|
|---|
| 4980 | <tr>
|
|---|
| 4981 | <td>LOGOUT_URL</td>
|
|---|
| 4982 | <td class="code"><pre>'/accounts/logout/'</pre></td>
|
|---|
| 4983 | </tr>
|
|---|
| 4984 |
|
|---|
| 4985 | <tr>
|
|---|
| 4986 | <td>FIRST_DAY_OF_WEEK</td>
|
|---|
| 4987 | <td class="code"><pre>0</pre></td>
|
|---|
| 4988 | </tr>
|
|---|
| 4989 |
|
|---|
| 4990 | <tr>
|
|---|
| 4991 | <td>LANGUAGE_COOKIE_AGE</td>
|
|---|
| 4992 | <td class="code"><pre>None</pre></td>
|
|---|
| 4993 | </tr>
|
|---|
| 4994 |
|
|---|
| 4995 | <tr>
|
|---|
| 4996 | <td>CACHE_MIDDLEWARE_KEY_PREFIX</td>
|
|---|
| 4997 | <td class="code"><pre>'********************'</pre></td>
|
|---|
| 4998 | </tr>
|
|---|
| 4999 |
|
|---|
| 5000 | <tr>
|
|---|
| 5001 | <td>SHORT_DATE_FORMAT</td>
|
|---|
| 5002 | <td class="code"><pre>'m/d/Y'</pre></td>
|
|---|
| 5003 | </tr>
|
|---|
| 5004 |
|
|---|
| 5005 | <tr>
|
|---|
| 5006 | <td>USE_TZ</td>
|
|---|
| 5007 | <td class="code"><pre>True</pre></td>
|
|---|
| 5008 | </tr>
|
|---|
| 5009 |
|
|---|
| 5010 | <tr>
|
|---|
| 5011 | <td>SECURE_BROWSER_XSS_FILTER</td>
|
|---|
| 5012 | <td class="code"><pre>False</pre></td>
|
|---|
| 5013 | </tr>
|
|---|
| 5014 |
|
|---|
| 5015 | <tr>
|
|---|
| 5016 | <td>EMAIL_TIMEOUT</td>
|
|---|
| 5017 | <td class="code"><pre>None</pre></td>
|
|---|
| 5018 | </tr>
|
|---|
| 5019 |
|
|---|
| 5020 | <tr>
|
|---|
| 5021 | <td>SESSION_EXPIRE_AT_BROWSER_CLOSE</td>
|
|---|
| 5022 | <td class="code"><pre>False</pre></td>
|
|---|
| 5023 | </tr>
|
|---|
| 5024 |
|
|---|
| 5025 | <tr>
|
|---|
| 5026 | <td>INSTALLED_APPS</td>
|
|---|
| 5027 | <td class="code"><pre>('django.contrib.admin',
|
|---|
| 5028 | 'django.contrib.auth',
|
|---|
| 5029 | 'django.contrib.contenttypes',
|
|---|
| 5030 | 'django.contrib.sessions',
|
|---|
| 5031 | 'django.contrib.messages',
|
|---|
| 5032 | 'django.contrib.staticfiles',
|
|---|
| 5033 | 'hrm')</pre></td>
|
|---|
| 5034 | </tr>
|
|---|
| 5035 |
|
|---|
| 5036 | </tbody>
|
|---|
| 5037 | </table>
|
|---|
| 5038 |
|
|---|
| 5039 | </div>
|
|---|
| 5040 |
|
|---|
| 5041 | <div id="explanation">
|
|---|
| 5042 | <p>
|
|---|
| 5043 | You're seeing this error because you have <code>DEBUG = True</code> in your
|
|---|
| 5044 | Django settings file. Change that to <code>False</code>, and Django will
|
|---|
| 5045 | display a standard page generated by the handler for this status code.
|
|---|
| 5046 | </p>
|
|---|
| 5047 | </div>
|
|---|
| 5048 |
|
|---|
| 5049 |
|
|---|
| 5050 |
|
|---|
| 5051 | </body></html>
|
|---|