1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
---|
2 | <html lang="en"><head>
|
---|
3 |
|
---|
4 |
|
---|
5 |
|
---|
6 | <meta http-equiv="content-type" content="text/html; charset=utf-8">
|
---|
7 | <meta name="robots" content="NONE,NOARCHIVE"><title>AttributeError at /admin/Article/article/add/</title>
|
---|
8 |
|
---|
9 | <style type="text/css">
|
---|
10 | html * { padding:0; margin:0; }
|
---|
11 | body * { padding:10px 20px; }
|
---|
12 | body * * { padding:0; }
|
---|
13 | body { font:small sans-serif; }
|
---|
14 | body>div { border-bottom:1px solid #ddd; }
|
---|
15 | h1 { font-weight:normal; }
|
---|
16 | h2 { margin-bottom:.8em; }
|
---|
17 | h2 span { font-size:80%; color:#666; font-weight:normal; }
|
---|
18 | h3 { margin:1em 0 .5em 0; }
|
---|
19 | h4 { margin:0 0 .5em 0; font-weight: normal; }
|
---|
20 | table { border:1px solid #ccc; border-collapse: collapse; width:100%; background:white; }
|
---|
21 | tbody td, tbody th { vertical-align:top; padding:2px 3px; }
|
---|
22 | thead th { padding:1px 6px 1px 3px; background:#fefefe; text-align:left; font-weight:normal; font-size:11px; border:1px solid #ddd; }
|
---|
23 | tbody th { width:12em; text-align:right; color:#666; padding-right:.5em; }
|
---|
24 | table.vars { margin:5px 0 2px 40px; }
|
---|
25 | table.vars td, table.req td { font-family:monospace; }
|
---|
26 | table td.code { width:100%; }
|
---|
27 | table td.code div { overflow:hidden; }
|
---|
28 | table.source th { color:#666; }
|
---|
29 | table.source td { font-family:monospace; white-space:pre; border-bottom:1px solid #eee; }
|
---|
30 | ul.traceback { list-style-type:none; }
|
---|
31 | ul.traceback li.frame { margin-bottom:1em; }
|
---|
32 | div.context { margin: 10px 0; }
|
---|
33 | div.context ol { padding-left:30px; margin:0 10px; list-style-position: inside; }
|
---|
34 | div.context ol li { font-family:monospace; white-space:pre; color:#666; cursor:pointer; }
|
---|
35 | div.context ol.context-line li { color:black; background-color:#ccc; }
|
---|
36 | div.context ol.context-line li span { float: right; }
|
---|
37 | div.commands { margin-left: 40px; }
|
---|
38 | div.commands a { color:black; text-decoration:none; }
|
---|
39 | #summary { background: #ffc; }
|
---|
40 | #summary h2 { font-weight: normal; color: #666; }
|
---|
41 | #explanation { background:#eee; }
|
---|
42 | #template, #template-not-exist { background:#f6f6f6; }
|
---|
43 | #template-not-exist ul { margin: 0 0 0 20px; }
|
---|
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 | </style>
|
---|
52 | <script type="text/javascript">
|
---|
53 | //<!--
|
---|
54 | function getElementsByClassName(oElm, strTagName, strClassName){
|
---|
55 | // Written by Jonathan Snook, http://www.snook.ca/jon; Add-ons by Robert Nyman, http://www.robertnyman.com
|
---|
56 | var arrElements = (strTagName == "*" && document.all)? document.all :
|
---|
57 | oElm.getElementsByTagName(strTagName);
|
---|
58 | var arrReturnElements = new Array();
|
---|
59 | strClassName = strClassName.replace(/\-/g, "\-");
|
---|
60 | var oRegExp = new RegExp("(^|\s)" + strClassName + "(\s|$)");
|
---|
61 | var oElement;
|
---|
62 | for(var i=0; i<arrElements.length; i++){
|
---|
63 | oElement = arrElements[i];
|
---|
64 | if(oRegExp.test(oElement.className)){
|
---|
65 | arrReturnElements.push(oElement);
|
---|
66 | }
|
---|
67 | }
|
---|
68 | return (arrReturnElements)
|
---|
69 | }
|
---|
70 | function hideAll(elems) {
|
---|
71 | for (var e = 0; e < elems.length; e++) {
|
---|
72 | elems[e].style.display = 'none';
|
---|
73 | }
|
---|
74 | }
|
---|
75 | window.onload = function() {
|
---|
76 | hideAll(getElementsByClassName(document, 'table', 'vars'));
|
---|
77 | hideAll(getElementsByClassName(document, 'ol', 'pre-context'));
|
---|
78 | hideAll(getElementsByClassName(document, 'ol', 'post-context'));
|
---|
79 | hideAll(getElementsByClassName(document, 'div', 'pastebin'));
|
---|
80 | }
|
---|
81 | function toggle() {
|
---|
82 | for (var i = 0; i < arguments.length; i++) {
|
---|
83 | var e = document.getElementById(arguments[i]);
|
---|
84 | if (e) {
|
---|
85 | e.style.display = e.style.display == 'none' ? 'block' : 'none';
|
---|
86 | }
|
---|
87 | }
|
---|
88 | return false;
|
---|
89 | }
|
---|
90 | function varToggle(link, id) {
|
---|
91 | toggle('v' + id);
|
---|
92 | var s = link.getElementsByTagName('span')[0];
|
---|
93 | var uarr = String.fromCharCode(0x25b6);
|
---|
94 | var darr = String.fromCharCode(0x25bc);
|
---|
95 | s.innerHTML = s.innerHTML == uarr ? darr : uarr;
|
---|
96 | return false;
|
---|
97 | }
|
---|
98 | function switchPastebinFriendly(link) {
|
---|
99 | s1 = "Switch to copy-and-paste view";
|
---|
100 | s2 = "Switch back to interactive view";
|
---|
101 | link.innerHTML = link.innerHTML == s1 ? s2 : s1;
|
---|
102 | toggle('browserTraceback', 'pastebinTraceback');
|
---|
103 | return false;
|
---|
104 | }
|
---|
105 | //-->
|
---|
106 | </script></head><body>
|
---|
107 |
|
---|
108 | <div id="summary">
|
---|
109 | <h1>AttributeError at /admin/Article/article/add/</h1>
|
---|
110 | <h2>'OneToOneRel' object has no attribute 'min_num_in_admin'</h2>
|
---|
111 | <table class="meta">
|
---|
112 | <tbody><tr>
|
---|
113 | <th>Request Method:</th>
|
---|
114 | <td>GET</td>
|
---|
115 | </tr>
|
---|
116 | <tr>
|
---|
117 | <th>Request URL:</th>
|
---|
118 | <td>http://127.0.0.1:8000/admin/Article/article/add/</td>
|
---|
119 | </tr>
|
---|
120 | <tr>
|
---|
121 | <th>Exception Type:</th>
|
---|
122 | <td>AttributeError</td>
|
---|
123 | </tr>
|
---|
124 | <tr>
|
---|
125 | <th>Exception Value:</th>
|
---|
126 | <td>'OneToOneRel' object has no attribute 'min_num_in_admin'</td>
|
---|
127 | </tr>
|
---|
128 | <tr>
|
---|
129 | <th>Exception Location:</th>
|
---|
130 | <td>/usr/lib/python2.4/site-packages/django/db/models/related.py in get_list, line 71</td>
|
---|
131 | </tr>
|
---|
132 | </tbody></table>
|
---|
133 | </div>
|
---|
134 |
|
---|
135 |
|
---|
136 | <div id="traceback">
|
---|
137 | <h2>Traceback <span>(innermost last)</span></h2>
|
---|
138 | <div class="commands"><a href="#" onclick="return switchPastebinFriendly(this);">Switch to copy-and-paste view</a></div>
|
---|
139 | <br>
|
---|
140 | <div id="browserTraceback">
|
---|
141 | <ul class="traceback">
|
---|
142 |
|
---|
143 | <li class="frame">
|
---|
144 | <code>/usr/lib/python2.4/site-packages/django/core/handlers/base.py</code> in <code>get_response</code>
|
---|
145 |
|
---|
146 |
|
---|
147 | <div class="context" id="c138141124">
|
---|
148 |
|
---|
149 | <ol style="display: none;" start="70" class="pre-context" id="pre138141124"><li onclick="toggle('pre138141124', 'post138141124')"> # Apply view middleware</li><li onclick="toggle('pre138141124', 'post138141124')"> for middleware_method in self._view_middleware:</li><li onclick="toggle('pre138141124', 'post138141124')"> response = middleware_method(request, callback, callback_args, callback_kwargs)</li><li onclick="toggle('pre138141124', 'post138141124')"> if response:</li><li onclick="toggle('pre138141124', 'post138141124')"> return response</li><li onclick="toggle('pre138141124', 'post138141124')"></li><li onclick="toggle('pre138141124', 'post138141124')"> try:</li></ol>
|
---|
150 |
|
---|
151 | <ol start="77" class="context-line"><li onclick="toggle('pre138141124', 'post138141124')"> response = callback(request, *callback_args, **callback_kwargs) <span>...</span></li></ol>
|
---|
152 |
|
---|
153 | <ol style="display: none;" start="78" class="post-context" id="post138141124"><li onclick="toggle('pre138141124', 'post138141124')"> except Exception, e:</li><li onclick="toggle('pre138141124', 'post138141124')"> # If the view raised an exception, run it through exception</li><li onclick="toggle('pre138141124', 'post138141124')"> # middleware, and if the exception middleware returns a</li><li onclick="toggle('pre138141124', 'post138141124')"> # response, use that. Otherwise, reraise the exception.</li><li onclick="toggle('pre138141124', 'post138141124')"> for middleware_method in self._exception_middleware:</li><li onclick="toggle('pre138141124', 'post138141124')"> response = middleware_method(request, e)</li></ol>
|
---|
154 |
|
---|
155 | </div>
|
---|
156 |
|
---|
157 |
|
---|
158 |
|
---|
159 | <div class="commands">
|
---|
160 | <a href="#" onclick="return varToggle(this, '138141124')"><span>▶</span> Local vars</a>
|
---|
161 | </div>
|
---|
162 | <table style="display: none;" class="vars" id="v138141124">
|
---|
163 | <thead>
|
---|
164 | <tr>
|
---|
165 | <th>Variable</th>
|
---|
166 | <th>Value</th>
|
---|
167 | </tr>
|
---|
168 | </thead>
|
---|
169 | <tbody>
|
---|
170 |
|
---|
171 | <tr>
|
---|
172 | <td>callback</td>
|
---|
173 | <td class="code"><div><function _checklogin at 0x83c3534></div></td>
|
---|
174 | </tr>
|
---|
175 |
|
---|
176 | <tr>
|
---|
177 | <td>callback_args</td>
|
---|
178 | <td class="code"><div>('Article', 'article')</div></td>
|
---|
179 | </tr>
|
---|
180 |
|
---|
181 | <tr>
|
---|
182 | <td>callback_kwargs</td>
|
---|
183 | <td class="code"><div>{}</div></td>
|
---|
184 | </tr>
|
---|
185 |
|
---|
186 | <tr>
|
---|
187 | <td>debug</td>
|
---|
188 | <td class="code"><div><module 'django.views.debug' from '/usr/lib/python2.4/site-packages/django/views/debug.pyc'></div></td>
|
---|
189 | </tr>
|
---|
190 |
|
---|
191 | <tr>
|
---|
192 | <td>e</td>
|
---|
193 | <td class="code"><div><exceptions.AttributeError instance at 0x835544c></div></td>
|
---|
194 | </tr>
|
---|
195 |
|
---|
196 | <tr>
|
---|
197 | <td>exceptions</td>
|
---|
198 | <td class="code"><div><module 'django.core.exceptions' from '/usr/lib/python2.4/site-packages/django/core/exceptions.pyc'></div></td>
|
---|
199 | </tr>
|
---|
200 |
|
---|
201 | <tr>
|
---|
202 | <td>mail_admins</td>
|
---|
203 | <td class="code"><div><function mail_admins at 0x8351bfc></div></td>
|
---|
204 | </tr>
|
---|
205 |
|
---|
206 | <tr>
|
---|
207 | <td>middleware_method</td>
|
---|
208 | <td class="code"><div><bound method XViewMiddleware.process_view of <django.middleware.doc.XViewMiddleware object at 0x83559ac>></div></td>
|
---|
209 | </tr>
|
---|
210 |
|
---|
211 | <tr>
|
---|
212 | <td>request</td>
|
---|
213 | <td class="code"><div><WSGIRequest
|
---|
214 | GET:<MultiValueDict: {}>,
|
---|
215 | POST:<MultiValueDict: {}>,
|
---|
216 | COOKIES:{'sessionid': '2cf05988b78e626f48e6be50899a2299'},
|
---|
217 | META:{'CDR_SECURITY':
|
---|
218 | '8:dvd,clone:sparc-sun-solaris2,i386-pc-solaris2,i586-pc-linux,x86_64-unknown-linux,x86_64-pc-linux,powerpc-apple,hppa,powerpc-ibm-aix,i386-unknown-freebsd,i386-unknown-openbsd,i386-unknown-netbsd,powerpc-apple-netbsd,i386-pc-bsdi,mips-sgi-irix,i386-pc-sco,i586-pc-cygwin:1.11::1130000000:::private/research/educational_non-commercial_use:amz80r0cFc22rStnPatPW6OJPHS44.xCl2LPIpyKt.SuICSsGTMY7YzsmFT',
|
---|
219 | 'COLORFGBG': 'default;default', 'COLORTERM': 'rxvt', 'CONFIG_PROTECT':
|
---|
220 | '/usr/share/X11/xkb /usr/kde/3.5/share/config /usr/kde/3.5/env
|
---|
221 | /usr/kde/3.5/shutdown /usr/share/config', 'CONFIG_PROTECT_MASK':
|
---|
222 | '/etc/gconf /etc/terminfo /etc/revdep-rebuild', 'CONTENT_LENGTH': '',
|
---|
223 | 'CONTENT_TYPE': 'text/plain', 'CVS_RSH': 'ssh', 'DESKTOP_SESSION':
|
---|
224 | 'custom', 'DISPLAY': ':0.0', 'DJANGO_SETTINGS_MODULE':
|
---|
225 | 'ProveRelated.settings', 'DM_CONTROL': '/var/run/xdmctl', 'EDITOR':
|
---|
226 | 'gnuclient', 'GATEWAY_INTERFACE': 'CGI/1.1', 'GCC_SPECS': '',
|
---|
227 | 'GDK_USE_XFT': '1', 'G_BROKEN_FILENAMES': '1', 'G_FILENAME_ENCODING':
|
---|
228 | 'UTF-8', 'HISTFILESIZE': '10000', 'HISTSIZE': '10000', 'HOME':
|
---|
229 | '/home/alex', 'HTTP_ACCEPT':
|
---|
230 | 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
|
---|
231 | 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
|
---|
232 | 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE':
|
---|
233 | 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE':
|
---|
234 | 'sessionid=2cf05988b78e626f48e6be50899a2299', 'HTTP_HOST':
|
---|
235 | '127.0.0.1:8000', 'HTTP_IF_MODIFIED_SINCE': 'Tue, 06 Mar 2007 09:45:34
|
---|
236 | GMT', 'HTTP_IF_NONE_MATCH': 'c73d029fc70fbebc70e2a73acddb8e1e',
|
---|
237 | 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER':
|
---|
238 | 'http://127.0.0.1:8000/admin/Article/article/', 'HTTP_USER_AGENT':
|
---|
239 | 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2) Gecko/20070220
|
---|
240 | Firefox/2.0.0.2', 'INFOPATH':
|
---|
241 | '/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info:/usr/share/info/emacs-22.0.91:/usr/share/info/emacs-21',
|
---|
242 | 'INSTANCE_HOME': '/var/lib/zope/zope-284', 'JAVA_HOME':
|
---|
243 | '/usr/j2sdk_nb/j2sdk1.4.2/', 'KDEDIRS': '/usr/kde/3.5:/usr:/usr/local',
|
---|
244 | 'LANG': 'ru_RU.KOI8-R', 'LESS': '-R -M --shift 5', 'LESSOPEN':
|
---|
245 | '|lesspipe.sh %s', 'LOGNAME': 'alex', 'LS_COLORS':
|
---|
246 | 'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.pcx=01;35:*.yuv=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.flac=01;35:*.mp3=01;35:*.mpc=00;36:*.ogg=00;36:*.wav=00;36:*.mid=00;36:*.midi=00;36:*.au=00;36:*.flac=00;36:*.aac=00;36:*.ra=01;36:*.mka=01;36:',
|
---|
247 | 'MANPATH':
|
---|
248 | '/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man:/usr/qt/3/doc/man',
|
---|
249 | 'OLDPWD': '/home/alex/tmp/ProveRelated/Article', 'OPENGL_PROFILE':
|
---|
250 | 'xorg-x11', 'PAGER': '/usr/bin/less', 'PATH':
|
---|
251 | '/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/sbin:/sbin:/usr/kde/3.3/bin:/home/alex/bin/:/home/alex/bin/maxq-0.94/bin/:/home/alex/dev/django_src/django/bin',
|
---|
252 | 'PATH_INFO': '/admin/Article/article/add/', 'PKG_CONFIG_PATH':
|
---|
253 | '/usr/qt/3/lib/pkgconfig', 'PRELINK_PATH_MASK':
|
---|
254 | '/usr/lib/gstreamer-0.10', 'PROJECTHOME':
|
---|
255 | '/home/alex/dev/www.prizewheel.com', 'PWD':
|
---|
256 | '/home/alex/tmp/ProveRelated', 'PYTHONPATH':
|
---|
257 | '/usr/lib/zope-2.8.4/lib/python:/home/alex/dev/www.prizewheel.com:/home/alex/dev/www.prizewheel.com/djWarehouse',
|
---|
258 | 'QMAKESPEC': 'linux-g++', 'QTDIR': '/usr/qt/3', 'QUERY_STRING': '',
|
---|
259 | 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'GET',
|
---|
260 | 'RUN_MAIN': 'true', 'SCRIPT_NAME': '', 'SERVER_NAME':
|
---|
261 | 'avk.koval.kharkov.ua', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL':
|
---|
262 | 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.4.3', 'SHELL':
|
---|
263 | '/bin/bash', 'SHLVL': '2', 'SOFTWARE_HOME':
|
---|
264 | '/usr/lib/zope-2.8.4/lib/python', 'SSH_AGENT_PID': '14097',
|
---|
265 | 'SSH_AUTH_SOCK': '/tmp/ssh-XueZH14096/agent.14096', 'TERM': 'rxvt',
|
---|
266 | 'TERMINFO': '/usr/share/terminfo', 'TZ': 'America/Chicago', 'USER':
|
---|
267 | 'alex', 'WINDOWID': '35651586', 'XDM_MANAGED':
|
---|
268 | '/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic', '_':
|
---|
269 | './manage.py', 'wsgi.errors': <open file '<stderr>', mode 'w'
|
---|
270 | at 0xb7c8e0b0>, 'wsgi.file_wrapper': <class
|
---|
271 | 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input':
|
---|
272 | <socket._fileobject object at 0x83300d4>, 'wsgi.multiprocess':
|
---|
273 | False, 'wsgi.multithread': True, 'wsgi.run_once': False,
|
---|
274 | 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}></div></td>
|
---|
275 | </tr>
|
---|
276 |
|
---|
277 | <tr>
|
---|
278 | <td>resolver</td>
|
---|
279 | <td class="code"><div><django.core.urlresolvers.RegexURLResolver object at 0x832e22c></div></td>
|
---|
280 | </tr>
|
---|
281 |
|
---|
282 | <tr>
|
---|
283 | <td>response</td>
|
---|
284 | <td class="code"><div>None</div></td>
|
---|
285 | </tr>
|
---|
286 |
|
---|
287 | <tr>
|
---|
288 | <td>self</td>
|
---|
289 | <td class="code"><div><django.core.handlers.wsgi.WSGIHandler object at 0x82f462c></div></td>
|
---|
290 | </tr>
|
---|
291 |
|
---|
292 | <tr>
|
---|
293 | <td>settings</td>
|
---|
294 | <td class="code"><div><django.conf.LazySettings object at 0xb7c0338c></div></td>
|
---|
295 | </tr>
|
---|
296 |
|
---|
297 | <tr>
|
---|
298 | <td>urlconf</td>
|
---|
299 | <td class="code"><div>'ProveRelated.urls'</div></td>
|
---|
300 | </tr>
|
---|
301 |
|
---|
302 | <tr>
|
---|
303 | <td>urlresolvers</td>
|
---|
304 | <td class="code"><div><module 'django.core.urlresolvers' from '/usr/lib/python2.4/site-packages/django/core/urlresolvers.pyc'></div></td>
|
---|
305 | </tr>
|
---|
306 |
|
---|
307 | </tbody>
|
---|
308 | </table>
|
---|
309 |
|
---|
310 | </li>
|
---|
311 |
|
---|
312 | <li class="frame">
|
---|
313 | <code>/usr/lib/python2.4/site-packages/django/contrib/admin/views/decorators.py</code> in <code>_checklogin</code>
|
---|
314 |
|
---|
315 |
|
---|
316 | <div class="context" id="c138141044">
|
---|
317 |
|
---|
318 | <ol style="display: none;" start="48" class="pre-context" id="pre138141044"><li onclick="toggle('pre138141044', 'post138141044')"> def _checklogin(request, *args, **kwargs):</li><li onclick="toggle('pre138141044', 'post138141044')"> if request.user.is_authenticated() and request.user.is_staff:</li><li onclick="toggle('pre138141044', 'post138141044')"> # The user is valid. Continue to the admin page.</li><li onclick="toggle('pre138141044', 'post138141044')"> if request.POST.has_key('post_data'):</li><li onclick="toggle('pre138141044', 'post138141044')"> # User must have re-authenticated through a different window</li><li onclick="toggle('pre138141044', 'post138141044')"> # or tab.</li><li onclick="toggle('pre138141044', 'post138141044')"> request.POST = _decode_post_data(request.POST['post_data'])</li></ol>
|
---|
319 |
|
---|
320 | <ol start="55" class="context-line"><li onclick="toggle('pre138141044', 'post138141044')"> return view_func(request, *args, **kwargs) <span>...</span></li></ol>
|
---|
321 |
|
---|
322 | <ol style="display: none;" start="56" class="post-context" id="post138141044"><li onclick="toggle('pre138141044', 'post138141044')"></li><li onclick="toggle('pre138141044', 'post138141044')">
|
---|
323 | assert hasattr(request, 'session'), "The Django admin requires session
|
---|
324 | middleware to be installed. Edit your MIDDLEWARE_CLASSES setting to
|
---|
325 | insert 'django.contrib.sessions.middleware.SessionMiddleware'."</li><li onclick="toggle('pre138141044', 'post138141044')"></li><li onclick="toggle('pre138141044', 'post138141044')"> # If this isn't already the login page, display it.</li><li onclick="toggle('pre138141044', 'post138141044')"> if not request.POST.has_key(LOGIN_FORM_KEY):</li><li onclick="toggle('pre138141044', 'post138141044')"> if request.POST:</li></ol>
|
---|
326 |
|
---|
327 | </div>
|
---|
328 |
|
---|
329 |
|
---|
330 |
|
---|
331 | <div class="commands">
|
---|
332 | <a href="#" onclick="return varToggle(this, '138141044')"><span>▶</span> Local vars</a>
|
---|
333 | </div>
|
---|
334 | <table style="display: none;" class="vars" id="v138141044">
|
---|
335 | <thead>
|
---|
336 | <tr>
|
---|
337 | <th>Variable</th>
|
---|
338 | <th>Value</th>
|
---|
339 | </tr>
|
---|
340 | </thead>
|
---|
341 | <tbody>
|
---|
342 |
|
---|
343 | <tr>
|
---|
344 | <td>args</td>
|
---|
345 | <td class="code"><div>('Article', 'article')</div></td>
|
---|
346 | </tr>
|
---|
347 |
|
---|
348 | <tr>
|
---|
349 | <td>kwargs</td>
|
---|
350 | <td class="code"><div>{}</div></td>
|
---|
351 | </tr>
|
---|
352 |
|
---|
353 | <tr>
|
---|
354 | <td>request</td>
|
---|
355 | <td class="code"><div><WSGIRequest
|
---|
356 | GET:<MultiValueDict: {}>,
|
---|
357 | POST:<MultiValueDict: {}>,
|
---|
358 | COOKIES:{'sessionid': '2cf05988b78e626f48e6be50899a2299'},
|
---|
359 | META:{'CDR_SECURITY':
|
---|
360 | '8:dvd,clone:sparc-sun-solaris2,i386-pc-solaris2,i586-pc-linux,x86_64-unknown-linux,x86_64-pc-linux,powerpc-apple,hppa,powerpc-ibm-aix,i386-unknown-freebsd,i386-unknown-openbsd,i386-unknown-netbsd,powerpc-apple-netbsd,i386-pc-bsdi,mips-sgi-irix,i386-pc-sco,i586-pc-cygwin:1.11::1130000000:::private/research/educational_non-commercial_use:amz80r0cFc22rStnPatPW6OJPHS44.xCl2LPIpyKt.SuICSsGTMY7YzsmFT',
|
---|
361 | 'COLORFGBG': 'default;default', 'COLORTERM': 'rxvt', 'CONFIG_PROTECT':
|
---|
362 | '/usr/share/X11/xkb /usr/kde/3.5/share/config /usr/kde/3.5/env
|
---|
363 | /usr/kde/3.5/shutdown /usr/share/config', 'CONFIG_PROTECT_MASK':
|
---|
364 | '/etc/gconf /etc/terminfo /etc/revdep-rebuild', 'CONTENT_LENGTH': '',
|
---|
365 | 'CONTENT_TYPE': 'text/plain', 'CVS_RSH': 'ssh', 'DESKTOP_SESSION':
|
---|
366 | 'custom', 'DISPLAY': ':0.0', 'DJANGO_SETTINGS_MODULE':
|
---|
367 | 'ProveRelated.settings', 'DM_CONTROL': '/var/run/xdmctl', 'EDITOR':
|
---|
368 | 'gnuclient', 'GATEWAY_INTERFACE': 'CGI/1.1', 'GCC_SPECS': '',
|
---|
369 | 'GDK_USE_XFT': '1', 'G_BROKEN_FILENAMES': '1', 'G_FILENAME_ENCODING':
|
---|
370 | 'UTF-8', 'HISTFILESIZE': '10000', 'HISTSIZE': '10000', 'HOME':
|
---|
371 | '/home/alex', 'HTTP_ACCEPT':
|
---|
372 | 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
|
---|
373 | 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
|
---|
374 | 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE':
|
---|
375 | 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE':
|
---|
376 | 'sessionid=2cf05988b78e626f48e6be50899a2299', 'HTTP_HOST':
|
---|
377 | '127.0.0.1:8000', 'HTTP_IF_MODIFIED_SINCE': 'Tue, 06 Mar 2007 09:45:34
|
---|
378 | GMT', 'HTTP_IF_NONE_MATCH': 'c73d029fc70fbebc70e2a73acddb8e1e',
|
---|
379 | 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER':
|
---|
380 | 'http://127.0.0.1:8000/admin/Article/article/', 'HTTP_USER_AGENT':
|
---|
381 | 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2) Gecko/20070220
|
---|
382 | Firefox/2.0.0.2', 'INFOPATH':
|
---|
383 | '/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info:/usr/share/info/emacs-22.0.91:/usr/share/info/emacs-21',
|
---|
384 | 'INSTANCE_HOME': '/var/lib/zope/zope-284', 'JAVA_HOME':
|
---|
385 | '/usr/j2sdk_nb/j2sdk1.4.2/', 'KDEDIRS': '/usr/kde/3.5:/usr:/usr/local',
|
---|
386 | 'LANG': 'ru_RU.KOI8-R', 'LESS': '-R -M --shift 5', 'LESSOPEN':
|
---|
387 | '|lesspipe.sh %s', 'LOGNAME': 'alex', 'LS_COLORS':
|
---|
388 | 'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.pcx=01;35:*.yuv=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.flac=01;35:*.mp3=01;35:*.mpc=00;36:*.ogg=00;36:*.wav=00;36:*.mid=00;36:*.midi=00;36:*.au=00;36:*.flac=00;36:*.aac=00;36:*.ra=01;36:*.mka=01;36:',
|
---|
389 | 'MANPATH':
|
---|
390 | '/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man:/usr/qt/3/doc/man',
|
---|
391 | 'OLDPWD': '/home/alex/tmp/ProveRelated/Article', 'OPENGL_PROFILE':
|
---|
392 | 'xorg-x11', 'PAGER': '/usr/bin/less', 'PATH':
|
---|
393 | '/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/sbin:/sbin:/usr/kde/3.3/bin:/home/alex/bin/:/home/alex/bin/maxq-0.94/bin/:/home/alex/dev/django_src/django/bin',
|
---|
394 | 'PATH_INFO': '/admin/Article/article/add/', 'PKG_CONFIG_PATH':
|
---|
395 | '/usr/qt/3/lib/pkgconfig', 'PRELINK_PATH_MASK':
|
---|
396 | '/usr/lib/gstreamer-0.10', 'PROJECTHOME':
|
---|
397 | '/home/alex/dev/www.prizewheel.com', 'PWD':
|
---|
398 | '/home/alex/tmp/ProveRelated', 'PYTHONPATH':
|
---|
399 | '/usr/lib/zope-2.8.4/lib/python:/home/alex/dev/www.prizewheel.com:/home/alex/dev/www.prizewheel.com/djWarehouse',
|
---|
400 | 'QMAKESPEC': 'linux-g++', 'QTDIR': '/usr/qt/3', 'QUERY_STRING': '',
|
---|
401 | 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'GET',
|
---|
402 | 'RUN_MAIN': 'true', 'SCRIPT_NAME': '', 'SERVER_NAME':
|
---|
403 | 'avk.koval.kharkov.ua', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL':
|
---|
404 | 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.4.3', 'SHELL':
|
---|
405 | '/bin/bash', 'SHLVL': '2', 'SOFTWARE_HOME':
|
---|
406 | '/usr/lib/zope-2.8.4/lib/python', 'SSH_AGENT_PID': '14097',
|
---|
407 | 'SSH_AUTH_SOCK': '/tmp/ssh-XueZH14096/agent.14096', 'TERM': 'rxvt',
|
---|
408 | 'TERMINFO': '/usr/share/terminfo', 'TZ': 'America/Chicago', 'USER':
|
---|
409 | 'alex', 'WINDOWID': '35651586', 'XDM_MANAGED':
|
---|
410 | '/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic', '_':
|
---|
411 | './manage.py', 'wsgi.errors': <open file '<stderr>', mode 'w'
|
---|
412 | at 0xb7c8e0b0>, 'wsgi.file_wrapper': <class
|
---|
413 | 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input':
|
---|
414 | <socket._fileobject object at 0x83300d4>, 'wsgi.multiprocess':
|
---|
415 | False, 'wsgi.multithread': True, 'wsgi.run_once': False,
|
---|
416 | 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}></div></td>
|
---|
417 | </tr>
|
---|
418 |
|
---|
419 | <tr>
|
---|
420 | <td>view_func</td>
|
---|
421 | <td class="code"><div><function _wrapped_view_func at 0x83c34fc></div></td>
|
---|
422 | </tr>
|
---|
423 |
|
---|
424 | </tbody>
|
---|
425 | </table>
|
---|
426 |
|
---|
427 | </li>
|
---|
428 |
|
---|
429 | <li class="frame">
|
---|
430 | <code>/usr/lib/python2.4/site-packages/django/views/decorators/cache.py</code> in <code>_wrapped_view_func</code>
|
---|
431 |
|
---|
432 |
|
---|
433 | <div class="context" id="c138141564">
|
---|
434 |
|
---|
435 | <ol style="display: none;" start="32" class="pre-context" id="pre138141564"><li onclick="toggle('pre138141564', 'post138141564')"></li><li onclick="toggle('pre138141564', 'post138141564')">def never_cache(view_func):</li><li onclick="toggle('pre138141564', 'post138141564')"> """</li><li onclick="toggle('pre138141564', 'post138141564')"> Decorator that adds headers to a response so that it will</li><li onclick="toggle('pre138141564', 'post138141564')"> never be cached.</li><li onclick="toggle('pre138141564', 'post138141564')"> """</li><li onclick="toggle('pre138141564', 'post138141564')"> def _wrapped_view_func(request, *args, **kwargs):</li></ol>
|
---|
436 |
|
---|
437 | <ol start="39" class="context-line"><li onclick="toggle('pre138141564', 'post138141564')"> response = view_func(request, *args, **kwargs) <span>...</span></li></ol>
|
---|
438 |
|
---|
439 | <ol style="display: none;" start="40" class="post-context" id="post138141564"><li onclick="toggle('pre138141564', 'post138141564')"> add_never_cache_headers(response)</li><li onclick="toggle('pre138141564', 'post138141564')"> return response</li><li onclick="toggle('pre138141564', 'post138141564')"> return _wrapped_view_func</li></ol>
|
---|
440 |
|
---|
441 | </div>
|
---|
442 |
|
---|
443 |
|
---|
444 |
|
---|
445 | <div class="commands">
|
---|
446 | <a href="#" onclick="return varToggle(this, '138141564')"><span>▶</span> Local vars</a>
|
---|
447 | </div>
|
---|
448 | <table style="display: none;" class="vars" id="v138141564">
|
---|
449 | <thead>
|
---|
450 | <tr>
|
---|
451 | <th>Variable</th>
|
---|
452 | <th>Value</th>
|
---|
453 | </tr>
|
---|
454 | </thead>
|
---|
455 | <tbody>
|
---|
456 |
|
---|
457 | <tr>
|
---|
458 | <td>args</td>
|
---|
459 | <td class="code"><div>('Article', 'article')</div></td>
|
---|
460 | </tr>
|
---|
461 |
|
---|
462 | <tr>
|
---|
463 | <td>kwargs</td>
|
---|
464 | <td class="code"><div>{}</div></td>
|
---|
465 | </tr>
|
---|
466 |
|
---|
467 | <tr>
|
---|
468 | <td>request</td>
|
---|
469 | <td class="code"><div><WSGIRequest
|
---|
470 | GET:<MultiValueDict: {}>,
|
---|
471 | POST:<MultiValueDict: {}>,
|
---|
472 | COOKIES:{'sessionid': '2cf05988b78e626f48e6be50899a2299'},
|
---|
473 | META:{'CDR_SECURITY':
|
---|
474 | '8:dvd,clone:sparc-sun-solaris2,i386-pc-solaris2,i586-pc-linux,x86_64-unknown-linux,x86_64-pc-linux,powerpc-apple,hppa,powerpc-ibm-aix,i386-unknown-freebsd,i386-unknown-openbsd,i386-unknown-netbsd,powerpc-apple-netbsd,i386-pc-bsdi,mips-sgi-irix,i386-pc-sco,i586-pc-cygwin:1.11::1130000000:::private/research/educational_non-commercial_use:amz80r0cFc22rStnPatPW6OJPHS44.xCl2LPIpyKt.SuICSsGTMY7YzsmFT',
|
---|
475 | 'COLORFGBG': 'default;default', 'COLORTERM': 'rxvt', 'CONFIG_PROTECT':
|
---|
476 | '/usr/share/X11/xkb /usr/kde/3.5/share/config /usr/kde/3.5/env
|
---|
477 | /usr/kde/3.5/shutdown /usr/share/config', 'CONFIG_PROTECT_MASK':
|
---|
478 | '/etc/gconf /etc/terminfo /etc/revdep-rebuild', 'CONTENT_LENGTH': '',
|
---|
479 | 'CONTENT_TYPE': 'text/plain', 'CVS_RSH': 'ssh', 'DESKTOP_SESSION':
|
---|
480 | 'custom', 'DISPLAY': ':0.0', 'DJANGO_SETTINGS_MODULE':
|
---|
481 | 'ProveRelated.settings', 'DM_CONTROL': '/var/run/xdmctl', 'EDITOR':
|
---|
482 | 'gnuclient', 'GATEWAY_INTERFACE': 'CGI/1.1', 'GCC_SPECS': '',
|
---|
483 | 'GDK_USE_XFT': '1', 'G_BROKEN_FILENAMES': '1', 'G_FILENAME_ENCODING':
|
---|
484 | 'UTF-8', 'HISTFILESIZE': '10000', 'HISTSIZE': '10000', 'HOME':
|
---|
485 | '/home/alex', 'HTTP_ACCEPT':
|
---|
486 | 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
|
---|
487 | 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
|
---|
488 | 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE':
|
---|
489 | 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE':
|
---|
490 | 'sessionid=2cf05988b78e626f48e6be50899a2299', 'HTTP_HOST':
|
---|
491 | '127.0.0.1:8000', 'HTTP_IF_MODIFIED_SINCE': 'Tue, 06 Mar 2007 09:45:34
|
---|
492 | GMT', 'HTTP_IF_NONE_MATCH': 'c73d029fc70fbebc70e2a73acddb8e1e',
|
---|
493 | 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER':
|
---|
494 | 'http://127.0.0.1:8000/admin/Article/article/', 'HTTP_USER_AGENT':
|
---|
495 | 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2) Gecko/20070220
|
---|
496 | Firefox/2.0.0.2', 'INFOPATH':
|
---|
497 | '/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info:/usr/share/info/emacs-22.0.91:/usr/share/info/emacs-21',
|
---|
498 | 'INSTANCE_HOME': '/var/lib/zope/zope-284', 'JAVA_HOME':
|
---|
499 | '/usr/j2sdk_nb/j2sdk1.4.2/', 'KDEDIRS': '/usr/kde/3.5:/usr:/usr/local',
|
---|
500 | 'LANG': 'ru_RU.KOI8-R', 'LESS': '-R -M --shift 5', 'LESSOPEN':
|
---|
501 | '|lesspipe.sh %s', 'LOGNAME': 'alex', 'LS_COLORS':
|
---|
502 | 'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.pcx=01;35:*.yuv=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.flac=01;35:*.mp3=01;35:*.mpc=00;36:*.ogg=00;36:*.wav=00;36:*.mid=00;36:*.midi=00;36:*.au=00;36:*.flac=00;36:*.aac=00;36:*.ra=01;36:*.mka=01;36:',
|
---|
503 | 'MANPATH':
|
---|
504 | '/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man:/usr/qt/3/doc/man',
|
---|
505 | 'OLDPWD': '/home/alex/tmp/ProveRelated/Article', 'OPENGL_PROFILE':
|
---|
506 | 'xorg-x11', 'PAGER': '/usr/bin/less', 'PATH':
|
---|
507 | '/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/sbin:/sbin:/usr/kde/3.3/bin:/home/alex/bin/:/home/alex/bin/maxq-0.94/bin/:/home/alex/dev/django_src/django/bin',
|
---|
508 | 'PATH_INFO': '/admin/Article/article/add/', 'PKG_CONFIG_PATH':
|
---|
509 | '/usr/qt/3/lib/pkgconfig', 'PRELINK_PATH_MASK':
|
---|
510 | '/usr/lib/gstreamer-0.10', 'PROJECTHOME':
|
---|
511 | '/home/alex/dev/www.prizewheel.com', 'PWD':
|
---|
512 | '/home/alex/tmp/ProveRelated', 'PYTHONPATH':
|
---|
513 | '/usr/lib/zope-2.8.4/lib/python:/home/alex/dev/www.prizewheel.com:/home/alex/dev/www.prizewheel.com/djWarehouse',
|
---|
514 | 'QMAKESPEC': 'linux-g++', 'QTDIR': '/usr/qt/3', 'QUERY_STRING': '',
|
---|
515 | 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'GET',
|
---|
516 | 'RUN_MAIN': 'true', 'SCRIPT_NAME': '', 'SERVER_NAME':
|
---|
517 | 'avk.koval.kharkov.ua', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL':
|
---|
518 | 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.4.3', 'SHELL':
|
---|
519 | '/bin/bash', 'SHLVL': '2', 'SOFTWARE_HOME':
|
---|
520 | '/usr/lib/zope-2.8.4/lib/python', 'SSH_AGENT_PID': '14097',
|
---|
521 | 'SSH_AUTH_SOCK': '/tmp/ssh-XueZH14096/agent.14096', 'TERM': 'rxvt',
|
---|
522 | 'TERMINFO': '/usr/share/terminfo', 'TZ': 'America/Chicago', 'USER':
|
---|
523 | 'alex', 'WINDOWID': '35651586', 'XDM_MANAGED':
|
---|
524 | '/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic', '_':
|
---|
525 | './manage.py', 'wsgi.errors': <open file '<stderr>', mode 'w'
|
---|
526 | at 0xb7c8e0b0>, 'wsgi.file_wrapper': <class
|
---|
527 | 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input':
|
---|
528 | <socket._fileobject object at 0x83300d4>, 'wsgi.multiprocess':
|
---|
529 | False, 'wsgi.multithread': True, 'wsgi.run_once': False,
|
---|
530 | 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}></div></td>
|
---|
531 | </tr>
|
---|
532 |
|
---|
533 | <tr>
|
---|
534 | <td>view_func</td>
|
---|
535 | <td class="code"><div><function add_stage at 0x83c34c4></div></td>
|
---|
536 | </tr>
|
---|
537 |
|
---|
538 | </tbody>
|
---|
539 | </table>
|
---|
540 |
|
---|
541 | </li>
|
---|
542 |
|
---|
543 | <li class="frame">
|
---|
544 | <code>/usr/lib/python2.4/site-packages/django/contrib/admin/views/main.py</code> in <code>add_stage</code>
|
---|
545 |
|
---|
546 |
|
---|
547 | <div class="context" id="c138141444">
|
---|
548 |
|
---|
549 | <ol style="display: none;" start="271" class="pre-context" id="pre138141444"><li onclick="toggle('pre138141444', 'post138141444')"> request.user.message_set.create(message=msg + ' ' + (_("You may add another %s below.") % opts.verbose_name))</li><li onclick="toggle('pre138141444', 'post138141444')"> return HttpResponseRedirect(request.path)</li><li onclick="toggle('pre138141444', 'post138141444')"> else:</li><li onclick="toggle('pre138141444', 'post138141444')"> request.user.message_set.create(message=msg)</li><li onclick="toggle('pre138141444', 'post138141444')"> return HttpResponseRedirect(post_url)</li><li onclick="toggle('pre138141444', 'post138141444')"> else:</li><li onclick="toggle('pre138141444', 'post138141444')"> # Add default data.</li></ol>
|
---|
550 |
|
---|
551 | <ol start="278" class="context-line"><li onclick="toggle('pre138141444', 'post138141444')"> new_data = manipulator.flatten_data() <span>...</span></li></ol>
|
---|
552 |
|
---|
553 | <ol style="display: none;" start="279" class="post-context" id="post138141444"><li onclick="toggle('pre138141444', 'post138141444')"></li><li onclick="toggle('pre138141444', 'post138141444')"> # Override the defaults with GET params, if they exist.</li><li onclick="toggle('pre138141444', 'post138141444')"> new_data.update(dict(request.GET.items()))</li><li onclick="toggle('pre138141444', 'post138141444')"></li><li onclick="toggle('pre138141444', 'post138141444')"> errors = {}</li><li onclick="toggle('pre138141444', 'post138141444')"></li></ol>
|
---|
554 |
|
---|
555 | </div>
|
---|
556 |
|
---|
557 |
|
---|
558 |
|
---|
559 | <div class="commands">
|
---|
560 | <a href="#" onclick="return varToggle(this, '138141444')"><span>▶</span> Local vars</a>
|
---|
561 | </div>
|
---|
562 | <table style="display: none;" class="vars" id="v138141444">
|
---|
563 | <thead>
|
---|
564 | <tr>
|
---|
565 | <th>Variable</th>
|
---|
566 | <th>Value</th>
|
---|
567 | </tr>
|
---|
568 | </thead>
|
---|
569 | <tbody>
|
---|
570 |
|
---|
571 | <tr>
|
---|
572 | <td>app_label</td>
|
---|
573 | <td class="code"><div>'Article'</div></td>
|
---|
574 | </tr>
|
---|
575 |
|
---|
576 | <tr>
|
---|
577 | <td>form_url</td>
|
---|
578 | <td class="code"><div>''</div></td>
|
---|
579 | </tr>
|
---|
580 |
|
---|
581 | <tr>
|
---|
582 | <td>manipulator</td>
|
---|
583 | <td class="code"><div><django.db.models.manipulators.AddManipulator object at 0x832e2ec></div></td>
|
---|
584 | </tr>
|
---|
585 |
|
---|
586 | <tr>
|
---|
587 | <td>model</td>
|
---|
588 | <td class="code"><div><class 'ProveRelated.Article.models.Article'></div></td>
|
---|
589 | </tr>
|
---|
590 |
|
---|
591 | <tr>
|
---|
592 | <td>model_name</td>
|
---|
593 | <td class="code"><div>'article'</div></td>
|
---|
594 | </tr>
|
---|
595 |
|
---|
596 | <tr>
|
---|
597 | <td>object_id_override</td>
|
---|
598 | <td class="code"><div>None</div></td>
|
---|
599 | </tr>
|
---|
600 |
|
---|
601 | <tr>
|
---|
602 | <td>opts</td>
|
---|
603 | <td class="code"><div><Options for Article></div></td>
|
---|
604 | </tr>
|
---|
605 |
|
---|
606 | <tr>
|
---|
607 | <td>post_url</td>
|
---|
608 | <td class="code"><div>'../'</div></td>
|
---|
609 | </tr>
|
---|
610 |
|
---|
611 | <tr>
|
---|
612 | <td>post_url_continue</td>
|
---|
613 | <td class="code"><div>'../%s/'</div></td>
|
---|
614 | </tr>
|
---|
615 |
|
---|
616 | <tr>
|
---|
617 | <td>request</td>
|
---|
618 | <td class="code"><div><WSGIRequest
|
---|
619 | GET:<MultiValueDict: {}>,
|
---|
620 | POST:<MultiValueDict: {}>,
|
---|
621 | COOKIES:{'sessionid': '2cf05988b78e626f48e6be50899a2299'},
|
---|
622 | META:{'CDR_SECURITY':
|
---|
623 | '8:dvd,clone:sparc-sun-solaris2,i386-pc-solaris2,i586-pc-linux,x86_64-unknown-linux,x86_64-pc-linux,powerpc-apple,hppa,powerpc-ibm-aix,i386-unknown-freebsd,i386-unknown-openbsd,i386-unknown-netbsd,powerpc-apple-netbsd,i386-pc-bsdi,mips-sgi-irix,i386-pc-sco,i586-pc-cygwin:1.11::1130000000:::private/research/educational_non-commercial_use:amz80r0cFc22rStnPatPW6OJPHS44.xCl2LPIpyKt.SuICSsGTMY7YzsmFT',
|
---|
624 | 'COLORFGBG': 'default;default', 'COLORTERM': 'rxvt', 'CONFIG_PROTECT':
|
---|
625 | '/usr/share/X11/xkb /usr/kde/3.5/share/config /usr/kde/3.5/env
|
---|
626 | /usr/kde/3.5/shutdown /usr/share/config', 'CONFIG_PROTECT_MASK':
|
---|
627 | '/etc/gconf /etc/terminfo /etc/revdep-rebuild', 'CONTENT_LENGTH': '',
|
---|
628 | 'CONTENT_TYPE': 'text/plain', 'CVS_RSH': 'ssh', 'DESKTOP_SESSION':
|
---|
629 | 'custom', 'DISPLAY': ':0.0', 'DJANGO_SETTINGS_MODULE':
|
---|
630 | 'ProveRelated.settings', 'DM_CONTROL': '/var/run/xdmctl', 'EDITOR':
|
---|
631 | 'gnuclient', 'GATEWAY_INTERFACE': 'CGI/1.1', 'GCC_SPECS': '',
|
---|
632 | 'GDK_USE_XFT': '1', 'G_BROKEN_FILENAMES': '1', 'G_FILENAME_ENCODING':
|
---|
633 | 'UTF-8', 'HISTFILESIZE': '10000', 'HISTSIZE': '10000', 'HOME':
|
---|
634 | '/home/alex', 'HTTP_ACCEPT':
|
---|
635 | 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
|
---|
636 | 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
|
---|
637 | 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE':
|
---|
638 | 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE':
|
---|
639 | 'sessionid=2cf05988b78e626f48e6be50899a2299', 'HTTP_HOST':
|
---|
640 | '127.0.0.1:8000', 'HTTP_IF_MODIFIED_SINCE': 'Tue, 06 Mar 2007 09:45:34
|
---|
641 | GMT', 'HTTP_IF_NONE_MATCH': 'c73d029fc70fbebc70e2a73acddb8e1e',
|
---|
642 | 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER':
|
---|
643 | 'http://127.0.0.1:8000/admin/Article/article/', 'HTTP_USER_AGENT':
|
---|
644 | 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2) Gecko/20070220
|
---|
645 | Firefox/2.0.0.2', 'INFOPATH':
|
---|
646 | '/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info:/usr/share/info/emacs-22.0.91:/usr/share/info/emacs-21',
|
---|
647 | 'INSTANCE_HOME': '/var/lib/zope/zope-284', 'JAVA_HOME':
|
---|
648 | '/usr/j2sdk_nb/j2sdk1.4.2/', 'KDEDIRS': '/usr/kde/3.5:/usr:/usr/local',
|
---|
649 | 'LANG': 'ru_RU.KOI8-R', 'LESS': '-R -M --shift 5', 'LESSOPEN':
|
---|
650 | '|lesspipe.sh %s', 'LOGNAME': 'alex', 'LS_COLORS':
|
---|
651 | 'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.pcx=01;35:*.yuv=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.flac=01;35:*.mp3=01;35:*.mpc=00;36:*.ogg=00;36:*.wav=00;36:*.mid=00;36:*.midi=00;36:*.au=00;36:*.flac=00;36:*.aac=00;36:*.ra=01;36:*.mka=01;36:',
|
---|
652 | 'MANPATH':
|
---|
653 | '/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man:/usr/qt/3/doc/man',
|
---|
654 | 'OLDPWD': '/home/alex/tmp/ProveRelated/Article', 'OPENGL_PROFILE':
|
---|
655 | 'xorg-x11', 'PAGER': '/usr/bin/less', 'PATH':
|
---|
656 | '/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/sbin:/sbin:/usr/kde/3.3/bin:/home/alex/bin/:/home/alex/bin/maxq-0.94/bin/:/home/alex/dev/django_src/django/bin',
|
---|
657 | 'PATH_INFO': '/admin/Article/article/add/', 'PKG_CONFIG_PATH':
|
---|
658 | '/usr/qt/3/lib/pkgconfig', 'PRELINK_PATH_MASK':
|
---|
659 | '/usr/lib/gstreamer-0.10', 'PROJECTHOME':
|
---|
660 | '/home/alex/dev/www.prizewheel.com', 'PWD':
|
---|
661 | '/home/alex/tmp/ProveRelated', 'PYTHONPATH':
|
---|
662 | '/usr/lib/zope-2.8.4/lib/python:/home/alex/dev/www.prizewheel.com:/home/alex/dev/www.prizewheel.com/djWarehouse',
|
---|
663 | 'QMAKESPEC': 'linux-g++', 'QTDIR': '/usr/qt/3', 'QUERY_STRING': '',
|
---|
664 | 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'GET',
|
---|
665 | 'RUN_MAIN': 'true', 'SCRIPT_NAME': '', 'SERVER_NAME':
|
---|
666 | 'avk.koval.kharkov.ua', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL':
|
---|
667 | 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.4.3', 'SHELL':
|
---|
668 | '/bin/bash', 'SHLVL': '2', 'SOFTWARE_HOME':
|
---|
669 | '/usr/lib/zope-2.8.4/lib/python', 'SSH_AGENT_PID': '14097',
|
---|
670 | 'SSH_AUTH_SOCK': '/tmp/ssh-XueZH14096/agent.14096', 'TERM': 'rxvt',
|
---|
671 | 'TERMINFO': '/usr/share/terminfo', 'TZ': 'America/Chicago', 'USER':
|
---|
672 | 'alex', 'WINDOWID': '35651586', 'XDM_MANAGED':
|
---|
673 | '/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic', '_':
|
---|
674 | './manage.py', 'wsgi.errors': <open file '<stderr>', mode 'w'
|
---|
675 | at 0xb7c8e0b0>, 'wsgi.file_wrapper': <class
|
---|
676 | 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input':
|
---|
677 | <socket._fileobject object at 0x83300d4>, 'wsgi.multiprocess':
|
---|
678 | False, 'wsgi.multithread': True, 'wsgi.run_once': False,
|
---|
679 | 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}></div></td>
|
---|
680 | </tr>
|
---|
681 |
|
---|
682 | <tr>
|
---|
683 | <td>show_delete</td>
|
---|
684 | <td class="code"><div>False</div></td>
|
---|
685 | </tr>
|
---|
686 |
|
---|
687 | </tbody>
|
---|
688 | </table>
|
---|
689 |
|
---|
690 | </li>
|
---|
691 |
|
---|
692 | <li class="frame">
|
---|
693 | <code>/usr/lib/python2.4/site-packages/django/db/models/manipulators.py</code> in <code>flatten_data</code>
|
---|
694 |
|
---|
695 |
|
---|
696 | <div class="context" id="c138141164">
|
---|
697 |
|
---|
698 | <ol style="display: none;" start="244" class="pre-context" id="pre138141164"><li onclick="toggle('pre138141164', 'post138141164')"> return self.opts.get_followed_related_objects(self.follow)</li><li onclick="toggle('pre138141164', 'post138141164')"></li><li onclick="toggle('pre138141164', 'post138141164')"> def flatten_data(self):</li><li onclick="toggle('pre138141164', 'post138141164')"> new_data = {}</li><li onclick="toggle('pre138141164', 'post138141164')"> obj = self.change and self.original_object or None</li><li onclick="toggle('pre138141164', 'post138141164')"> for f in self.opts.get_data_holders(self.follow):</li><li onclick="toggle('pre138141164', 'post138141164')"> fol = self.follow.get(f.name)</li></ol>
|
---|
699 |
|
---|
700 | <ol start="251" class="context-line"><li onclick="toggle('pre138141164', 'post138141164')"> new_data.update(f.flatten_data(fol, obj)) <span>...</span></li></ol>
|
---|
701 |
|
---|
702 | <ol style="display: none;" start="252" class="post-context" id="post138141164"><li onclick="toggle('pre138141164', 'post138141164')"> return new_data</li><li onclick="toggle('pre138141164', 'post138141164')"></li><li onclick="toggle('pre138141164', 'post138141164')">class AutomaticAddManipulator(AutomaticManipulator):</li><li onclick="toggle('pre138141164', 'post138141164')"> change = False</li><li onclick="toggle('pre138141164', 'post138141164')"></li><li onclick="toggle('pre138141164', 'post138141164')">class AutomaticChangeManipulator(AutomaticManipulator):</li></ol>
|
---|
703 |
|
---|
704 | </div>
|
---|
705 |
|
---|
706 |
|
---|
707 |
|
---|
708 | <div class="commands">
|
---|
709 | <a href="#" onclick="return varToggle(this, '138141164')"><span>▶</span> Local vars</a>
|
---|
710 | </div>
|
---|
711 | <table style="display: none;" class="vars" id="v138141164">
|
---|
712 | <thead>
|
---|
713 | <tr>
|
---|
714 | <th>Variable</th>
|
---|
715 | <th>Value</th>
|
---|
716 | </tr>
|
---|
717 | </thead>
|
---|
718 | <tbody>
|
---|
719 |
|
---|
720 | <tr>
|
---|
721 | <td>f</td>
|
---|
722 | <td class="code"><div><RelatedObject: customarticle related to article></div></td>
|
---|
723 | </tr>
|
---|
724 |
|
---|
725 | <tr>
|
---|
726 | <td>fol</td>
|
---|
727 | <td class="code"><div>{'article': False, 'fti_contents_list': True, 'layout': True, 'sites': True}</div></td>
|
---|
728 | </tr>
|
---|
729 |
|
---|
730 | <tr>
|
---|
731 | <td>new_data</td>
|
---|
732 | <td class="code"><div>{'description': '', 'id': None, 'title': ''}</div></td>
|
---|
733 | </tr>
|
---|
734 |
|
---|
735 | <tr>
|
---|
736 | <td>obj</td>
|
---|
737 | <td class="code"><div>None</div></td>
|
---|
738 | </tr>
|
---|
739 |
|
---|
740 | <tr>
|
---|
741 | <td>self</td>
|
---|
742 | <td class="code"><div><django.db.models.manipulators.AddManipulator object at 0x832e2ec></div></td>
|
---|
743 | </tr>
|
---|
744 |
|
---|
745 | </tbody>
|
---|
746 | </table>
|
---|
747 |
|
---|
748 | </li>
|
---|
749 |
|
---|
750 | <li class="frame">
|
---|
751 | <code>/usr/lib/python2.4/site-packages/django/db/models/related.py</code> in <code>flatten_data</code>
|
---|
752 |
|
---|
753 |
|
---|
754 | <div class="context" id="c138140844">
|
---|
755 |
|
---|
756 | <ol style="display: none;" start="17" class="pre-context" id="pre138140844"><li onclick="toggle('pre138140844', 'post138140844')"> self.field = field</li><li onclick="toggle('pre138140844', 'post138140844')"> self.edit_inline = field.rel.edit_inline</li><li onclick="toggle('pre138140844', 'post138140844')"> self.name = self.opts.module_name</li><li onclick="toggle('pre138140844', 'post138140844')"> self.var_name = self.opts.object_name.lower()</li><li onclick="toggle('pre138140844', 'post138140844')"></li><li onclick="toggle('pre138140844', 'post138140844')"> def flatten_data(self, follow, obj=None):</li><li onclick="toggle('pre138140844', 'post138140844')"> new_data = {}</li></ol>
|
---|
757 |
|
---|
758 | <ol start="24" class="context-line"><li onclick="toggle('pre138140844', 'post138140844')"> rel_instances = self.get_list(obj) <span>...</span></li></ol>
|
---|
759 |
|
---|
760 | <ol style="display: none;" start="25" class="post-context" id="post138140844"><li onclick="toggle('pre138140844', 'post138140844')"> for i, rel_instance in enumerate(rel_instances):</li><li onclick="toggle('pre138140844', 'post138140844')"> instance_data = {}</li><li onclick="toggle('pre138140844', 'post138140844')"> for f in self.opts.fields + self.opts.many_to_many:</li><li onclick="toggle('pre138140844', 'post138140844')"> # TODO: Fix for recursive manipulators.</li><li onclick="toggle('pre138140844', 'post138140844')"> fol = follow.get(f.name, None)</li><li onclick="toggle('pre138140844', 'post138140844')"> if fol:</li></ol>
|
---|
761 |
|
---|
762 | </div>
|
---|
763 |
|
---|
764 |
|
---|
765 |
|
---|
766 | <div class="commands">
|
---|
767 | <a href="#" onclick="return varToggle(this, '138140844')"><span>▶</span> Local vars</a>
|
---|
768 | </div>
|
---|
769 | <table style="display: none;" class="vars" id="v138140844">
|
---|
770 | <thead>
|
---|
771 | <tr>
|
---|
772 | <th>Variable</th>
|
---|
773 | <th>Value</th>
|
---|
774 | </tr>
|
---|
775 | </thead>
|
---|
776 | <tbody>
|
---|
777 |
|
---|
778 | <tr>
|
---|
779 | <td>follow</td>
|
---|
780 | <td class="code"><div>{'article': False, 'fti_contents_list': True, 'layout': True, 'sites': True}</div></td>
|
---|
781 | </tr>
|
---|
782 |
|
---|
783 | <tr>
|
---|
784 | <td>new_data</td>
|
---|
785 | <td class="code"><div>{}</div></td>
|
---|
786 | </tr>
|
---|
787 |
|
---|
788 | <tr>
|
---|
789 | <td>obj</td>
|
---|
790 | <td class="code"><div>None</div></td>
|
---|
791 | </tr>
|
---|
792 |
|
---|
793 | <tr>
|
---|
794 | <td>self</td>
|
---|
795 | <td class="code"><div><RelatedObject: customarticle related to article></div></td>
|
---|
796 | </tr>
|
---|
797 |
|
---|
798 | </tbody>
|
---|
799 | </table>
|
---|
800 |
|
---|
801 | </li>
|
---|
802 |
|
---|
803 | <li class="frame">
|
---|
804 | <code>/usr/lib/python2.4/site-packages/django/db/models/related.py</code> in <code>get_list</code>
|
---|
805 |
|
---|
806 |
|
---|
807 | <div class="context" id="c138140964">
|
---|
808 |
|
---|
809 | <ol style="display: none;" start="64" class="pre-context" id="pre138140964"><li onclick="toggle('pre138140964', 'post138140964')"> else: # Just right</li><li onclick="toggle('pre138140964', 'post138140964')"> return objects</li><li onclick="toggle('pre138140964', 'post138140964')"> else:</li><li onclick="toggle('pre138140964', 'post138140964')"> # A one-to-one relationship, so just return the single related</li><li onclick="toggle('pre138140964', 'post138140964')"> # object</li><li onclick="toggle('pre138140964', 'post138140964')"> return [attr]</li><li onclick="toggle('pre138140964', 'post138140964')"> else:</li></ol>
|
---|
810 |
|
---|
811 | <ol start="71" class="context-line"><li onclick="toggle('pre138140964', 'post138140964')"> if self.field.rel.min_num_in_admin: <span>...</span></li></ol>
|
---|
812 |
|
---|
813 | <ol style="display: none;" start="72" class="post-context" id="post138140964"><li onclick="toggle('pre138140964', 'post138140964')"> return [None] * max(self.field.rel.num_in_admin, self.field.rel.min_num_in_admin)</li><li onclick="toggle('pre138140964', 'post138140964')"> else:</li><li onclick="toggle('pre138140964', 'post138140964')"> return [None] * self.field.rel.num_in_admin</li><li onclick="toggle('pre138140964', 'post138140964')"></li><li onclick="toggle('pre138140964', 'post138140964')"> def get_db_prep_lookup(self, lookup_type, value):</li><li onclick="toggle('pre138140964', 'post138140964')"> # Defer to the actual field definition for db prep</li></ol>
|
---|
814 |
|
---|
815 | </div>
|
---|
816 |
|
---|
817 |
|
---|
818 |
|
---|
819 | <div class="commands">
|
---|
820 | <a href="#" onclick="return varToggle(this, '138140964')"><span>▶</span> Local vars</a>
|
---|
821 | </div>
|
---|
822 | <table style="display: none;" class="vars" id="v138140964">
|
---|
823 | <thead>
|
---|
824 | <tr>
|
---|
825 | <th>Variable</th>
|
---|
826 | <th>Value</th>
|
---|
827 | </tr>
|
---|
828 | </thead>
|
---|
829 | <tbody>
|
---|
830 |
|
---|
831 | <tr>
|
---|
832 | <td>parent_instance</td>
|
---|
833 | <td class="code"><div>None</div></td>
|
---|
834 | </tr>
|
---|
835 |
|
---|
836 | <tr>
|
---|
837 | <td>self</td>
|
---|
838 | <td class="code"><div><RelatedObject: customarticle related to article></div></td>
|
---|
839 | </tr>
|
---|
840 |
|
---|
841 | </tbody>
|
---|
842 | </table>
|
---|
843 |
|
---|
844 | </li>
|
---|
845 |
|
---|
846 | </ul>
|
---|
847 | </div>
|
---|
848 | <div style="display: none;" id="pastebinTraceback" class="pastebin">
|
---|
849 | <table>
|
---|
850 | <tbody>
|
---|
851 | <tr>
|
---|
852 | <td>
|
---|
853 | <code>
|
---|
854 | Traceback (most recent call last):<br>
|
---|
855 |
|
---|
856 | File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response<br>
|
---|
857 |
|
---|
858 | 77. response = callback(request, *callback_args, **callback_kwargs)<br>
|
---|
859 |
|
---|
860 |
|
---|
861 | File "/usr/lib/python2.4/site-packages/django/contrib/admin/views/decorators.py" in _checklogin<br>
|
---|
862 |
|
---|
863 | 55. return view_func(request, *args, **kwargs)<br>
|
---|
864 |
|
---|
865 |
|
---|
866 | File "/usr/lib/python2.4/site-packages/django/views/decorators/cache.py" in _wrapped_view_func<br>
|
---|
867 |
|
---|
868 | 39. response = view_func(request, *args, **kwargs)<br>
|
---|
869 |
|
---|
870 |
|
---|
871 | File "/usr/lib/python2.4/site-packages/django/contrib/admin/views/main.py" in add_stage<br>
|
---|
872 |
|
---|
873 | 278. new_data = manipulator.flatten_data()<br>
|
---|
874 |
|
---|
875 |
|
---|
876 | File "/usr/lib/python2.4/site-packages/django/db/models/manipulators.py" in flatten_data<br>
|
---|
877 |
|
---|
878 | 251. new_data.update(f.flatten_data(fol, obj))<br>
|
---|
879 |
|
---|
880 |
|
---|
881 | File "/usr/lib/python2.4/site-packages/django/db/models/related.py" in flatten_data<br>
|
---|
882 |
|
---|
883 | 24. rel_instances = self.get_list(obj)<br>
|
---|
884 |
|
---|
885 |
|
---|
886 | File "/usr/lib/python2.4/site-packages/django/db/models/related.py" in get_list<br>
|
---|
887 |
|
---|
888 | 71. if self.field.rel.min_num_in_admin:<br>
|
---|
889 |
|
---|
890 | <br>
|
---|
891 | AttributeError at /admin/Article/article/add/<br>
|
---|
892 | 'OneToOneRel' object has no attribute 'min_num_in_admin'</code>
|
---|
893 | </td>
|
---|
894 | </tr>
|
---|
895 | </tbody>
|
---|
896 | </table>
|
---|
897 | </div>
|
---|
898 | </div>
|
---|
899 |
|
---|
900 | <div id="requestinfo">
|
---|
901 | <h2>Request information</h2>
|
---|
902 |
|
---|
903 | <h3 id="get-info">GET</h3>
|
---|
904 |
|
---|
905 | <p>No GET data</p>
|
---|
906 |
|
---|
907 |
|
---|
908 | <h3 id="post-info">POST</h3>
|
---|
909 |
|
---|
910 | <p>No POST data</p>
|
---|
911 |
|
---|
912 |
|
---|
913 | <h3 id="cookie-info">COOKIES</h3>
|
---|
914 |
|
---|
915 | <table class="req">
|
---|
916 | <thead>
|
---|
917 | <tr>
|
---|
918 | <th>Variable</th>
|
---|
919 | <th>Value</th>
|
---|
920 | </tr>
|
---|
921 | </thead>
|
---|
922 | <tbody>
|
---|
923 |
|
---|
924 | <tr>
|
---|
925 | <td>sessionid</td>
|
---|
926 | <td class="code"><div>'2cf05988b78e626f48e6be50899a2299'</div></td>
|
---|
927 | </tr>
|
---|
928 |
|
---|
929 | </tbody>
|
---|
930 | </table>
|
---|
931 |
|
---|
932 |
|
---|
933 | <h3 id="meta-info">META</h3>
|
---|
934 | <table class="req">
|
---|
935 | <thead>
|
---|
936 | <tr>
|
---|
937 | <th>Variable</th>
|
---|
938 | <th>Value</th>
|
---|
939 | </tr>
|
---|
940 | </thead>
|
---|
941 | <tbody>
|
---|
942 |
|
---|
943 | <tr>
|
---|
944 | <td>CDR_SECURITY</td>
|
---|
945 | <td class="code"><div>'8:dvd,clone:sparc-sun-solaris2,i386-pc-solaris2,i586-pc-linux,x86_64-unknown-linux,x86_64-pc-linux,powerpc-apple,hppa,powerpc-ibm-aix,i386-unknown-freebsd,i386-unknown-openbsd,i386-unknown-netbsd,powerpc-apple-netbsd,i386-pc-bsdi,mips-sgi-irix,i386-pc-sco,i586-pc-cygwin:1.11::1130000000:::private/research/educational_non-commercial_use:amz80r0cFc22rStnPatPW6OJPHS44.xCl2LPIpyKt.SuICSsGTMY7YzsmFT'</div></td>
|
---|
946 | </tr>
|
---|
947 |
|
---|
948 | <tr>
|
---|
949 | <td>COLORFGBG</td>
|
---|
950 | <td class="code"><div>'default;default'</div></td>
|
---|
951 | </tr>
|
---|
952 |
|
---|
953 | <tr>
|
---|
954 | <td>COLORTERM</td>
|
---|
955 | <td class="code"><div>'rxvt'</div></td>
|
---|
956 | </tr>
|
---|
957 |
|
---|
958 | <tr>
|
---|
959 | <td>CONFIG_PROTECT</td>
|
---|
960 | <td class="code"><div>'/usr/share/X11/xkb /usr/kde/3.5/share/config /usr/kde/3.5/env /usr/kde/3.5/shutdown /usr/share/config'</div></td>
|
---|
961 | </tr>
|
---|
962 |
|
---|
963 | <tr>
|
---|
964 | <td>CONFIG_PROTECT_MASK</td>
|
---|
965 | <td class="code"><div>'/etc/gconf /etc/terminfo /etc/revdep-rebuild'</div></td>
|
---|
966 | </tr>
|
---|
967 |
|
---|
968 | <tr>
|
---|
969 | <td>CONTENT_LENGTH</td>
|
---|
970 | <td class="code"><div>''</div></td>
|
---|
971 | </tr>
|
---|
972 |
|
---|
973 | <tr>
|
---|
974 | <td>CONTENT_TYPE</td>
|
---|
975 | <td class="code"><div>'text/plain'</div></td>
|
---|
976 | </tr>
|
---|
977 |
|
---|
978 | <tr>
|
---|
979 | <td>CVS_RSH</td>
|
---|
980 | <td class="code"><div>'ssh'</div></td>
|
---|
981 | </tr>
|
---|
982 |
|
---|
983 | <tr>
|
---|
984 | <td>DESKTOP_SESSION</td>
|
---|
985 | <td class="code"><div>'custom'</div></td>
|
---|
986 | </tr>
|
---|
987 |
|
---|
988 | <tr>
|
---|
989 | <td>DISPLAY</td>
|
---|
990 | <td class="code"><div>':0.0'</div></td>
|
---|
991 | </tr>
|
---|
992 |
|
---|
993 | <tr>
|
---|
994 | <td>DJANGO_SETTINGS_MODULE</td>
|
---|
995 | <td class="code"><div>'ProveRelated.settings'</div></td>
|
---|
996 | </tr>
|
---|
997 |
|
---|
998 | <tr>
|
---|
999 | <td>DM_CONTROL</td>
|
---|
1000 | <td class="code"><div>'/var/run/xdmctl'</div></td>
|
---|
1001 | </tr>
|
---|
1002 |
|
---|
1003 | <tr>
|
---|
1004 | <td>EDITOR</td>
|
---|
1005 | <td class="code"><div>'gnuclient'</div></td>
|
---|
1006 | </tr>
|
---|
1007 |
|
---|
1008 | <tr>
|
---|
1009 | <td>GATEWAY_INTERFACE</td>
|
---|
1010 | <td class="code"><div>'CGI/1.1'</div></td>
|
---|
1011 | </tr>
|
---|
1012 |
|
---|
1013 | <tr>
|
---|
1014 | <td>GCC_SPECS</td>
|
---|
1015 | <td class="code"><div>''</div></td>
|
---|
1016 | </tr>
|
---|
1017 |
|
---|
1018 | <tr>
|
---|
1019 | <td>GDK_USE_XFT</td>
|
---|
1020 | <td class="code"><div>'1'</div></td>
|
---|
1021 | </tr>
|
---|
1022 |
|
---|
1023 | <tr>
|
---|
1024 | <td>G_BROKEN_FILENAMES</td>
|
---|
1025 | <td class="code"><div>'1'</div></td>
|
---|
1026 | </tr>
|
---|
1027 |
|
---|
1028 | <tr>
|
---|
1029 | <td>G_FILENAME_ENCODING</td>
|
---|
1030 | <td class="code"><div>'UTF-8'</div></td>
|
---|
1031 | </tr>
|
---|
1032 |
|
---|
1033 | <tr>
|
---|
1034 | <td>HISTFILESIZE</td>
|
---|
1035 | <td class="code"><div>'10000'</div></td>
|
---|
1036 | </tr>
|
---|
1037 |
|
---|
1038 | <tr>
|
---|
1039 | <td>HISTSIZE</td>
|
---|
1040 | <td class="code"><div>'10000'</div></td>
|
---|
1041 | </tr>
|
---|
1042 |
|
---|
1043 | <tr>
|
---|
1044 | <td>HOME</td>
|
---|
1045 | <td class="code"><div>'/home/alex'</div></td>
|
---|
1046 | </tr>
|
---|
1047 |
|
---|
1048 | <tr>
|
---|
1049 | <td>HTTP_ACCEPT</td>
|
---|
1050 | <td class="code"><div>'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'</div></td>
|
---|
1051 | </tr>
|
---|
1052 |
|
---|
1053 | <tr>
|
---|
1054 | <td>HTTP_ACCEPT_CHARSET</td>
|
---|
1055 | <td class="code"><div>'ISO-8859-1,utf-8;q=0.7,*;q=0.7'</div></td>
|
---|
1056 | </tr>
|
---|
1057 |
|
---|
1058 | <tr>
|
---|
1059 | <td>HTTP_ACCEPT_ENCODING</td>
|
---|
1060 | <td class="code"><div>'gzip,deflate'</div></td>
|
---|
1061 | </tr>
|
---|
1062 |
|
---|
1063 | <tr>
|
---|
1064 | <td>HTTP_ACCEPT_LANGUAGE</td>
|
---|
1065 | <td class="code"><div>'en-us,en;q=0.5'</div></td>
|
---|
1066 | </tr>
|
---|
1067 |
|
---|
1068 | <tr>
|
---|
1069 | <td>HTTP_CONNECTION</td>
|
---|
1070 | <td class="code"><div>'keep-alive'</div></td>
|
---|
1071 | </tr>
|
---|
1072 |
|
---|
1073 | <tr>
|
---|
1074 | <td>HTTP_COOKIE</td>
|
---|
1075 | <td class="code"><div>'sessionid=2cf05988b78e626f48e6be50899a2299'</div></td>
|
---|
1076 | </tr>
|
---|
1077 |
|
---|
1078 | <tr>
|
---|
1079 | <td>HTTP_HOST</td>
|
---|
1080 | <td class="code"><div>'127.0.0.1:8000'</div></td>
|
---|
1081 | </tr>
|
---|
1082 |
|
---|
1083 | <tr>
|
---|
1084 | <td>HTTP_IF_MODIFIED_SINCE</td>
|
---|
1085 | <td class="code"><div>'Tue, 06 Mar 2007 09:45:34 GMT'</div></td>
|
---|
1086 | </tr>
|
---|
1087 |
|
---|
1088 | <tr>
|
---|
1089 | <td>HTTP_IF_NONE_MATCH</td>
|
---|
1090 | <td class="code"><div>'c73d029fc70fbebc70e2a73acddb8e1e'</div></td>
|
---|
1091 | </tr>
|
---|
1092 |
|
---|
1093 | <tr>
|
---|
1094 | <td>HTTP_KEEP_ALIVE</td>
|
---|
1095 | <td class="code"><div>'300'</div></td>
|
---|
1096 | </tr>
|
---|
1097 |
|
---|
1098 | <tr>
|
---|
1099 | <td>HTTP_REFERER</td>
|
---|
1100 | <td class="code"><div>'http://127.0.0.1:8000/admin/Article/article/'</div></td>
|
---|
1101 | </tr>
|
---|
1102 |
|
---|
1103 | <tr>
|
---|
1104 | <td>HTTP_USER_AGENT</td>
|
---|
1105 | <td class="code"><div>'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2) Gecko/20070220 Firefox/2.0.0.2'</div></td>
|
---|
1106 | </tr>
|
---|
1107 |
|
---|
1108 | <tr>
|
---|
1109 | <td>INFOPATH</td>
|
---|
1110 | <td class="code"><div>'/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info:/usr/share/info/emacs-22.0.91:/usr/share/info/emacs-21'</div></td>
|
---|
1111 | </tr>
|
---|
1112 |
|
---|
1113 | <tr>
|
---|
1114 | <td>INSTANCE_HOME</td>
|
---|
1115 | <td class="code"><div>'/var/lib/zope/zope-284'</div></td>
|
---|
1116 | </tr>
|
---|
1117 |
|
---|
1118 | <tr>
|
---|
1119 | <td>JAVA_HOME</td>
|
---|
1120 | <td class="code"><div>'/usr/j2sdk_nb/j2sdk1.4.2/'</div></td>
|
---|
1121 | </tr>
|
---|
1122 |
|
---|
1123 | <tr>
|
---|
1124 | <td>KDEDIRS</td>
|
---|
1125 | <td class="code"><div>'/usr/kde/3.5:/usr:/usr/local'</div></td>
|
---|
1126 | </tr>
|
---|
1127 |
|
---|
1128 | <tr>
|
---|
1129 | <td>LANG</td>
|
---|
1130 | <td class="code"><div>'ru_RU.KOI8-R'</div></td>
|
---|
1131 | </tr>
|
---|
1132 |
|
---|
1133 | <tr>
|
---|
1134 | <td>LESS</td>
|
---|
1135 | <td class="code"><div>'-R -M --shift 5'</div></td>
|
---|
1136 | </tr>
|
---|
1137 |
|
---|
1138 | <tr>
|
---|
1139 | <td>LESSOPEN</td>
|
---|
1140 | <td class="code"><div>'|lesspipe.sh %s'</div></td>
|
---|
1141 | </tr>
|
---|
1142 |
|
---|
1143 | <tr>
|
---|
1144 | <td>LOGNAME</td>
|
---|
1145 | <td class="code"><div>'alex'</div></td>
|
---|
1146 | </tr>
|
---|
1147 |
|
---|
1148 | <tr>
|
---|
1149 | <td>LS_COLORS</td>
|
---|
1150 | <td class="code"><div>'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.pcx=01;35:*.yuv=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.flac=01;35:*.mp3=01;35:*.mpc=00;36:*.ogg=00;36:*.wav=00;36:*.mid=00;36:*.midi=00;36:*.au=00;36:*.flac=00;36:*.aac=00;36:*.ra=01;36:*.mka=01;36:'</div></td>
|
---|
1151 | </tr>
|
---|
1152 |
|
---|
1153 | <tr>
|
---|
1154 | <td>MANPATH</td>
|
---|
1155 | <td class="code"><div>'/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.16.1/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/man:/usr/qt/3/doc/man'</div></td>
|
---|
1156 | </tr>
|
---|
1157 |
|
---|
1158 | <tr>
|
---|
1159 | <td>OLDPWD</td>
|
---|
1160 | <td class="code"><div>'/home/alex/tmp/ProveRelated/Article'</div></td>
|
---|
1161 | </tr>
|
---|
1162 |
|
---|
1163 | <tr>
|
---|
1164 | <td>OPENGL_PROFILE</td>
|
---|
1165 | <td class="code"><div>'xorg-x11'</div></td>
|
---|
1166 | </tr>
|
---|
1167 |
|
---|
1168 | <tr>
|
---|
1169 | <td>PAGER</td>
|
---|
1170 | <td class="code"><div>'/usr/bin/less'</div></td>
|
---|
1171 | </tr>
|
---|
1172 |
|
---|
1173 | <tr>
|
---|
1174 | <td>PATH</td>
|
---|
1175 | <td class="code"><div>'/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/sbin:/sbin:/usr/kde/3.3/bin:/home/alex/bin/:/home/alex/bin/maxq-0.94/bin/:/home/alex/dev/django_src/django/bin'</div></td>
|
---|
1176 | </tr>
|
---|
1177 |
|
---|
1178 | <tr>
|
---|
1179 | <td>PATH_INFO</td>
|
---|
1180 | <td class="code"><div>'/admin/Article/article/add/'</div></td>
|
---|
1181 | </tr>
|
---|
1182 |
|
---|
1183 | <tr>
|
---|
1184 | <td>PKG_CONFIG_PATH</td>
|
---|
1185 | <td class="code"><div>'/usr/qt/3/lib/pkgconfig'</div></td>
|
---|
1186 | </tr>
|
---|
1187 |
|
---|
1188 | <tr>
|
---|
1189 | <td>PRELINK_PATH_MASK</td>
|
---|
1190 | <td class="code"><div>'/usr/lib/gstreamer-0.10'</div></td>
|
---|
1191 | </tr>
|
---|
1192 |
|
---|
1193 | <tr>
|
---|
1194 | <td>PROJECTHOME</td>
|
---|
1195 | <td class="code"><div>'/home/alex/dev/www.prizewheel.com'</div></td>
|
---|
1196 | </tr>
|
---|
1197 |
|
---|
1198 | <tr>
|
---|
1199 | <td>PWD</td>
|
---|
1200 | <td class="code"><div>'/home/alex/tmp/ProveRelated'</div></td>
|
---|
1201 | </tr>
|
---|
1202 |
|
---|
1203 | <tr>
|
---|
1204 | <td>PYTHONPATH</td>
|
---|
1205 | <td class="code"><div>'/usr/lib/zope-2.8.4/lib/python:/home/alex/dev/www.prizewheel.com:/home/alex/dev/www.prizewheel.com/djWarehouse'</div></td>
|
---|
1206 | </tr>
|
---|
1207 |
|
---|
1208 | <tr>
|
---|
1209 | <td>QMAKESPEC</td>
|
---|
1210 | <td class="code"><div>'linux-g++'</div></td>
|
---|
1211 | </tr>
|
---|
1212 |
|
---|
1213 | <tr>
|
---|
1214 | <td>QTDIR</td>
|
---|
1215 | <td class="code"><div>'/usr/qt/3'</div></td>
|
---|
1216 | </tr>
|
---|
1217 |
|
---|
1218 | <tr>
|
---|
1219 | <td>QUERY_STRING</td>
|
---|
1220 | <td class="code"><div>''</div></td>
|
---|
1221 | </tr>
|
---|
1222 |
|
---|
1223 | <tr>
|
---|
1224 | <td>REMOTE_ADDR</td>
|
---|
1225 | <td class="code"><div>'127.0.0.1'</div></td>
|
---|
1226 | </tr>
|
---|
1227 |
|
---|
1228 | <tr>
|
---|
1229 | <td>REMOTE_HOST</td>
|
---|
1230 | <td class="code"><div>''</div></td>
|
---|
1231 | </tr>
|
---|
1232 |
|
---|
1233 | <tr>
|
---|
1234 | <td>REQUEST_METHOD</td>
|
---|
1235 | <td class="code"><div>'GET'</div></td>
|
---|
1236 | </tr>
|
---|
1237 |
|
---|
1238 | <tr>
|
---|
1239 | <td>RUN_MAIN</td>
|
---|
1240 | <td class="code"><div>'true'</div></td>
|
---|
1241 | </tr>
|
---|
1242 |
|
---|
1243 | <tr>
|
---|
1244 | <td>SCRIPT_NAME</td>
|
---|
1245 | <td class="code"><div>''</div></td>
|
---|
1246 | </tr>
|
---|
1247 |
|
---|
1248 | <tr>
|
---|
1249 | <td>SERVER_NAME</td>
|
---|
1250 | <td class="code"><div>'avk.koval.kharkov.ua'</div></td>
|
---|
1251 | </tr>
|
---|
1252 |
|
---|
1253 | <tr>
|
---|
1254 | <td>SERVER_PORT</td>
|
---|
1255 | <td class="code"><div>'8000'</div></td>
|
---|
1256 | </tr>
|
---|
1257 |
|
---|
1258 | <tr>
|
---|
1259 | <td>SERVER_PROTOCOL</td>
|
---|
1260 | <td class="code"><div>'HTTP/1.1'</div></td>
|
---|
1261 | </tr>
|
---|
1262 |
|
---|
1263 | <tr>
|
---|
1264 | <td>SERVER_SOFTWARE</td>
|
---|
1265 | <td class="code"><div>'WSGIServer/0.1 Python/2.4.3'</div></td>
|
---|
1266 | </tr>
|
---|
1267 |
|
---|
1268 | <tr>
|
---|
1269 | <td>SHELL</td>
|
---|
1270 | <td class="code"><div>'/bin/bash'</div></td>
|
---|
1271 | </tr>
|
---|
1272 |
|
---|
1273 | <tr>
|
---|
1274 | <td>SHLVL</td>
|
---|
1275 | <td class="code"><div>'2'</div></td>
|
---|
1276 | </tr>
|
---|
1277 |
|
---|
1278 | <tr>
|
---|
1279 | <td>SOFTWARE_HOME</td>
|
---|
1280 | <td class="code"><div>'/usr/lib/zope-2.8.4/lib/python'</div></td>
|
---|
1281 | </tr>
|
---|
1282 |
|
---|
1283 | <tr>
|
---|
1284 | <td>SSH_AGENT_PID</td>
|
---|
1285 | <td class="code"><div>'14097'</div></td>
|
---|
1286 | </tr>
|
---|
1287 |
|
---|
1288 | <tr>
|
---|
1289 | <td>SSH_AUTH_SOCK</td>
|
---|
1290 | <td class="code"><div>'/tmp/ssh-XueZH14096/agent.14096'</div></td>
|
---|
1291 | </tr>
|
---|
1292 |
|
---|
1293 | <tr>
|
---|
1294 | <td>TERM</td>
|
---|
1295 | <td class="code"><div>'rxvt'</div></td>
|
---|
1296 | </tr>
|
---|
1297 |
|
---|
1298 | <tr>
|
---|
1299 | <td>TERMINFO</td>
|
---|
1300 | <td class="code"><div>'/usr/share/terminfo'</div></td>
|
---|
1301 | </tr>
|
---|
1302 |
|
---|
1303 | <tr>
|
---|
1304 | <td>TZ</td>
|
---|
1305 | <td class="code"><div>'America/Chicago'</div></td>
|
---|
1306 | </tr>
|
---|
1307 |
|
---|
1308 | <tr>
|
---|
1309 | <td>USER</td>
|
---|
1310 | <td class="code"><div>'alex'</div></td>
|
---|
1311 | </tr>
|
---|
1312 |
|
---|
1313 | <tr>
|
---|
1314 | <td>WINDOWID</td>
|
---|
1315 | <td class="code"><div>'35651586'</div></td>
|
---|
1316 | </tr>
|
---|
1317 |
|
---|
1318 | <tr>
|
---|
1319 | <td>XDM_MANAGED</td>
|
---|
1320 | <td class="code"><div>'/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic'</div></td>
|
---|
1321 | </tr>
|
---|
1322 |
|
---|
1323 | <tr>
|
---|
1324 | <td>_</td>
|
---|
1325 | <td class="code"><div>'./manage.py'</div></td>
|
---|
1326 | </tr>
|
---|
1327 |
|
---|
1328 | <tr>
|
---|
1329 | <td>wsgi.errors</td>
|
---|
1330 | <td class="code"><div><open file '<stderr>', mode 'w' at 0xb7c8e0b0></div></td>
|
---|
1331 | </tr>
|
---|
1332 |
|
---|
1333 | <tr>
|
---|
1334 | <td>wsgi.file_wrapper</td>
|
---|
1335 | <td class="code"><div><class 'django.core.servers.basehttp.FileWrapper'></div></td>
|
---|
1336 | </tr>
|
---|
1337 |
|
---|
1338 | <tr>
|
---|
1339 | <td>wsgi.input</td>
|
---|
1340 | <td class="code"><div><socket._fileobject object at 0x83300d4></div></td>
|
---|
1341 | </tr>
|
---|
1342 |
|
---|
1343 | <tr>
|
---|
1344 | <td>wsgi.multiprocess</td>
|
---|
1345 | <td class="code"><div>False</div></td>
|
---|
1346 | </tr>
|
---|
1347 |
|
---|
1348 | <tr>
|
---|
1349 | <td>wsgi.multithread</td>
|
---|
1350 | <td class="code"><div>True</div></td>
|
---|
1351 | </tr>
|
---|
1352 |
|
---|
1353 | <tr>
|
---|
1354 | <td>wsgi.run_once</td>
|
---|
1355 | <td class="code"><div>False</div></td>
|
---|
1356 | </tr>
|
---|
1357 |
|
---|
1358 | <tr>
|
---|
1359 | <td>wsgi.url_scheme</td>
|
---|
1360 | <td class="code"><div>'http'</div></td>
|
---|
1361 | </tr>
|
---|
1362 |
|
---|
1363 | <tr>
|
---|
1364 | <td>wsgi.version</td>
|
---|
1365 | <td class="code"><div>(1, 0)</div></td>
|
---|
1366 | </tr>
|
---|
1367 |
|
---|
1368 | </tbody>
|
---|
1369 | </table>
|
---|
1370 |
|
---|
1371 | <h3 id="settings-info">Settings</h3>
|
---|
1372 | <h4>Using settings module <code>ProveRelated.settings</code></h4>
|
---|
1373 | <table class="req">
|
---|
1374 | <thead>
|
---|
1375 | <tr>
|
---|
1376 | <th>Setting</th>
|
---|
1377 | <th>Value</th>
|
---|
1378 | </tr>
|
---|
1379 | </thead>
|
---|
1380 | <tbody>
|
---|
1381 |
|
---|
1382 | <tr>
|
---|
1383 | <td>ABSOLUTE_URL_OVERRIDES</td>
|
---|
1384 | <td class="code"><div>{}</div></td>
|
---|
1385 | </tr>
|
---|
1386 |
|
---|
1387 | <tr>
|
---|
1388 | <td>ADMINS</td>
|
---|
1389 | <td class="code"><div>()</div></td>
|
---|
1390 | </tr>
|
---|
1391 |
|
---|
1392 | <tr>
|
---|
1393 | <td>ADMIN_FOR</td>
|
---|
1394 | <td class="code"><div>()</div></td>
|
---|
1395 | </tr>
|
---|
1396 |
|
---|
1397 | <tr>
|
---|
1398 | <td>ADMIN_MEDIA_PREFIX</td>
|
---|
1399 | <td class="code"><div>'/media/'</div></td>
|
---|
1400 | </tr>
|
---|
1401 |
|
---|
1402 | <tr>
|
---|
1403 | <td>ALLOWED_INCLUDE_ROOTS</td>
|
---|
1404 | <td class="code"><div>()</div></td>
|
---|
1405 | </tr>
|
---|
1406 |
|
---|
1407 | <tr>
|
---|
1408 | <td>APPEND_SLASH</td>
|
---|
1409 | <td class="code"><div>True</div></td>
|
---|
1410 | </tr>
|
---|
1411 |
|
---|
1412 | <tr>
|
---|
1413 | <td>AUTHENTICATION_BACKENDS</td>
|
---|
1414 | <td class="code"><div>('django.contrib.auth.backends.ModelBackend',)</div></td>
|
---|
1415 | </tr>
|
---|
1416 |
|
---|
1417 | <tr>
|
---|
1418 | <td>BANNED_IPS</td>
|
---|
1419 | <td class="code"><div>()</div></td>
|
---|
1420 | </tr>
|
---|
1421 |
|
---|
1422 | <tr>
|
---|
1423 | <td>CACHE_BACKEND</td>
|
---|
1424 | <td class="code"><div>'simple://'</div></td>
|
---|
1425 | </tr>
|
---|
1426 |
|
---|
1427 | <tr>
|
---|
1428 | <td>CACHE_MIDDLEWARE_KEY_PREFIX</td>
|
---|
1429 | <td class="code"><div>''</div></td>
|
---|
1430 | </tr>
|
---|
1431 |
|
---|
1432 | <tr>
|
---|
1433 | <td>COMMENTS_ALLOW_PROFANITIES</td>
|
---|
1434 | <td class="code"><div>False</div></td>
|
---|
1435 | </tr>
|
---|
1436 |
|
---|
1437 | <tr>
|
---|
1438 | <td>COMMENTS_BANNED_USERS_GROUP</td>
|
---|
1439 | <td class="code"><div>None</div></td>
|
---|
1440 | </tr>
|
---|
1441 |
|
---|
1442 | <tr>
|
---|
1443 | <td>COMMENTS_FIRST_FEW</td>
|
---|
1444 | <td class="code"><div>0</div></td>
|
---|
1445 | </tr>
|
---|
1446 |
|
---|
1447 | <tr>
|
---|
1448 | <td>COMMENTS_MODERATORS_GROUP</td>
|
---|
1449 | <td class="code"><div>None</div></td>
|
---|
1450 | </tr>
|
---|
1451 |
|
---|
1452 | <tr>
|
---|
1453 | <td>COMMENTS_SKETCHY_USERS_GROUP</td>
|
---|
1454 | <td class="code"><div>None</div></td>
|
---|
1455 | </tr>
|
---|
1456 |
|
---|
1457 | <tr>
|
---|
1458 | <td>DATABASE_ENGINE</td>
|
---|
1459 | <td class="code"><div>'postgresql_psycopg2'</div></td>
|
---|
1460 | </tr>
|
---|
1461 |
|
---|
1462 | <tr>
|
---|
1463 | <td>DATABASE_HOST</td>
|
---|
1464 | <td class="code"><div>''</div></td>
|
---|
1465 | </tr>
|
---|
1466 |
|
---|
1467 | <tr>
|
---|
1468 | <td>DATABASE_NAME</td>
|
---|
1469 | <td class="code"><div>'prove_related'</div></td>
|
---|
1470 | </tr>
|
---|
1471 |
|
---|
1472 | <tr>
|
---|
1473 | <td>DATABASE_OPTIONS</td>
|
---|
1474 | <td class="code"><div>{}</div></td>
|
---|
1475 | </tr>
|
---|
1476 |
|
---|
1477 | <tr>
|
---|
1478 | <td>DATABASE_PASSWORD</td>
|
---|
1479 | <td class="code"><div>'********************'</div></td>
|
---|
1480 | </tr>
|
---|
1481 |
|
---|
1482 | <tr>
|
---|
1483 | <td>DATABASE_PORT</td>
|
---|
1484 | <td class="code"><div>''</div></td>
|
---|
1485 | </tr>
|
---|
1486 |
|
---|
1487 | <tr>
|
---|
1488 | <td>DATABASE_USER</td>
|
---|
1489 | <td class="code"><div>''</div></td>
|
---|
1490 | </tr>
|
---|
1491 |
|
---|
1492 | <tr>
|
---|
1493 | <td>DATETIME_FORMAT</td>
|
---|
1494 | <td class="code"><div>'N j, Y, P'</div></td>
|
---|
1495 | </tr>
|
---|
1496 |
|
---|
1497 | <tr>
|
---|
1498 | <td>DATE_FORMAT</td>
|
---|
1499 | <td class="code"><div>'N j, Y'</div></td>
|
---|
1500 | </tr>
|
---|
1501 |
|
---|
1502 | <tr>
|
---|
1503 | <td>DEBUG</td>
|
---|
1504 | <td class="code"><div>True</div></td>
|
---|
1505 | </tr>
|
---|
1506 |
|
---|
1507 | <tr>
|
---|
1508 | <td>DEFAULT_CHARSET</td>
|
---|
1509 | <td class="code"><div>'utf-8'</div></td>
|
---|
1510 | </tr>
|
---|
1511 |
|
---|
1512 | <tr>
|
---|
1513 | <td>DEFAULT_CONTENT_TYPE</td>
|
---|
1514 | <td class="code"><div>'text/html'</div></td>
|
---|
1515 | </tr>
|
---|
1516 |
|
---|
1517 | <tr>
|
---|
1518 | <td>DEFAULT_FROM_EMAIL</td>
|
---|
1519 | <td class="code"><div>'webmaster@localhost'</div></td>
|
---|
1520 | </tr>
|
---|
1521 |
|
---|
1522 | <tr>
|
---|
1523 | <td>DISALLOWED_USER_AGENTS</td>
|
---|
1524 | <td class="code"><div>()</div></td>
|
---|
1525 | </tr>
|
---|
1526 |
|
---|
1527 | <tr>
|
---|
1528 | <td>EMAIL_HOST</td>
|
---|
1529 | <td class="code"><div>'localhost'</div></td>
|
---|
1530 | </tr>
|
---|
1531 |
|
---|
1532 | <tr>
|
---|
1533 | <td>EMAIL_HOST_PASSWORD</td>
|
---|
1534 | <td class="code"><div>'********************'</div></td>
|
---|
1535 | </tr>
|
---|
1536 |
|
---|
1537 | <tr>
|
---|
1538 | <td>EMAIL_HOST_USER</td>
|
---|
1539 | <td class="code"><div>''</div></td>
|
---|
1540 | </tr>
|
---|
1541 |
|
---|
1542 | <tr>
|
---|
1543 | <td>EMAIL_PORT</td>
|
---|
1544 | <td class="code"><div>25</div></td>
|
---|
1545 | </tr>
|
---|
1546 |
|
---|
1547 | <tr>
|
---|
1548 | <td>EMAIL_SUBJECT_PREFIX</td>
|
---|
1549 | <td class="code"><div>'[Django] '</div></td>
|
---|
1550 | </tr>
|
---|
1551 |
|
---|
1552 | <tr>
|
---|
1553 | <td>FIXTURE_DIRS</td>
|
---|
1554 | <td class="code"><div>()</div></td>
|
---|
1555 | </tr>
|
---|
1556 |
|
---|
1557 | <tr>
|
---|
1558 | <td>IGNORABLE_404_ENDS</td>
|
---|
1559 | <td class="code"><div>('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')</div></td>
|
---|
1560 | </tr>
|
---|
1561 |
|
---|
1562 | <tr>
|
---|
1563 | <td>IGNORABLE_404_STARTS</td>
|
---|
1564 | <td class="code"><div>('/cgi-bin/', '/_vti_bin', '/_vti_inf')</div></td>
|
---|
1565 | </tr>
|
---|
1566 |
|
---|
1567 | <tr>
|
---|
1568 | <td>INSTALLED_APPS</td>
|
---|
1569 | <td class="code"><div>['django.contrib.auth',
|
---|
1570 | 'django.contrib.contenttypes',
|
---|
1571 | 'django.contrib.sessions',
|
---|
1572 | 'django.contrib.sites',
|
---|
1573 | 'django.contrib.admin',
|
---|
1574 | 'ProveRelated.Article']</div></td>
|
---|
1575 | </tr>
|
---|
1576 |
|
---|
1577 | <tr>
|
---|
1578 | <td>INTERNAL_IPS</td>
|
---|
1579 | <td class="code"><div>()</div></td>
|
---|
1580 | </tr>
|
---|
1581 |
|
---|
1582 | <tr>
|
---|
1583 | <td>JING_PATH</td>
|
---|
1584 | <td class="code"><div>'/usr/bin/jing'</div></td>
|
---|
1585 | </tr>
|
---|
1586 |
|
---|
1587 | <tr>
|
---|
1588 | <td>LANGUAGES</td>
|
---|
1589 | <td class="code"><div>(('ar', 'Arabic'),
|
---|
1590 | ('bn', 'Bengali'),
|
---|
1591 | ('ca', 'Catalan'),
|
---|
1592 | ('cs', 'Czech'),
|
---|
1593 | ('cy', 'Welsh'),
|
---|
1594 | ('da', 'Danish'),
|
---|
1595 | ('de', 'German'),
|
---|
1596 | ('el', 'Greek'),
|
---|
1597 | ('en', 'English'),
|
---|
1598 | ('es', 'Spanish'),
|
---|
1599 | ('es_AR', 'Argentinean Spanish'),
|
---|
1600 | ('fi', 'Finnish'),
|
---|
1601 | ('fr', 'French'),
|
---|
1602 | ('gl', 'Galician'),
|
---|
1603 | ('hu', 'Hungarian'),
|
---|
1604 | ('he', 'Hebrew'),
|
---|
1605 | ('is', 'Icelandic'),
|
---|
1606 | ('it', 'Italian'),
|
---|
1607 | ('ja', 'Japanese'),
|
---|
1608 | ('kn', 'Kannada'),
|
---|
1609 | ('lv', 'Latvian'),
|
---|
1610 | ('mk', 'Macedonian'),
|
---|
1611 | ('nl', 'Dutch'),
|
---|
1612 | ('no', 'Norwegian'),
|
---|
1613 | ('pl', 'Polish'),
|
---|
1614 | ('pt-br', 'Brazilian'),
|
---|
1615 | ('ro', 'Romanian'),
|
---|
1616 | ('ru', 'Russian'),
|
---|
1617 | ('sk', 'Slovak'),
|
---|
1618 | ('sl', 'Slovenian'),
|
---|
1619 | ('sr', 'Serbian'),
|
---|
1620 | ('sv', 'Swedish'),
|
---|
1621 | ('ta', 'Tamil'),
|
---|
1622 | ('tr', 'Turkish'),
|
---|
1623 | ('uk', 'Ukrainian'),
|
---|
1624 | ('zh-cn', 'Simplified Chinese'),
|
---|
1625 | ('zh-tw', 'Traditional Chinese'))</div></td>
|
---|
1626 | </tr>
|
---|
1627 |
|
---|
1628 | <tr>
|
---|
1629 | <td>LANGUAGES_BIDI</td>
|
---|
1630 | <td class="code"><div>('he', 'ar')</div></td>
|
---|
1631 | </tr>
|
---|
1632 |
|
---|
1633 | <tr>
|
---|
1634 | <td>LANGUAGE_CODE</td>
|
---|
1635 | <td class="code"><div>'en-us'</div></td>
|
---|
1636 | </tr>
|
---|
1637 |
|
---|
1638 | <tr>
|
---|
1639 | <td>MANAGERS</td>
|
---|
1640 | <td class="code"><div>()</div></td>
|
---|
1641 | </tr>
|
---|
1642 |
|
---|
1643 | <tr>
|
---|
1644 | <td>MEDIA_ROOT</td>
|
---|
1645 | <td class="code"><div>''</div></td>
|
---|
1646 | </tr>
|
---|
1647 |
|
---|
1648 | <tr>
|
---|
1649 | <td>MEDIA_URL</td>
|
---|
1650 | <td class="code"><div>''</div></td>
|
---|
1651 | </tr>
|
---|
1652 |
|
---|
1653 | <tr>
|
---|
1654 | <td>MIDDLEWARE_CLASSES</td>
|
---|
1655 | <td class="code"><div>('django.middleware.common.CommonMiddleware',
|
---|
1656 | 'django.contrib.sessions.middleware.SessionMiddleware',
|
---|
1657 | 'django.contrib.auth.middleware.AuthenticationMiddleware',
|
---|
1658 | 'django.middleware.doc.XViewMiddleware')</div></td>
|
---|
1659 | </tr>
|
---|
1660 |
|
---|
1661 | <tr>
|
---|
1662 | <td>MONTH_DAY_FORMAT</td>
|
---|
1663 | <td class="code"><div>'F j'</div></td>
|
---|
1664 | </tr>
|
---|
1665 |
|
---|
1666 | <tr>
|
---|
1667 | <td>PREPEND_WWW</td>
|
---|
1668 | <td class="code"><div>False</div></td>
|
---|
1669 | </tr>
|
---|
1670 |
|
---|
1671 | <tr>
|
---|
1672 | <td>PROFANITIES_LIST</td>
|
---|
1673 | <td class="code"><div>'********************'</div></td>
|
---|
1674 | </tr>
|
---|
1675 |
|
---|
1676 | <tr>
|
---|
1677 | <td>ROOT_URLCONF</td>
|
---|
1678 | <td class="code"><div>'ProveRelated.urls'</div></td>
|
---|
1679 | </tr>
|
---|
1680 |
|
---|
1681 | <tr>
|
---|
1682 | <td>SECRET_KEY</td>
|
---|
1683 | <td class="code"><div>'********************'</div></td>
|
---|
1684 | </tr>
|
---|
1685 |
|
---|
1686 | <tr>
|
---|
1687 | <td>SEND_BROKEN_LINK_EMAILS</td>
|
---|
1688 | <td class="code"><div>False</div></td>
|
---|
1689 | </tr>
|
---|
1690 |
|
---|
1691 | <tr>
|
---|
1692 | <td>SERVER_EMAIL</td>
|
---|
1693 | <td class="code"><div>'root@localhost'</div></td>
|
---|
1694 | </tr>
|
---|
1695 |
|
---|
1696 | <tr>
|
---|
1697 | <td>SESSION_COOKIE_AGE</td>
|
---|
1698 | <td class="code"><div>1209600</div></td>
|
---|
1699 | </tr>
|
---|
1700 |
|
---|
1701 | <tr>
|
---|
1702 | <td>SESSION_COOKIE_DOMAIN</td>
|
---|
1703 | <td class="code"><div>None</div></td>
|
---|
1704 | </tr>
|
---|
1705 |
|
---|
1706 | <tr>
|
---|
1707 | <td>SESSION_COOKIE_NAME</td>
|
---|
1708 | <td class="code"><div>'sessionid'</div></td>
|
---|
1709 | </tr>
|
---|
1710 |
|
---|
1711 | <tr>
|
---|
1712 | <td>SESSION_COOKIE_SECURE</td>
|
---|
1713 | <td class="code"><div>False</div></td>
|
---|
1714 | </tr>
|
---|
1715 |
|
---|
1716 | <tr>
|
---|
1717 | <td>SESSION_EXPIRE_AT_BROWSER_CLOSE</td>
|
---|
1718 | <td class="code"><div>False</div></td>
|
---|
1719 | </tr>
|
---|
1720 |
|
---|
1721 | <tr>
|
---|
1722 | <td>SESSION_SAVE_EVERY_REQUEST</td>
|
---|
1723 | <td class="code"><div>False</div></td>
|
---|
1724 | </tr>
|
---|
1725 |
|
---|
1726 | <tr>
|
---|
1727 | <td>SETTINGS_MODULE</td>
|
---|
1728 | <td class="code"><div>'ProveRelated.settings'</div></td>
|
---|
1729 | </tr>
|
---|
1730 |
|
---|
1731 | <tr>
|
---|
1732 | <td>SITE_ID</td>
|
---|
1733 | <td class="code"><div>1</div></td>
|
---|
1734 | </tr>
|
---|
1735 |
|
---|
1736 | <tr>
|
---|
1737 | <td>TEMPLATE_CONTEXT_PROCESSORS</td>
|
---|
1738 | <td class="code"><div>('django.core.context_processors.auth',
|
---|
1739 | 'django.core.context_processors.debug',
|
---|
1740 | 'django.core.context_processors.i18n')</div></td>
|
---|
1741 | </tr>
|
---|
1742 |
|
---|
1743 | <tr>
|
---|
1744 | <td>TEMPLATE_DEBUG</td>
|
---|
1745 | <td class="code"><div>True</div></td>
|
---|
1746 | </tr>
|
---|
1747 |
|
---|
1748 | <tr>
|
---|
1749 | <td>TEMPLATE_DIRS</td>
|
---|
1750 | <td class="code"><div>()</div></td>
|
---|
1751 | </tr>
|
---|
1752 |
|
---|
1753 | <tr>
|
---|
1754 | <td>TEMPLATE_LOADERS</td>
|
---|
1755 | <td class="code"><div>('django.template.loaders.filesystem.load_template_source',
|
---|
1756 | 'django.template.loaders.app_directories.load_template_source')</div></td>
|
---|
1757 | </tr>
|
---|
1758 |
|
---|
1759 | <tr>
|
---|
1760 | <td>TEMPLATE_STRING_IF_INVALID</td>
|
---|
1761 | <td class="code"><div>''</div></td>
|
---|
1762 | </tr>
|
---|
1763 |
|
---|
1764 | <tr>
|
---|
1765 | <td>TEST_DATABASE_NAME</td>
|
---|
1766 | <td class="code"><div>None</div></td>
|
---|
1767 | </tr>
|
---|
1768 |
|
---|
1769 | <tr>
|
---|
1770 | <td>TEST_RUNNER</td>
|
---|
1771 | <td class="code"><div>'django.test.simple.run_tests'</div></td>
|
---|
1772 | </tr>
|
---|
1773 |
|
---|
1774 | <tr>
|
---|
1775 | <td>TIME_FORMAT</td>
|
---|
1776 | <td class="code"><div>'P'</div></td>
|
---|
1777 | </tr>
|
---|
1778 |
|
---|
1779 | <tr>
|
---|
1780 | <td>TIME_ZONE</td>
|
---|
1781 | <td class="code"><div>'America/Chicago'</div></td>
|
---|
1782 | </tr>
|
---|
1783 |
|
---|
1784 | <tr>
|
---|
1785 | <td>TRANSACTIONS_MANAGED</td>
|
---|
1786 | <td class="code"><div>False</div></td>
|
---|
1787 | </tr>
|
---|
1788 |
|
---|
1789 | <tr>
|
---|
1790 | <td>URL_VALIDATOR_USER_AGENT</td>
|
---|
1791 | <td class="code"><div>'Django/0.96pre (http://www.djangoproject.com)'</div></td>
|
---|
1792 | </tr>
|
---|
1793 |
|
---|
1794 | <tr>
|
---|
1795 | <td>USE_ETAGS</td>
|
---|
1796 | <td class="code"><div>False</div></td>
|
---|
1797 | </tr>
|
---|
1798 |
|
---|
1799 | <tr>
|
---|
1800 | <td>USE_I18N</td>
|
---|
1801 | <td class="code"><div>True</div></td>
|
---|
1802 | </tr>
|
---|
1803 |
|
---|
1804 | <tr>
|
---|
1805 | <td>YEAR_MONTH_FORMAT</td>
|
---|
1806 | <td class="code"><div>'F Y'</div></td>
|
---|
1807 | </tr>
|
---|
1808 |
|
---|
1809 | </tbody>
|
---|
1810 | </table>
|
---|
1811 |
|
---|
1812 | </div>
|
---|
1813 |
|
---|
1814 | <div id="explanation">
|
---|
1815 | <p>
|
---|
1816 | You're seeing this error because you have <code>DEBUG = True</code> in your
|
---|
1817 | Django settings file. Change that to <code>False</code>, and Django will
|
---|
1818 | display a standard 500 page.
|
---|
1819 | </p>
|
---|
1820 | </div>
|
---|
1821 |
|
---|
1822 |
|
---|
1823 | </body></html>
|
---|