1 |
|
---|
2 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
---|
3 | <html lang="en"><!-- Source is http://localhost:8080/admin/comments/comment/ -->
|
---|
4 | <head>
|
---|
5 | <meta http-equiv="content-type" content="text/html; charset=utf-8">
|
---|
6 | <meta name="robots" content="NONE,NOARCHIVE">
|
---|
7 | <title>OperationalError at /admin/comments/comment/</title>
|
---|
8 | <style type="text/css">
|
---|
9 | html * { padding:0; margin:0; }
|
---|
10 | body * { padding:10px 20px; }
|
---|
11 | body * * { padding:0; }
|
---|
12 | body { font:small sans-serif; }
|
---|
13 | body>div { border-bottom:1px solid #ddd; }
|
---|
14 | h1 { font-weight:normal; }
|
---|
15 | h2 { margin-bottom:.8em; }
|
---|
16 | h2 span { font-size:80%; color:#666; font-weight:normal; }
|
---|
17 | h3 { margin:1em 0 .5em 0; }
|
---|
18 | h4 { margin:0 0 .5em 0; font-weight: normal; }
|
---|
19 | table { border:1px solid #ccc; border-collapse: collapse; width:100%; background:white; }
|
---|
20 | tbody td, tbody th { vertical-align:top; padding:2px 3px; }
|
---|
21 | thead th { padding:1px 6px 1px 3px; background:#fefefe; text-align:left; font-weight:normal; font-size:11px; border:1px solid #ddd; }
|
---|
22 | tbody th { width:12em; text-align:right; color:#666; padding-right:.5em; }
|
---|
23 | table.vars { margin:5px 0 2px 40px; }
|
---|
24 | table.vars td, table.req td { font-family:monospace; }
|
---|
25 | table td.code { width:100%; }
|
---|
26 | table td.code div { overflow:hidden; }
|
---|
27 | table.source th { color:#666; }
|
---|
28 | table.source td { font-family:monospace; white-space:pre; border-bottom:1px solid #eee; }
|
---|
29 | ul.traceback { list-style-type:none; }
|
---|
30 | ul.traceback li.frame { margin-bottom:1em; }
|
---|
31 | div.context { margin: 10px 0; }
|
---|
32 | div.context ol { padding-left:30px; margin:0 10px; list-style-position: inside; }
|
---|
33 | div.context ol li { font-family:monospace; white-space:pre; color:#666; cursor:pointer; }
|
---|
34 | div.context ol.context-line li { color:black; background-color:#ccc; }
|
---|
35 | div.context ol.context-line li span { float: right; }
|
---|
36 | div.commands { margin-left: 40px; }
|
---|
37 | div.commands a { color:black; text-decoration:none; }
|
---|
38 | #summary { background: #ffc; }
|
---|
39 | #summary h2 { font-weight: normal; color: #666; }
|
---|
40 | #explanation { background:#eee; }
|
---|
41 | #template, #template-not-exist { background:#f6f6f6; }
|
---|
42 | #template-not-exist ul { margin: 0 0 0 20px; }
|
---|
43 | #unicode-hint { background:#eee; }
|
---|
44 | #traceback { background:#eee; }
|
---|
45 | #requestinfo { background:#f6f6f6; padding-left:120px; }
|
---|
46 | #summary table { border:none; background:transparent; }
|
---|
47 | #requestinfo h2, #requestinfo h3 { position:relative; margin-left:-100px; }
|
---|
48 | #requestinfo h3 { margin-bottom:-1em; }
|
---|
49 | .error { background: #ffc; }
|
---|
50 | .specific { color:#cc3300; font-weight:bold; }
|
---|
51 | h2 span.commands { font-size:.7em;}
|
---|
52 | span.commands a:link {color:#5E5694;}
|
---|
53 | pre.exception_value { font-family: sans-serif; color: #666; font-size: 1.5em; margin: 10px 0 10px 0; }
|
---|
54 | </style>
|
---|
55 | <script type="text/javascript">
|
---|
56 | //<!--
|
---|
57 | function getElementsByClassName(oElm, strTagName, strClassName){
|
---|
58 | // Written by Jonathan Snook, http://www.snook.ca/jon; Add-ons by Robert Nyman, http://www.robertnyman.com
|
---|
59 | var arrElements = (strTagName == "*" && document.all)? document.all :
|
---|
60 | oElm.getElementsByTagName(strTagName);
|
---|
61 | var arrReturnElements = new Array();
|
---|
62 | strClassName = strClassName.replace(/\-/g, "\-");
|
---|
63 | var oRegExp = new RegExp("(^|\s)" + strClassName + "(\s|$)");
|
---|
64 | var oElement;
|
---|
65 | for(var i=0; i<arrElements.length; i++){
|
---|
66 | oElement = arrElements[i];
|
---|
67 | if(oRegExp.test(oElement.className)){
|
---|
68 | arrReturnElements.push(oElement);
|
---|
69 | }
|
---|
70 | }
|
---|
71 | return (arrReturnElements)
|
---|
72 | }
|
---|
73 | function hideAll(elems) {
|
---|
74 | for (var e = 0; e < elems.length; e++) {
|
---|
75 | elems[e].style.display = 'none';
|
---|
76 | }
|
---|
77 | }
|
---|
78 | window.onload = function() {
|
---|
79 | hideAll(getElementsByClassName(document, 'table', 'vars'));
|
---|
80 | hideAll(getElementsByClassName(document, 'ol', 'pre-context'));
|
---|
81 | hideAll(getElementsByClassName(document, 'ol', 'post-context'));
|
---|
82 | hideAll(getElementsByClassName(document, 'div', 'pastebin'));
|
---|
83 | }
|
---|
84 | function toggle() {
|
---|
85 | for (var i = 0; i < arguments.length; i++) {
|
---|
86 | var e = document.getElementById(arguments[i]);
|
---|
87 | if (e) {
|
---|
88 | e.style.display = e.style.display == 'none' ? 'block' : 'none';
|
---|
89 | }
|
---|
90 | }
|
---|
91 | return false;
|
---|
92 | }
|
---|
93 | function varToggle(link, id) {
|
---|
94 | toggle('v' + id);
|
---|
95 | var s = link.getElementsByTagName('span')[0];
|
---|
96 | var uarr = String.fromCharCode(0x25b6);
|
---|
97 | var darr = String.fromCharCode(0x25bc);
|
---|
98 | s.innerHTML = s.innerHTML == uarr ? darr : uarr;
|
---|
99 | return false;
|
---|
100 | }
|
---|
101 | function switchPastebinFriendly(link) {
|
---|
102 | s1 = "Switch to copy-and-paste view";
|
---|
103 | s2 = "Switch back to interactive view";
|
---|
104 | link.innerHTML = link.innerHTML == s1 ? s2 : s1;
|
---|
105 | toggle('browserTraceback', 'pastebinTraceback');
|
---|
106 | return false;
|
---|
107 | }
|
---|
108 | //-->
|
---|
109 | </script>
|
---|
110 | </head>
|
---|
111 | <body>
|
---|
112 | <div id="summary">
|
---|
113 | <h1>OperationalError at /admin/comments/comment/</h1>
|
---|
114 | <pre class="exception_value">no such table: django_site</pre>
|
---|
115 | <table class="meta">
|
---|
116 | <tr>
|
---|
117 | <th>Request Method:</th>
|
---|
118 | <td>GET</td>
|
---|
119 | </tr>
|
---|
120 | <tr>
|
---|
121 | <th>Request URL:</th>
|
---|
122 | <td>http://localhost:8080/admin/comments/comment/</td>
|
---|
123 | </tr>
|
---|
124 | <tr>
|
---|
125 | <th>Exception Type:</th>
|
---|
126 | <td>OperationalError</td>
|
---|
127 | </tr>
|
---|
128 | <tr>
|
---|
129 | <th>Exception Value:</th>
|
---|
130 | <td><pre>no such table: django_site<pre></td>
|
---|
131 | </tr>
|
---|
132 | <tr>
|
---|
133 | <th>Exception Location:</th>
|
---|
134 | <td>C:\Python25\lib\site-packages\django\db\backends\sqlite3\base.py in execute, line 167</td>
|
---|
135 | </tr>
|
---|
136 | <tr>
|
---|
137 | <th>Python Executable:</th>
|
---|
138 | <td>C:\Python25\python.exe</td>
|
---|
139 | </tr>
|
---|
140 | <tr>
|
---|
141 | <th>Python Version:</th>
|
---|
142 | <td>2.5.2</td>
|
---|
143 | </tr>
|
---|
144 | <tr>
|
---|
145 | <th>Python Path:</th>
|
---|
146 | <td>['C:\\J\\_proj\\Python\\djcode\\ssa', 'C:\\Python25\\lib\\site-packages\\setuptools-0.6c8-py2.5.egg', 'C:\\Python25\\lib\\site-packages\\pygments-0.11.1-py2.5.egg', 'C:\\Python25\\lib\\site-packages\\markdown-1.7-py2.5-win32.egg', 'C:\\Python25\\lib\\site-packages\\python_openid-2.2.1-py2.5.egg', 'C:\\Windows\\system32\\python25.zip', 'C:\\Python25\\DLLs', 'C:\\Python25\\lib', 'C:\\Python25\\lib\\plat-win', 'C:\\Python25\\lib\\lib-tk', 'C:\\Python25', 'C:\\Python25\\lib\\site-packages', 'C:\\Python25\\lib\\site-packages\\PIL', 'C:\\Python25\\lib\\site-packages\\win32', 'C:\\Python25\\lib\\site-packages\\win32\\lib', 'C:\\Python25\\lib\\site-packages\\Pythonwin']</td>
|
---|
147 | </tr>
|
---|
148 | <tr>
|
---|
149 | <th>Server time:</th>
|
---|
150 | <td>mar, 16 Sep 2008 17:38:52 -0400</td>
|
---|
151 | </tr>
|
---|
152 | </table>
|
---|
153 | </div>
|
---|
154 |
|
---|
155 |
|
---|
156 |
|
---|
157 | <div id="traceback">
|
---|
158 | <h2>Traceback <span class="commands"><a href="#" onclick="return switchPastebinFriendly(this);">Switch to copy-and-paste view</a></span></h2>
|
---|
159 |
|
---|
160 | <div id="browserTraceback">
|
---|
161 | <ul class="traceback">
|
---|
162 |
|
---|
163 | <li class="frame">
|
---|
164 | <code>C:\Python25\lib\site-packages\django\core\handlers\base.py</code> in <code>get_response</code>
|
---|
165 |
|
---|
166 |
|
---|
167 | <div class="context" id="c37890168">
|
---|
168 |
|
---|
169 | <ol start="79" class="pre-context" id="pre37890168"><li onclick="toggle('pre37890168', 'post37890168')"> # Apply view middleware</li><li onclick="toggle('pre37890168', 'post37890168')"> for middleware_method in self._view_middleware:</li><li onclick="toggle('pre37890168', 'post37890168')"> response = middleware_method(request, callback, callback_args, callback_kwargs)</li><li onclick="toggle('pre37890168', 'post37890168')"> if response:</li><li onclick="toggle('pre37890168', 'post37890168')"> return response</li><li onclick="toggle('pre37890168', 'post37890168')"></li><li onclick="toggle('pre37890168', 'post37890168')"> try:</li></ol>
|
---|
170 |
|
---|
171 | <ol start="86" class="context-line"><li onclick="toggle('pre37890168', 'post37890168')"> response = callback(request, *callback_args, **callback_kwargs) <span>...</span></li></ol>
|
---|
172 |
|
---|
173 | <ol start='87' class="post-context" id="post37890168"><li onclick="toggle('pre37890168', 'post37890168')"> except Exception, e:</li><li onclick="toggle('pre37890168', 'post37890168')"> # If the view raised an exception, run it through exception</li><li onclick="toggle('pre37890168', 'post37890168')"> # middleware, and if the exception middleware returns a</li><li onclick="toggle('pre37890168', 'post37890168')"> # response, use that. Otherwise, reraise the exception.</li><li onclick="toggle('pre37890168', 'post37890168')"> for middleware_method in self._exception_middleware:</li><li onclick="toggle('pre37890168', 'post37890168')"> response = middleware_method(request, e)</li></ol>
|
---|
174 |
|
---|
175 | </div>
|
---|
176 |
|
---|
177 |
|
---|
178 |
|
---|
179 | <div class="commands">
|
---|
180 | <a href="#" onclick="return varToggle(this, '37890168')"><span>▶</span> Local vars</a>
|
---|
181 | </div>
|
---|
182 | <table class="vars" id="v37890168">
|
---|
183 | <thead>
|
---|
184 | <tr>
|
---|
185 | <th>Variable</th>
|
---|
186 | <th>Value</th>
|
---|
187 | </tr>
|
---|
188 | </thead>
|
---|
189 | <tbody>
|
---|
190 |
|
---|
191 | <tr>
|
---|
192 | <td>callback</td>
|
---|
193 | <td class="code"><div><bound method AdminSite.root of <django.contrib.admin.sites.AdminSite object at 0x0220E750>></div></td>
|
---|
194 | </tr>
|
---|
195 |
|
---|
196 | <tr>
|
---|
197 | <td>callback_args</td>
|
---|
198 | <td class="code"><div>(u'comments/comment/',)</div></td>
|
---|
199 | </tr>
|
---|
200 |
|
---|
201 | <tr>
|
---|
202 | <td>callback_kwargs</td>
|
---|
203 | <td class="code"><div>{}</div></td>
|
---|
204 | </tr>
|
---|
205 |
|
---|
206 | <tr>
|
---|
207 | <td>e</td>
|
---|
208 | <td class="code"><div>OperationalError('no such table: django_site',)</div></td>
|
---|
209 | </tr>
|
---|
210 |
|
---|
211 | <tr>
|
---|
212 | <td>exc_info</td>
|
---|
213 | <td class="code"><div>(<class 'sqlite3.OperationalError'>,
|
---|
214 | OperationalError('no such table: django_site',),
|
---|
215 | <traceback object at 0x02422878>)</div></td>
|
---|
216 | </tr>
|
---|
217 |
|
---|
218 | <tr>
|
---|
219 | <td>exceptions</td>
|
---|
220 | <td class="code"><div><module 'django.core.exceptions' from 'C:\Python25\lib\site-packages\django\core\exceptions.pyc'></div></td>
|
---|
221 | </tr>
|
---|
222 |
|
---|
223 | <tr>
|
---|
224 | <td>middleware_method</td>
|
---|
225 | <td class="code"><div><bound method AuthenticationMiddleware.process_request of <django.contrib.auth.middleware.AuthenticationMiddleware object at 0x02343AF0>></div></td>
|
---|
226 | </tr>
|
---|
227 |
|
---|
228 | <tr>
|
---|
229 | <td>receivers</td>
|
---|
230 | <td class="code"><div>[(<function _rollback_on_exception at 0x020ADE70>, None)]</div></td>
|
---|
231 | </tr>
|
---|
232 |
|
---|
233 | <tr>
|
---|
234 | <td>request</td>
|
---|
235 | <td class="code"><div><WSGIRequest
|
---|
236 | GET:<QueryDict: {}>,
|
---|
237 | POST:<QueryDict: {}>,
|
---|
238 | COOKIES:{'sessionid': '831bf381040c8a6239b3bba39536eb49'},
|
---|
239 | META:{'ALLUSERSPROFILE': 'C:\\ProgramData',
|
---|
240 | 'APPDATA': 'C:\\Users\\J\\AppData\\Roaming',
|
---|
241 | 'CLASSPATH': '.;C:\\Program Files\\QuickTime\\QTSystem\\QTJava.zip',
|
---|
242 | 'COMMANDER_DRIVE': 'C:',
|
---|
243 | 'COMMANDER_INI': 'C:\\Users\\J\\AppData\\Roaming\\GHISLER\\wincmd.ini',
|
---|
244 | 'COMMANDER_PATH': 'C:\\Program Files\\totalcmd',
|
---|
245 | 'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files',
|
---|
246 | 'COMPUTERNAME': 'J-PC-VISTAEN',
|
---|
247 | 'COMSPEC': 'C:\\Windows\\system32\\cmd.exe',
|
---|
248 | 'CONTENT_LENGTH': '',
|
---|
249 | 'CONTENT_TYPE': 'text/plain',
|
---|
250 | 'DJANGO_SETTINGS_MODULE': 'ssa.settings',
|
---|
251 | 'FP_NO_HOST_CHECK': 'NO',
|
---|
252 | 'GATEWAY_INTERFACE': 'CGI/1.1',
|
---|
253 | 'HOMEDRIVE': 'C:',
|
---|
254 | 'HOMEPATH': '\\Users\\J',
|
---|
255 | 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
|
---|
256 | 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
|
---|
257 | 'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
|
---|
258 | 'HTTP_ACCEPT_LANGUAGE': 'es,es-ar;q=0.8,en-us;q=0.5,en;q=0.3',
|
---|
259 | 'HTTP_CACHE_CONTROL': 'max-age=0',
|
---|
260 | 'HTTP_CONNECTION': 'keep-alive',
|
---|
261 | 'HTTP_COOKIE': 'sessionid=831bf381040c8a6239b3bba39536eb49',
|
---|
262 | 'HTTP_HOST': 'localhost:8080',
|
---|
263 | 'HTTP_KEEP_ALIVE': '300',
|
---|
264 | 'HTTP_REFERER': 'http://localhost:8080/admin/',
|
---|
265 | 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1',
|
---|
266 | 'LOCALAPPDATA': 'C:\\Users\\J\\AppData\\Local',
|
---|
267 | 'LOGONSERVER': '\\\\J-PC-VISTAEN',
|
---|
268 | 'NUMBER_OF_PROCESSORS': '2',
|
---|
269 | 'OS': 'Windows_NT',
|
---|
270 | 'PATH': 'C:\\Python25\\;C:\\Python25\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Program Files\\QuickTime\\QTSystem\\;C:\\Program Files\\Common Files\\Adobe\\AGL;C:\\p\\usr\\bin;C:\\Python25\\Lib\\site-packages\\django\\bin\\;;C:\\Program Files\\Common Files\\Ahead\\Lib\\',
|
---|
271 | 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.py;.pyw',
|
---|
272 | 'PATH_INFO': u'/admin/comments/comment/',
|
---|
273 | 'PROCESSOR_ARCHITECTURE': 'x86',
|
---|
274 | 'PROCESSOR_IDENTIFIER': 'x86 Family 6 Model 15 Stepping 6, GenuineIntel',
|
---|
275 | 'PROCESSOR_LEVEL': '6',
|
---|
276 | 'PROCESSOR_REVISION': '0f06',
|
---|
277 | 'PROGRAMDATA': 'C:\\ProgramData',
|
---|
278 | 'PROGRAMFILES': 'C:\\Program Files',
|
---|
279 | 'PROMPT': '$P$G',
|
---|
280 | 'PUBLIC': 'C:\\Users\\Public',
|
---|
281 | 'QTJAVA': 'C:\\Program Files\\QuickTime\\QTSystem\\QTJava.zip',
|
---|
282 | 'QUERY_STRING': '',
|
---|
283 | 'REMOTE_ADDR': '127.0.0.1',
|
---|
284 | 'REMOTE_HOST': '',
|
---|
285 | 'REQUEST_METHOD': 'GET',
|
---|
286 | 'RUN_MAIN': 'true',
|
---|
287 | 'SCRIPT_NAME': u'',
|
---|
288 | 'SERVER_NAME': 'J-PC-vistaen',
|
---|
289 | 'SERVER_PORT': '8080',
|
---|
290 | 'SERVER_PROTOCOL': 'HTTP/1.1',
|
---|
291 | 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.5.2',
|
---|
292 | 'SESSIONNAME': 'Console',
|
---|
293 | 'SYSTEMDRIVE': 'C:',
|
---|
294 | 'SYSTEMROOT': 'C:\\Windows',
|
---|
295 | 'TEMP': 'C:\\Users\\J\\AppData\\Local\\Temp',
|
---|
296 | 'TMP': 'C:\\Users\\J\\AppData\\Local\\Temp',
|
---|
297 | 'USERDOMAIN': 'J-PC-vistaen',
|
---|
298 | 'USERNAME': 'J',
|
---|
299 | 'USERPROFILE': 'C:\\Users\\J',
|
---|
300 | 'WINDIR': 'C:\\Windows',
|
---|
301 | 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x0195F0B0>,
|
---|
302 | 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>,
|
---|
303 | 'wsgi.input': <socket._fileobject object at 0x023043F0>,
|
---|
304 | 'wsgi.multiprocess': False,
|
---|
305 | 'wsgi.multithread': True,
|
---|
306 | 'wsgi.run_once': False,
|
---|
307 | 'wsgi.url_scheme': 'http',
|
---|
308 | 'wsgi.version': (1, 0)}></div></td>
|
---|
309 | </tr>
|
---|
310 |
|
---|
311 | <tr>
|
---|
312 | <td>resolver</td>
|
---|
313 | <td class="code"><div><RegexURLResolver ssa.urls ^/></div></td>
|
---|
314 | </tr>
|
---|
315 |
|
---|
316 | <tr>
|
---|
317 | <td>response</td>
|
---|
318 | <td class="code"><div>None</div></td>
|
---|
319 | </tr>
|
---|
320 |
|
---|
321 | <tr>
|
---|
322 | <td>self</td>
|
---|
323 | <td class="code"><div><django.core.handlers.wsgi.WSGIHandler object at 0x022F8F50></div></td>
|
---|
324 | </tr>
|
---|
325 |
|
---|
326 | <tr>
|
---|
327 | <td>settings</td>
|
---|
328 | <td class="code"><div><django.conf.LazySettings object at 0x01AB0430></div></td>
|
---|
329 | </tr>
|
---|
330 |
|
---|
331 | <tr>
|
---|
332 | <td>urlconf</td>
|
---|
333 | <td class="code"><div>'ssa.urls'</div></td>
|
---|
334 | </tr>
|
---|
335 |
|
---|
336 | <tr>
|
---|
337 | <td>urlresolvers</td>
|
---|
338 | <td class="code"><div><module 'django.core.urlresolvers' from 'C:\Python25\lib\site-packages\django\core\urlresolvers.pyc'></div></td>
|
---|
339 | </tr>
|
---|
340 |
|
---|
341 | </tbody>
|
---|
342 | </table>
|
---|
343 |
|
---|
344 | </li>
|
---|
345 |
|
---|
346 | <li class="frame">
|
---|
347 | <code>C:\Python25\lib\site-packages\django\contrib\admin\sites.py</code> in <code>root</code>
|
---|
348 |
|
---|
349 |
|
---|
350 | <div class="context" id="c37888128">
|
---|
351 |
|
---|
352 | <ol start="151" class="pre-context" id="pre37888128"><li onclick="toggle('pre37888128', 'post37888128')"> return self.i18n_javascript(request)</li><li onclick="toggle('pre37888128', 'post37888128')"> # urls starting with 'r/' are for the "show in web" links</li><li onclick="toggle('pre37888128', 'post37888128')"> elif url.startswith('r/'):</li><li onclick="toggle('pre37888128', 'post37888128')"> from django.views.defaults import shortcut</li><li onclick="toggle('pre37888128', 'post37888128')"> return shortcut(request, *url.split('/')[1:])</li><li onclick="toggle('pre37888128', 'post37888128')"> else:</li><li onclick="toggle('pre37888128', 'post37888128')"> if '/' in url:</li></ol>
|
---|
353 |
|
---|
354 | <ol start="158" class="context-line"><li onclick="toggle('pre37888128', 'post37888128')"> return self.model_page(request, *url.split('/', 2)) <span>...</span></li></ol>
|
---|
355 |
|
---|
356 | <ol start='159' class="post-context" id="post37888128"><li onclick="toggle('pre37888128', 'post37888128')"> else:</li><li onclick="toggle('pre37888128', 'post37888128')"> return self.app_index(request, url)</li><li onclick="toggle('pre37888128', 'post37888128')"></li><li onclick="toggle('pre37888128', 'post37888128')"> raise http.Http404('The requested admin page does not exist.')</li><li onclick="toggle('pre37888128', 'post37888128')"></li><li onclick="toggle('pre37888128', 'post37888128')"> def model_page(self, request, app_label, model_name, rest_of_url=None):</li></ol>
|
---|
357 |
|
---|
358 | </div>
|
---|
359 |
|
---|
360 |
|
---|
361 |
|
---|
362 | <div class="commands">
|
---|
363 | <a href="#" onclick="return varToggle(this, '37888128')"><span>▶</span> Local vars</a>
|
---|
364 | </div>
|
---|
365 | <table class="vars" id="v37888128">
|
---|
366 | <thead>
|
---|
367 | <tr>
|
---|
368 | <th>Variable</th>
|
---|
369 | <th>Value</th>
|
---|
370 | </tr>
|
---|
371 | </thead>
|
---|
372 | <tbody>
|
---|
373 |
|
---|
374 | <tr>
|
---|
375 | <td>request</td>
|
---|
376 | <td class="code"><div><WSGIRequest
|
---|
377 | GET:<QueryDict: {}>,
|
---|
378 | POST:<QueryDict: {}>,
|
---|
379 | COOKIES:{'sessionid': '831bf381040c8a6239b3bba39536eb49'},
|
---|
380 | META:{'ALLUSERSPROFILE': 'C:\\ProgramData',
|
---|
381 | 'APPDATA': 'C:\\Users\\J\\AppData\\Roaming',
|
---|
382 | 'CLASSPATH': '.;C:\\Program Files\\QuickTime\\QTSystem\\QTJava.zip',
|
---|
383 | 'COMMANDER_DRIVE': 'C:',
|
---|
384 | 'COMMANDER_INI': 'C:\\Users\\J\\AppData\\Roaming\\GHISLER\\wincmd.ini',
|
---|
385 | 'COMMANDER_PATH': 'C:\\Program Files\\totalcmd',
|
---|
386 | 'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files',
|
---|
387 | 'COMPUTERNAME': 'J-PC-VISTAEN',
|
---|
388 | 'COMSPEC': 'C:\\Windows\\system32\\cmd.exe',
|
---|
389 | 'CONTENT_LENGTH': '',
|
---|
390 | 'CONTENT_TYPE': 'text/plain',
|
---|
391 | 'DJANGO_SETTINGS_MODULE': 'ssa.settings',
|
---|
392 | 'FP_NO_HOST_CHECK': 'NO',
|
---|
393 | 'GATEWAY_INTERFACE': 'CGI/1.1',
|
---|
394 | 'HOMEDRIVE': 'C:',
|
---|
395 | 'HOMEPATH': '\\Users\\J',
|
---|
396 | 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
|
---|
397 | 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
|
---|
398 | 'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
|
---|
399 | 'HTTP_ACCEPT_LANGUAGE': 'es,es-ar;q=0.8,en-us;q=0.5,en;q=0.3',
|
---|
400 | 'HTTP_CACHE_CONTROL': 'max-age=0',
|
---|
401 | 'HTTP_CONNECTION': 'keep-alive',
|
---|
402 | 'HTTP_COOKIE': 'sessionid=831bf381040c8a6239b3bba39536eb49',
|
---|
403 | 'HTTP_HOST': 'localhost:8080',
|
---|
404 | 'HTTP_KEEP_ALIVE': '300',
|
---|
405 | 'HTTP_REFERER': 'http://localhost:8080/admin/',
|
---|
406 | 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1',
|
---|
407 | 'LOCALAPPDATA': 'C:\\Users\\J\\AppData\\Local',
|
---|
408 | 'LOGONSERVER': '\\\\J-PC-VISTAEN',
|
---|
409 | 'NUMBER_OF_PROCESSORS': '2',
|
---|
410 | 'OS': 'Windows_NT',
|
---|
411 | 'PATH': 'C:\\Python25\\;C:\\Python25\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Program Files\\QuickTime\\QTSystem\\;C:\\Program Files\\Common Files\\Adobe\\AGL;C:\\p\\usr\\bin;C:\\Python25\\Lib\\site-packages\\django\\bin\\;;C:\\Program Files\\Common Files\\Ahead\\Lib\\',
|
---|
412 | 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.py;.pyw',
|
---|
413 | 'PATH_INFO': u'/admin/comments/comment/',
|
---|
414 | 'PROCESSOR_ARCHITECTURE': 'x86',
|
---|
415 | 'PROCESSOR_IDENTIFIER': 'x86 Family 6 Model 15 Stepping 6, GenuineIntel',
|
---|
416 | 'PROCESSOR_LEVEL': '6',
|
---|
417 | 'PROCESSOR_REVISION': '0f06',
|
---|
418 | 'PROGRAMDATA': 'C:\\ProgramData',
|
---|
419 | 'PROGRAMFILES': 'C:\\Program Files',
|
---|
420 | 'PROMPT': '$P$G',
|
---|
421 | 'PUBLIC': 'C:\\Users\\Public',
|
---|
422 | 'QTJAVA': 'C:\\Program Files\\QuickTime\\QTSystem\\QTJava.zip',
|
---|
423 | 'QUERY_STRING': '',
|
---|
424 | 'REMOTE_ADDR': '127.0.0.1',
|
---|
425 | 'REMOTE_HOST': '',
|
---|
426 | 'REQUEST_METHOD': 'GET',
|
---|
427 | 'RUN_MAIN': 'true',
|
---|
428 | 'SCRIPT_NAME': u'',
|
---|
429 | 'SERVER_NAME': 'J-PC-vistaen',
|
---|
430 | 'SERVER_PORT': '8080',
|
---|
431 | 'SERVER_PROTOCOL': 'HTTP/1.1',
|
---|
432 | 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.5.2',
|
---|
433 | 'SESSIONNAME': 'Console',
|
---|
434 | 'SYSTEMDRIVE': 'C:',
|
---|
435 | 'SYSTEMROOT': 'C:\\Windows',
|
---|
436 | 'TEMP': 'C:\\Users\\J\\AppData\\Local\\Temp',
|
---|
437 | 'TMP': 'C:\\Users\\J\\AppData\\Local\\Temp',
|
---|
438 | 'USERDOMAIN': 'J-PC-vistaen',
|
---|
439 | 'USERNAME': 'J',
|
---|
440 | 'USERPROFILE': 'C:\\Users\\J',
|
---|
441 | 'WINDIR': 'C:\\Windows',
|
---|
442 | 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x0195F0B0>,
|
---|
443 | 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>,
|
---|
444 | 'wsgi.input': <socket._fileobject object at 0x023043F0>,
|
---|
445 | 'wsgi.multiprocess': False,
|
---|
446 | 'wsgi.multithread': True,
|
---|
447 | 'wsgi.run_once': False,
|
---|
448 | 'wsgi.url_scheme': 'http',
|
---|
449 | 'wsgi.version': (1, 0)}></div></td>
|
---|
450 | </tr>
|
---|
451 |
|
---|
452 | <tr>
|
---|
453 | <td>self</td>
|
---|
454 | <td class="code"><div><django.contrib.admin.sites.AdminSite object at 0x0220E750></div></td>
|
---|
455 | </tr>
|
---|
456 |
|
---|
457 | <tr>
|
---|
458 | <td>url</td>
|
---|
459 | <td class="code"><div>u'comments/comment'</div></td>
|
---|
460 | </tr>
|
---|
461 |
|
---|
462 | </tbody>
|
---|
463 | </table>
|
---|
464 |
|
---|
465 | </li>
|
---|
466 |
|
---|
467 | <li class="frame">
|
---|
468 | <code>C:\Python25\lib\site-packages\django\views\decorators\cache.py</code> in <code>_wrapped_view_func</code>
|
---|
469 |
|
---|
470 |
|
---|
471 | <div class="context" id="c37888168">
|
---|
472 |
|
---|
473 | <ol start="37" class="pre-context" id="pre37888168"><li onclick="toggle('pre37888168', 'post37888168')"></li><li onclick="toggle('pre37888168', 'post37888168')">def never_cache(view_func):</li><li onclick="toggle('pre37888168', 'post37888168')"> """</li><li onclick="toggle('pre37888168', 'post37888168')"> Decorator that adds headers to a response so that it will</li><li onclick="toggle('pre37888168', 'post37888168')"> never be cached.</li><li onclick="toggle('pre37888168', 'post37888168')"> """</li><li onclick="toggle('pre37888168', 'post37888168')"> def _wrapped_view_func(request, *args, **kwargs):</li></ol>
|
---|
474 |
|
---|
475 | <ol start="44" class="context-line"><li onclick="toggle('pre37888168', 'post37888168')"> response = view_func(request, *args, **kwargs) <span>...</span></li></ol>
|
---|
476 |
|
---|
477 | <ol start='45' class="post-context" id="post37888168"><li onclick="toggle('pre37888168', 'post37888168')"> add_never_cache_headers(response)</li><li onclick="toggle('pre37888168', 'post37888168')"> return response</li><li onclick="toggle('pre37888168', 'post37888168')"> return wraps(view_func)(_wrapped_view_func)</li></ol>
|
---|
478 |
|
---|
479 | </div>
|
---|
480 |
|
---|
481 |
|
---|
482 |
|
---|
483 | <div class="commands">
|
---|
484 | <a href="#" onclick="return varToggle(this, '37888168')"><span>▶</span> Local vars</a>
|
---|
485 | </div>
|
---|
486 | <table class="vars" id="v37888168">
|
---|
487 | <thead>
|
---|
488 | <tr>
|
---|
489 | <th>Variable</th>
|
---|
490 | <th>Value</th>
|
---|
491 | </tr>
|
---|
492 | </thead>
|
---|
493 | <tbody>
|
---|
494 |
|
---|
495 | <tr>
|
---|
496 | <td>args</td>
|
---|
497 | <td class="code"><div>(<WSGIRequest
|
---|
498 | GET:<QueryDict: {}>,
|
---|
499 | POST:<QueryDict: {}>,
|
---|
500 | COOKIES:{'sessionid': '831bf381040c8a6239b3bba39536eb49'},
|
---|
501 | META:{'ALLUSERSPROFILE': 'C:\\ProgramData',
|
---|
502 | 'APPDATA': 'C:\\Users\\J\\AppData\\Roaming',
|
---|
503 | 'CLASSPATH': '.;C:\\Program Files\\QuickTime\\QTSystem\\QTJava.zip',
|
---|
504 | 'COMMANDER_DRIVE': 'C:',
|
---|
505 | 'COMMANDER_INI': 'C:\\Users\\J\\AppData\\Roaming\\GHISLER\\wincmd.ini',
|
---|
506 | 'COMMANDER_PATH': 'C:\\Program Files\\totalcmd',
|
---|
507 | 'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files',
|
---|
508 | 'COMPUTERNAME': 'J-PC-VISTAEN',
|
---|
509 | 'COMSPEC': 'C:\\Windows\\system32\\cmd.exe',
|
---|
510 | 'CONTENT_LENGTH': '',
|
---|
511 | 'CONTENT_TYPE': 'text/plain',
|
---|
512 | 'DJANGO_SETTINGS_MODULE': 'ssa.settings',
|
---|
513 | 'FP_NO_HOST_CHECK': 'NO',
|
---|
514 | 'GATEWAY_INTERFACE': 'CGI/1.1',
|
---|
515 | 'HOMEDRIVE': 'C:',
|
---|
516 | 'HOMEPATH': '\\Users\\J',
|
---|
517 | 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
|
---|
518 | 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
|
---|
519 | 'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
|
---|
520 | 'HTTP_ACCEPT_LANGUAGE': 'es,es-ar;q=0.8,en-us;q=0.5,en;q=0.3',
|
---|
521 | 'HTTP_CACHE_CONTROL': 'max-age=0',
|
---|
522 | 'HTTP_CONNECTION': 'keep-alive',
|
---|
523 | 'HTTP_COOKIE': 'sessionid=831bf381040c8a6239b3bba39536eb49',
|
---|
524 | 'HTTP_HOST': 'localhost:8080',
|
---|
525 | 'HTTP_KEEP_ALIVE': '300',
|
---|
526 | 'HTTP_REFERER': 'http://localhost:8080/admin/',
|
---|
527 | 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1',
|
---|
528 | 'LOCALAPPDATA': 'C:\\Users\\J\\AppData\\Local',
|
---|
529 | 'LOGONSERVER': '\\\\J-PC-VISTAEN',
|
---|
530 | 'NUMBER_OF_PROCESSORS': '2',
|
---|
531 | 'OS': 'Windows_NT',
|
---|
532 | 'PATH': 'C:\\Python25\\;C:\\Python25\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Program Files\\QuickTime\\QTSystem\\;C:\\Program Files\\Common Files\\Adobe\\AGL;C:\\p\\usr\\bin;C:\\Python25\\Lib\\site-packages\\django\\bin\\;;C:\\Program Files\\Common Files\\Ahead\\Lib\\',
|
---|
533 | 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.py;.pyw',
|
---|
534 | 'PATH_INFO': u'/admin/comments/comment/',
|
---|
535 | 'PROCESSOR_ARCHITECTURE': 'x86',
|
---|
536 | 'PROCESSOR_IDENTIFIER': 'x86 Family 6 Model 15 Stepping 6, GenuineIntel',
|
---|
537 | 'PROCESSOR_LEVEL': '6',
|
---|
538 | 'PROCESSOR_REVISION': '0f06',
|
---|
539 | 'PROGRAMDATA': 'C:\\ProgramData',
|
---|
540 | 'PROGRAMFILES': 'C:\\Program Files',
|
---|
541 | 'PROMPT': '$P$G',
|
---|
542 | 'PUBLIC': 'C:\\Users\\Public',
|
---|
543 | 'QTJAVA': 'C:\\Program Files\\QuickTime\\QTSystem\\QTJava.zip',
|
---|
544 | 'QUERY_STRING': '',
|
---|
545 | 'REMOTE_ADDR': '127.0.0.1',
|
---|
546 | 'REMOTE_HOST': '',
|
---|
547 | 'REQUEST_METHOD': 'GET',
|
---|
548 | 'RUN_MAIN': 'true',
|
---|
549 | 'SCRIPT_NAME': u'',
|
---|
550 | 'SERVER_NAME': 'J-PC-vistaen',
|
---|
551 | 'SERVER_PORT': '8080',
|
---|
552 | 'SERVER_PROTOCOL': 'HTTP/1.1',
|
---|
553 | 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.5.2',
|
---|
554 | 'SESSIONNAME': 'Console',
|
---|
555 | 'SYSTEMDRIVE': 'C:',
|
---|
556 | 'SYSTEMROOT': 'C:\\Windows',
|
---|
557 | 'TEMP': 'C:\\Users\\J\\AppData\\Local\\Temp',
|
---|
558 | 'TMP': 'C:\\Users\\J\\AppData\\Local\\Temp',
|
---|
559 | 'USERDOMAIN': 'J-PC-vistaen',
|
---|
560 | 'USERNAME': 'J',
|
---|
561 | 'USERPROFILE': 'C:\\Users\\J',
|
---|
562 | 'WINDIR': 'C:\\Windows',
|
---|
563 | 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x0195F0B0>,
|
---|
564 | 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>,
|
---|
565 | 'wsgi.input': <socket._fileobject object at 0x023043F0>,
|
---|
566 | 'wsgi.multiprocess': False,
|
---|
567 | 'wsgi.multithread': True,
|
---|
568 | 'wsgi.run_once': False,
|
---|
569 | 'wsgi.url_scheme': 'http',
|
---|
570 | 'wsgi.version': (1, 0)}>,
|
---|
571 | u'comments',
|
---|
572 | u'comment')</div></td>
|
---|
573 | </tr>
|
---|
574 |
|
---|
575 | <tr>
|
---|
576 | <td>kwargs</td>
|
---|
577 | <td class="code"><div>{}</div></td>
|
---|
578 | </tr>
|
---|
579 |
|
---|
580 | <tr>
|
---|
581 | <td>request</td>
|
---|
582 | <td class="code"><div><django.contrib.admin.sites.AdminSite object at 0x0220E750></div></td>
|
---|
583 | </tr>
|
---|
584 |
|
---|
585 | <tr>
|
---|
586 | <td>view_func</td>
|
---|
587 | <td class="code"><div><function model_page at 0x02211AB0></div></td>
|
---|
588 | </tr>
|
---|
589 |
|
---|
590 | </tbody>
|
---|
591 | </table>
|
---|
592 |
|
---|
593 | </li>
|
---|
594 |
|
---|
595 | <li class="frame">
|
---|
596 | <code>C:\Python25\lib\site-packages\django\contrib\admin\sites.py</code> in <code>model_page</code>
|
---|
597 |
|
---|
598 |
|
---|
599 | <div class="context" id="c37888048">
|
---|
600 |
|
---|
601 | <ol start="170" class="pre-context" id="pre37888048"><li onclick="toggle('pre37888048', 'post37888048')"> model = models.get_model(app_label, model_name)</li><li onclick="toggle('pre37888048', 'post37888048')"> if model is None:</li><li onclick="toggle('pre37888048', 'post37888048')"> raise http.Http404("App %r, model %r, not found." % (app_label, model_name))</li><li onclick="toggle('pre37888048', 'post37888048')"> try:</li><li onclick="toggle('pre37888048', 'post37888048')"> admin_obj = self._registry[model]</li><li onclick="toggle('pre37888048', 'post37888048')"> except KeyError:</li><li onclick="toggle('pre37888048', 'post37888048')"> raise http.Http404("This model exists but has not been registered with the admin site.")</li></ol>
|
---|
602 |
|
---|
603 | <ol start="177" class="context-line"><li onclick="toggle('pre37888048', 'post37888048')"> return admin_obj(request, rest_of_url) <span>...</span></li></ol>
|
---|
604 |
|
---|
605 | <ol start='178' class="post-context" id="post37888048"><li onclick="toggle('pre37888048', 'post37888048')"> model_page = never_cache(model_page)</li><li onclick="toggle('pre37888048', 'post37888048')"></li><li onclick="toggle('pre37888048', 'post37888048')"> def password_change(self, request):</li><li onclick="toggle('pre37888048', 'post37888048')"> """</li><li onclick="toggle('pre37888048', 'post37888048')"> Handles the "change password" task -- both form display and validation.</li><li onclick="toggle('pre37888048', 'post37888048')"> """</li></ol>
|
---|
606 |
|
---|
607 | </div>
|
---|
608 |
|
---|
609 |
|
---|
610 |
|
---|
611 | <div class="commands">
|
---|
612 | <a href="#" onclick="return varToggle(this, '37888048')"><span>▶</span> Local vars</a>
|
---|
613 | </div>
|
---|
614 | <table class="vars" id="v37888048">
|
---|
615 | <thead>
|
---|
616 | <tr>
|
---|
617 | <th>Variable</th>
|
---|
618 | <th>Value</th>
|
---|
619 | </tr>
|
---|
620 | </thead>
|
---|
621 | <tbody>
|
---|
622 |
|
---|
623 | <tr>
|
---|
624 | <td>admin_obj</td>
|
---|
625 | <td class="code"><div><django.contrib.comments.admin.CommentsAdmin object at 0x023BBA50></div></td>
|
---|
626 | </tr>
|
---|
627 |
|
---|
628 | <tr>
|
---|
629 | <td>app_label</td>
|
---|
630 | <td class="code"><div>u'comments'</div></td>
|
---|
631 | </tr>
|
---|
632 |
|
---|
633 | <tr>
|
---|
634 | <td>model</td>
|
---|
635 | <td class="code"><div><class 'django.contrib.comments.models.Comment'></div></td>
|
---|
636 | </tr>
|
---|
637 |
|
---|
638 | <tr>
|
---|
639 | <td>model_name</td>
|
---|
640 | <td class="code"><div>u'comment'</div></td>
|
---|
641 | </tr>
|
---|
642 |
|
---|
643 | <tr>
|
---|
644 | <td>models</td>
|
---|
645 | <td class="code"><div><module 'django.db.models' from 'C:\Python25\lib\site-packages\django\db\models\__init__.pyc'></div></td>
|
---|
646 | </tr>
|
---|
647 |
|
---|
648 | <tr>
|
---|
649 | <td>request</td>
|
---|
650 | <td class="code"><div><WSGIRequest
|
---|
651 | GET:<QueryDict: {}>,
|
---|
652 | POST:<QueryDict: {}>,
|
---|
653 | COOKIES:{'sessionid': '831bf381040c8a6239b3bba39536eb49'},
|
---|
654 | META:{'ALLUSERSPROFILE': 'C:\\ProgramData',
|
---|
655 | 'APPDATA': 'C:\\Users\\J\\AppData\\Roaming',
|
---|
656 | 'CLASSPATH': '.;C:\\Program Files\\QuickTime\\QTSystem\\QTJava.zip',
|
---|
657 | 'COMMANDER_DRIVE': 'C:',
|
---|
658 | 'COMMANDER_INI': 'C:\\Users\\J\\AppData\\Roaming\\GHISLER\\wincmd.ini',
|
---|
659 | 'COMMANDER_PATH': 'C:\\Program Files\\totalcmd',
|
---|
660 | 'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files',
|
---|
661 | 'COMPUTERNAME': 'J-PC-VISTAEN',
|
---|
662 | 'COMSPEC': 'C:\\Windows\\system32\\cmd.exe',
|
---|
663 | 'CONTENT_LENGTH': '',
|
---|
664 | 'CONTENT_TYPE': 'text/plain',
|
---|
665 | 'DJANGO_SETTINGS_MODULE': 'ssa.settings',
|
---|
666 | 'FP_NO_HOST_CHECK': 'NO',
|
---|
667 | 'GATEWAY_INTERFACE': 'CGI/1.1',
|
---|
668 | 'HOMEDRIVE': 'C:',
|
---|
669 | 'HOMEPATH': '\\Users\\J',
|
---|
670 | 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
|
---|
671 | 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
|
---|
672 | 'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
|
---|
673 | 'HTTP_ACCEPT_LANGUAGE': 'es,es-ar;q=0.8,en-us;q=0.5,en;q=0.3',
|
---|
674 | 'HTTP_CACHE_CONTROL': 'max-age=0',
|
---|
675 | 'HTTP_CONNECTION': 'keep-alive',
|
---|
676 | 'HTTP_COOKIE': 'sessionid=831bf381040c8a6239b3bba39536eb49',
|
---|
677 | 'HTTP_HOST': 'localhost:8080',
|
---|
678 | 'HTTP_KEEP_ALIVE': '300',
|
---|
679 | 'HTTP_REFERER': 'http://localhost:8080/admin/',
|
---|
680 | 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1',
|
---|
681 | 'LOCALAPPDATA': 'C:\\Users\\J\\AppData\\Local',
|
---|
682 | 'LOGONSERVER': '\\\\J-PC-VISTAEN',
|
---|
683 | 'NUMBER_OF_PROCESSORS': '2',
|
---|
684 | 'OS': 'Windows_NT',
|
---|
685 | 'PATH': 'C:\\Python25\\;C:\\Python25\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Program Files\\QuickTime\\QTSystem\\;C:\\Program Files\\Common Files\\Adobe\\AGL;C:\\p\\usr\\bin;C:\\Python25\\Lib\\site-packages\\django\\bin\\;;C:\\Program Files\\Common Files\\Ahead\\Lib\\',
|
---|
686 | 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.py;.pyw',
|
---|
687 | 'PATH_INFO': u'/admin/comments/comment/',
|
---|
688 | 'PROCESSOR_ARCHITECTURE': 'x86',
|
---|
689 | 'PROCESSOR_IDENTIFIER': 'x86 Family 6 Model 15 Stepping 6, GenuineIntel',
|
---|
690 | 'PROCESSOR_LEVEL': '6',
|
---|
691 | 'PROCESSOR_REVISION': '0f06',
|
---|
692 | 'PROGRAMDATA': 'C:\\ProgramData',
|
---|
693 | 'PROGRAMFILES': 'C:\\Program Files',
|
---|
694 | 'PROMPT': '$P$G',
|
---|
695 | 'PUBLIC': 'C:\\Users\\Public',
|
---|
696 | 'QTJAVA': 'C:\\Program Files\\QuickTime\\QTSystem\\QTJava.zip',
|
---|
697 | 'QUERY_STRING': '',
|
---|
698 | 'REMOTE_ADDR': '127.0.0.1',
|
---|
699 | 'REMOTE_HOST': '',
|
---|
700 | 'REQUEST_METHOD': 'GET',
|
---|
701 | 'RUN_MAIN': 'true',
|
---|
702 | 'SCRIPT_NAME': u'',
|
---|
703 | 'SERVER_NAME': 'J-PC-vistaen',
|
---|
704 | 'SERVER_PORT': '8080',
|
---|
705 | 'SERVER_PROTOCOL': 'HTTP/1.1',
|
---|
706 | 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.5.2',
|
---|
707 | 'SESSIONNAME': 'Console',
|
---|
708 | 'SYSTEMDRIVE': 'C:',
|
---|
709 | 'SYSTEMROOT': 'C:\\Windows',
|
---|
710 | 'TEMP': 'C:\\Users\\J\\AppData\\Local\\Temp',
|
---|
711 | 'TMP': 'C:\\Users\\J\\AppData\\Local\\Temp',
|
---|
712 | 'USERDOMAIN': 'J-PC-vistaen',
|
---|
713 | 'USERNAME': 'J',
|
---|
714 | 'USERPROFILE': 'C:\\Users\\J',
|
---|
715 | 'WINDIR': 'C:\\Windows',
|
---|
716 | 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x0195F0B0>,
|
---|
717 | 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>,
|
---|
718 | 'wsgi.input': <socket._fileobject object at 0x023043F0>,
|
---|
719 | 'wsgi.multiprocess': False,
|
---|
720 | 'wsgi.multithread': True,
|
---|
721 | 'wsgi.run_once': False,
|
---|
722 | 'wsgi.url_scheme': 'http',
|
---|
723 | 'wsgi.version': (1, 0)}></div></td>
|
---|
724 | </tr>
|
---|
725 |
|
---|
726 | <tr>
|
---|
727 | <td>rest_of_url</td>
|
---|
728 | <td class="code"><div>None</div></td>
|
---|
729 | </tr>
|
---|
730 |
|
---|
731 | <tr>
|
---|
732 | <td>self</td>
|
---|
733 | <td class="code"><div><django.contrib.admin.sites.AdminSite object at 0x0220E750></div></td>
|
---|
734 | </tr>
|
---|
735 |
|
---|
736 | </tbody>
|
---|
737 | </table>
|
---|
738 |
|
---|
739 | </li>
|
---|
740 |
|
---|
741 | <li class="frame">
|
---|
742 | <code>C:\Python25\lib\site-packages\django\contrib\admin\options.py</code> in <code>__call__</code>
|
---|
743 |
|
---|
744 |
|
---|
745 | <div class="context" id="c37890888">
|
---|
746 |
|
---|
747 | <ol start="182" class="pre-context" id="pre37890888"><li onclick="toggle('pre37890888', 'post37890888')"> inline_instance = inline_class(self.model, self.admin_site)</li><li onclick="toggle('pre37890888', 'post37890888')"> self.inline_instances.append(inline_instance)</li><li onclick="toggle('pre37890888', 'post37890888')"> super(ModelAdmin, self).__init__()</li><li onclick="toggle('pre37890888', 'post37890888')"></li><li onclick="toggle('pre37890888', 'post37890888')"> def __call__(self, request, url):</li><li onclick="toggle('pre37890888', 'post37890888')"> # Delegate to the appropriate method, based on the URL.</li><li onclick="toggle('pre37890888', 'post37890888')"> if url is None:</li></ol>
|
---|
748 |
|
---|
749 | <ol start="189" class="context-line"><li onclick="toggle('pre37890888', 'post37890888')"> return self.changelist_view(request) <span>...</span></li></ol>
|
---|
750 |
|
---|
751 | <ol start='190' class="post-context" id="post37890888"><li onclick="toggle('pre37890888', 'post37890888')"> elif url == "add":</li><li onclick="toggle('pre37890888', 'post37890888')"> return self.add_view(request)</li><li onclick="toggle('pre37890888', 'post37890888')"> elif url.endswith('/history'):</li><li onclick="toggle('pre37890888', 'post37890888')"> return self.history_view(request, unquote(url[:-8]))</li><li onclick="toggle('pre37890888', 'post37890888')"> elif url.endswith('/delete'):</li><li onclick="toggle('pre37890888', 'post37890888')"> return self.delete_view(request, unquote(url[:-7]))</li></ol>
|
---|
752 |
|
---|
753 | </div>
|
---|
754 |
|
---|
755 |
|
---|
756 |
|
---|
757 | <div class="commands">
|
---|
758 | <a href="#" onclick="return varToggle(this, '37890888')"><span>▶</span> Local vars</a>
|
---|
759 | </div>
|
---|
760 | <table class="vars" id="v37890888">
|
---|
761 | <thead>
|
---|
762 | <tr>
|
---|
763 | <th>Variable</th>
|
---|
764 | <th>Value</th>
|
---|
765 | </tr>
|
---|
766 | </thead>
|
---|
767 | <tbody>
|
---|
768 |
|
---|
769 | <tr>
|
---|
770 | <td>request</td>
|
---|
771 | <td class="code"><div><WSGIRequest
|
---|
772 | GET:<QueryDict: {}>,
|
---|
773 | POST:<QueryDict: {}>,
|
---|
774 | COOKIES:{'sessionid': '831bf381040c8a6239b3bba39536eb49'},
|
---|
775 | META:{'ALLUSERSPROFILE': 'C:\\ProgramData',
|
---|
776 | 'APPDATA': 'C:\\Users\\J\\AppData\\Roaming',
|
---|
777 | 'CLASSPATH': '.;C:\\Program Files\\QuickTime\\QTSystem\\QTJava.zip',
|
---|
778 | 'COMMANDER_DRIVE': 'C:',
|
---|
779 | 'COMMANDER_INI': 'C:\\Users\\J\\AppData\\Roaming\\GHISLER\\wincmd.ini',
|
---|
780 | 'COMMANDER_PATH': 'C:\\Program Files\\totalcmd',
|
---|
781 | 'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files',
|
---|
782 | 'COMPUTERNAME': 'J-PC-VISTAEN',
|
---|
783 | 'COMSPEC': 'C:\\Windows\\system32\\cmd.exe',
|
---|
784 | 'CONTENT_LENGTH': '',
|
---|
785 | 'CONTENT_TYPE': 'text/plain',
|
---|
786 | 'DJANGO_SETTINGS_MODULE': 'ssa.settings',
|
---|
787 | 'FP_NO_HOST_CHECK': 'NO',
|
---|
788 | 'GATEWAY_INTERFACE': 'CGI/1.1',
|
---|
789 | 'HOMEDRIVE': 'C:',
|
---|
790 | 'HOMEPATH': '\\Users\\J',
|
---|
791 | 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
|
---|
792 | 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
|
---|
793 | 'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
|
---|
794 | 'HTTP_ACCEPT_LANGUAGE': 'es,es-ar;q=0.8,en-us;q=0.5,en;q=0.3',
|
---|
795 | 'HTTP_CACHE_CONTROL': 'max-age=0',
|
---|
796 | 'HTTP_CONNECTION': 'keep-alive',
|
---|
797 | 'HTTP_COOKIE': 'sessionid=831bf381040c8a6239b3bba39536eb49',
|
---|
798 | 'HTTP_HOST': 'localhost:8080',
|
---|
799 | 'HTTP_KEEP_ALIVE': '300',
|
---|
800 | 'HTTP_REFERER': 'http://localhost:8080/admin/',
|
---|
801 | 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1',
|
---|
802 | 'LOCALAPPDATA': 'C:\\Users\\J\\AppData\\Local',
|
---|
803 | 'LOGONSERVER': '\\\\J-PC-VISTAEN',
|
---|
804 | 'NUMBER_OF_PROCESSORS': '2',
|
---|
805 | 'OS': 'Windows_NT',
|
---|
806 | 'PATH': 'C:\\Python25\\;C:\\Python25\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Program Files\\QuickTime\\QTSystem\\;C:\\Program Files\\Common Files\\Adobe\\AGL;C:\\p\\usr\\bin;C:\\Python25\\Lib\\site-packages\\django\\bin\\;;C:\\Program Files\\Common Files\\Ahead\\Lib\\',
|
---|
807 | 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.py;.pyw',
|
---|
808 | 'PATH_INFO': u'/admin/comments/comment/',
|
---|
809 | 'PROCESSOR_ARCHITECTURE': 'x86',
|
---|
810 | 'PROCESSOR_IDENTIFIER': 'x86 Family 6 Model 15 Stepping 6, GenuineIntel',
|
---|
811 | 'PROCESSOR_LEVEL': '6',
|
---|
812 | 'PROCESSOR_REVISION': '0f06',
|
---|
813 | 'PROGRAMDATA': 'C:\\ProgramData',
|
---|
814 | 'PROGRAMFILES': 'C:\\Program Files',
|
---|
815 | 'PROMPT': '$P$G',
|
---|
816 | 'PUBLIC': 'C:\\Users\\Public',
|
---|
817 | 'QTJAVA': 'C:\\Program Files\\QuickTime\\QTSystem\\QTJava.zip',
|
---|
818 | 'QUERY_STRING': '',
|
---|
819 | 'REMOTE_ADDR': '127.0.0.1',
|
---|
820 | 'REMOTE_HOST': '',
|
---|
821 | 'REQUEST_METHOD': 'GET',
|
---|
822 | 'RUN_MAIN': 'true',
|
---|
823 | 'SCRIPT_NAME': u'',
|
---|
824 | 'SERVER_NAME': 'J-PC-vistaen',
|
---|
825 | 'SERVER_PORT': '8080',
|
---|
826 | 'SERVER_PROTOCOL': 'HTTP/1.1',
|
---|
827 | 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.5.2',
|
---|
828 | 'SESSIONNAME': 'Console',
|
---|
829 | 'SYSTEMDRIVE': 'C:',
|
---|
830 | 'SYSTEMROOT': 'C:\\Windows',
|
---|
831 | 'TEMP': 'C:\\Users\\J\\AppData\\Local\\Temp',
|
---|
832 | 'TMP': 'C:\\Users\\J\\AppData\\Local\\Temp',
|
---|
833 | 'USERDOMAIN': 'J-PC-vistaen',
|
---|
834 | 'USERNAME': 'J',
|
---|
835 | 'USERPROFILE': 'C:\\Users\\J',
|
---|
836 | 'WINDIR': 'C:\\Windows',
|
---|
837 | 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x0195F0B0>,
|
---|
838 | 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>,
|
---|
839 | 'wsgi.input': <socket._fileobject object at 0x023043F0>,
|
---|
840 | 'wsgi.multiprocess': False,
|
---|
841 | 'wsgi.multithread': True,
|
---|
842 | 'wsgi.run_once': False,
|
---|
843 | 'wsgi.url_scheme': 'http',
|
---|
844 | 'wsgi.version': (1, 0)}></div></td>
|
---|
845 | </tr>
|
---|
846 |
|
---|
847 | <tr>
|
---|
848 | <td>self</td>
|
---|
849 | <td class="code"><div><django.contrib.comments.admin.CommentsAdmin object at 0x023BBA50></div></td>
|
---|
850 | </tr>
|
---|
851 |
|
---|
852 | <tr>
|
---|
853 | <td>url</td>
|
---|
854 | <td class="code"><div>None</div></td>
|
---|
855 | </tr>
|
---|
856 |
|
---|
857 | </tbody>
|
---|
858 | </table>
|
---|
859 |
|
---|
860 | </li>
|
---|
861 |
|
---|
862 | <li class="frame">
|
---|
863 | <code>C:\Python25\lib\site-packages\django\contrib\admin\options.py</code> in <code>changelist_view</code>
|
---|
864 |
|
---|
865 |
|
---|
866 | <div class="context" id="c37486264">
|
---|
867 |
|
---|
868 | <ol start="631" class="pre-context" id="pre37486264"><li onclick="toggle('pre37486264', 'post37486264')"> from django.contrib.admin.views.main import ChangeList, ERROR_FLAG</li><li onclick="toggle('pre37486264', 'post37486264')"> opts = self.model._meta</li><li onclick="toggle('pre37486264', 'post37486264')"> app_label = opts.app_label</li><li onclick="toggle('pre37486264', 'post37486264')"> if not self.has_change_permission(request, None):</li><li onclick="toggle('pre37486264', 'post37486264')"> raise PermissionDenied</li><li onclick="toggle('pre37486264', 'post37486264')"> try:</li><li onclick="toggle('pre37486264', 'post37486264')"> cl = ChangeList(request, self.model, self.list_display, self.list_display_links, self.list_filter,</li></ol>
|
---|
869 |
|
---|
870 | <ol start="638" class="context-line"><li onclick="toggle('pre37486264', 'post37486264')"> self.date_hierarchy, self.search_fields, self.list_select_related, self.list_per_page, self) <span>...</span></li></ol>
|
---|
871 |
|
---|
872 | <ol start='639' class="post-context" id="post37486264"><li onclick="toggle('pre37486264', 'post37486264')"> except IncorrectLookupParameters:</li><li onclick="toggle('pre37486264', 'post37486264')"> # Wacky lookup parameters were given, so redirect to the main</li><li onclick="toggle('pre37486264', 'post37486264')"> # changelist page, without parameters, and pass an 'invalid=1'</li><li onclick="toggle('pre37486264', 'post37486264')"> # parameter via the query string. If wacky parameters were given and</li><li onclick="toggle('pre37486264', 'post37486264')"> # the 'invalid=1' parameter was already in the query string, something</li><li onclick="toggle('pre37486264', 'post37486264')"> # is screwed up with the database, so display an error page.</li></ol>
|
---|
873 |
|
---|
874 | </div>
|
---|
875 |
|
---|
876 |
|
---|
877 |
|
---|
878 | <div class="commands">
|
---|
879 | <a href="#" onclick="return varToggle(this, '37486264')"><span>▶</span> Local vars</a>
|
---|
880 | </div>
|
---|
881 | <table class="vars" id="v37486264">
|
---|
882 | <thead>
|
---|
883 | <tr>
|
---|
884 | <th>Variable</th>
|
---|
885 | <th>Value</th>
|
---|
886 | </tr>
|
---|
887 | </thead>
|
---|
888 | <tbody>
|
---|
889 |
|
---|
890 | <tr>
|
---|
891 | <td>ChangeList</td>
|
---|
892 | <td class="code"><div><class 'django.contrib.admin.views.main.ChangeList'></div></td>
|
---|
893 | </tr>
|
---|
894 |
|
---|
895 | <tr>
|
---|
896 | <td>ERROR_FLAG</td>
|
---|
897 | <td class="code"><div>'e'</div></td>
|
---|
898 | </tr>
|
---|
899 |
|
---|
900 | <tr>
|
---|
901 | <td>app_label</td>
|
---|
902 | <td class="code"><div>'comments'</div></td>
|
---|
903 | </tr>
|
---|
904 |
|
---|
905 | <tr>
|
---|
906 | <td>extra_context</td>
|
---|
907 | <td class="code"><div>None</div></td>
|
---|
908 | </tr>
|
---|
909 |
|
---|
910 | <tr>
|
---|
911 | <td>opts</td>
|
---|
912 | <td class="code"><div><Options for Comment></div></td>
|
---|
913 | </tr>
|
---|
914 |
|
---|
915 | <tr>
|
---|
916 | <td>request</td>
|
---|
917 | <td class="code"><div><WSGIRequest
|
---|
918 | GET:<QueryDict: {}>,
|
---|
919 | POST:<QueryDict: {}>,
|
---|
920 | COOKIES:{'sessionid': '831bf381040c8a6239b3bba39536eb49'},
|
---|
921 | META:{'ALLUSERSPROFILE': 'C:\\ProgramData',
|
---|
922 | 'APPDATA': 'C:\\Users\\J\\AppData\\Roaming',
|
---|
923 | 'CLASSPATH': '.;C:\\Program Files\\QuickTime\\QTSystem\\QTJava.zip',
|
---|
924 | 'COMMANDER_DRIVE': 'C:',
|
---|
925 | 'COMMANDER_INI': 'C:\\Users\\J\\AppData\\Roaming\\GHISLER\\wincmd.ini',
|
---|
926 | 'COMMANDER_PATH': 'C:\\Program Files\\totalcmd',
|
---|
927 | 'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files',
|
---|
928 | 'COMPUTERNAME': 'J-PC-VISTAEN',
|
---|
929 | 'COMSPEC': 'C:\\Windows\\system32\\cmd.exe',
|
---|
930 | 'CONTENT_LENGTH': '',
|
---|
931 | 'CONTENT_TYPE': 'text/plain',
|
---|
932 | 'DJANGO_SETTINGS_MODULE': 'ssa.settings',
|
---|
933 | 'FP_NO_HOST_CHECK': 'NO',
|
---|
934 | 'GATEWAY_INTERFACE': 'CGI/1.1',
|
---|
935 | 'HOMEDRIVE': 'C:',
|
---|
936 | 'HOMEPATH': '\\Users\\J',
|
---|
937 | 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
|
---|
938 | 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
|
---|
939 | 'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
|
---|
940 | 'HTTP_ACCEPT_LANGUAGE': 'es,es-ar;q=0.8,en-us;q=0.5,en;q=0.3',
|
---|
941 | 'HTTP_CACHE_CONTROL': 'max-age=0',
|
---|
942 | 'HTTP_CONNECTION': 'keep-alive',
|
---|
943 | 'HTTP_COOKIE': 'sessionid=831bf381040c8a6239b3bba39536eb49',
|
---|
944 | 'HTTP_HOST': 'localhost:8080',
|
---|
945 | 'HTTP_KEEP_ALIVE': '300',
|
---|
946 | 'HTTP_REFERER': 'http://localhost:8080/admin/',
|
---|
947 | 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1',
|
---|
948 | 'LOCALAPPDATA': 'C:\\Users\\J\\AppData\\Local',
|
---|
949 | 'LOGONSERVER': '\\\\J-PC-VISTAEN',
|
---|
950 | 'NUMBER_OF_PROCESSORS': '2',
|
---|
951 | 'OS': 'Windows_NT',
|
---|
952 | 'PATH': 'C:\\Python25\\;C:\\Python25\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Program Files\\QuickTime\\QTSystem\\;C:\\Program Files\\Common Files\\Adobe\\AGL;C:\\p\\usr\\bin;C:\\Python25\\Lib\\site-packages\\django\\bin\\;;C:\\Program Files\\Common Files\\Ahead\\Lib\\',
|
---|
953 | 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.py;.pyw',
|
---|
954 | 'PATH_INFO': u'/admin/comments/comment/',
|
---|
955 | 'PROCESSOR_ARCHITECTURE': 'x86',
|
---|
956 | 'PROCESSOR_IDENTIFIER': 'x86 Family 6 Model 15 Stepping 6, GenuineIntel',
|
---|
957 | 'PROCESSOR_LEVEL': '6',
|
---|
958 | 'PROCESSOR_REVISION': '0f06',
|
---|
959 | 'PROGRAMDATA': 'C:\\ProgramData',
|
---|
960 | 'PROGRAMFILES': 'C:\\Program Files',
|
---|
961 | 'PROMPT': '$P$G',
|
---|
962 | 'PUBLIC': 'C:\\Users\\Public',
|
---|
963 | 'QTJAVA': 'C:\\Program Files\\QuickTime\\QTSystem\\QTJava.zip',
|
---|
964 | 'QUERY_STRING': '',
|
---|
965 | 'REMOTE_ADDR': '127.0.0.1',
|
---|
966 | 'REMOTE_HOST': '',
|
---|
967 | 'REQUEST_METHOD': 'GET',
|
---|
968 | 'RUN_MAIN': 'true',
|
---|
969 | 'SCRIPT_NAME': u'',
|
---|
970 | 'SERVER_NAME': 'J-PC-vistaen',
|
---|
971 | 'SERVER_PORT': '8080',
|
---|
972 | 'SERVER_PROTOCOL': 'HTTP/1.1',
|
---|
973 | 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.5.2',
|
---|
974 | 'SESSIONNAME': 'Console',
|
---|
975 | 'SYSTEMDRIVE': 'C:',
|
---|
976 | 'SYSTEMROOT': 'C:\\Windows',
|
---|
977 | 'TEMP': 'C:\\Users\\J\\AppData\\Local\\Temp',
|
---|
978 | 'TMP': 'C:\\Users\\J\\AppData\\Local\\Temp',
|
---|
979 | 'USERDOMAIN': 'J-PC-vistaen',
|
---|
980 | 'USERNAME': 'J',
|
---|
981 | 'USERPROFILE': 'C:\\Users\\J',
|
---|
982 | 'WINDIR': 'C:\\Windows',
|
---|
983 | 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x0195F0B0>,
|
---|
984 | 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>,
|
---|
985 | 'wsgi.input': <socket._fileobject object at 0x023043F0>,
|
---|
986 | 'wsgi.multiprocess': False,
|
---|
987 | 'wsgi.multithread': True,
|
---|
988 | 'wsgi.run_once': False,
|
---|
989 | 'wsgi.url_scheme': 'http',
|
---|
990 | 'wsgi.version': (1, 0)}></div></td>
|
---|
991 | </tr>
|
---|
992 |
|
---|
993 | <tr>
|
---|
994 | <td>self</td>
|
---|
995 | <td class="code"><div><django.contrib.comments.admin.CommentsAdmin object at 0x023BBA50></div></td>
|
---|
996 | </tr>
|
---|
997 |
|
---|
998 | </tbody>
|
---|
999 | </table>
|
---|
1000 |
|
---|
1001 | </li>
|
---|
1002 |
|
---|
1003 | <li class="frame">
|
---|
1004 | <code>C:\Python25\lib\site-packages\django\contrib\admin\views\main.py</code> in <code>__init__</code>
|
---|
1005 |
|
---|
1006 |
|
---|
1007 | <div class="context" id="c37482864">
|
---|
1008 |
|
---|
1009 | <ol start="61" class="pre-context" id="pre37482864"><li onclick="toggle('pre37482864', 'post37482864')"> del self.params[TO_FIELD_VAR]</li><li onclick="toggle('pre37482864', 'post37482864')"> if ERROR_FLAG in self.params:</li><li onclick="toggle('pre37482864', 'post37482864')"> del self.params[ERROR_FLAG]</li><li onclick="toggle('pre37482864', 'post37482864')"></li><li onclick="toggle('pre37482864', 'post37482864')"> self.order_field, self.order_type = self.get_ordering()</li><li onclick="toggle('pre37482864', 'post37482864')"> self.query = request.GET.get(SEARCH_VAR, '')</li><li onclick="toggle('pre37482864', 'post37482864')"> self.query_set = self.get_query_set()</li></ol>
|
---|
1010 |
|
---|
1011 | <ol start="68" class="context-line"><li onclick="toggle('pre37482864', 'post37482864')"> self.get_results(request) <span>...</span></li></ol>
|
---|
1012 |
|
---|
1013 | <ol start='69' class="post-context" id="post37482864"><li onclick="toggle('pre37482864', 'post37482864')"> self.title = (self.is_popup and ugettext('Select %s') % force_unicode(self.opts.verbose_name) or ugettext('Select %s to change') % force_unicode(self.opts.verbose_name))</li><li onclick="toggle('pre37482864', 'post37482864')"> self.filter_specs, self.has_filters = self.get_filters(request)</li><li onclick="toggle('pre37482864', 'post37482864')"> self.pk_attname = self.lookup_opts.pk.attname</li><li onclick="toggle('pre37482864', 'post37482864')"></li><li onclick="toggle('pre37482864', 'post37482864')"> def get_filters(self, request):</li><li onclick="toggle('pre37482864', 'post37482864')"> filter_specs = []</li></ol>
|
---|
1014 |
|
---|
1015 | </div>
|
---|
1016 |
|
---|
1017 |
|
---|
1018 |
|
---|
1019 | <div class="commands">
|
---|
1020 | <a href="#" onclick="return varToggle(this, '37482864')"><span>▶</span> Local vars</a>
|
---|
1021 | </div>
|
---|
1022 | <table class="vars" id="v37482864">
|
---|
1023 | <thead>
|
---|
1024 | <tr>
|
---|
1025 | <th>Variable</th>
|
---|
1026 | <th>Value</th>
|
---|
1027 | </tr>
|
---|
1028 | </thead>
|
---|
1029 | <tbody>
|
---|
1030 |
|
---|
1031 | <tr>
|
---|
1032 | <td>date_hierarchy</td>
|
---|
1033 | <td class="code"><div>'submit_date'</div></td>
|
---|
1034 | </tr>
|
---|
1035 |
|
---|
1036 | <tr>
|
---|
1037 | <td>list_display</td>
|
---|
1038 | <td class="code"><div>('name', 'content_type', 'object_pk', 'ip_address', 'is_public', 'is_removed')</div></td>
|
---|
1039 | </tr>
|
---|
1040 |
|
---|
1041 | <tr>
|
---|
1042 | <td>list_display_links</td>
|
---|
1043 | <td class="code"><div>()</div></td>
|
---|
1044 | </tr>
|
---|
1045 |
|
---|
1046 | <tr>
|
---|
1047 | <td>list_filter</td>
|
---|
1048 | <td class="code"><div>('submit_date', 'site', 'is_public', 'is_removed')</div></td>
|
---|
1049 | </tr>
|
---|
1050 |
|
---|
1051 | <tr>
|
---|
1052 | <td>list_per_page</td>
|
---|
1053 | <td class="code"><div>100</div></td>
|
---|
1054 | </tr>
|
---|
1055 |
|
---|
1056 | <tr>
|
---|
1057 | <td>list_select_related</td>
|
---|
1058 | <td class="code"><div>False</div></td>
|
---|
1059 | </tr>
|
---|
1060 |
|
---|
1061 | <tr>
|
---|
1062 | <td>model</td>
|
---|
1063 | <td class="code"><div><class 'django.contrib.comments.models.Comment'></div></td>
|
---|
1064 | </tr>
|
---|
1065 |
|
---|
1066 | <tr>
|
---|
1067 | <td>model_admin</td>
|
---|
1068 | <td class="code"><div><django.contrib.comments.admin.CommentsAdmin object at 0x023BBA50></div></td>
|
---|
1069 | </tr>
|
---|
1070 |
|
---|
1071 | <tr>
|
---|
1072 | <td>request</td>
|
---|
1073 | <td class="code"><div><WSGIRequest
|
---|
1074 | GET:<QueryDict: {}>,
|
---|
1075 | POST:<QueryDict: {}>,
|
---|
1076 | COOKIES:{'sessionid': '831bf381040c8a6239b3bba39536eb49'},
|
---|
1077 | META:{'ALLUSERSPROFILE': 'C:\\ProgramData',
|
---|
1078 | 'APPDATA': 'C:\\Users\\J\\AppData\\Roaming',
|
---|
1079 | 'CLASSPATH': '.;C:\\Program Files\\QuickTime\\QTSystem\\QTJava.zip',
|
---|
1080 | 'COMMANDER_DRIVE': 'C:',
|
---|
1081 | 'COMMANDER_INI': 'C:\\Users\\J\\AppData\\Roaming\\GHISLER\\wincmd.ini',
|
---|
1082 | 'COMMANDER_PATH': 'C:\\Program Files\\totalcmd',
|
---|
1083 | 'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files',
|
---|
1084 | 'COMPUTERNAME': 'J-PC-VISTAEN',
|
---|
1085 | 'COMSPEC': 'C:\\Windows\\system32\\cmd.exe',
|
---|
1086 | 'CONTENT_LENGTH': '',
|
---|
1087 | 'CONTENT_TYPE': 'text/plain',
|
---|
1088 | 'DJANGO_SETTINGS_MODULE': 'ssa.settings',
|
---|
1089 | 'FP_NO_HOST_CHECK': 'NO',
|
---|
1090 | 'GATEWAY_INTERFACE': 'CGI/1.1',
|
---|
1091 | 'HOMEDRIVE': 'C:',
|
---|
1092 | 'HOMEPATH': '\\Users\\J',
|
---|
1093 | 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
|
---|
1094 | 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
|
---|
1095 | 'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
|
---|
1096 | 'HTTP_ACCEPT_LANGUAGE': 'es,es-ar;q=0.8,en-us;q=0.5,en;q=0.3',
|
---|
1097 | 'HTTP_CACHE_CONTROL': 'max-age=0',
|
---|
1098 | 'HTTP_CONNECTION': 'keep-alive',
|
---|
1099 | 'HTTP_COOKIE': 'sessionid=831bf381040c8a6239b3bba39536eb49',
|
---|
1100 | 'HTTP_HOST': 'localhost:8080',
|
---|
1101 | 'HTTP_KEEP_ALIVE': '300',
|
---|
1102 | 'HTTP_REFERER': 'http://localhost:8080/admin/',
|
---|
1103 | 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1',
|
---|
1104 | 'LOCALAPPDATA': 'C:\\Users\\J\\AppData\\Local',
|
---|
1105 | 'LOGONSERVER': '\\\\J-PC-VISTAEN',
|
---|
1106 | 'NUMBER_OF_PROCESSORS': '2',
|
---|
1107 | 'OS': 'Windows_NT',
|
---|
1108 | 'PATH': 'C:\\Python25\\;C:\\Python25\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Program Files\\QuickTime\\QTSystem\\;C:\\Program Files\\Common Files\\Adobe\\AGL;C:\\p\\usr\\bin;C:\\Python25\\Lib\\site-packages\\django\\bin\\;;C:\\Program Files\\Common Files\\Ahead\\Lib\\',
|
---|
1109 | 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.py;.pyw',
|
---|
1110 | 'PATH_INFO': u'/admin/comments/comment/',
|
---|
1111 | 'PROCESSOR_ARCHITECTURE': 'x86',
|
---|
1112 | 'PROCESSOR_IDENTIFIER': 'x86 Family 6 Model 15 Stepping 6, GenuineIntel',
|
---|
1113 | 'PROCESSOR_LEVEL': '6',
|
---|
1114 | 'PROCESSOR_REVISION': '0f06',
|
---|
1115 | 'PROGRAMDATA': 'C:\\ProgramData',
|
---|
1116 | 'PROGRAMFILES': 'C:\\Program Files',
|
---|
1117 | 'PROMPT': '$P$G',
|
---|
1118 | 'PUBLIC': 'C:\\Users\\Public',
|
---|
1119 | 'QTJAVA': 'C:\\Program Files\\QuickTime\\QTSystem\\QTJava.zip',
|
---|
1120 | 'QUERY_STRING': '',
|
---|
1121 | 'REMOTE_ADDR': '127.0.0.1',
|
---|
1122 | 'REMOTE_HOST': '',
|
---|
1123 | 'REQUEST_METHOD': 'GET',
|
---|
1124 | 'RUN_MAIN': 'true',
|
---|
1125 | 'SCRIPT_NAME': u'',
|
---|
1126 | 'SERVER_NAME': 'J-PC-vistaen',
|
---|
1127 | 'SERVER_PORT': '8080',
|
---|
1128 | 'SERVER_PROTOCOL': 'HTTP/1.1',
|
---|
1129 | 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.5.2',
|
---|
1130 | 'SESSIONNAME': 'Console',
|
---|
1131 | 'SYSTEMDRIVE': 'C:',
|
---|
1132 | 'SYSTEMROOT': 'C:\\Windows',
|
---|
1133 | 'TEMP': 'C:\\Users\\J\\AppData\\Local\\Temp',
|
---|
1134 | 'TMP': 'C:\\Users\\J\\AppData\\Local\\Temp',
|
---|
1135 | 'USERDOMAIN': 'J-PC-vistaen',
|
---|
1136 | 'USERNAME': 'J',
|
---|
1137 | 'USERPROFILE': 'C:\\Users\\J',
|
---|
1138 | 'WINDIR': 'C:\\Windows',
|
---|
1139 | 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x0195F0B0>,
|
---|
1140 | 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>,
|
---|
1141 | 'wsgi.input': <socket._fileobject object at 0x023043F0>,
|
---|
1142 | 'wsgi.multiprocess': False,
|
---|
1143 | 'wsgi.multithread': True,
|
---|
1144 | 'wsgi.run_once': False,
|
---|
1145 | 'wsgi.url_scheme': 'http',
|
---|
1146 | 'wsgi.version': (1, 0)}></div></td>
|
---|
1147 | </tr>
|
---|
1148 |
|
---|
1149 | <tr>
|
---|
1150 | <td>search_fields</td>
|
---|
1151 | <td class="code"><div>('comment',
|
---|
1152 | 'user__username',
|
---|
1153 | 'user_name',
|
---|
1154 | 'user_email',
|
---|
1155 | 'user_url',
|
---|
1156 | 'ip_address')</div></td>
|
---|
1157 | </tr>
|
---|
1158 |
|
---|
1159 | <tr>
|
---|
1160 | <td>self</td>
|
---|
1161 | <td class="code"><div><django.contrib.admin.views.main.ChangeList object at 0x0234D790></div></td>
|
---|
1162 | </tr>
|
---|
1163 |
|
---|
1164 | </tbody>
|
---|
1165 | </table>
|
---|
1166 |
|
---|
1167 | </li>
|
---|
1168 |
|
---|
1169 | <li class="frame">
|
---|
1170 | <code>C:\Python25\lib\site-packages\django\contrib\admin\views\main.py</code> in <code>get_results</code>
|
---|
1171 |
|
---|
1172 |
|
---|
1173 | <div class="context" id="c38048192">
|
---|
1174 |
|
---|
1175 | <ol start="118" class="pre-context" id="pre38048192"><li onclick="toggle('pre38048192', 'post38048192')"> full_result_count = self.root_query_set.count()</li><li onclick="toggle('pre38048192', 'post38048192')"></li><li onclick="toggle('pre38048192', 'post38048192')"> can_show_all = result_count <= MAX_SHOW_ALL_ALLOWED</li><li onclick="toggle('pre38048192', 'post38048192')"> multi_page = result_count > self.list_per_page</li><li onclick="toggle('pre38048192', 'post38048192')"></li><li onclick="toggle('pre38048192', 'post38048192')"> # Get the list of objects to display on this page.</li><li onclick="toggle('pre38048192', 'post38048192')"> if (self.show_all and can_show_all) or not multi_page:</li></ol>
|
---|
1176 |
|
---|
1177 | <ol start="125" class="context-line"><li onclick="toggle('pre38048192', 'post38048192')"> result_list = list(self.query_set) <span>...</span></li></ol>
|
---|
1178 |
|
---|
1179 | <ol start='126' class="post-context" id="post38048192"><li onclick="toggle('pre38048192', 'post38048192')"> else:</li><li onclick="toggle('pre38048192', 'post38048192')"> try:</li><li onclick="toggle('pre38048192', 'post38048192')"> result_list = paginator.page(self.page_num+1).object_list</li><li onclick="toggle('pre38048192', 'post38048192')"> except InvalidPage:</li><li onclick="toggle('pre38048192', 'post38048192')"> result_list = ()</li><li onclick="toggle('pre38048192', 'post38048192')"></li></ol>
|
---|
1180 |
|
---|
1181 | </div>
|
---|
1182 |
|
---|
1183 |
|
---|
1184 |
|
---|
1185 | <div class="commands">
|
---|
1186 | <a href="#" onclick="return varToggle(this, '38048192')"><span>▶</span> Local vars</a>
|
---|
1187 | </div>
|
---|
1188 | <table class="vars" id="v38048192">
|
---|
1189 | <thead>
|
---|
1190 | <tr>
|
---|
1191 | <th>Variable</th>
|
---|
1192 | <th>Value</th>
|
---|
1193 | </tr>
|
---|
1194 | </thead>
|
---|
1195 | <tbody>
|
---|
1196 |
|
---|
1197 | <tr>
|
---|
1198 | <td>can_show_all</td>
|
---|
1199 | <td class="code"><div>True</div></td>
|
---|
1200 | </tr>
|
---|
1201 |
|
---|
1202 | <tr>
|
---|
1203 | <td>full_result_count</td>
|
---|
1204 | <td class="code"><div>2</div></td>
|
---|
1205 | </tr>
|
---|
1206 |
|
---|
1207 | <tr>
|
---|
1208 | <td>multi_page</td>
|
---|
1209 | <td class="code"><div>False</div></td>
|
---|
1210 | </tr>
|
---|
1211 |
|
---|
1212 | <tr>
|
---|
1213 | <td>paginator</td>
|
---|
1214 | <td class="code"><div><django.core.paginator.Paginator object at 0x024555F0></div></td>
|
---|
1215 | </tr>
|
---|
1216 |
|
---|
1217 | <tr>
|
---|
1218 | <td>request</td>
|
---|
1219 | <td class="code"><div><WSGIRequest
|
---|
1220 | GET:<QueryDict: {}>,
|
---|
1221 | POST:<QueryDict: {}>,
|
---|
1222 | COOKIES:{'sessionid': '831bf381040c8a6239b3bba39536eb49'},
|
---|
1223 | META:{'ALLUSERSPROFILE': 'C:\\ProgramData',
|
---|
1224 | 'APPDATA': 'C:\\Users\\J\\AppData\\Roaming',
|
---|
1225 | 'CLASSPATH': '.;C:\\Program Files\\QuickTime\\QTSystem\\QTJava.zip',
|
---|
1226 | 'COMMANDER_DRIVE': 'C:',
|
---|
1227 | 'COMMANDER_INI': 'C:\\Users\\J\\AppData\\Roaming\\GHISLER\\wincmd.ini',
|
---|
1228 | 'COMMANDER_PATH': 'C:\\Program Files\\totalcmd',
|
---|
1229 | 'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files',
|
---|
1230 | 'COMPUTERNAME': 'J-PC-VISTAEN',
|
---|
1231 | 'COMSPEC': 'C:\\Windows\\system32\\cmd.exe',
|
---|
1232 | 'CONTENT_LENGTH': '',
|
---|
1233 | 'CONTENT_TYPE': 'text/plain',
|
---|
1234 | 'DJANGO_SETTINGS_MODULE': 'ssa.settings',
|
---|
1235 | 'FP_NO_HOST_CHECK': 'NO',
|
---|
1236 | 'GATEWAY_INTERFACE': 'CGI/1.1',
|
---|
1237 | 'HOMEDRIVE': 'C:',
|
---|
1238 | 'HOMEPATH': '\\Users\\J',
|
---|
1239 | 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
|
---|
1240 | 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
|
---|
1241 | 'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
|
---|
1242 | 'HTTP_ACCEPT_LANGUAGE': 'es,es-ar;q=0.8,en-us;q=0.5,en;q=0.3',
|
---|
1243 | 'HTTP_CACHE_CONTROL': 'max-age=0',
|
---|
1244 | 'HTTP_CONNECTION': 'keep-alive',
|
---|
1245 | 'HTTP_COOKIE': 'sessionid=831bf381040c8a6239b3bba39536eb49',
|
---|
1246 | 'HTTP_HOST': 'localhost:8080',
|
---|
1247 | 'HTTP_KEEP_ALIVE': '300',
|
---|
1248 | 'HTTP_REFERER': 'http://localhost:8080/admin/',
|
---|
1249 | 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1',
|
---|
1250 | 'LOCALAPPDATA': 'C:\\Users\\J\\AppData\\Local',
|
---|
1251 | 'LOGONSERVER': '\\\\J-PC-VISTAEN',
|
---|
1252 | 'NUMBER_OF_PROCESSORS': '2',
|
---|
1253 | 'OS': 'Windows_NT',
|
---|
1254 | 'PATH': 'C:\\Python25\\;C:\\Python25\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Program Files\\QuickTime\\QTSystem\\;C:\\Program Files\\Common Files\\Adobe\\AGL;C:\\p\\usr\\bin;C:\\Python25\\Lib\\site-packages\\django\\bin\\;;C:\\Program Files\\Common Files\\Ahead\\Lib\\',
|
---|
1255 | 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.py;.pyw',
|
---|
1256 | 'PATH_INFO': u'/admin/comments/comment/',
|
---|
1257 | 'PROCESSOR_ARCHITECTURE': 'x86',
|
---|
1258 | 'PROCESSOR_IDENTIFIER': 'x86 Family 6 Model 15 Stepping 6, GenuineIntel',
|
---|
1259 | 'PROCESSOR_LEVEL': '6',
|
---|
1260 | 'PROCESSOR_REVISION': '0f06',
|
---|
1261 | 'PROGRAMDATA': 'C:\\ProgramData',
|
---|
1262 | 'PROGRAMFILES': 'C:\\Program Files',
|
---|
1263 | 'PROMPT': '$P$G',
|
---|
1264 | 'PUBLIC': 'C:\\Users\\Public',
|
---|
1265 | 'QTJAVA': 'C:\\Program Files\\QuickTime\\QTSystem\\QTJava.zip',
|
---|
1266 | 'QUERY_STRING': '',
|
---|
1267 | 'REMOTE_ADDR': '127.0.0.1',
|
---|
1268 | 'REMOTE_HOST': '',
|
---|
1269 | 'REQUEST_METHOD': 'GET',
|
---|
1270 | 'RUN_MAIN': 'true',
|
---|
1271 | 'SCRIPT_NAME': u'',
|
---|
1272 | 'SERVER_NAME': 'J-PC-vistaen',
|
---|
1273 | 'SERVER_PORT': '8080',
|
---|
1274 | 'SERVER_PROTOCOL': 'HTTP/1.1',
|
---|
1275 | 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.5.2',
|
---|
1276 | 'SESSIONNAME': 'Console',
|
---|
1277 | 'SYSTEMDRIVE': 'C:',
|
---|
1278 | 'SYSTEMROOT': 'C:\\Windows',
|
---|
1279 | 'TEMP': 'C:\\Users\\J\\AppData\\Local\\Temp',
|
---|
1280 | 'TMP': 'C:\\Users\\J\\AppData\\Local\\Temp',
|
---|
1281 | 'USERDOMAIN': 'J-PC-vistaen',
|
---|
1282 | 'USERNAME': 'J',
|
---|
1283 | 'USERPROFILE': 'C:\\Users\\J',
|
---|
1284 | 'WINDIR': 'C:\\Windows',
|
---|
1285 | 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x0195F0B0>,
|
---|
1286 | 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>,
|
---|
1287 | 'wsgi.input': <socket._fileobject object at 0x023043F0>,
|
---|
1288 | 'wsgi.multiprocess': False,
|
---|
1289 | 'wsgi.multithread': True,
|
---|
1290 | 'wsgi.run_once': False,
|
---|
1291 | 'wsgi.url_scheme': 'http',
|
---|
1292 | 'wsgi.version': (1, 0)}></div></td>
|
---|
1293 | </tr>
|
---|
1294 |
|
---|
1295 | <tr>
|
---|
1296 | <td>result_count</td>
|
---|
1297 | <td class="code"><div>2</div></td>
|
---|
1298 | </tr>
|
---|
1299 |
|
---|
1300 | <tr>
|
---|
1301 | <td>self</td>
|
---|
1302 | <td class="code"><div><django.contrib.admin.views.main.ChangeList object at 0x0234D790></div></td>
|
---|
1303 | </tr>
|
---|
1304 |
|
---|
1305 | </tbody>
|
---|
1306 | </table>
|
---|
1307 |
|
---|
1308 | </li>
|
---|
1309 |
|
---|
1310 | <li class="frame">
|
---|
1311 | <code>C:\Python25\lib\site-packages\django\db\models\query.py</code> in <code>__len__</code>
|
---|
1312 |
|
---|
1313 |
|
---|
1314 | <div class="context" id="c38047832">
|
---|
1315 |
|
---|
1316 | <ol start="149" class="pre-context" id="pre38047832"><li onclick="toggle('pre38047832', 'post38047832')"> # whilst not messing up any existing iterators against the QuerySet.</li><li onclick="toggle('pre38047832', 'post38047832')"> if self._result_cache is None:</li><li onclick="toggle('pre38047832', 'post38047832')"> if self._iter:</li><li onclick="toggle('pre38047832', 'post38047832')"> self._result_cache = list(self._iter)</li><li onclick="toggle('pre38047832', 'post38047832')"> else:</li><li onclick="toggle('pre38047832', 'post38047832')"> self._result_cache = list(self.iterator())</li><li onclick="toggle('pre38047832', 'post38047832')"> elif self._iter:</li></ol>
|
---|
1317 |
|
---|
1318 | <ol start="156" class="context-line"><li onclick="toggle('pre38047832', 'post38047832')"> self._result_cache.extend(list(self._iter)) <span>...</span></li></ol>
|
---|
1319 |
|
---|
1320 | <ol start='157' class="post-context" id="post38047832"><li onclick="toggle('pre38047832', 'post38047832')"> return len(self._result_cache)</li><li onclick="toggle('pre38047832', 'post38047832')"></li><li onclick="toggle('pre38047832', 'post38047832')"> def __iter__(self):</li><li onclick="toggle('pre38047832', 'post38047832')"> if self._result_cache is None:</li><li onclick="toggle('pre38047832', 'post38047832')"> self._iter = self.iterator()</li><li onclick="toggle('pre38047832', 'post38047832')"> self._result_cache = []</li></ol>
|
---|
1321 |
|
---|
1322 | </div>
|
---|
1323 |
|
---|
1324 |
|
---|
1325 |
|
---|
1326 | <div class="commands">
|
---|
1327 | <a href="#" onclick="return varToggle(this, '38047832')"><span>▶</span> Local vars</a>
|
---|
1328 | </div>
|
---|
1329 | <table class="vars" id="v38047832">
|
---|
1330 | <thead>
|
---|
1331 | <tr>
|
---|
1332 | <th>Variable</th>
|
---|
1333 | <th>Value</th>
|
---|
1334 | </tr>
|
---|
1335 | </thead>
|
---|
1336 | <tbody>
|
---|
1337 |
|
---|
1338 | <tr>
|
---|
1339 | <td>self</td>
|
---|
1340 | <td class="code"><div>[]</div></td>
|
---|
1341 | </tr>
|
---|
1342 |
|
---|
1343 | </tbody>
|
---|
1344 | </table>
|
---|
1345 |
|
---|
1346 | </li>
|
---|
1347 |
|
---|
1348 | <li class="frame">
|
---|
1349 | <code>C:\Python25\lib\site-packages\django\db\models\query.py</code> in <code>iterator</code>
|
---|
1350 |
|
---|
1351 |
|
---|
1352 | <div class="context" id="c37484624">
|
---|
1353 |
|
---|
1354 | <ol start="262" class="pre-context" id="pre37484624"><li onclick="toggle('pre37484624', 'post37484624')"> if isinstance(fill_cache, dict):</li><li onclick="toggle('pre37484624', 'post37484624')"> requested = fill_cache</li><li onclick="toggle('pre37484624', 'post37484624')"> else:</li><li onclick="toggle('pre37484624', 'post37484624')"> requested = None</li><li onclick="toggle('pre37484624', 'post37484624')"> max_depth = self.query.max_depth</li><li onclick="toggle('pre37484624', 'post37484624')"> extra_select = self.query.extra_select.keys()</li><li onclick="toggle('pre37484624', 'post37484624')"> index_start = len(extra_select)</li></ol>
|
---|
1355 |
|
---|
1356 | <ol start="269" class="context-line"><li onclick="toggle('pre37484624', 'post37484624')"> for row in self.query.results_iter(): <span>...</span></li></ol>
|
---|
1357 |
|
---|
1358 | <ol start='270' class="post-context" id="post37484624"><li onclick="toggle('pre37484624', 'post37484624')"> if fill_cache:</li><li onclick="toggle('pre37484624', 'post37484624')"> obj, _ = get_cached_row(self.model, row, index_start,</li><li onclick="toggle('pre37484624', 'post37484624')"> max_depth, requested=requested)</li><li onclick="toggle('pre37484624', 'post37484624')"> else:</li><li onclick="toggle('pre37484624', 'post37484624')"> obj = self.model(*row[index_start:])</li><li onclick="toggle('pre37484624', 'post37484624')"> for i, k in enumerate(extra_select):</li></ol>
|
---|
1359 |
|
---|
1360 | </div>
|
---|
1361 |
|
---|
1362 |
|
---|
1363 |
|
---|
1364 | <div class="commands">
|
---|
1365 | <a href="#" onclick="return varToggle(this, '37484624')"><span>▶</span> Local vars</a>
|
---|
1366 | </div>
|
---|
1367 | <table class="vars" id="v37484624">
|
---|
1368 | <thead>
|
---|
1369 | <tr>
|
---|
1370 | <th>Variable</th>
|
---|
1371 | <th>Value</th>
|
---|
1372 | </tr>
|
---|
1373 | </thead>
|
---|
1374 | <tbody>
|
---|
1375 |
|
---|
1376 | <tr>
|
---|
1377 | <td>extra_select</td>
|
---|
1378 | <td class="code"><div>[]</div></td>
|
---|
1379 | </tr>
|
---|
1380 |
|
---|
1381 | <tr>
|
---|
1382 | <td>fill_cache</td>
|
---|
1383 | <td class="code"><div>True</div></td>
|
---|
1384 | </tr>
|
---|
1385 |
|
---|
1386 | <tr>
|
---|
1387 | <td>index_start</td>
|
---|
1388 | <td class="code"><div>0</div></td>
|
---|
1389 | </tr>
|
---|
1390 |
|
---|
1391 | <tr>
|
---|
1392 | <td>max_depth</td>
|
---|
1393 | <td class="code"><div>5</div></td>
|
---|
1394 | </tr>
|
---|
1395 |
|
---|
1396 | <tr>
|
---|
1397 | <td>requested</td>
|
---|
1398 | <td class="code"><div>None</div></td>
|
---|
1399 | </tr>
|
---|
1400 |
|
---|
1401 | <tr>
|
---|
1402 | <td>self</td>
|
---|
1403 | <td class="code"><div>[]</div></td>
|
---|
1404 | </tr>
|
---|
1405 |
|
---|
1406 | </tbody>
|
---|
1407 | </table>
|
---|
1408 |
|
---|
1409 | </li>
|
---|
1410 |
|
---|
1411 | <li class="frame">
|
---|
1412 | <code>C:\Python25\lib\site-packages\django\db\models\sql\query.py</code> in <code>results_iter</code>
|
---|
1413 |
|
---|
1414 |
|
---|
1415 | <div class="context" id="c37484264">
|
---|
1416 |
|
---|
1417 | <ol start="199" class="pre-context" id="pre37484264"><li onclick="toggle('pre37484264', 'post37484264')"></li><li onclick="toggle('pre37484264', 'post37484264')"> def results_iter(self):</li><li onclick="toggle('pre37484264', 'post37484264')"> """</li><li onclick="toggle('pre37484264', 'post37484264')"> Returns an iterator over the results from executing this query.</li><li onclick="toggle('pre37484264', 'post37484264')"> """</li><li onclick="toggle('pre37484264', 'post37484264')"> resolve_columns = hasattr(self, 'resolve_columns')</li><li onclick="toggle('pre37484264', 'post37484264')"> fields = None</li></ol>
|
---|
1418 |
|
---|
1419 | <ol start="206" class="context-line"><li onclick="toggle('pre37484264', 'post37484264')"> for rows in self.execute_sql(MULTI): <span>...</span></li></ol>
|
---|
1420 |
|
---|
1421 | <ol start='207' class="post-context" id="post37484264"><li onclick="toggle('pre37484264', 'post37484264')"> for row in rows:</li><li onclick="toggle('pre37484264', 'post37484264')"> if resolve_columns:</li><li onclick="toggle('pre37484264', 'post37484264')"> if fields is None:</li><li onclick="toggle('pre37484264', 'post37484264')"> # We only set this up here because</li><li onclick="toggle('pre37484264', 'post37484264')"> # related_select_fields isn't populated until</li><li onclick="toggle('pre37484264', 'post37484264')"> # execute_sql() has been called.</li></ol>
|
---|
1422 |
|
---|
1423 | </div>
|
---|
1424 |
|
---|
1425 |
|
---|
1426 |
|
---|
1427 | <div class="commands">
|
---|
1428 | <a href="#" onclick="return varToggle(this, '37484264')"><span>▶</span> Local vars</a>
|
---|
1429 | </div>
|
---|
1430 | <table class="vars" id="v37484264">
|
---|
1431 | <thead>
|
---|
1432 | <tr>
|
---|
1433 | <th>Variable</th>
|
---|
1434 | <th>Value</th>
|
---|
1435 | </tr>
|
---|
1436 | </thead>
|
---|
1437 | <tbody>
|
---|
1438 |
|
---|
1439 | <tr>
|
---|
1440 | <td>fields</td>
|
---|
1441 | <td class="code"><div>None</div></td>
|
---|
1442 | </tr>
|
---|
1443 |
|
---|
1444 | <tr>
|
---|
1445 | <td>resolve_columns</td>
|
---|
1446 | <td class="code"><div>False</div></td>
|
---|
1447 | </tr>
|
---|
1448 |
|
---|
1449 | <tr>
|
---|
1450 | <td>self</td>
|
---|
1451 | <td class="code"><div><django.db.models.sql.query.Query object at 0x02453830></div></td>
|
---|
1452 | </tr>
|
---|
1453 |
|
---|
1454 | </tbody>
|
---|
1455 | </table>
|
---|
1456 |
|
---|
1457 | </li>
|
---|
1458 |
|
---|
1459 | <li class="frame">
|
---|
1460 | <code>C:\Python25\lib\site-packages\django\db\models\sql\query.py</code> in <code>execute_sql</code>
|
---|
1461 |
|
---|
1462 |
|
---|
1463 | <div class="context" id="c37485744">
|
---|
1464 |
|
---|
1465 | <ol start="1693" class="pre-context" id="pre37485744"><li onclick="toggle('pre37485744', 'post37485744')"> except EmptyResultSet:</li><li onclick="toggle('pre37485744', 'post37485744')"> if result_type == MULTI:</li><li onclick="toggle('pre37485744', 'post37485744')"> return empty_iter()</li><li onclick="toggle('pre37485744', 'post37485744')"> else:</li><li onclick="toggle('pre37485744', 'post37485744')"> return</li><li onclick="toggle('pre37485744', 'post37485744')"></li><li onclick="toggle('pre37485744', 'post37485744')"> cursor = self.connection.cursor()</li></ol>
|
---|
1466 |
|
---|
1467 | <ol start="1700" class="context-line"><li onclick="toggle('pre37485744', 'post37485744')"> cursor.execute(sql, params) <span>...</span></li></ol>
|
---|
1468 |
|
---|
1469 | <ol start='1701' class="post-context" id="post37485744"><li onclick="toggle('pre37485744', 'post37485744')"></li><li onclick="toggle('pre37485744', 'post37485744')"> if not result_type:</li><li onclick="toggle('pre37485744', 'post37485744')"> return cursor</li><li onclick="toggle('pre37485744', 'post37485744')"> if result_type == SINGLE:</li><li onclick="toggle('pre37485744', 'post37485744')"> if self.ordering_aliases:</li><li onclick="toggle('pre37485744', 'post37485744')"> return cursor.fetchone()[:-len(results.ordering_aliases)]</li></ol>
|
---|
1470 |
|
---|
1471 | </div>
|
---|
1472 |
|
---|
1473 |
|
---|
1474 |
|
---|
1475 | <div class="commands">
|
---|
1476 | <a href="#" onclick="return varToggle(this, '37485744')"><span>▶</span> Local vars</a>
|
---|
1477 | </div>
|
---|
1478 | <table class="vars" id="v37485744">
|
---|
1479 | <thead>
|
---|
1480 | <tr>
|
---|
1481 | <th>Variable</th>
|
---|
1482 | <th>Value</th>
|
---|
1483 | </tr>
|
---|
1484 | </thead>
|
---|
1485 | <tbody>
|
---|
1486 |
|
---|
1487 | <tr>
|
---|
1488 | <td>cursor</td>
|
---|
1489 | <td class="code"><div><django.db.backends.util.CursorDebugWrapper object at 0x02455A70></div></td>
|
---|
1490 | </tr>
|
---|
1491 |
|
---|
1492 | <tr>
|
---|
1493 | <td>params</td>
|
---|
1494 | <td class="code"><div>()</div></td>
|
---|
1495 | </tr>
|
---|
1496 |
|
---|
1497 | <tr>
|
---|
1498 | <td>result_type</td>
|
---|
1499 | <td class="code"><div>'multi'</div></td>
|
---|
1500 | </tr>
|
---|
1501 |
|
---|
1502 | <tr>
|
---|
1503 | <td>self</td>
|
---|
1504 | <td class="code"><div><django.db.models.sql.query.Query object at 0x02453830></div></td>
|
---|
1505 | </tr>
|
---|
1506 |
|
---|
1507 | <tr>
|
---|
1508 | <td>sql</td>
|
---|
1509 | <td class="code"><div>'SELECT "django_comments"."id", "django_comments"."content_type_id", "django_comments"."object_pk", "django_comments"."site_id", "django_comments"."user_id", "django_comments"."user_name", "django_comments"."user_email", "django_comments"."user_url", "django_comments"."comment", "django_comments"."submit_date", "django_comments"."ip_address", "django_comments"."is_public", "django_comments"."is_removed", "django_content_type"."id", "django_content_type"."name", "django_content_type"."app_label", "django_content_type"."model", "django_site"."id", "django_site"."domain", "django_site"."name" FROM "django_comments" INNER JOIN "django_content_type" ON ("django_comments"."content_type_id" = "django_content_type"."id") INNER JOIN "django_site" ON ("django_comments"."site_id" = "django_site"."id") ORDER BY "django_comments"."submit_date" ASC'</div></td>
|
---|
1510 | </tr>
|
---|
1511 |
|
---|
1512 | </tbody>
|
---|
1513 | </table>
|
---|
1514 |
|
---|
1515 | </li>
|
---|
1516 |
|
---|
1517 | <li class="frame">
|
---|
1518 | <code>C:\Python25\lib\site-packages\django\db\backends\util.py</code> in <code>execute</code>
|
---|
1519 |
|
---|
1520 |
|
---|
1521 | <div class="context" id="c37482784">
|
---|
1522 |
|
---|
1523 | <ol start="12" class="pre-context" id="pre37482784"><li onclick="toggle('pre37482784', 'post37482784')"> def __init__(self, cursor, db):</li><li onclick="toggle('pre37482784', 'post37482784')"> self.cursor = cursor</li><li onclick="toggle('pre37482784', 'post37482784')"> self.db = db # Instance of a BaseDatabaseWrapper subclass</li><li onclick="toggle('pre37482784', 'post37482784')"></li><li onclick="toggle('pre37482784', 'post37482784')"> def execute(self, sql, params=()):</li><li onclick="toggle('pre37482784', 'post37482784')"> start = time()</li><li onclick="toggle('pre37482784', 'post37482784')"> try:</li></ol>
|
---|
1524 |
|
---|
1525 | <ol start="19" class="context-line"><li onclick="toggle('pre37482784', 'post37482784')"> return self.cursor.execute(sql, params) <span>...</span></li></ol>
|
---|
1526 |
|
---|
1527 | <ol start='20' class="post-context" id="post37482784"><li onclick="toggle('pre37482784', 'post37482784')"> finally:</li><li onclick="toggle('pre37482784', 'post37482784')"> stop = time()</li><li onclick="toggle('pre37482784', 'post37482784')"> sql = self.db.ops.last_executed_query(self.cursor, sql, params)</li><li onclick="toggle('pre37482784', 'post37482784')"> self.db.queries.append({</li><li onclick="toggle('pre37482784', 'post37482784')"> 'sql': sql,</li><li onclick="toggle('pre37482784', 'post37482784')"> 'time': "%.3f" % (stop - start),</li></ol>
|
---|
1528 |
|
---|
1529 | </div>
|
---|
1530 |
|
---|
1531 |
|
---|
1532 |
|
---|
1533 | <div class="commands">
|
---|
1534 | <a href="#" onclick="return varToggle(this, '37482784')"><span>▶</span> Local vars</a>
|
---|
1535 | </div>
|
---|
1536 | <table class="vars" id="v37482784">
|
---|
1537 | <thead>
|
---|
1538 | <tr>
|
---|
1539 | <th>Variable</th>
|
---|
1540 | <th>Value</th>
|
---|
1541 | </tr>
|
---|
1542 | </thead>
|
---|
1543 | <tbody>
|
---|
1544 |
|
---|
1545 | <tr>
|
---|
1546 | <td>params</td>
|
---|
1547 | <td class="code"><div>()</div></td>
|
---|
1548 | </tr>
|
---|
1549 |
|
---|
1550 | <tr>
|
---|
1551 | <td>self</td>
|
---|
1552 | <td class="code"><div><django.db.backends.util.CursorDebugWrapper object at 0x02455A70></div></td>
|
---|
1553 | </tr>
|
---|
1554 |
|
---|
1555 | <tr>
|
---|
1556 | <td>sql</td>
|
---|
1557 | <td class="code"><div>u'SELECT "django_comments"."id", "django_comments"."content_type_id", "django_comments"."object_pk", "django_comments"."site_id", "django_comments"."user_id", "django_comments"."user_name", "django_comments"."user_email", "django_comments"."user_url", "django_comments"."comment", "django_comments"."submit_date", "django_comments"."ip_address", "django_comments"."is_public", "django_comments"."is_removed", "django_content_type"."id", "django_content_type"."name", "django_content_type"."app_label", "django_content_type"."model", "django_site"."id", "django_site"."domain", "django_site"."name" FROM "django_comments" INNER JOIN "django_content_type" ON ("django_comments"."content_type_id" = "django_content_type"."id") INNER JOIN "django_site" ON ("django_comments"."site_id" = "django_site"."id") ORDER BY "django_comments"."submit_date" ASC'</div></td>
|
---|
1558 | </tr>
|
---|
1559 |
|
---|
1560 | <tr>
|
---|
1561 | <td>start</td>
|
---|
1562 | <td class="code"><div>1221601132.882</div></td>
|
---|
1563 | </tr>
|
---|
1564 |
|
---|
1565 | <tr>
|
---|
1566 | <td>stop</td>
|
---|
1567 | <td class="code"><div>1221601132.882</div></td>
|
---|
1568 | </tr>
|
---|
1569 |
|
---|
1570 | </tbody>
|
---|
1571 | </table>
|
---|
1572 |
|
---|
1573 | </li>
|
---|
1574 |
|
---|
1575 | <li class="frame">
|
---|
1576 | <code>C:\Python25\lib\site-packages\django\db\backends\sqlite3\base.py</code> in <code>execute</code>
|
---|
1577 |
|
---|
1578 |
|
---|
1579 | <div class="context" id="c38048552">
|
---|
1580 |
|
---|
1581 | <ol start="160" class="pre-context" id="pre38048552"><li onclick="toggle('pre38048552', 'post38048552')"> """</li><li onclick="toggle('pre38048552', 'post38048552')"> Django uses "format" style placeholders, but pysqlite2 uses "qmark" style.</li><li onclick="toggle('pre38048552', 'post38048552')"> This fixes it -- but note that if you want to use a literal "%s" in a query,</li><li onclick="toggle('pre38048552', 'post38048552')"> you'll need to use "%%s".</li><li onclick="toggle('pre38048552', 'post38048552')"> """</li><li onclick="toggle('pre38048552', 'post38048552')"> def execute(self, query, params=()):</li><li onclick="toggle('pre38048552', 'post38048552')"> query = self.convert_query(query, len(params))</li></ol>
|
---|
1582 |
|
---|
1583 | <ol start="167" class="context-line"><li onclick="toggle('pre38048552', 'post38048552')"> return Database.Cursor.execute(self, query, params) <span>...</span></li></ol>
|
---|
1584 |
|
---|
1585 | <ol start='168' class="post-context" id="post38048552"><li onclick="toggle('pre38048552', 'post38048552')"></li><li onclick="toggle('pre38048552', 'post38048552')"> def executemany(self, query, param_list):</li><li onclick="toggle('pre38048552', 'post38048552')"> try:</li><li onclick="toggle('pre38048552', 'post38048552')"> query = self.convert_query(query, len(param_list[0]))</li><li onclick="toggle('pre38048552', 'post38048552')"> return Database.Cursor.executemany(self, query, param_list)</li><li onclick="toggle('pre38048552', 'post38048552')"> except (IndexError,TypeError):</li></ol>
|
---|
1586 |
|
---|
1587 | </div>
|
---|
1588 |
|
---|
1589 |
|
---|
1590 |
|
---|
1591 | <div class="commands">
|
---|
1592 | <a href="#" onclick="return varToggle(this, '38048552')"><span>▶</span> Local vars</a>
|
---|
1593 | </div>
|
---|
1594 | <table class="vars" id="v38048552">
|
---|
1595 | <thead>
|
---|
1596 | <tr>
|
---|
1597 | <th>Variable</th>
|
---|
1598 | <th>Value</th>
|
---|
1599 | </tr>
|
---|
1600 | </thead>
|
---|
1601 | <tbody>
|
---|
1602 |
|
---|
1603 | <tr>
|
---|
1604 | <td>params</td>
|
---|
1605 | <td class="code"><div>()</div></td>
|
---|
1606 | </tr>
|
---|
1607 |
|
---|
1608 | <tr>
|
---|
1609 | <td>query</td>
|
---|
1610 | <td class="code"><div>'SELECT "django_comments"."id", "django_comments"."content_type_id", "django_comments"."object_pk", "django_comments"."site_id", "django_comments"."user_id", "django_comments"."user_name", "django_comments"."user_email", "django_comments"."user_url", "django_comments"."comment", "django_comments"."submit_date", "django_comments"."ip_address", "django_comments"."is_public", "django_comments"."is_removed", "django_content_type"."id", "django_content_type"."name", "django_content_type"."app_label", "django_content_type"."model", "django_site"."id", "django_site"."domain", "django_site"."name" FROM "django_comments" INNER JOIN "django_content_type" ON ("django_comments"."content_type_id" = "django_content_type"."id") INNER JOIN "django_site" ON ("django_comments"."site_id" = "django_site"."id") ORDER BY "django_comments"."submit_date" ASC'</div></td>
|
---|
1611 | </tr>
|
---|
1612 |
|
---|
1613 | <tr>
|
---|
1614 | <td>self</td>
|
---|
1615 | <td class="code"><div><django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x023648E8></div></td>
|
---|
1616 | </tr>
|
---|
1617 |
|
---|
1618 | </tbody>
|
---|
1619 | </table>
|
---|
1620 |
|
---|
1621 | </li>
|
---|
1622 |
|
---|
1623 | </ul>
|
---|
1624 | </div>
|
---|
1625 |
|
---|
1626 | <form action="http://dpaste.com/" name="pasteform" id="pasteform" method="post">
|
---|
1627 | <div id="pastebinTraceback" class="pastebin">
|
---|
1628 | <input type="hidden" name="language" value="PythonConsole">
|
---|
1629 | <input type="hidden" name="title" value="OperationalError at /admin/comments/comment/">
|
---|
1630 | <input type="hidden" name="source" value="Django Dpaste Agent">
|
---|
1631 | <input type="hidden" name="poster" value="Django">
|
---|
1632 | <textarea name="content" id="traceback_area" cols="140" rows="25">
|
---|
1633 | Environment:
|
---|
1634 |
|
---|
1635 | Request Method: GET
|
---|
1636 | Request URL: http://localhost:8080/admin/comments/comment/
|
---|
1637 | Django Version: 1.0-final-SVN-unknown
|
---|
1638 | Python Version: 2.5.2
|
---|
1639 | Installed Applications:
|
---|
1640 | ['ssa.posts',
|
---|
1641 | 'ssa.nav',
|
---|
1642 | 'ssa.events',
|
---|
1643 | 'django.contrib.admin',
|
---|
1644 | 'django.contrib.admindocs',
|
---|
1645 | 'django.contrib.auth',
|
---|
1646 | 'django.contrib.contenttypes',
|
---|
1647 | 'django.contrib.sessions',
|
---|
1648 | 'django.contrib.comments',
|
---|
1649 | 'django.contrib.webdesign']
|
---|
1650 | Installed Middleware:
|
---|
1651 | ('django.middleware.common.CommonMiddleware',
|
---|
1652 | 'django.contrib.sessions.middleware.SessionMiddleware',
|
---|
1653 | 'django.middleware.locale.LocaleMiddleware',
|
---|
1654 | 'django.contrib.auth.middleware.AuthenticationMiddleware')
|
---|
1655 |
|
---|
1656 |
|
---|
1657 | Traceback:
|
---|
1658 | File "C:\Python25\lib\site-packages\django\core\handlers\base.py" in get_response
|
---|
1659 | 86. response = callback(request, *callback_args, **callback_kwargs)
|
---|
1660 | File "C:\Python25\lib\site-packages\django\contrib\admin\sites.py" in root
|
---|
1661 | 158. return self.model_page(request, *url.split('/', 2))
|
---|
1662 | File "C:\Python25\lib\site-packages\django\views\decorators\cache.py" in _wrapped_view_func
|
---|
1663 | 44. response = view_func(request, *args, **kwargs)
|
---|
1664 | File "C:\Python25\lib\site-packages\django\contrib\admin\sites.py" in model_page
|
---|
1665 | 177. return admin_obj(request, rest_of_url)
|
---|
1666 | File "C:\Python25\lib\site-packages\django\contrib\admin\options.py" in __call__
|
---|
1667 | 189. return self.changelist_view(request)
|
---|
1668 | File "C:\Python25\lib\site-packages\django\contrib\admin\options.py" in changelist_view
|
---|
1669 | 638. self.date_hierarchy, self.search_fields, self.list_select_related, self.list_per_page, self)
|
---|
1670 | File "C:\Python25\lib\site-packages\django\contrib\admin\views\main.py" in __init__
|
---|
1671 | 68. self.get_results(request)
|
---|
1672 | File "C:\Python25\lib\site-packages\django\contrib\admin\views\main.py" in get_results
|
---|
1673 | 125. result_list = list(self.query_set)
|
---|
1674 | File "C:\Python25\lib\site-packages\django\db\models\query.py" in __len__
|
---|
1675 | 156. self._result_cache.extend(list(self._iter))
|
---|
1676 | File "C:\Python25\lib\site-packages\django\db\models\query.py" in iterator
|
---|
1677 | 269. for row in self.query.results_iter():
|
---|
1678 | File "C:\Python25\lib\site-packages\django\db\models\sql\query.py" in results_iter
|
---|
1679 | 206. for rows in self.execute_sql(MULTI):
|
---|
1680 | File "C:\Python25\lib\site-packages\django\db\models\sql\query.py" in execute_sql
|
---|
1681 | 1700. cursor.execute(sql, params)
|
---|
1682 | File "C:\Python25\lib\site-packages\django\db\backends\util.py" in execute
|
---|
1683 | 19. return self.cursor.execute(sql, params)
|
---|
1684 | File "C:\Python25\lib\site-packages\django\db\backends\sqlite3\base.py" in execute
|
---|
1685 | 167. return Database.Cursor.execute(self, query, params)
|
---|
1686 |
|
---|
1687 | Exception Type: OperationalError at /admin/comments/comment/
|
---|
1688 | Exception Value: no such table: django_site
|
---|
1689 | </textarea>
|
---|
1690 | <br><br>
|
---|
1691 | <input type="submit" value="Share this traceback on a public Web site">
|
---|
1692 | </div>
|
---|
1693 | </form>
|
---|
1694 | </div>
|
---|
1695 |
|
---|
1696 | <div id="requestinfo">
|
---|
1697 | <h2>Request information</h2>
|
---|
1698 |
|
---|
1699 | <h3 id="get-info">GET</h3>
|
---|
1700 |
|
---|
1701 | <p>No GET data</p>
|
---|
1702 |
|
---|
1703 |
|
---|
1704 | <h3 id="post-info">POST</h3>
|
---|
1705 |
|
---|
1706 | <p>No POST data</p>
|
---|
1707 |
|
---|
1708 |
|
---|
1709 | <h3 id="cookie-info">COOKIES</h3>
|
---|
1710 |
|
---|
1711 | <table class="req">
|
---|
1712 | <thead>
|
---|
1713 | <tr>
|
---|
1714 | <th>Variable</th>
|
---|
1715 | <th>Value</th>
|
---|
1716 | </tr>
|
---|
1717 | </thead>
|
---|
1718 | <tbody>
|
---|
1719 |
|
---|
1720 | <tr>
|
---|
1721 | <td>sessionid</td>
|
---|
1722 | <td class="code"><div>'831bf381040c8a6239b3bba39536eb49'</div></td>
|
---|
1723 | </tr>
|
---|
1724 |
|
---|
1725 | </tbody>
|
---|
1726 | </table>
|
---|
1727 |
|
---|
1728 |
|
---|
1729 | <h3 id="meta-info">META</h3>
|
---|
1730 | <table class="req">
|
---|
1731 | <thead>
|
---|
1732 | <tr>
|
---|
1733 | <th>Variable</th>
|
---|
1734 | <th>Value</th>
|
---|
1735 | </tr>
|
---|
1736 | </thead>
|
---|
1737 | <tbody>
|
---|
1738 |
|
---|
1739 | <tr>
|
---|
1740 | <td>ALLUSERSPROFILE</td>
|
---|
1741 | <td class="code"><div>'C:\\ProgramData'</div></td>
|
---|
1742 | </tr>
|
---|
1743 |
|
---|
1744 | <tr>
|
---|
1745 | <td>APPDATA</td>
|
---|
1746 | <td class="code"><div>'C:\\Users\\J\\AppData\\Roaming'</div></td>
|
---|
1747 | </tr>
|
---|
1748 |
|
---|
1749 | <tr>
|
---|
1750 | <td>CLASSPATH</td>
|
---|
1751 | <td class="code"><div>'.;C:\\Program Files\\QuickTime\\QTSystem\\QTJava.zip'</div></td>
|
---|
1752 | </tr>
|
---|
1753 |
|
---|
1754 | <tr>
|
---|
1755 | <td>COMMANDER_DRIVE</td>
|
---|
1756 | <td class="code"><div>'C:'</div></td>
|
---|
1757 | </tr>
|
---|
1758 |
|
---|
1759 | <tr>
|
---|
1760 | <td>COMMANDER_INI</td>
|
---|
1761 | <td class="code"><div>'C:\\Users\\J\\AppData\\Roaming\\GHISLER\\wincmd.ini'</div></td>
|
---|
1762 | </tr>
|
---|
1763 |
|
---|
1764 | <tr>
|
---|
1765 | <td>COMMANDER_PATH</td>
|
---|
1766 | <td class="code"><div>'C:\\Program Files\\totalcmd'</div></td>
|
---|
1767 | </tr>
|
---|
1768 |
|
---|
1769 | <tr>
|
---|
1770 | <td>COMMONPROGRAMFILES</td>
|
---|
1771 | <td class="code"><div>'C:\\Program Files\\Common Files'</div></td>
|
---|
1772 | </tr>
|
---|
1773 |
|
---|
1774 | <tr>
|
---|
1775 | <td>COMPUTERNAME</td>
|
---|
1776 | <td class="code"><div>'J-PC-VISTAEN'</div></td>
|
---|
1777 | </tr>
|
---|
1778 |
|
---|
1779 | <tr>
|
---|
1780 | <td>COMSPEC</td>
|
---|
1781 | <td class="code"><div>'C:\\Windows\\system32\\cmd.exe'</div></td>
|
---|
1782 | </tr>
|
---|
1783 |
|
---|
1784 | <tr>
|
---|
1785 | <td>CONTENT_LENGTH</td>
|
---|
1786 | <td class="code"><div>''</div></td>
|
---|
1787 | </tr>
|
---|
1788 |
|
---|
1789 | <tr>
|
---|
1790 | <td>CONTENT_TYPE</td>
|
---|
1791 | <td class="code"><div>'text/plain'</div></td>
|
---|
1792 | </tr>
|
---|
1793 |
|
---|
1794 | <tr>
|
---|
1795 | <td>DJANGO_SETTINGS_MODULE</td>
|
---|
1796 | <td class="code"><div>'ssa.settings'</div></td>
|
---|
1797 | </tr>
|
---|
1798 |
|
---|
1799 | <tr>
|
---|
1800 | <td>FP_NO_HOST_CHECK</td>
|
---|
1801 | <td class="code"><div>'NO'</div></td>
|
---|
1802 | </tr>
|
---|
1803 |
|
---|
1804 | <tr>
|
---|
1805 | <td>GATEWAY_INTERFACE</td>
|
---|
1806 | <td class="code"><div>'CGI/1.1'</div></td>
|
---|
1807 | </tr>
|
---|
1808 |
|
---|
1809 | <tr>
|
---|
1810 | <td>HOMEDRIVE</td>
|
---|
1811 | <td class="code"><div>'C:'</div></td>
|
---|
1812 | </tr>
|
---|
1813 |
|
---|
1814 | <tr>
|
---|
1815 | <td>HOMEPATH</td>
|
---|
1816 | <td class="code"><div>'\\Users\\J'</div></td>
|
---|
1817 | </tr>
|
---|
1818 |
|
---|
1819 | <tr>
|
---|
1820 | <td>HTTP_ACCEPT</td>
|
---|
1821 | <td class="code"><div>'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'</div></td>
|
---|
1822 | </tr>
|
---|
1823 |
|
---|
1824 | <tr>
|
---|
1825 | <td>HTTP_ACCEPT_CHARSET</td>
|
---|
1826 | <td class="code"><div>'ISO-8859-1,utf-8;q=0.7,*;q=0.7'</div></td>
|
---|
1827 | </tr>
|
---|
1828 |
|
---|
1829 | <tr>
|
---|
1830 | <td>HTTP_ACCEPT_ENCODING</td>
|
---|
1831 | <td class="code"><div>'gzip,deflate'</div></td>
|
---|
1832 | </tr>
|
---|
1833 |
|
---|
1834 | <tr>
|
---|
1835 | <td>HTTP_ACCEPT_LANGUAGE</td>
|
---|
1836 | <td class="code"><div>'es,es-ar;q=0.8,en-us;q=0.5,en;q=0.3'</div></td>
|
---|
1837 | </tr>
|
---|
1838 |
|
---|
1839 | <tr>
|
---|
1840 | <td>HTTP_CACHE_CONTROL</td>
|
---|
1841 | <td class="code"><div>'max-age=0'</div></td>
|
---|
1842 | </tr>
|
---|
1843 |
|
---|
1844 | <tr>
|
---|
1845 | <td>HTTP_CONNECTION</td>
|
---|
1846 | <td class="code"><div>'keep-alive'</div></td>
|
---|
1847 | </tr>
|
---|
1848 |
|
---|
1849 | <tr>
|
---|
1850 | <td>HTTP_COOKIE</td>
|
---|
1851 | <td class="code"><div>'sessionid=831bf381040c8a6239b3bba39536eb49'</div></td>
|
---|
1852 | </tr>
|
---|
1853 |
|
---|
1854 | <tr>
|
---|
1855 | <td>HTTP_HOST</td>
|
---|
1856 | <td class="code"><div>'localhost:8080'</div></td>
|
---|
1857 | </tr>
|
---|
1858 |
|
---|
1859 | <tr>
|
---|
1860 | <td>HTTP_KEEP_ALIVE</td>
|
---|
1861 | <td class="code"><div>'300'</div></td>
|
---|
1862 | </tr>
|
---|
1863 |
|
---|
1864 | <tr>
|
---|
1865 | <td>HTTP_REFERER</td>
|
---|
1866 | <td class="code"><div>'http://localhost:8080/admin/'</div></td>
|
---|
1867 | </tr>
|
---|
1868 |
|
---|
1869 | <tr>
|
---|
1870 | <td>HTTP_USER_AGENT</td>
|
---|
1871 | <td class="code"><div>'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1'</div></td>
|
---|
1872 | </tr>
|
---|
1873 |
|
---|
1874 | <tr>
|
---|
1875 | <td>LOCALAPPDATA</td>
|
---|
1876 | <td class="code"><div>'C:\\Users\\J\\AppData\\Local'</div></td>
|
---|
1877 | </tr>
|
---|
1878 |
|
---|
1879 | <tr>
|
---|
1880 | <td>LOGONSERVER</td>
|
---|
1881 | <td class="code"><div>'\\\\J-PC-VISTAEN'</div></td>
|
---|
1882 | </tr>
|
---|
1883 |
|
---|
1884 | <tr>
|
---|
1885 | <td>NUMBER_OF_PROCESSORS</td>
|
---|
1886 | <td class="code"><div>'2'</div></td>
|
---|
1887 | </tr>
|
---|
1888 |
|
---|
1889 | <tr>
|
---|
1890 | <td>OS</td>
|
---|
1891 | <td class="code"><div>'Windows_NT'</div></td>
|
---|
1892 | </tr>
|
---|
1893 |
|
---|
1894 | <tr>
|
---|
1895 | <td>PATH</td>
|
---|
1896 | <td class="code"><div>'C:\\Python25\\;C:\\Python25\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Program Files\\QuickTime\\QTSystem\\;C:\\Program Files\\Common Files\\Adobe\\AGL;C:\\p\\usr\\bin;C:\\Python25\\Lib\\site-packages\\django\\bin\\;;C:\\Program Files\\Common Files\\Ahead\\Lib\\'</div></td>
|
---|
1897 | </tr>
|
---|
1898 |
|
---|
1899 | <tr>
|
---|
1900 | <td>PATHEXT</td>
|
---|
1901 | <td class="code"><div>'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.py;.pyw'</div></td>
|
---|
1902 | </tr>
|
---|
1903 |
|
---|
1904 | <tr>
|
---|
1905 | <td>PATH_INFO</td>
|
---|
1906 | <td class="code"><div>u'/admin/comments/comment/'</div></td>
|
---|
1907 | </tr>
|
---|
1908 |
|
---|
1909 | <tr>
|
---|
1910 | <td>PROCESSOR_ARCHITECTURE</td>
|
---|
1911 | <td class="code"><div>'x86'</div></td>
|
---|
1912 | </tr>
|
---|
1913 |
|
---|
1914 | <tr>
|
---|
1915 | <td>PROCESSOR_IDENTIFIER</td>
|
---|
1916 | <td class="code"><div>'x86 Family 6 Model 15 Stepping 6, GenuineIntel'</div></td>
|
---|
1917 | </tr>
|
---|
1918 |
|
---|
1919 | <tr>
|
---|
1920 | <td>PROCESSOR_LEVEL</td>
|
---|
1921 | <td class="code"><div>'6'</div></td>
|
---|
1922 | </tr>
|
---|
1923 |
|
---|
1924 | <tr>
|
---|
1925 | <td>PROCESSOR_REVISION</td>
|
---|
1926 | <td class="code"><div>'0f06'</div></td>
|
---|
1927 | </tr>
|
---|
1928 |
|
---|
1929 | <tr>
|
---|
1930 | <td>PROGRAMDATA</td>
|
---|
1931 | <td class="code"><div>'C:\\ProgramData'</div></td>
|
---|
1932 | </tr>
|
---|
1933 |
|
---|
1934 | <tr>
|
---|
1935 | <td>PROGRAMFILES</td>
|
---|
1936 | <td class="code"><div>'C:\\Program Files'</div></td>
|
---|
1937 | </tr>
|
---|
1938 |
|
---|
1939 | <tr>
|
---|
1940 | <td>PROMPT</td>
|
---|
1941 | <td class="code"><div>'$P$G'</div></td>
|
---|
1942 | </tr>
|
---|
1943 |
|
---|
1944 | <tr>
|
---|
1945 | <td>PUBLIC</td>
|
---|
1946 | <td class="code"><div>'C:\\Users\\Public'</div></td>
|
---|
1947 | </tr>
|
---|
1948 |
|
---|
1949 | <tr>
|
---|
1950 | <td>QTJAVA</td>
|
---|
1951 | <td class="code"><div>'C:\\Program Files\\QuickTime\\QTSystem\\QTJava.zip'</div></td>
|
---|
1952 | </tr>
|
---|
1953 |
|
---|
1954 | <tr>
|
---|
1955 | <td>QUERY_STRING</td>
|
---|
1956 | <td class="code"><div>''</div></td>
|
---|
1957 | </tr>
|
---|
1958 |
|
---|
1959 | <tr>
|
---|
1960 | <td>REMOTE_ADDR</td>
|
---|
1961 | <td class="code"><div>'127.0.0.1'</div></td>
|
---|
1962 | </tr>
|
---|
1963 |
|
---|
1964 | <tr>
|
---|
1965 | <td>REMOTE_HOST</td>
|
---|
1966 | <td class="code"><div>''</div></td>
|
---|
1967 | </tr>
|
---|
1968 |
|
---|
1969 | <tr>
|
---|
1970 | <td>REQUEST_METHOD</td>
|
---|
1971 | <td class="code"><div>'GET'</div></td>
|
---|
1972 | </tr>
|
---|
1973 |
|
---|
1974 | <tr>
|
---|
1975 | <td>RUN_MAIN</td>
|
---|
1976 | <td class="code"><div>'true'</div></td>
|
---|
1977 | </tr>
|
---|
1978 |
|
---|
1979 | <tr>
|
---|
1980 | <td>SCRIPT_NAME</td>
|
---|
1981 | <td class="code"><div>u''</div></td>
|
---|
1982 | </tr>
|
---|
1983 |
|
---|
1984 | <tr>
|
---|
1985 | <td>SERVER_NAME</td>
|
---|
1986 | <td class="code"><div>'J-PC-vistaen'</div></td>
|
---|
1987 | </tr>
|
---|
1988 |
|
---|
1989 | <tr>
|
---|
1990 | <td>SERVER_PORT</td>
|
---|
1991 | <td class="code"><div>'8080'</div></td>
|
---|
1992 | </tr>
|
---|
1993 |
|
---|
1994 | <tr>
|
---|
1995 | <td>SERVER_PROTOCOL</td>
|
---|
1996 | <td class="code"><div>'HTTP/1.1'</div></td>
|
---|
1997 | </tr>
|
---|
1998 |
|
---|
1999 | <tr>
|
---|
2000 | <td>SERVER_SOFTWARE</td>
|
---|
2001 | <td class="code"><div>'WSGIServer/0.1 Python/2.5.2'</div></td>
|
---|
2002 | </tr>
|
---|
2003 |
|
---|
2004 | <tr>
|
---|
2005 | <td>SESSIONNAME</td>
|
---|
2006 | <td class="code"><div>'Console'</div></td>
|
---|
2007 | </tr>
|
---|
2008 |
|
---|
2009 | <tr>
|
---|
2010 | <td>SYSTEMDRIVE</td>
|
---|
2011 | <td class="code"><div>'C:'</div></td>
|
---|
2012 | </tr>
|
---|
2013 |
|
---|
2014 | <tr>
|
---|
2015 | <td>SYSTEMROOT</td>
|
---|
2016 | <td class="code"><div>'C:\\Windows'</div></td>
|
---|
2017 | </tr>
|
---|
2018 |
|
---|
2019 | <tr>
|
---|
2020 | <td>TEMP</td>
|
---|
2021 | <td class="code"><div>'C:\\Users\\J\\AppData\\Local\\Temp'</div></td>
|
---|
2022 | </tr>
|
---|
2023 |
|
---|
2024 | <tr>
|
---|
2025 | <td>TMP</td>
|
---|
2026 | <td class="code"><div>'C:\\Users\\J\\AppData\\Local\\Temp'</div></td>
|
---|
2027 | </tr>
|
---|
2028 |
|
---|
2029 | <tr>
|
---|
2030 | <td>USERDOMAIN</td>
|
---|
2031 | <td class="code"><div>'J-PC-vistaen'</div></td>
|
---|
2032 | </tr>
|
---|
2033 |
|
---|
2034 | <tr>
|
---|
2035 | <td>USERNAME</td>
|
---|
2036 | <td class="code"><div>'J'</div></td>
|
---|
2037 | </tr>
|
---|
2038 |
|
---|
2039 | <tr>
|
---|
2040 | <td>USERPROFILE</td>
|
---|
2041 | <td class="code"><div>'C:\\Users\\J'</div></td>
|
---|
2042 | </tr>
|
---|
2043 |
|
---|
2044 | <tr>
|
---|
2045 | <td>WINDIR</td>
|
---|
2046 | <td class="code"><div>'C:\\Windows'</div></td>
|
---|
2047 | </tr>
|
---|
2048 |
|
---|
2049 | <tr>
|
---|
2050 | <td>wsgi.errors</td>
|
---|
2051 | <td class="code"><div><open file '<stderr>', mode 'w' at 0x0195F0B0></div></td>
|
---|
2052 | </tr>
|
---|
2053 |
|
---|
2054 | <tr>
|
---|
2055 | <td>wsgi.file_wrapper</td>
|
---|
2056 | <td class="code"><div><class 'django.core.servers.basehttp.FileWrapper'></div></td>
|
---|
2057 | </tr>
|
---|
2058 |
|
---|
2059 | <tr>
|
---|
2060 | <td>wsgi.input</td>
|
---|
2061 | <td class="code"><div><socket._fileobject object at 0x023043F0></div></td>
|
---|
2062 | </tr>
|
---|
2063 |
|
---|
2064 | <tr>
|
---|
2065 | <td>wsgi.multiprocess</td>
|
---|
2066 | <td class="code"><div>False</div></td>
|
---|
2067 | </tr>
|
---|
2068 |
|
---|
2069 | <tr>
|
---|
2070 | <td>wsgi.multithread</td>
|
---|
2071 | <td class="code"><div>True</div></td>
|
---|
2072 | </tr>
|
---|
2073 |
|
---|
2074 | <tr>
|
---|
2075 | <td>wsgi.run_once</td>
|
---|
2076 | <td class="code"><div>False</div></td>
|
---|
2077 | </tr>
|
---|
2078 |
|
---|
2079 | <tr>
|
---|
2080 | <td>wsgi.url_scheme</td>
|
---|
2081 | <td class="code"><div>'http'</div></td>
|
---|
2082 | </tr>
|
---|
2083 |
|
---|
2084 | <tr>
|
---|
2085 | <td>wsgi.version</td>
|
---|
2086 | <td class="code"><div>(1, 0)</div></td>
|
---|
2087 | </tr>
|
---|
2088 |
|
---|
2089 | </tbody>
|
---|
2090 | </table>
|
---|
2091 |
|
---|
2092 | <h3 id="settings-info">Settings</h3>
|
---|
2093 | <h4>Using settings module <code>ssa.settings</code></h4>
|
---|
2094 | <table class="req">
|
---|
2095 | <thead>
|
---|
2096 | <tr>
|
---|
2097 | <th>Setting</th>
|
---|
2098 | <th>Value</th>
|
---|
2099 | </tr>
|
---|
2100 | </thead>
|
---|
2101 | <tbody>
|
---|
2102 |
|
---|
2103 | <tr>
|
---|
2104 | <td>ABSOLUTE_URL_OVERRIDES</td>
|
---|
2105 | <td class="code"><div>{}</div></td>
|
---|
2106 | </tr>
|
---|
2107 |
|
---|
2108 | <tr>
|
---|
2109 | <td>ADMINS</td>
|
---|
2110 | <td class="code"><div>(('J', 'jobcello@gmail.com'),)</div></td>
|
---|
2111 | </tr>
|
---|
2112 |
|
---|
2113 | <tr>
|
---|
2114 | <td>ADMIN_FOR</td>
|
---|
2115 | <td class="code"><div>()</div></td>
|
---|
2116 | </tr>
|
---|
2117 |
|
---|
2118 | <tr>
|
---|
2119 | <td>ADMIN_MEDIA_PREFIX</td>
|
---|
2120 | <td class="code"><div>'/adminmedia/'</div></td>
|
---|
2121 | </tr>
|
---|
2122 |
|
---|
2123 | <tr>
|
---|
2124 | <td>ALLOWED_INCLUDE_ROOTS</td>
|
---|
2125 | <td class="code"><div>()</div></td>
|
---|
2126 | </tr>
|
---|
2127 |
|
---|
2128 | <tr>
|
---|
2129 | <td>APPEND_SLASH</td>
|
---|
2130 | <td class="code"><div>True</div></td>
|
---|
2131 | </tr>
|
---|
2132 |
|
---|
2133 | <tr>
|
---|
2134 | <td>AUTHENTICATION_BACKENDS</td>
|
---|
2135 | <td class="code"><div>('django.contrib.auth.backends.ModelBackend',)</div></td>
|
---|
2136 | </tr>
|
---|
2137 |
|
---|
2138 | <tr>
|
---|
2139 | <td>BANNED_IPS</td>
|
---|
2140 | <td class="code"><div>()</div></td>
|
---|
2141 | </tr>
|
---|
2142 |
|
---|
2143 | <tr>
|
---|
2144 | <td>CACHE_BACKEND</td>
|
---|
2145 | <td class="code"><div>'locmem://'</div></td>
|
---|
2146 | </tr>
|
---|
2147 |
|
---|
2148 | <tr>
|
---|
2149 | <td>CACHE_MIDDLEWARE_KEY_PREFIX</td>
|
---|
2150 | <td class="code"><div>''</div></td>
|
---|
2151 | </tr>
|
---|
2152 |
|
---|
2153 | <tr>
|
---|
2154 | <td>CACHE_MIDDLEWARE_SECONDS</td>
|
---|
2155 | <td class="code"><div>600</div></td>
|
---|
2156 | </tr>
|
---|
2157 |
|
---|
2158 | <tr>
|
---|
2159 | <td>COMMENTS_ALLOW_PROFANITIES</td>
|
---|
2160 | <td class="code"><div>False</div></td>
|
---|
2161 | </tr>
|
---|
2162 |
|
---|
2163 | <tr>
|
---|
2164 | <td>COMMENTS_BANNED_USERS_GROUP</td>
|
---|
2165 | <td class="code"><div>None</div></td>
|
---|
2166 | </tr>
|
---|
2167 |
|
---|
2168 | <tr>
|
---|
2169 | <td>COMMENTS_FIRST_FEW</td>
|
---|
2170 | <td class="code"><div>0</div></td>
|
---|
2171 | </tr>
|
---|
2172 |
|
---|
2173 | <tr>
|
---|
2174 | <td>COMMENTS_MODERATORS_GROUP</td>
|
---|
2175 | <td class="code"><div>None</div></td>
|
---|
2176 | </tr>
|
---|
2177 |
|
---|
2178 | <tr>
|
---|
2179 | <td>COMMENTS_SKETCHY_USERS_GROUP</td>
|
---|
2180 | <td class="code"><div>None</div></td>
|
---|
2181 | </tr>
|
---|
2182 |
|
---|
2183 | <tr>
|
---|
2184 | <td>DATABASE_ENGINE</td>
|
---|
2185 | <td class="code"><div>'sqlite3'</div></td>
|
---|
2186 | </tr>
|
---|
2187 |
|
---|
2188 | <tr>
|
---|
2189 | <td>DATABASE_HOST</td>
|
---|
2190 | <td class="code"><div>''</div></td>
|
---|
2191 | </tr>
|
---|
2192 |
|
---|
2193 | <tr>
|
---|
2194 | <td>DATABASE_NAME</td>
|
---|
2195 | <td class="code"><div>'C:\\J\\_proj\\Python\\djcode\\ssa_dj1.sqlite'</div></td>
|
---|
2196 | </tr>
|
---|
2197 |
|
---|
2198 | <tr>
|
---|
2199 | <td>DATABASE_OPTIONS</td>
|
---|
2200 | <td class="code"><div>{}</div></td>
|
---|
2201 | </tr>
|
---|
2202 |
|
---|
2203 | <tr>
|
---|
2204 | <td>DATABASE_PASSWORD</td>
|
---|
2205 | <td class="code"><div>'********************'</div></td>
|
---|
2206 | </tr>
|
---|
2207 |
|
---|
2208 | <tr>
|
---|
2209 | <td>DATABASE_PORT</td>
|
---|
2210 | <td class="code"><div>''</div></td>
|
---|
2211 | </tr>
|
---|
2212 |
|
---|
2213 | <tr>
|
---|
2214 | <td>DATABASE_USER</td>
|
---|
2215 | <td class="code"><div>''</div></td>
|
---|
2216 | </tr>
|
---|
2217 |
|
---|
2218 | <tr>
|
---|
2219 | <td>DATETIME_FORMAT</td>
|
---|
2220 | <td class="code"><div>'N j, Y, P'</div></td>
|
---|
2221 | </tr>
|
---|
2222 |
|
---|
2223 | <tr>
|
---|
2224 | <td>DATE_FORMAT</td>
|
---|
2225 | <td class="code"><div>'N j, Y'</div></td>
|
---|
2226 | </tr>
|
---|
2227 |
|
---|
2228 | <tr>
|
---|
2229 | <td>DEBUG</td>
|
---|
2230 | <td class="code"><div>True</div></td>
|
---|
2231 | </tr>
|
---|
2232 |
|
---|
2233 | <tr>
|
---|
2234 | <td>DEBUG_PROPAGATE_EXCEPTIONS</td>
|
---|
2235 | <td class="code"><div>False</div></td>
|
---|
2236 | </tr>
|
---|
2237 |
|
---|
2238 | <tr>
|
---|
2239 | <td>DEFAULT_CHARSET</td>
|
---|
2240 | <td class="code"><div>'utf-8'</div></td>
|
---|
2241 | </tr>
|
---|
2242 |
|
---|
2243 | <tr>
|
---|
2244 | <td>DEFAULT_CONTENT_TYPE</td>
|
---|
2245 | <td class="code"><div>'text/html'</div></td>
|
---|
2246 | </tr>
|
---|
2247 |
|
---|
2248 | <tr>
|
---|
2249 | <td>DEFAULT_FILE_STORAGE</td>
|
---|
2250 | <td class="code"><div>'django.core.files.storage.FileSystemStorage'</div></td>
|
---|
2251 | </tr>
|
---|
2252 |
|
---|
2253 | <tr>
|
---|
2254 | <td>DEFAULT_FROM_EMAIL</td>
|
---|
2255 | <td class="code"><div>'webmaster@localhost'</div></td>
|
---|
2256 | </tr>
|
---|
2257 |
|
---|
2258 | <tr>
|
---|
2259 | <td>DEFAULT_INDEX_TABLESPACE</td>
|
---|
2260 | <td class="code"><div>''</div></td>
|
---|
2261 | </tr>
|
---|
2262 |
|
---|
2263 | <tr>
|
---|
2264 | <td>DEFAULT_TABLESPACE</td>
|
---|
2265 | <td class="code"><div>''</div></td>
|
---|
2266 | </tr>
|
---|
2267 |
|
---|
2268 | <tr>
|
---|
2269 | <td>DISALLOWED_USER_AGENTS</td>
|
---|
2270 | <td class="code"><div>()</div></td>
|
---|
2271 | </tr>
|
---|
2272 |
|
---|
2273 | <tr>
|
---|
2274 | <td>EMAIL_HOST</td>
|
---|
2275 | <td class="code"><div>'localhost'</div></td>
|
---|
2276 | </tr>
|
---|
2277 |
|
---|
2278 | <tr>
|
---|
2279 | <td>EMAIL_HOST_PASSWORD</td>
|
---|
2280 | <td class="code"><div>'********************'</div></td>
|
---|
2281 | </tr>
|
---|
2282 |
|
---|
2283 | <tr>
|
---|
2284 | <td>EMAIL_HOST_USER</td>
|
---|
2285 | <td class="code"><div>''</div></td>
|
---|
2286 | </tr>
|
---|
2287 |
|
---|
2288 | <tr>
|
---|
2289 | <td>EMAIL_PORT</td>
|
---|
2290 | <td class="code"><div>25</div></td>
|
---|
2291 | </tr>
|
---|
2292 |
|
---|
2293 | <tr>
|
---|
2294 | <td>EMAIL_SUBJECT_PREFIX</td>
|
---|
2295 | <td class="code"><div>'[Django] '</div></td>
|
---|
2296 | </tr>
|
---|
2297 |
|
---|
2298 | <tr>
|
---|
2299 | <td>EMAIL_USE_TLS</td>
|
---|
2300 | <td class="code"><div>False</div></td>
|
---|
2301 | </tr>
|
---|
2302 |
|
---|
2303 | <tr>
|
---|
2304 | <td>FILE_CHARSET</td>
|
---|
2305 | <td class="code"><div>'utf-8'</div></td>
|
---|
2306 | </tr>
|
---|
2307 |
|
---|
2308 | <tr>
|
---|
2309 | <td>FILE_UPLOAD_HANDLERS</td>
|
---|
2310 | <td class="code"><div>('django.core.files.uploadhandler.MemoryFileUploadHandler',
|
---|
2311 | 'django.core.files.uploadhandler.TemporaryFileUploadHandler')</div></td>
|
---|
2312 | </tr>
|
---|
2313 |
|
---|
2314 | <tr>
|
---|
2315 | <td>FILE_UPLOAD_MAX_MEMORY_SIZE</td>
|
---|
2316 | <td class="code"><div>2621440</div></td>
|
---|
2317 | </tr>
|
---|
2318 |
|
---|
2319 | <tr>
|
---|
2320 | <td>FILE_UPLOAD_PERMISSIONS</td>
|
---|
2321 | <td class="code"><div>None</div></td>
|
---|
2322 | </tr>
|
---|
2323 |
|
---|
2324 | <tr>
|
---|
2325 | <td>FILE_UPLOAD_TEMP_DIR</td>
|
---|
2326 | <td class="code"><div>None</div></td>
|
---|
2327 | </tr>
|
---|
2328 |
|
---|
2329 | <tr>
|
---|
2330 | <td>FIXTURE_DIRS</td>
|
---|
2331 | <td class="code"><div>()</div></td>
|
---|
2332 | </tr>
|
---|
2333 |
|
---|
2334 | <tr>
|
---|
2335 | <td>FORCE_SCRIPT_NAME</td>
|
---|
2336 | <td class="code"><div>None</div></td>
|
---|
2337 | </tr>
|
---|
2338 |
|
---|
2339 | <tr>
|
---|
2340 | <td>IGNORABLE_404_ENDS</td>
|
---|
2341 | <td class="code"><div>('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')</div></td>
|
---|
2342 | </tr>
|
---|
2343 |
|
---|
2344 | <tr>
|
---|
2345 | <td>IGNORABLE_404_STARTS</td>
|
---|
2346 | <td class="code"><div>('/cgi-bin/', '/_vti_bin', '/_vti_inf')</div></td>
|
---|
2347 | </tr>
|
---|
2348 |
|
---|
2349 | <tr>
|
---|
2350 | <td>INSTALLED_APPS</td>
|
---|
2351 | <td class="code"><div>['ssa.posts',
|
---|
2352 | 'ssa.nav',
|
---|
2353 | 'ssa.events',
|
---|
2354 | 'django.contrib.admin',
|
---|
2355 | 'django.contrib.admindocs',
|
---|
2356 | 'django.contrib.auth',
|
---|
2357 | 'django.contrib.contenttypes',
|
---|
2358 | 'django.contrib.sessions',
|
---|
2359 | 'django.contrib.comments',
|
---|
2360 | 'django.contrib.webdesign']</div></td>
|
---|
2361 | </tr>
|
---|
2362 |
|
---|
2363 | <tr>
|
---|
2364 | <td>INTERNAL_IPS</td>
|
---|
2365 | <td class="code"><div>()</div></td>
|
---|
2366 | </tr>
|
---|
2367 |
|
---|
2368 | <tr>
|
---|
2369 | <td>JING_PATH</td>
|
---|
2370 | <td class="code"><div>'/usr/bin/jing'</div></td>
|
---|
2371 | </tr>
|
---|
2372 |
|
---|
2373 | <tr>
|
---|
2374 | <td>LANGUAGES</td>
|
---|
2375 | <td class="code"><div>(('ar', 'Arabic'),
|
---|
2376 | ('bn', 'Bengali'),
|
---|
2377 | ('bg', 'Bulgarian'),
|
---|
2378 | ('ca', 'Catalan'),
|
---|
2379 | ('cs', 'Czech'),
|
---|
2380 | ('cy', 'Welsh'),
|
---|
2381 | ('da', 'Danish'),
|
---|
2382 | ('de', 'German'),
|
---|
2383 | ('el', 'Greek'),
|
---|
2384 | ('en', 'English'),
|
---|
2385 | ('es', 'Spanish'),
|
---|
2386 | ('et', 'Estonian'),
|
---|
2387 | ('es-ar', 'Argentinean Spanish'),
|
---|
2388 | ('eu', 'Basque'),
|
---|
2389 | ('fa', 'Persian'),
|
---|
2390 | ('fi', 'Finnish'),
|
---|
2391 | ('fr', 'French'),
|
---|
2392 | ('ga', 'Irish'),
|
---|
2393 | ('gl', 'Galician'),
|
---|
2394 | ('hu', 'Hungarian'),
|
---|
2395 | ('he', 'Hebrew'),
|
---|
2396 | ('hr', 'Croatian'),
|
---|
2397 | ('is', 'Icelandic'),
|
---|
2398 | ('it', 'Italian'),
|
---|
2399 | ('ja', 'Japanese'),
|
---|
2400 | ('ka', 'Georgian'),
|
---|
2401 | ('ko', 'Korean'),
|
---|
2402 | ('km', 'Khmer'),
|
---|
2403 | ('kn', 'Kannada'),
|
---|
2404 | ('lv', 'Latvian'),
|
---|
2405 | ('lt', 'Lithuanian'),
|
---|
2406 | ('mk', 'Macedonian'),
|
---|
2407 | ('nl', 'Dutch'),
|
---|
2408 | ('no', 'Norwegian'),
|
---|
2409 | ('pl', 'Polish'),
|
---|
2410 | ('pt', 'Portugese'),
|
---|
2411 | ('pt-br', 'Brazilian Portuguese'),
|
---|
2412 | ('ro', 'Romanian'),
|
---|
2413 | ('ru', 'Russian'),
|
---|
2414 | ('sk', 'Slovak'),
|
---|
2415 | ('sl', 'Slovenian'),
|
---|
2416 | ('sr', 'Serbian'),
|
---|
2417 | ('sv', 'Swedish'),
|
---|
2418 | ('ta', 'Tamil'),
|
---|
2419 | ('te', 'Telugu'),
|
---|
2420 | ('tr', 'Turkish'),
|
---|
2421 | ('uk', 'Ukrainian'),
|
---|
2422 | ('zh-cn', 'Simplified Chinese'),
|
---|
2423 | ('zh-tw', 'Traditional Chinese'))</div></td>
|
---|
2424 | </tr>
|
---|
2425 |
|
---|
2426 | <tr>
|
---|
2427 | <td>LANGUAGES_BIDI</td>
|
---|
2428 | <td class="code"><div>('he', 'ar', 'fa')</div></td>
|
---|
2429 | </tr>
|
---|
2430 |
|
---|
2431 | <tr>
|
---|
2432 | <td>LANGUAGE_CODE</td>
|
---|
2433 | <td class="code"><div>'es-ES'</div></td>
|
---|
2434 | </tr>
|
---|
2435 |
|
---|
2436 | <tr>
|
---|
2437 | <td>LANGUAGE_COOKIE_NAME</td>
|
---|
2438 | <td class="code"><div>'django_language'</div></td>
|
---|
2439 | </tr>
|
---|
2440 |
|
---|
2441 | <tr>
|
---|
2442 | <td>LOCALE_PATHS</td>
|
---|
2443 | <td class="code"><div>()</div></td>
|
---|
2444 | </tr>
|
---|
2445 |
|
---|
2446 | <tr>
|
---|
2447 | <td>LOGIN_REDIRECT_URL</td>
|
---|
2448 | <td class="code"><div>'/accounts/profile/'</div></td>
|
---|
2449 | </tr>
|
---|
2450 |
|
---|
2451 | <tr>
|
---|
2452 | <td>LOGIN_URL</td>
|
---|
2453 | <td class="code"><div>'/accounts/login/'</div></td>
|
---|
2454 | </tr>
|
---|
2455 |
|
---|
2456 | <tr>
|
---|
2457 | <td>LOGOUT_URL</td>
|
---|
2458 | <td class="code"><div>'/accounts/logout/'</div></td>
|
---|
2459 | </tr>
|
---|
2460 |
|
---|
2461 | <tr>
|
---|
2462 | <td>MANAGERS</td>
|
---|
2463 | <td class="code"><div>(('J', 'jobcello@gmail.com'),)</div></td>
|
---|
2464 | </tr>
|
---|
2465 |
|
---|
2466 | <tr>
|
---|
2467 | <td>MEDIA_ROOT</td>
|
---|
2468 | <td class="code"><div>'C:\\J\\_proj\\Python\\djcode\\ssa_media'</div></td>
|
---|
2469 | </tr>
|
---|
2470 |
|
---|
2471 | <tr>
|
---|
2472 | <td>MEDIA_URL</td>
|
---|
2473 | <td class="code"><div>'http://localhost:8080/media/'</div></td>
|
---|
2474 | </tr>
|
---|
2475 |
|
---|
2476 | <tr>
|
---|
2477 | <td>MIDDLEWARE_CLASSES</td>
|
---|
2478 | <td class="code"><div>('django.middleware.common.CommonMiddleware',
|
---|
2479 | 'django.contrib.sessions.middleware.SessionMiddleware',
|
---|
2480 | 'django.middleware.locale.LocaleMiddleware',
|
---|
2481 | 'django.contrib.auth.middleware.AuthenticationMiddleware')</div></td>
|
---|
2482 | </tr>
|
---|
2483 |
|
---|
2484 | <tr>
|
---|
2485 | <td>MONTH_DAY_FORMAT</td>
|
---|
2486 | <td class="code"><div>'F j'</div></td>
|
---|
2487 | </tr>
|
---|
2488 |
|
---|
2489 | <tr>
|
---|
2490 | <td>PASSWORD_RESET_TIMEOUT_DAYS</td>
|
---|
2491 | <td class="code"><div>'********************'</div></td>
|
---|
2492 | </tr>
|
---|
2493 |
|
---|
2494 | <tr>
|
---|
2495 | <td>PREPEND_WWW</td>
|
---|
2496 | <td class="code"><div>False</div></td>
|
---|
2497 | </tr>
|
---|
2498 |
|
---|
2499 | <tr>
|
---|
2500 | <td>PROFANITIES_LIST</td>
|
---|
2501 | <td class="code"><div>'********************'</div></td>
|
---|
2502 | </tr>
|
---|
2503 |
|
---|
2504 | <tr>
|
---|
2505 | <td>ROOT_URLCONF</td>
|
---|
2506 | <td class="code"><div>'ssa.urls'</div></td>
|
---|
2507 | </tr>
|
---|
2508 |
|
---|
2509 | <tr>
|
---|
2510 | <td>SECRET_KEY</td>
|
---|
2511 | <td class="code"><div>'********************'</div></td>
|
---|
2512 | </tr>
|
---|
2513 |
|
---|
2514 | <tr>
|
---|
2515 | <td>SEND_BROKEN_LINK_EMAILS</td>
|
---|
2516 | <td class="code"><div>False</div></td>
|
---|
2517 | </tr>
|
---|
2518 |
|
---|
2519 | <tr>
|
---|
2520 | <td>SERVER_EMAIL</td>
|
---|
2521 | <td class="code"><div>'root@localhost'</div></td>
|
---|
2522 | </tr>
|
---|
2523 |
|
---|
2524 | <tr>
|
---|
2525 | <td>SESSION_COOKIE_AGE</td>
|
---|
2526 | <td class="code"><div>1209600</div></td>
|
---|
2527 | </tr>
|
---|
2528 |
|
---|
2529 | <tr>
|
---|
2530 | <td>SESSION_COOKIE_DOMAIN</td>
|
---|
2531 | <td class="code"><div>None</div></td>
|
---|
2532 | </tr>
|
---|
2533 |
|
---|
2534 | <tr>
|
---|
2535 | <td>SESSION_COOKIE_NAME</td>
|
---|
2536 | <td class="code"><div>'sessionid'</div></td>
|
---|
2537 | </tr>
|
---|
2538 |
|
---|
2539 | <tr>
|
---|
2540 | <td>SESSION_COOKIE_PATH</td>
|
---|
2541 | <td class="code"><div>'/'</div></td>
|
---|
2542 | </tr>
|
---|
2543 |
|
---|
2544 | <tr>
|
---|
2545 | <td>SESSION_COOKIE_SECURE</td>
|
---|
2546 | <td class="code"><div>False</div></td>
|
---|
2547 | </tr>
|
---|
2548 |
|
---|
2549 | <tr>
|
---|
2550 | <td>SESSION_ENGINE</td>
|
---|
2551 | <td class="code"><div>'django.contrib.sessions.backends.db'</div></td>
|
---|
2552 | </tr>
|
---|
2553 |
|
---|
2554 | <tr>
|
---|
2555 | <td>SESSION_EXPIRE_AT_BROWSER_CLOSE</td>
|
---|
2556 | <td class="code"><div>False</div></td>
|
---|
2557 | </tr>
|
---|
2558 |
|
---|
2559 | <tr>
|
---|
2560 | <td>SESSION_FILE_PATH</td>
|
---|
2561 | <td class="code"><div>None</div></td>
|
---|
2562 | </tr>
|
---|
2563 |
|
---|
2564 | <tr>
|
---|
2565 | <td>SESSION_SAVE_EVERY_REQUEST</td>
|
---|
2566 | <td class="code"><div>False</div></td>
|
---|
2567 | </tr>
|
---|
2568 |
|
---|
2569 | <tr>
|
---|
2570 | <td>SETTINGS_MODULE</td>
|
---|
2571 | <td class="code"><div>'ssa.settings'</div></td>
|
---|
2572 | </tr>
|
---|
2573 |
|
---|
2574 | <tr>
|
---|
2575 | <td>SITE_ID</td>
|
---|
2576 | <td class="code"><div>1</div></td>
|
---|
2577 | </tr>
|
---|
2578 |
|
---|
2579 | <tr>
|
---|
2580 | <td>SSAPARENTPATH</td>
|
---|
2581 | <td class="code"><div>'C:\\J\\_proj\\Python\\djcode'</div></td>
|
---|
2582 | </tr>
|
---|
2583 |
|
---|
2584 | <tr>
|
---|
2585 | <td>TEMPLATE_CONTEXT_PROCESSORS</td>
|
---|
2586 | <td class="code"><div>('django.core.context_processors.auth',
|
---|
2587 | 'django.core.context_processors.debug',
|
---|
2588 | 'django.core.context_processors.i18n',
|
---|
2589 | 'django.core.context_processors.media',
|
---|
2590 | 'ssa.context_processors.ssa')</div></td>
|
---|
2591 | </tr>
|
---|
2592 |
|
---|
2593 | <tr>
|
---|
2594 | <td>TEMPLATE_DEBUG</td>
|
---|
2595 | <td class="code"><div>True</div></td>
|
---|
2596 | </tr>
|
---|
2597 |
|
---|
2598 | <tr>
|
---|
2599 | <td>TEMPLATE_DIRS</td>
|
---|
2600 | <td class="code"><div>('C:\\J\\_proj\\Python\\djcode\\ssa_templates',)</div></td>
|
---|
2601 | </tr>
|
---|
2602 |
|
---|
2603 | <tr>
|
---|
2604 | <td>TEMPLATE_LOADERS</td>
|
---|
2605 | <td class="code"><div>('django.template.loaders.filesystem.load_template_source',
|
---|
2606 | 'django.template.loaders.app_directories.load_template_source')</div></td>
|
---|
2607 | </tr>
|
---|
2608 |
|
---|
2609 | <tr>
|
---|
2610 | <td>TEMPLATE_STRING_IF_INVALID</td>
|
---|
2611 | <td class="code"><div>''</div></td>
|
---|
2612 | </tr>
|
---|
2613 |
|
---|
2614 | <tr>
|
---|
2615 | <td>TEST_DATABASE_CHARSET</td>
|
---|
2616 | <td class="code"><div>None</div></td>
|
---|
2617 | </tr>
|
---|
2618 |
|
---|
2619 | <tr>
|
---|
2620 | <td>TEST_DATABASE_COLLATION</td>
|
---|
2621 | <td class="code"><div>None</div></td>
|
---|
2622 | </tr>
|
---|
2623 |
|
---|
2624 | <tr>
|
---|
2625 | <td>TEST_DATABASE_NAME</td>
|
---|
2626 | <td class="code"><div>None</div></td>
|
---|
2627 | </tr>
|
---|
2628 |
|
---|
2629 | <tr>
|
---|
2630 | <td>TEST_RUNNER</td>
|
---|
2631 | <td class="code"><div>'django.test.simple.run_tests'</div></td>
|
---|
2632 | </tr>
|
---|
2633 |
|
---|
2634 | <tr>
|
---|
2635 | <td>TIME_FORMAT</td>
|
---|
2636 | <td class="code"><div>'P'</div></td>
|
---|
2637 | </tr>
|
---|
2638 |
|
---|
2639 | <tr>
|
---|
2640 | <td>TIME_ZONE</td>
|
---|
2641 | <td class="code"><div>'America/Santiago Chile/Continental'</div></td>
|
---|
2642 | </tr>
|
---|
2643 |
|
---|
2644 | <tr>
|
---|
2645 | <td>TRANSACTIONS_MANAGED</td>
|
---|
2646 | <td class="code"><div>False</div></td>
|
---|
2647 | </tr>
|
---|
2648 |
|
---|
2649 | <tr>
|
---|
2650 | <td>URL_VALIDATOR_USER_AGENT</td>
|
---|
2651 | <td class="code"><div>u'Django/1.0-final-SVN-unknown (http://www.djangoproject.com)'</div></td>
|
---|
2652 | </tr>
|
---|
2653 |
|
---|
2654 | <tr>
|
---|
2655 | <td>USE_ETAGS</td>
|
---|
2656 | <td class="code"><div>False</div></td>
|
---|
2657 | </tr>
|
---|
2658 |
|
---|
2659 | <tr>
|
---|
2660 | <td>USE_I18N</td>
|
---|
2661 | <td class="code"><div>True</div></td>
|
---|
2662 | </tr>
|
---|
2663 |
|
---|
2664 | <tr>
|
---|
2665 | <td>YEAR_MONTH_FORMAT</td>
|
---|
2666 | <td class="code"><div>'F Y'</div></td>
|
---|
2667 | </tr>
|
---|
2668 |
|
---|
2669 | </tbody>
|
---|
2670 | </table>
|
---|
2671 |
|
---|
2672 | </div>
|
---|
2673 |
|
---|
2674 | <div id="explanation">
|
---|
2675 | <p>
|
---|
2676 | You're seeing this error because you have <code>DEBUG = True</code> in your
|
---|
2677 | Django settings file. Change that to <code>False</code>, and Django will
|
---|
2678 | display a standard 500 page.
|
---|
2679 | </p>
|
---|
2680 | </div>
|
---|
2681 | </body>
|
---|
2682 | </html>
|
---|