Created
July 8, 2015 15:56
-
-
Save rbrovko/06fd39c1b798af934c82 to your computer and use it in GitHub Desktop.
api/login
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
social=google&uid=118064698005477220672&app_secret=0c-bc20zu%28b%40h%28wrp%40xb%2B%23v%40%25a8%26amp%3Bvpzfpvdk1%23%3Dm%2Bu0%2B*%29sf_9&first_name=berry&last_name=test&email=berrytest123%40gmail.com&token=eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6ImpIREEyVmx1bjZRTHRBT3c1Q0xFNEEiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzYyMjUwLCJleHAiOjE0MzYzNjU4NTB9.qkvJX-cZum440VGZTGND2IvYaTtYqUi0cwiq1uhpe8Qth-06OTiExBaaI28dEG6Al-Y0NCqZEvdA-KZ5oKbVPrS6Tz9ZpY-oK4Zu2-gBq-v2Yk8tPJohnPD3xgU2GIEkCMM54_ffxa0kC48ujUAOoAeIbcdLqbbmY0EgkgH-GZhPtlMe4SaUY2PLYINzEXkH1RYZGPZKf3GA0c9MEV9mask_i8D_yhLUSCmweVO_PggkjIfmRb0vnQHxWHma6xvbC9ejhGsHQesx-TtlxxJbuC4kTDCkwDMg2gkPxBqaBjeTv2k93KOTtM8ot4XtEJgYpR1NWe9vrYCCKl8Xl_8C3A&token_secret=&expires_at=2015%2F07%2F08+17%3A30%3A50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<meta name="robots" content="NONE,NOARCHIVE"> | |
<title>IntegrityError at /api/login/</title> | |
<style type="text/css"> | |
html * { padding:0; margin:0; } | |
body * { padding:10px 20px; } | |
body * * { padding:0; } | |
body { font:small sans-serif; } | |
body>div { border-bottom:1px solid #ddd; } | |
h1 { font-weight:normal; } | |
h2 { margin-bottom:.8em; } | |
h2 span { font-size:80%; color:#666; font-weight:normal; } | |
h3 { margin:1em 0 .5em 0; } | |
h4 { margin:0 0 .5em 0; font-weight: normal; } | |
code, pre { font-size: 100%; white-space: pre-wrap; } | |
table { border:1px solid #ccc; border-collapse: collapse; width:100%; background:white; } | |
tbody td, tbody th { vertical-align:top; padding:2px 3px; } | |
thead th { | |
padding:1px 6px 1px 3px; background:#fefefe; text-align:left; | |
font-weight:normal; font-size:11px; border:1px solid #ddd; | |
} | |
tbody th { width:12em; text-align:right; color:#666; padding-right:.5em; } | |
table.vars { margin:5px 0 2px 40px; } | |
table.vars td, table.req td { font-family:monospace; } | |
table td.code { width:100%; } | |
table td.code pre { overflow:hidden; } | |
table.source th { color:#666; } | |
table.source td { font-family:monospace; white-space:pre; border-bottom:1px solid #eee; } | |
ul.traceback { list-style-type:none; color: #222; } | |
ul.traceback li.frame { padding-bottom:1em; color:#666; } | |
ul.traceback li.user { background-color:#e0e0e0; color:#000 } | |
div.context { padding:10px 0; overflow:hidden; } | |
div.context ol { padding-left:30px; margin:0 10px; list-style-position: inside; } | |
div.context ol li { font-family:monospace; white-space:pre; color:#777; cursor:pointer; } | |
div.context ol li pre { display:inline; } | |
div.context ol.context-line li { color:#505050; background-color:#dfdfdf; } | |
div.context ol.context-line li span { position:absolute; right:32px; } | |
.user div.context ol.context-line li { background-color:#bbb; color:#000; } | |
.user div.context ol li { color:#666; } | |
div.commands { margin-left: 40px; } | |
div.commands a { color:#555; text-decoration:none; } | |
.user div.commands a { color: black; } | |
#summary { background: #ffc; } | |
#summary h2 { font-weight: normal; color: #666; } | |
#explanation { background:#eee; } | |
#template, #template-not-exist { background:#f6f6f6; } | |
#template-not-exist ul { margin: 0 0 0 20px; } | |
#unicode-hint { background:#eee; } | |
#traceback { background:#eee; } | |
#requestinfo { background:#f6f6f6; padding-left:120px; } | |
#summary table { border:none; background:transparent; } | |
#requestinfo h2, #requestinfo h3 { position:relative; margin-left:-100px; } | |
#requestinfo h3 { margin-bottom:-1em; } | |
.error { background: #ffc; } | |
.specific { color:#cc3300; font-weight:bold; } | |
h2 span.commands { font-size:.7em;} | |
span.commands a:link {color:#5E5694;} | |
pre.exception_value { font-family: sans-serif; color: #666; font-size: 1.5em; margin: 10px 0 10px 0; } | |
</style> | |
<script type="text/javascript"> | |
//<!-- | |
function getElementsByClassName(oElm, strTagName, strClassName){ | |
// Written by Jonathan Snook, http://www.snook.ca/jon; Add-ons by Robert Nyman, http://www.robertnyman.com | |
var arrElements = (strTagName == "*" && document.all)? document.all : | |
oElm.getElementsByTagName(strTagName); | |
var arrReturnElements = new Array(); | |
strClassName = strClassName.replace(/\-/g, "\-"); | |
var oRegExp = new RegExp("(^|\s)" + strClassName + "(\s|$)"); | |
var oElement; | |
for(var i=0; i<arrElements.length; i++){ | |
oElement = arrElements[i]; | |
if(oRegExp.test(oElement.className)){ | |
arrReturnElements.push(oElement); | |
} | |
} | |
return (arrReturnElements) | |
} | |
function hideAll(elems) { | |
for (var e = 0; e < elems.length; e++) { | |
elems[e].style.display = 'none'; | |
} | |
} | |
window.onload = function() { | |
hideAll(getElementsByClassName(document, 'table', 'vars')); | |
hideAll(getElementsByClassName(document, 'ol', 'pre-context')); | |
hideAll(getElementsByClassName(document, 'ol', 'post-context')); | |
hideAll(getElementsByClassName(document, 'div', 'pastebin')); | |
} | |
function toggle() { | |
for (var i = 0; i < arguments.length; i++) { | |
var e = document.getElementById(arguments[i]); | |
if (e) { | |
e.style.display = e.style.display == 'none' ? 'block': 'none'; | |
} | |
} | |
return false; | |
} | |
function varToggle(link, id) { | |
toggle('v' + id); | |
var s = link.getElementsByTagName('span')[0]; | |
var uarr = String.fromCharCode(0x25b6); | |
var darr = String.fromCharCode(0x25bc); | |
s.innerHTML = s.innerHTML == uarr ? darr : uarr; | |
return false; | |
} | |
function switchPastebinFriendly(link) { | |
s1 = "Switch to copy-and-paste view"; | |
s2 = "Switch back to interactive view"; | |
link.innerHTML = link.innerHTML == s1 ? s2: s1; | |
toggle('browserTraceback', 'pastebinTraceback'); | |
return false; | |
} | |
//--> | |
</script> | |
</head> | |
<body> | |
<div id="summary"> | |
<h1>IntegrityError at /api/login/</h1> | |
<pre class="exception_value">null value in column "token_secret" violates not-null constraint | |
DETAIL: Failing row contains (22, eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMx..., null, 2015-07-08 18:40:24+00, 5, 2). | |
</pre> | |
<table class="meta"> | |
<tr> | |
<th>Request Method:</th> | |
<td>POST</td> | |
</tr> | |
<tr> | |
<th>Request URL:</th> | |
<td>http://139.162.208.84/api/login/</td> | |
</tr> | |
<tr> | |
<th>Django Version:</th> | |
<td>1.8.2</td> | |
</tr> | |
<tr> | |
<th>Exception Type:</th> | |
<td>IntegrityError</td> | |
</tr> | |
<tr> | |
<th>Exception Value:</th> | |
<td><pre>null value in column "token_secret" violates not-null constraint | |
DETAIL: Failing row contains (22, eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMx..., null, 2015-07-08 18:40:24+00, 5, 2). | |
</pre></td> | |
</tr> | |
<tr> | |
<th>Exception Location:</th> | |
<td>/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/backends/utils.py in execute, line 64</td> | |
</tr> | |
<tr> | |
<th>Python Executable:</th> | |
<td>/usr/bin/python</td> | |
</tr> | |
<tr> | |
<th>Python Version:</th> | |
<td>2.7.6</td> | |
</tr> | |
<tr> | |
<th>Python Path:</th> | |
<td><pre>['/home/prontovista/prontovista/.env/lib/python2.7/site-packages', | |
'/home/prontovista/prontovista', | |
'/usr/lib/python2.7', | |
'/usr/lib/python2.7/plat-x86_64-linux-gnu', | |
'/usr/lib/python2.7/lib-tk', | |
'/usr/lib/python2.7/lib-old', | |
'/usr/lib/python2.7/lib-dynload', | |
'/usr/local/lib/python2.7/dist-packages', | |
'/usr/lib/python2.7/dist-packages', | |
'/home/prontovista/~/prontovista/.env/local/lib/python2.7/site-packages']</pre></td> | |
</tr> | |
<tr> | |
<th>Server time:</th> | |
<td>Wed, 8 Jul 2015 16:40:32 +0100</td> | |
</tr> | |
</table> | |
</div> | |
<div id="traceback"> | |
<h2>Traceback <span class="commands"><a href="#" onclick="return switchPastebinFriendly(this);"> | |
Switch to copy-and-paste view</a></span> | |
</h2> | |
<div id="browserTraceback"> | |
<ul class="traceback"> | |
<li class="frame django"> | |
<code>/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/core/handlers/base.py</code> in <code>get_response</code> | |
<div class="context" id="c140473342819504"> | |
<ol start="125" class="pre-context" id="pre140473342819504"> | |
<li onclick="toggle('pre140473342819504', 'post140473342819504')"><pre> response = middleware_method(request, callback, callback_args, callback_kwargs)</pre></li> | |
<li onclick="toggle('pre140473342819504', 'post140473342819504')"><pre> if response:</pre></li> | |
<li onclick="toggle('pre140473342819504', 'post140473342819504')"><pre> break</pre></li> | |
<li onclick="toggle('pre140473342819504', 'post140473342819504')"><pre></pre></li> | |
<li onclick="toggle('pre140473342819504', 'post140473342819504')"><pre> if response is None:</pre></li> | |
<li onclick="toggle('pre140473342819504', 'post140473342819504')"><pre> wrapped_callback = self.make_view_atomic(callback)</pre></li> | |
<li onclick="toggle('pre140473342819504', 'post140473342819504')"><pre> try:</pre></li> | |
</ol> | |
<ol start="132" class="context-line"> | |
<li onclick="toggle('pre140473342819504', 'post140473342819504')"><pre> | |
response = wrapped_callback(request, *callback_args, **callback_kwargs)</pre> <span>...</span></li></ol> | |
<ol start='133' class="post-context" id="post140473342819504"> | |
<li onclick="toggle('pre140473342819504', 'post140473342819504')"><pre> except Exception as e:</pre></li> | |
<li onclick="toggle('pre140473342819504', 'post140473342819504')"><pre> # If the view raised an exception, run it through exception</pre></li> | |
<li onclick="toggle('pre140473342819504', 'post140473342819504')"><pre> # middleware, and if the exception middleware returns a</pre></li> | |
<li onclick="toggle('pre140473342819504', 'post140473342819504')"><pre> # response, use that. Otherwise, reraise the exception.</pre></li> | |
<li onclick="toggle('pre140473342819504', 'post140473342819504')"><pre> for middleware_method in self._exception_middleware:</pre></li> | |
<li onclick="toggle('pre140473342819504', 'post140473342819504')"><pre> response = middleware_method(request, e)</pre></li> | |
</ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '140473342819504')"><span>▶</span> Local vars</a> | |
</div> | |
<table class="vars" id="v140473342819504"> | |
<thead> | |
<tr> | |
<th>Variable</th> | |
<th>Value</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>e</td> | |
<td class="code"><pre>IntegrityError('null value in column "token_secret" violates not-null constraint\nDETAIL: Failing row contains (22, eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMx..., null, 2015-07-08 18:40:24+00, 5, 2).\n',)</pre></td> | |
</tr> | |
<tr> | |
<td>callback_args</td> | |
<td class="code"><pre>()</pre></td> | |
</tr> | |
<tr> | |
<td>resolver_match</td> | |
<td class="code"><pre>ResolverMatch(func=accounts.api.api_login, args=(), kwargs={}, url_name=api_get_token, app_name=None, namespaces=[])</pre></td> | |
</tr> | |
<tr> | |
<td>middleware_method</td> | |
<td class="code"><pre><bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fc2801f5e90>></pre></td> | |
</tr> | |
<tr> | |
<td>self</td> | |
<td class="code"><pre><django.core.handlers.wsgi.WSGIHandler object at 0x7fc2918d9fd0></pre></td> | |
</tr> | |
<tr> | |
<td>request</td> | |
<td class="code"><pre>"<WSGIRequest\npath:/api/login/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {u'first_name': [u'berry'], u'last_name': [u' test'], u'uid': [u'118064698005477220672'], u'app_secret': [u'0c-bc20zu(b@h(wrp@xb+#v@%a8&amp;vpzfpvdk1#=m+u0+*)sf_9'], u'expires_at': [u'2015/07/08 19:40:24'], u'token': [u'eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g'], u'social': [u'google'], u'email': [u'[email protected]']}>,\nCOOKIES:{},\nMETA:{'CONTENT_LENGTH': '1703',\n 'CONTENT_TYPE': 'multipart/form-data; boundary=Boundary+61B344F38C0ADC62',\n 'CONTEXT_DOCUMENT_ROOT': '/home/prontovista/prontovista/',\n 'CONTEXT_PREFIX': '',\n u'CSRF_COOKIE': u'xsSPJM3plQnj3bYgiHLhIYNJwhlXF7eL',\n 'DOCUMENT_ROOT': '/home/prontovista/prontovista/',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',\n 'HTTP_ACCEPT_LANGUAGE': 'en;q=1',\n 'HTTP_CONNECTION': 'keep-alive',\n 'HTTP_HOST': '139.162.208.84',\n 'HTTP_USER_AGENT': 'ProntoVista/1.0 (iPhone Simulator; iOS 8.1; Scale/2.00)',\n 'PATH_INFO': u'/api/login/',\n 'PATH_TRANSLATED': '/home/prontovista/prontovista/wsgi.py/api/login/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '83.170.227.48',\n 'REMOTE_PORT': '65519',\n 'REQUEST_METHOD': 'POST',\n 'REQUEST_SCHEME': 'http',\n 'REQUEST_URI': '/api/login/',\n 'SCRIPT_FILENAME': '/home/prontovista/prontovista/wsgi.py',\n 'SCRIPT_NAME': u'',\n 'SERVER_ADDR': '139.162.208.84',\n 'SERVER_ADMIN': '[no address given]',\n 'SERVER_NAME': '139.162.208.84',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SIGNATURE': '<address>Apache/2.4.7 (Ubuntu) Server at 139.162.208.84 Port 80</address>\\n',\n 'SERVER_SOFTWARE': 'Apache/2.4.7 (Ubuntu)',\n 'mod_wsgi.application_group': '139.162.208.84|',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.enable_sendfile': '0',\n 'mod_wsgi.handler_script': '',\n 'mod_wsgi.input_chunked': '0',\n 'mod_wsgi.listener_host': '',\n 'mod_wsgi.listener_port': '80',\n 'mod_wsgi.process_group': 'prontovista',\n 'mod_wsgi.queue_start': '1436370032768707',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.version': (3, 4),\n 'wsgi.errors': <mod_wsgi.Log object at 0x7fc27fc0c3b0>,\n 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7fc27fc56eb8>,\n 'wsgi.input': <mod_wsgi.Input object at 0x7fc27fc0cb70>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>"</pre></td> | |
</tr> | |
<tr> | |
<td>callback</td> | |
<td class="code"><pre><function api_login at 0x7fc27fccea28></pre></td> | |
</tr> | |
<tr> | |
<td>wrapped_callback</td> | |
<td class="code"><pre><function api_login at 0x7fc27fccea28></pre></td> | |
</tr> | |
<tr> | |
<td>resolver</td> | |
<td class="code"><pre><RegexURLResolver 'urls' (None:None) ^/></pre></td> | |
</tr> | |
<tr> | |
<td>callback_kwargs</td> | |
<td class="code"><pre>{}</pre></td> | |
</tr> | |
<tr> | |
<td>response</td> | |
<td class="code"><pre>None</pre></td> | |
</tr> | |
<tr> | |
<td>urlconf</td> | |
<td class="code"><pre>'urls'</pre></td> | |
</tr> | |
</tbody> | |
</table> | |
</li> | |
<li class="frame django"> | |
<code>/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/views/decorators/http.py</code> in <code>inner</code> | |
<div class="context" id="c140473342817704"> | |
<ol start="38" class="pre-context" id="pre140473342817704"> | |
<li onclick="toggle('pre140473342817704', 'post140473342817704')"><pre> logger.warning('Method Not Allowed (%s): %s', request.method, request.path,</pre></li> | |
<li onclick="toggle('pre140473342817704', 'post140473342817704')"><pre> extra={</pre></li> | |
<li onclick="toggle('pre140473342817704', 'post140473342817704')"><pre> 'status_code': 405,</pre></li> | |
<li onclick="toggle('pre140473342817704', 'post140473342817704')"><pre> 'request': request</pre></li> | |
<li onclick="toggle('pre140473342817704', 'post140473342817704')"><pre> }</pre></li> | |
<li onclick="toggle('pre140473342817704', 'post140473342817704')"><pre> )</pre></li> | |
<li onclick="toggle('pre140473342817704', 'post140473342817704')"><pre> return HttpResponseNotAllowed(request_method_list)</pre></li> | |
</ol> | |
<ol start="45" class="context-line"> | |
<li onclick="toggle('pre140473342817704', 'post140473342817704')"><pre> | |
return func(request, *args, **kwargs)</pre> <span>...</span></li></ol> | |
<ol start='46' class="post-context" id="post140473342817704"> | |
<li onclick="toggle('pre140473342817704', 'post140473342817704')"><pre> return inner</pre></li> | |
<li onclick="toggle('pre140473342817704', 'post140473342817704')"><pre> return decorator</pre></li> | |
<li onclick="toggle('pre140473342817704', 'post140473342817704')"><pre></pre></li> | |
<li onclick="toggle('pre140473342817704', 'post140473342817704')"><pre>require_GET = require_http_methods(["GET"])</pre></li> | |
<li onclick="toggle('pre140473342817704', 'post140473342817704')"><pre>require_GET.__doc__ = "Decorator to require that a view only accept the GET method."</pre></li> | |
<li onclick="toggle('pre140473342817704', 'post140473342817704')"><pre></pre></li> | |
</ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '140473342817704')"><span>▶</span> Local vars</a> | |
</div> | |
<table class="vars" id="v140473342817704"> | |
<thead> | |
<tr> | |
<th>Variable</th> | |
<th>Value</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>request_method_list</td> | |
<td class="code"><pre>['POST']</pre></td> | |
</tr> | |
<tr> | |
<td>request</td> | |
<td class="code"><pre>"<WSGIRequest\npath:/api/login/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {u'first_name': [u'berry'], u'last_name': [u' test'], u'uid': [u'118064698005477220672'], u'app_secret': [u'0c-bc20zu(b@h(wrp@xb+#v@%a8&amp;vpzfpvdk1#=m+u0+*)sf_9'], u'expires_at': [u'2015/07/08 19:40:24'], u'token': [u'eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g'], u'social': [u'google'], u'email': [u'[email protected]']}>,\nCOOKIES:{},\nMETA:{'CONTENT_LENGTH': '1703',\n 'CONTENT_TYPE': 'multipart/form-data; boundary=Boundary+61B344F38C0ADC62',\n 'CONTEXT_DOCUMENT_ROOT': '/home/prontovista/prontovista/',\n 'CONTEXT_PREFIX': '',\n u'CSRF_COOKIE': u'xsSPJM3plQnj3bYgiHLhIYNJwhlXF7eL',\n 'DOCUMENT_ROOT': '/home/prontovista/prontovista/',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',\n 'HTTP_ACCEPT_LANGUAGE': 'en;q=1',\n 'HTTP_CONNECTION': 'keep-alive',\n 'HTTP_HOST': '139.162.208.84',\n 'HTTP_USER_AGENT': 'ProntoVista/1.0 (iPhone Simulator; iOS 8.1; Scale/2.00)',\n 'PATH_INFO': u'/api/login/',\n 'PATH_TRANSLATED': '/home/prontovista/prontovista/wsgi.py/api/login/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '83.170.227.48',\n 'REMOTE_PORT': '65519',\n 'REQUEST_METHOD': 'POST',\n 'REQUEST_SCHEME': 'http',\n 'REQUEST_URI': '/api/login/',\n 'SCRIPT_FILENAME': '/home/prontovista/prontovista/wsgi.py',\n 'SCRIPT_NAME': u'',\n 'SERVER_ADDR': '139.162.208.84',\n 'SERVER_ADMIN': '[no address given]',\n 'SERVER_NAME': '139.162.208.84',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SIGNATURE': '<address>Apache/2.4.7 (Ubuntu) Server at 139.162.208.84 Port 80</address>\\n',\n 'SERVER_SOFTWARE': 'Apache/2.4.7 (Ubuntu)',\n 'mod_wsgi.application_group': '139.162.208.84|',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.enable_sendfile': '0',\n 'mod_wsgi.handler_script': '',\n 'mod_wsgi.input_chunked': '0',\n 'mod_wsgi.listener_host': '',\n 'mod_wsgi.listener_port': '80',\n 'mod_wsgi.process_group': 'prontovista',\n 'mod_wsgi.queue_start': '1436370032768707',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.version': (3, 4),\n 'wsgi.errors': <mod_wsgi.Log object at 0x7fc27fc0c3b0>,\n 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7fc27fc56eb8>,\n 'wsgi.input': <mod_wsgi.Input object at 0x7fc27fc0cb70>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>"</pre></td> | |
</tr> | |
<tr> | |
<td>func</td> | |
<td class="code"><pre><function api_login at 0x7fc27fcce9b0></pre></td> | |
</tr> | |
<tr> | |
<td>args</td> | |
<td class="code"><pre>()</pre></td> | |
</tr> | |
<tr> | |
<td>kwargs</td> | |
<td class="code"><pre>{}</pre></td> | |
</tr> | |
</tbody> | |
</table> | |
</li> | |
<li class="frame django"> | |
<code>/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/views/decorators/csrf.py</code> in <code>wrapped_view</code> | |
<div class="context" id="c140473342819648"> | |
<ol start="51" class="pre-context" id="pre140473342819648"> | |
<li onclick="toggle('pre140473342819648', 'post140473342819648')"><pre> """</pre></li> | |
<li onclick="toggle('pre140473342819648', 'post140473342819648')"><pre> Marks a view function as being exempt from the CSRF view protection.</pre></li> | |
<li onclick="toggle('pre140473342819648', 'post140473342819648')"><pre> """</pre></li> | |
<li onclick="toggle('pre140473342819648', 'post140473342819648')"><pre> # We could just do view_func.csrf_exempt = True, but decorators</pre></li> | |
<li onclick="toggle('pre140473342819648', 'post140473342819648')"><pre> # are nicer if they don't have side-effects, so we return a new</pre></li> | |
<li onclick="toggle('pre140473342819648', 'post140473342819648')"><pre> # function.</pre></li> | |
<li onclick="toggle('pre140473342819648', 'post140473342819648')"><pre> def wrapped_view(*args, **kwargs):</pre></li> | |
</ol> | |
<ol start="58" class="context-line"> | |
<li onclick="toggle('pre140473342819648', 'post140473342819648')"><pre> | |
return view_func(*args, **kwargs)</pre> <span>...</span></li></ol> | |
<ol start='59' class="post-context" id="post140473342819648"> | |
<li onclick="toggle('pre140473342819648', 'post140473342819648')"><pre> wrapped_view.csrf_exempt = True</pre></li> | |
<li onclick="toggle('pre140473342819648', 'post140473342819648')"><pre> return wraps(view_func, assigned=available_attrs(view_func))(wrapped_view)</pre></li> | |
</ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '140473342819648')"><span>▶</span> Local vars</a> | |
</div> | |
<table class="vars" id="v140473342819648"> | |
<thead> | |
<tr> | |
<th>Variable</th> | |
<th>Value</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>args</td> | |
<td class="code"><pre>(<WSGIRequest: POST '/api/login/'>,)</pre></td> | |
</tr> | |
<tr> | |
<td>view_func</td> | |
<td class="code"><pre><function api_login at 0x7fc27fcce938></pre></td> | |
</tr> | |
<tr> | |
<td>kwargs</td> | |
<td class="code"><pre>{}</pre></td> | |
</tr> | |
</tbody> | |
</table> | |
</li> | |
<li class="frame user"> | |
<code>/home/prontovista/prontovista/accounts/api.py</code> in <code>api_login</code> | |
<div class="context" id="c140473343469688"> | |
<ol start="79" class="pre-context" id="pre140473343469688"> | |
<li onclick="toggle('pre140473343469688', 'post140473343469688')"><pre> else:</pre></li> | |
<li onclick="toggle('pre140473343469688', 'post140473343469688')"><pre> expires_at = None</pre></li> | |
<li onclick="toggle('pre140473343469688', 'post140473343469688')"><pre> SocialToken.objects.create(</pre></li> | |
<li onclick="toggle('pre140473343469688', 'post140473343469688')"><pre> app=social_app,</pre></li> | |
<li onclick="toggle('pre140473343469688', 'post140473343469688')"><pre> account=social_account,</pre></li> | |
<li onclick="toggle('pre140473343469688', 'post140473343469688')"><pre> token=token,</pre></li> | |
<li onclick="toggle('pre140473343469688', 'post140473343469688')"><pre> token_secret=token_secret,</pre></li> | |
</ol> | |
<ol start="86" class="context-line"> | |
<li onclick="toggle('pre140473343469688', 'post140473343469688')"><pre> | |
expires_at=expires_at</pre> <span>...</span></li></ol> | |
<ol start='87' class="post-context" id="post140473343469688"> | |
<li onclick="toggle('pre140473343469688', 'post140473343469688')"><pre> )</pre></li> | |
<li onclick="toggle('pre140473343469688', 'post140473343469688')"><pre></pre></li> | |
<li onclick="toggle('pre140473343469688', 'post140473343469688')"><pre> tokens = user.accesstoken_set.filter(expires__gt=timezone.now(), scope='app').order_by('-expires')</pre></li> | |
<li onclick="toggle('pre140473343469688', 'post140473343469688')"><pre> if tokens:</pre></li> | |
<li onclick="toggle('pre140473343469688', 'post140473343469688')"><pre> token = tokens.first()</pre></li> | |
<li onclick="toggle('pre140473343469688', 'post140473343469688')"><pre> else:</pre></li> | |
</ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '140473343469688')"><span>▶</span> Local vars</a> | |
</div> | |
<table class="vars" id="v140473343469688"> | |
<thead> | |
<tr> | |
<th>Variable</th> | |
<th>Value</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>first_name</td> | |
<td class="code"><pre>u'berry'</pre></td> | |
</tr> | |
<tr> | |
<td>last_name</td> | |
<td class="code"><pre>u' test'</pre></td> | |
</tr> | |
<tr> | |
<td>uid</td> | |
<td class="code"><pre>u'118064698005477220672'</pre></td> | |
</tr> | |
<tr> | |
<td>social_account</td> | |
<td class="code"><pre><SocialAccount: berry.test></pre></td> | |
</tr> | |
<tr> | |
<td>app_secret</td> | |
<td class="code"><pre>u'0c-bc20zu(b@h(wrp@xb+#v@%a8&amp;vpzfpvdk1#=m+u0+*)sf_9'</pre></td> | |
</tr> | |
<tr> | |
<td>social_app</td> | |
<td class="code"><pre><SocialApp: google></pre></td> | |
</tr> | |
<tr> | |
<td>request</td> | |
<td class="code"><pre>"<WSGIRequest\npath:/api/login/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {u'first_name': [u'berry'], u'last_name': [u' test'], u'uid': [u'118064698005477220672'], u'app_secret': [u'0c-bc20zu(b@h(wrp@xb+#v@%a8&amp;vpzfpvdk1#=m+u0+*)sf_9'], u'expires_at': [u'2015/07/08 19:40:24'], u'token': [u'eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g'], u'social': [u'google'], u'email': [u'[email protected]']}>,\nCOOKIES:{},\nMETA:{'CONTENT_LENGTH': '1703',\n 'CONTENT_TYPE': 'multipart/form-data; boundary=Boundary+61B344F38C0ADC62',\n 'CONTEXT_DOCUMENT_ROOT': '/home/prontovista/prontovista/',\n 'CONTEXT_PREFIX': '',\n u'CSRF_COOKIE': u'xsSPJM3plQnj3bYgiHLhIYNJwhlXF7eL',\n 'DOCUMENT_ROOT': '/home/prontovista/prontovista/',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',\n 'HTTP_ACCEPT_LANGUAGE': 'en;q=1',\n 'HTTP_CONNECTION': 'keep-alive',\n 'HTTP_HOST': '139.162.208.84',\n 'HTTP_USER_AGENT': 'ProntoVista/1.0 (iPhone Simulator; iOS 8.1; Scale/2.00)',\n 'PATH_INFO': u'/api/login/',\n 'PATH_TRANSLATED': '/home/prontovista/prontovista/wsgi.py/api/login/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '83.170.227.48',\n 'REMOTE_PORT': '65519',\n 'REQUEST_METHOD': 'POST',\n 'REQUEST_SCHEME': 'http',\n 'REQUEST_URI': '/api/login/',\n 'SCRIPT_FILENAME': '/home/prontovista/prontovista/wsgi.py',\n 'SCRIPT_NAME': u'',\n 'SERVER_ADDR': '139.162.208.84',\n 'SERVER_ADMIN': '[no address given]',\n 'SERVER_NAME': '139.162.208.84',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SIGNATURE': '<address>Apache/2.4.7 (Ubuntu) Server at 139.162.208.84 Port 80</address>\\n',\n 'SERVER_SOFTWARE': 'Apache/2.4.7 (Ubuntu)',\n 'mod_wsgi.application_group': '139.162.208.84|',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.enable_sendfile': '0',\n 'mod_wsgi.handler_script': '',\n 'mod_wsgi.input_chunked': '0',\n 'mod_wsgi.listener_host': '',\n 'mod_wsgi.listener_port': '80',\n 'mod_wsgi.process_group': 'prontovista',\n 'mod_wsgi.queue_start': '1436370032768707',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.version': (3, 4),\n 'wsgi.errors': <mod_wsgi.Log object at 0x7fc27fc0c3b0>,\n 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7fc27fc56eb8>,\n 'wsgi.input': <mod_wsgi.Input object at 0x7fc27fc0cb70>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>"</pre></td> | |
</tr> | |
<tr> | |
<td>expires_at</td> | |
<td class="code"><pre>datetime.datetime(2015, 7, 8, 19, 40, 24)</pre></td> | |
</tr> | |
<tr> | |
<td>field</td> | |
<td class="code"><pre>'token'</pre></td> | |
</tr> | |
<tr> | |
<td>token</td> | |
<td class="code"><pre>u'eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g'</pre></td> | |
</tr> | |
<tr> | |
<td>user</td> | |
<td class="code"><pre><User: berry.test></pre></td> | |
</tr> | |
<tr> | |
<td>social</td> | |
<td class="code"><pre>u'google'</pre></td> | |
</tr> | |
<tr> | |
<td>data</td> | |
<td class="code"><pre><QueryDict: {u'first_name': [u'berry'], u'last_name': [u' test'], u'uid': [u'118064698005477220672'], u'app_secret': [u'0c-bc20zu(b@h(wrp@xb+#v@%a8&amp;vpzfpvdk1#=m+u0+*)sf_9'], u'expires_at': [u'2015/07/08 19:40:24'], u'token': [u'eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g'], u'social': [u'google'], u'email': [u'[email protected]']}></pre></td> | |
</tr> | |
<tr> | |
<td>email</td> | |
<td class="code"><pre>u'[email protected]'</pre></td> | |
</tr> | |
<tr> | |
<td>token_secret</td> | |
<td class="code"><pre>None</pre></td> | |
</tr> | |
</tbody> | |
</table> | |
</li> | |
<li class="frame django"> | |
<code>/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/models/manager.py</code> in <code>manager_method</code> | |
<div class="context" id="c140473343470696"> | |
<ol start="120" class="pre-context" id="pre140473343470696"> | |
<li onclick="toggle('pre140473343470696', 'post140473343470696')"><pre> def check(self, **kwargs):</pre></li> | |
<li onclick="toggle('pre140473343470696', 'post140473343470696')"><pre> return []</pre></li> | |
<li onclick="toggle('pre140473343470696', 'post140473343470696')"><pre></pre></li> | |
<li onclick="toggle('pre140473343470696', 'post140473343470696')"><pre> @classmethod</pre></li> | |
<li onclick="toggle('pre140473343470696', 'post140473343470696')"><pre> def _get_queryset_methods(cls, queryset_class):</pre></li> | |
<li onclick="toggle('pre140473343470696', 'post140473343470696')"><pre> def create_method(name, method):</pre></li> | |
<li onclick="toggle('pre140473343470696', 'post140473343470696')"><pre> def manager_method(self, *args, **kwargs):</pre></li> | |
</ol> | |
<ol start="127" class="context-line"> | |
<li onclick="toggle('pre140473343470696', 'post140473343470696')"><pre> | |
return getattr(self.get_queryset(), name)(*args, **kwargs)</pre> <span>...</span></li></ol> | |
<ol start='128' class="post-context" id="post140473343470696"> | |
<li onclick="toggle('pre140473343470696', 'post140473343470696')"><pre> manager_method.__name__ = method.__name__</pre></li> | |
<li onclick="toggle('pre140473343470696', 'post140473343470696')"><pre> manager_method.__doc__ = method.__doc__</pre></li> | |
<li onclick="toggle('pre140473343470696', 'post140473343470696')"><pre> return manager_method</pre></li> | |
<li onclick="toggle('pre140473343470696', 'post140473343470696')"><pre></pre></li> | |
<li onclick="toggle('pre140473343470696', 'post140473343470696')"><pre> new_methods = {}</pre></li> | |
<li onclick="toggle('pre140473343470696', 'post140473343470696')"><pre> # Refs http://bugs.python.org/issue1785.</pre></li> | |
</ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '140473343470696')"><span>▶</span> Local vars</a> | |
</div> | |
<table class="vars" id="v140473343470696"> | |
<thead> | |
<tr> | |
<th>Variable</th> | |
<th>Value</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>self</td> | |
<td class="code"><pre><django.db.models.manager.Manager object at 0x7fc2802b6450></pre></td> | |
</tr> | |
<tr> | |
<td>args</td> | |
<td class="code"><pre>()</pre></td> | |
</tr> | |
<tr> | |
<td>name</td> | |
<td class="code"><pre>'create'</pre></td> | |
</tr> | |
<tr> | |
<td>kwargs</td> | |
<td class="code"><pre>{'account': <SocialAccount: berry.test>, | |
'app': <SocialApp: google>, | |
'expires_at': datetime.datetime(2015, 7, 8, 19, 40, 24), | |
'token': u'eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g', | |
'token_secret': None}</pre></td> | |
</tr> | |
</tbody> | |
</table> | |
</li> | |
<li class="frame django"> | |
<code>/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/models/query.py</code> in <code>create</code> | |
<div class="context" id="c140473343469040"> | |
<ol start="341" class="pre-context" id="pre140473343469040"> | |
<li onclick="toggle('pre140473343469040', 'post140473343469040')"><pre> def create(self, **kwargs):</pre></li> | |
<li onclick="toggle('pre140473343469040', 'post140473343469040')"><pre> """</pre></li> | |
<li onclick="toggle('pre140473343469040', 'post140473343469040')"><pre> Creates a new object with the given kwargs, saving it to the database</pre></li> | |
<li onclick="toggle('pre140473343469040', 'post140473343469040')"><pre> and returning the created object.</pre></li> | |
<li onclick="toggle('pre140473343469040', 'post140473343469040')"><pre> """</pre></li> | |
<li onclick="toggle('pre140473343469040', 'post140473343469040')"><pre> obj = self.model(**kwargs)</pre></li> | |
<li onclick="toggle('pre140473343469040', 'post140473343469040')"><pre> self._for_write = True</pre></li> | |
</ol> | |
<ol start="348" class="context-line"> | |
<li onclick="toggle('pre140473343469040', 'post140473343469040')"><pre> | |
obj.save(force_insert=True, using=self.db)</pre> <span>...</span></li></ol> | |
<ol start='349' class="post-context" id="post140473343469040"> | |
<li onclick="toggle('pre140473343469040', 'post140473343469040')"><pre> return obj</pre></li> | |
<li onclick="toggle('pre140473343469040', 'post140473343469040')"><pre></pre></li> | |
<li onclick="toggle('pre140473343469040', 'post140473343469040')"><pre> def _populate_pk_values(self, objs):</pre></li> | |
<li onclick="toggle('pre140473343469040', 'post140473343469040')"><pre> for obj in objs:</pre></li> | |
<li onclick="toggle('pre140473343469040', 'post140473343469040')"><pre> if obj.pk is None:</pre></li> | |
<li onclick="toggle('pre140473343469040', 'post140473343469040')"><pre> obj.pk = obj._meta.pk.get_pk_value_on_save(obj)</pre></li> | |
</ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '140473343469040')"><span>▶</span> Local vars</a> | |
</div> | |
<table class="vars" id="v140473343469040"> | |
<thead> | |
<tr> | |
<th>Variable</th> | |
<th>Value</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>self</td> | |
<td class="code"><pre>[<SocialToken: token>, <SocialToken: token>, <SocialToken: token>, <SocialToken: eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6ImpIREEyVmx1bjZRTHRBT3c1Q0xFNEEiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzYyMjUwLCJleHAiOjE0MzYzNjU4NTB9.qkvJX-cZum440VGZTGND2IvYaTtYqUi0cwiq1uhpe8Qth-06OTiExBaaI28dEG6Al-Y0NCqZEvdA-KZ5oKbVPrS6Tz9ZpY-oK4Zu2-gBq-v2Yk8tPJohnPD3xgU2GIEkCMM54_ffxa0kC48ujUAOoAeIbcdLqbbmY0EgkgH-GZhPtlMe4SaUY2PLYINzEXkH1RYZGPZKf3GA0c9MEV9mask_i8D_yhLUSCmweVO_PggkjIfmRb0vnQHxWHma6xvbC9ejhGsHQesx-TtlxxJbuC4kTDCkwDMg2gkPxBqaBjeTv2k93KOTtM8ot4XtEJgYpR1NWe9vrYCCKl8Xl_8C3A>]</pre></td> | |
</tr> | |
<tr> | |
<td>obj</td> | |
<td class="code"><pre><SocialToken: eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g></pre></td> | |
</tr> | |
<tr> | |
<td>kwargs</td> | |
<td class="code"><pre>{'account': <SocialAccount: berry.test>, | |
'app': <SocialApp: google>, | |
'expires_at': datetime.datetime(2015, 7, 8, 19, 40, 24), | |
'token': u'eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g', | |
'token_secret': None}</pre></td> | |
</tr> | |
</tbody> | |
</table> | |
</li> | |
<li class="frame django"> | |
<code>/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/models/base.py</code> in <code>save</code> | |
<div class="context" id="c140473343471344"> | |
<ol start="703" class="pre-context" id="pre140473343471344"> | |
<li onclick="toggle('pre140473343471344', 'post140473343471344')"><pre> ]</pre></li> | |
<li onclick="toggle('pre140473343471344', 'post140473343471344')"><pre></pre></li> | |
<li onclick="toggle('pre140473343471344', 'post140473343471344')"><pre> loaded_fields = field_names.difference(deferred_fields)</pre></li> | |
<li onclick="toggle('pre140473343471344', 'post140473343471344')"><pre> if loaded_fields:</pre></li> | |
<li onclick="toggle('pre140473343471344', 'post140473343471344')"><pre> update_fields = frozenset(loaded_fields)</pre></li> | |
<li onclick="toggle('pre140473343471344', 'post140473343471344')"><pre></pre></li> | |
<li onclick="toggle('pre140473343471344', 'post140473343471344')"><pre> self.save_base(using=using, force_insert=force_insert,</pre></li> | |
</ol> | |
<ol start="710" class="context-line"> | |
<li onclick="toggle('pre140473343471344', 'post140473343471344')"><pre> | |
force_update=force_update, update_fields=update_fields)</pre> <span>...</span></li></ol> | |
<ol start='711' class="post-context" id="post140473343471344"> | |
<li onclick="toggle('pre140473343471344', 'post140473343471344')"><pre> save.alters_data = True</pre></li> | |
<li onclick="toggle('pre140473343471344', 'post140473343471344')"><pre></pre></li> | |
<li onclick="toggle('pre140473343471344', 'post140473343471344')"><pre> def save_base(self, raw=False, force_insert=False,</pre></li> | |
<li onclick="toggle('pre140473343471344', 'post140473343471344')"><pre> force_update=False, using=None, update_fields=None):</pre></li> | |
<li onclick="toggle('pre140473343471344', 'post140473343471344')"><pre> """</pre></li> | |
<li onclick="toggle('pre140473343471344', 'post140473343471344')"><pre> Handles the parts of saving which should be done only once per save,</pre></li> | |
</ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '140473343471344')"><span>▶</span> Local vars</a> | |
</div> | |
<table class="vars" id="v140473343471344"> | |
<thead> | |
<tr> | |
<th>Variable</th> | |
<th>Value</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>update_fields</td> | |
<td class="code"><pre>None</pre></td> | |
</tr> | |
<tr> | |
<td>using</td> | |
<td class="code"><pre>'default'</pre></td> | |
</tr> | |
<tr> | |
<td>self</td> | |
<td class="code"><pre><SocialToken: eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g></pre></td> | |
</tr> | |
<tr> | |
<td>force_update</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>force_insert</td> | |
<td class="code"><pre>True</pre></td> | |
</tr> | |
</tbody> | |
</table> | |
</li> | |
<li class="frame django"> | |
<code>/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/models/base.py</code> in <code>save_base</code> | |
<div class="context" id="c140473343470264"> | |
<ol start="731" class="pre-context" id="pre140473343470264"> | |
<li onclick="toggle('pre140473343470264', 'post140473343470264')"><pre> meta = cls._meta</pre></li> | |
<li onclick="toggle('pre140473343470264', 'post140473343470264')"><pre> if not meta.auto_created:</pre></li> | |
<li onclick="toggle('pre140473343470264', 'post140473343470264')"><pre> signals.pre_save.send(sender=origin, instance=self, raw=raw, using=using,</pre></li> | |
<li onclick="toggle('pre140473343470264', 'post140473343470264')"><pre> update_fields=update_fields)</pre></li> | |
<li onclick="toggle('pre140473343470264', 'post140473343470264')"><pre> with transaction.atomic(using=using, savepoint=False):</pre></li> | |
<li onclick="toggle('pre140473343470264', 'post140473343470264')"><pre> if not raw:</pre></li> | |
<li onclick="toggle('pre140473343470264', 'post140473343470264')"><pre> self._save_parents(cls, using, update_fields)</pre></li> | |
</ol> | |
<ol start="738" class="context-line"> | |
<li onclick="toggle('pre140473343470264', 'post140473343470264')"><pre> | |
updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)</pre> <span>...</span></li></ol> | |
<ol start='739' class="post-context" id="post140473343470264"> | |
<li onclick="toggle('pre140473343470264', 'post140473343470264')"><pre> # Store the database on which the object was saved</pre></li> | |
<li onclick="toggle('pre140473343470264', 'post140473343470264')"><pre> self._state.db = using</pre></li> | |
<li onclick="toggle('pre140473343470264', 'post140473343470264')"><pre> # Once saved, this is no longer a to-be-added instance.</pre></li> | |
<li onclick="toggle('pre140473343470264', 'post140473343470264')"><pre> self._state.adding = False</pre></li> | |
<li onclick="toggle('pre140473343470264', 'post140473343470264')"><pre></pre></li> | |
<li onclick="toggle('pre140473343470264', 'post140473343470264')"><pre> # Signal that the save is complete</pre></li> | |
</ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '140473343470264')"><span>▶</span> Local vars</a> | |
</div> | |
<table class="vars" id="v140473343470264"> | |
<thead> | |
<tr> | |
<th>Variable</th> | |
<th>Value</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>origin</td> | |
<td class="code"><pre><class 'allauth.socialaccount.models.SocialToken'></pre></td> | |
</tr> | |
<tr> | |
<td>update_fields</td> | |
<td class="code"><pre>None</pre></td> | |
</tr> | |
<tr> | |
<td>force_insert</td> | |
<td class="code"><pre>True</pre></td> | |
</tr> | |
<tr> | |
<td>self</td> | |
<td class="code"><pre><SocialToken: eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g></pre></td> | |
</tr> | |
<tr> | |
<td>force_update</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>raw</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>meta</td> | |
<td class="code"><pre><Options for SocialToken></pre></td> | |
</tr> | |
<tr> | |
<td>using</td> | |
<td class="code"><pre>'default'</pre></td> | |
</tr> | |
<tr> | |
<td>cls</td> | |
<td class="code"><pre><class 'allauth.socialaccount.models.SocialToken'></pre></td> | |
</tr> | |
</tbody> | |
</table> | |
</li> | |
<li class="frame django"> | |
<code>/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/models/base.py</code> in <code>_save_table</code> | |
<div class="context" id="c140473343470480"> | |
<ol start="815" class="pre-context" id="pre140473343470480"> | |
<li onclick="toggle('pre140473343470480', 'post140473343470480')"><pre> self._order = order_value</pre></li> | |
<li onclick="toggle('pre140473343470480', 'post140473343470480')"><pre></pre></li> | |
<li onclick="toggle('pre140473343470480', 'post140473343470480')"><pre> fields = meta.local_concrete_fields</pre></li> | |
<li onclick="toggle('pre140473343470480', 'post140473343470480')"><pre> if not pk_set:</pre></li> | |
<li onclick="toggle('pre140473343470480', 'post140473343470480')"><pre> fields = [f for f in fields if not isinstance(f, AutoField)]</pre></li> | |
<li onclick="toggle('pre140473343470480', 'post140473343470480')"><pre></pre></li> | |
<li onclick="toggle('pre140473343470480', 'post140473343470480')"><pre> update_pk = bool(meta.has_auto_field and not pk_set)</pre></li> | |
</ol> | |
<ol start="822" class="context-line"> | |
<li onclick="toggle('pre140473343470480', 'post140473343470480')"><pre> | |
result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)</pre> <span>...</span></li></ol> | |
<ol start='823' class="post-context" id="post140473343470480"> | |
<li onclick="toggle('pre140473343470480', 'post140473343470480')"><pre> if update_pk:</pre></li> | |
<li onclick="toggle('pre140473343470480', 'post140473343470480')"><pre> setattr(self, meta.pk.attname, result)</pre></li> | |
<li onclick="toggle('pre140473343470480', 'post140473343470480')"><pre> return updated</pre></li> | |
<li onclick="toggle('pre140473343470480', 'post140473343470480')"><pre></pre></li> | |
<li onclick="toggle('pre140473343470480', 'post140473343470480')"><pre> def _do_update(self, base_qs, using, pk_val, values, update_fields, forced_update):</pre></li> | |
<li onclick="toggle('pre140473343470480', 'post140473343470480')"><pre> """</pre></li> | |
</ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '140473343470480')"><span>▶</span> Local vars</a> | |
</div> | |
<table class="vars" id="v140473343470480"> | |
<thead> | |
<tr> | |
<th>Variable</th> | |
<th>Value</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>update_fields</td> | |
<td class="code"><pre>None</pre></td> | |
</tr> | |
<tr> | |
<td>non_pks</td> | |
<td class="code"><pre>[<django.db.models.fields.related.ForeignKey: app>, | |
<django.db.models.fields.related.ForeignKey: account>, | |
<django.db.models.fields.TextField: token>, | |
<django.db.models.fields.TextField: token_secret>, | |
<django.db.models.fields.DateTimeField: expires_at>]</pre></td> | |
</tr> | |
<tr> | |
<td>updated</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>f</td> | |
<td class="code"><pre><django.db.models.fields.DateTimeField: expires_at></pre></td> | |
</tr> | |
<tr> | |
<td>fields</td> | |
<td class="code"><pre>[<django.db.models.fields.related.ForeignKey: app>, | |
<django.db.models.fields.related.ForeignKey: account>, | |
<django.db.models.fields.TextField: token>, | |
<django.db.models.fields.TextField: token_secret>, | |
<django.db.models.fields.DateTimeField: expires_at>]</pre></td> | |
</tr> | |
<tr> | |
<td>self</td> | |
<td class="code"><pre><SocialToken: eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g></pre></td> | |
</tr> | |
<tr> | |
<td>force_update</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>raw</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>meta</td> | |
<td class="code"><pre><Options for SocialToken></pre></td> | |
</tr> | |
<tr> | |
<td>update_pk</td> | |
<td class="code"><pre>True</pre></td> | |
</tr> | |
<tr> | |
<td>pk_val</td> | |
<td class="code"><pre>None</pre></td> | |
</tr> | |
<tr> | |
<td>pk_set</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>using</td> | |
<td class="code"><pre>'default'</pre></td> | |
</tr> | |
<tr> | |
<td>force_insert</td> | |
<td class="code"><pre>True</pre></td> | |
</tr> | |
<tr> | |
<td>cls</td> | |
<td class="code"><pre><class 'allauth.socialaccount.models.SocialToken'></pre></td> | |
</tr> | |
</tbody> | |
</table> | |
</li> | |
<li class="frame django"> | |
<code>/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/models/base.py</code> in <code>_do_insert</code> | |
<div class="context" id="c140473343470624"> | |
<ol start="854" class="pre-context" id="pre140473343470624"> | |
<li onclick="toggle('pre140473343470624', 'post140473343470624')"><pre></pre></li> | |
<li onclick="toggle('pre140473343470624', 'post140473343470624')"><pre> def _do_insert(self, manager, using, fields, update_pk, raw):</pre></li> | |
<li onclick="toggle('pre140473343470624', 'post140473343470624')"><pre> """</pre></li> | |
<li onclick="toggle('pre140473343470624', 'post140473343470624')"><pre> Do an INSERT. If update_pk is defined then this method should return</pre></li> | |
<li onclick="toggle('pre140473343470624', 'post140473343470624')"><pre> the new pk for the model.</pre></li> | |
<li onclick="toggle('pre140473343470624', 'post140473343470624')"><pre> """</pre></li> | |
<li onclick="toggle('pre140473343470624', 'post140473343470624')"><pre> return manager._insert([self], fields=fields, return_id=update_pk,</pre></li> | |
</ol> | |
<ol start="861" class="context-line"> | |
<li onclick="toggle('pre140473343470624', 'post140473343470624')"><pre> | |
using=using, raw=raw)</pre> <span>...</span></li></ol> | |
<ol start='862' class="post-context" id="post140473343470624"> | |
<li onclick="toggle('pre140473343470624', 'post140473343470624')"><pre></pre></li> | |
<li onclick="toggle('pre140473343470624', 'post140473343470624')"><pre> def delete(self, using=None):</pre></li> | |
<li onclick="toggle('pre140473343470624', 'post140473343470624')"><pre> using = using or router.db_for_write(self.__class__, instance=self)</pre></li> | |
<li onclick="toggle('pre140473343470624', 'post140473343470624')"><pre> assert self._get_pk_val() is not None, (</pre></li> | |
<li onclick="toggle('pre140473343470624', 'post140473343470624')"><pre> "%s object can't be deleted because its %s attribute is set to None." %</pre></li> | |
<li onclick="toggle('pre140473343470624', 'post140473343470624')"><pre> (self._meta.object_name, self._meta.pk.attname)</pre></li> | |
</ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '140473343470624')"><span>▶</span> Local vars</a> | |
</div> | |
<table class="vars" id="v140473343470624"> | |
<thead> | |
<tr> | |
<th>Variable</th> | |
<th>Value</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>fields</td> | |
<td class="code"><pre>[<django.db.models.fields.related.ForeignKey: app>, | |
<django.db.models.fields.related.ForeignKey: account>, | |
<django.db.models.fields.TextField: token>, | |
<django.db.models.fields.TextField: token_secret>, | |
<django.db.models.fields.DateTimeField: expires_at>]</pre></td> | |
</tr> | |
<tr> | |
<td>self</td> | |
<td class="code"><pre><SocialToken: eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g></pre></td> | |
</tr> | |
<tr> | |
<td>raw</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>manager</td> | |
<td class="code"><pre><django.db.models.manager.Manager object at 0x7fc2802b6450></pre></td> | |
</tr> | |
<tr> | |
<td>using</td> | |
<td class="code"><pre>'default'</pre></td> | |
</tr> | |
<tr> | |
<td>update_pk</td> | |
<td class="code"><pre>True</pre></td> | |
</tr> | |
</tbody> | |
</table> | |
</li> | |
<li class="frame django"> | |
<code>/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/models/manager.py</code> in <code>manager_method</code> | |
<div class="context" id="c140473343468824"> | |
<ol start="120" class="pre-context" id="pre140473343468824"> | |
<li onclick="toggle('pre140473343468824', 'post140473343468824')"><pre> def check(self, **kwargs):</pre></li> | |
<li onclick="toggle('pre140473343468824', 'post140473343468824')"><pre> return []</pre></li> | |
<li onclick="toggle('pre140473343468824', 'post140473343468824')"><pre></pre></li> | |
<li onclick="toggle('pre140473343468824', 'post140473343468824')"><pre> @classmethod</pre></li> | |
<li onclick="toggle('pre140473343468824', 'post140473343468824')"><pre> def _get_queryset_methods(cls, queryset_class):</pre></li> | |
<li onclick="toggle('pre140473343468824', 'post140473343468824')"><pre> def create_method(name, method):</pre></li> | |
<li onclick="toggle('pre140473343468824', 'post140473343468824')"><pre> def manager_method(self, *args, **kwargs):</pre></li> | |
</ol> | |
<ol start="127" class="context-line"> | |
<li onclick="toggle('pre140473343468824', 'post140473343468824')"><pre> | |
return getattr(self.get_queryset(), name)(*args, **kwargs)</pre> <span>...</span></li></ol> | |
<ol start='128' class="post-context" id="post140473343468824"> | |
<li onclick="toggle('pre140473343468824', 'post140473343468824')"><pre> manager_method.__name__ = method.__name__</pre></li> | |
<li onclick="toggle('pre140473343468824', 'post140473343468824')"><pre> manager_method.__doc__ = method.__doc__</pre></li> | |
<li onclick="toggle('pre140473343468824', 'post140473343468824')"><pre> return manager_method</pre></li> | |
<li onclick="toggle('pre140473343468824', 'post140473343468824')"><pre></pre></li> | |
<li onclick="toggle('pre140473343468824', 'post140473343468824')"><pre> new_methods = {}</pre></li> | |
<li onclick="toggle('pre140473343468824', 'post140473343468824')"><pre> # Refs http://bugs.python.org/issue1785.</pre></li> | |
</ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '140473343468824')"><span>▶</span> Local vars</a> | |
</div> | |
<table class="vars" id="v140473343468824"> | |
<thead> | |
<tr> | |
<th>Variable</th> | |
<th>Value</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>self</td> | |
<td class="code"><pre><django.db.models.manager.Manager object at 0x7fc2802b6450></pre></td> | |
</tr> | |
<tr> | |
<td>args</td> | |
<td class="code"><pre>([<SocialToken: eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g>],)</pre></td> | |
</tr> | |
<tr> | |
<td>name</td> | |
<td class="code"><pre>'_insert'</pre></td> | |
</tr> | |
<tr> | |
<td>kwargs</td> | |
<td class="code"><pre>{'fields': [<django.db.models.fields.related.ForeignKey: app>, | |
<django.db.models.fields.related.ForeignKey: account>, | |
<django.db.models.fields.TextField: token>, | |
<django.db.models.fields.TextField: token_secret>, | |
<django.db.models.fields.DateTimeField: expires_at>], | |
'raw': False, | |
'return_id': True, | |
'using': 'default'}</pre></td> | |
</tr> | |
</tbody> | |
</table> | |
</li> | |
<li class="frame django"> | |
<code>/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/models/query.py</code> in <code>_insert</code> | |
<div class="context" id="c140473343470120"> | |
<ol start="913" class="pre-context" id="pre140473343470120"> | |
<li onclick="toggle('pre140473343470120', 'post140473343470120')"><pre> the InsertQuery class and is how Model.save() is implemented.</pre></li> | |
<li onclick="toggle('pre140473343470120', 'post140473343470120')"><pre> """</pre></li> | |
<li onclick="toggle('pre140473343470120', 'post140473343470120')"><pre> self._for_write = True</pre></li> | |
<li onclick="toggle('pre140473343470120', 'post140473343470120')"><pre> if using is None:</pre></li> | |
<li onclick="toggle('pre140473343470120', 'post140473343470120')"><pre> using = self.db</pre></li> | |
<li onclick="toggle('pre140473343470120', 'post140473343470120')"><pre> query = sql.InsertQuery(self.model)</pre></li> | |
<li onclick="toggle('pre140473343470120', 'post140473343470120')"><pre> query.insert_values(fields, objs, raw=raw)</pre></li> | |
</ol> | |
<ol start="920" class="context-line"> | |
<li onclick="toggle('pre140473343470120', 'post140473343470120')"><pre> | |
return query.get_compiler(using=using).execute_sql(return_id)</pre> <span>...</span></li></ol> | |
<ol start='921' class="post-context" id="post140473343470120"> | |
<li onclick="toggle('pre140473343470120', 'post140473343470120')"><pre> _insert.alters_data = True</pre></li> | |
<li onclick="toggle('pre140473343470120', 'post140473343470120')"><pre> _insert.queryset_only = False</pre></li> | |
<li onclick="toggle('pre140473343470120', 'post140473343470120')"><pre></pre></li> | |
<li onclick="toggle('pre140473343470120', 'post140473343470120')"><pre> def _batched_insert(self, objs, fields, batch_size):</pre></li> | |
<li onclick="toggle('pre140473343470120', 'post140473343470120')"><pre> """</pre></li> | |
<li onclick="toggle('pre140473343470120', 'post140473343470120')"><pre> A little helper method for bulk_insert to insert the bulk one batch</pre></li> | |
</ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '140473343470120')"><span>▶</span> Local vars</a> | |
</div> | |
<table class="vars" id="v140473343470120"> | |
<thead> | |
<tr> | |
<th>Variable</th> | |
<th>Value</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>objs</td> | |
<td class="code"><pre>[<SocialToken: eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g>]</pre></td> | |
</tr> | |
<tr> | |
<td>fields</td> | |
<td class="code"><pre>[<django.db.models.fields.related.ForeignKey: app>, | |
<django.db.models.fields.related.ForeignKey: account>, | |
<django.db.models.fields.TextField: token>, | |
<django.db.models.fields.TextField: token_secret>, | |
<django.db.models.fields.DateTimeField: expires_at>]</pre></td> | |
</tr> | |
<tr> | |
<td>self</td> | |
<td class="code"><pre>[<SocialToken: token>, <SocialToken: token>, <SocialToken: token>, <SocialToken: eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6ImpIREEyVmx1bjZRTHRBT3c1Q0xFNEEiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzYyMjUwLCJleHAiOjE0MzYzNjU4NTB9.qkvJX-cZum440VGZTGND2IvYaTtYqUi0cwiq1uhpe8Qth-06OTiExBaaI28dEG6Al-Y0NCqZEvdA-KZ5oKbVPrS6Tz9ZpY-oK4Zu2-gBq-v2Yk8tPJohnPD3xgU2GIEkCMM54_ffxa0kC48ujUAOoAeIbcdLqbbmY0EgkgH-GZhPtlMe4SaUY2PLYINzEXkH1RYZGPZKf3GA0c9MEV9mask_i8D_yhLUSCmweVO_PggkjIfmRb0vnQHxWHma6xvbC9ejhGsHQesx-TtlxxJbuC4kTDCkwDMg2gkPxBqaBjeTv2k93KOTtM8ot4XtEJgYpR1NWe9vrYCCKl8Xl_8C3A>]</pre></td> | |
</tr> | |
<tr> | |
<td>return_id</td> | |
<td class="code"><pre>True</pre></td> | |
</tr> | |
<tr> | |
<td>raw</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>query</td> | |
<td class="code"><pre><django.db.models.sql.subqueries.InsertQuery object at 0x7fc27fa553d0></pre></td> | |
</tr> | |
<tr> | |
<td>using</td> | |
<td class="code"><pre>'default'</pre></td> | |
</tr> | |
</tbody> | |
</table> | |
</li> | |
<li class="frame django"> | |
<code>/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/models/sql/compiler.py</code> in <code>execute_sql</code> | |
<div class="context" id="c140473343637840"> | |
<ol start="967" class="pre-context" id="pre140473343637840"> | |
<li onclick="toggle('pre140473343637840', 'post140473343637840')"><pre> ]</pre></li> | |
<li onclick="toggle('pre140473343637840', 'post140473343637840')"><pre></pre></li> | |
<li onclick="toggle('pre140473343637840', 'post140473343637840')"><pre> def execute_sql(self, return_id=False):</pre></li> | |
<li onclick="toggle('pre140473343637840', 'post140473343637840')"><pre> assert not (return_id and len(self.query.objs) != 1)</pre></li> | |
<li onclick="toggle('pre140473343637840', 'post140473343637840')"><pre> self.return_id = return_id</pre></li> | |
<li onclick="toggle('pre140473343637840', 'post140473343637840')"><pre> with self.connection.cursor() as cursor:</pre></li> | |
<li onclick="toggle('pre140473343637840', 'post140473343637840')"><pre> for sql, params in self.as_sql():</pre></li> | |
</ol> | |
<ol start="974" class="context-line"> | |
<li onclick="toggle('pre140473343637840', 'post140473343637840')"><pre> | |
cursor.execute(sql, params)</pre> <span>...</span></li></ol> | |
<ol start='975' class="post-context" id="post140473343637840"> | |
<li onclick="toggle('pre140473343637840', 'post140473343637840')"><pre> if not (return_id and cursor):</pre></li> | |
<li onclick="toggle('pre140473343637840', 'post140473343637840')"><pre> return</pre></li> | |
<li onclick="toggle('pre140473343637840', 'post140473343637840')"><pre> if self.connection.features.can_return_id_from_insert:</pre></li> | |
<li onclick="toggle('pre140473343637840', 'post140473343637840')"><pre> return self.connection.ops.fetch_returned_insert_id(cursor)</pre></li> | |
<li onclick="toggle('pre140473343637840', 'post140473343637840')"><pre> return self.connection.ops.last_insert_id(cursor,</pre></li> | |
<li onclick="toggle('pre140473343637840', 'post140473343637840')"><pre> self.query.get_meta().db_table, self.query.get_meta().pk.column)</pre></li> | |
</ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '140473343637840')"><span>▶</span> Local vars</a> | |
</div> | |
<table class="vars" id="v140473343637840"> | |
<thead> | |
<tr> | |
<th>Variable</th> | |
<th>Value</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>cursor</td> | |
<td class="code"><pre><django.db.backends.utils.CursorDebugWrapper object at 0x7fc27fa55610></pre></td> | |
</tr> | |
<tr> | |
<td>self</td> | |
<td class="code"><pre><django.db.models.sql.compiler.SQLInsertCompiler object at 0x7fc27fa55210></pre></td> | |
</tr> | |
<tr> | |
<td>return_id</td> | |
<td class="code"><pre>True</pre></td> | |
</tr> | |
<tr> | |
<td>params</td> | |
<td class="code"><pre>(2, | |
5, | |
u'eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g', | |
None, | |
datetime.datetime(2015, 7, 8, 19, 40, 24, tzinfo=<django.utils.timezone.LocalTimezone object at 0x7fc2929fdd50>))</pre></td> | |
</tr> | |
<tr> | |
<td>sql</td> | |
<td class="code"><pre>u'INSERT INTO "socialaccount_socialtoken" ("app_id", "account_id", "token", "token_secret", "expires_at") VALUES (%s, %s, %s, %s, %s) RETURNING "socialaccount_socialtoken"."id"'</pre></td> | |
</tr> | |
</tbody> | |
</table> | |
</li> | |
<li class="frame django"> | |
<code>/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/backends/utils.py</code> in <code>execute</code> | |
<div class="context" id="c140473343528760"> | |
<ol start="72" class="pre-context" id="pre140473343528760"> | |
<li onclick="toggle('pre140473343528760', 'post140473343528760')"><pre>class CursorDebugWrapper(CursorWrapper):</pre></li> | |
<li onclick="toggle('pre140473343528760', 'post140473343528760')"><pre></pre></li> | |
<li onclick="toggle('pre140473343528760', 'post140473343528760')"><pre> # XXX callproc isn't instrumented at this time.</pre></li> | |
<li onclick="toggle('pre140473343528760', 'post140473343528760')"><pre></pre></li> | |
<li onclick="toggle('pre140473343528760', 'post140473343528760')"><pre> def execute(self, sql, params=None):</pre></li> | |
<li onclick="toggle('pre140473343528760', 'post140473343528760')"><pre> start = time()</pre></li> | |
<li onclick="toggle('pre140473343528760', 'post140473343528760')"><pre> try:</pre></li> | |
</ol> | |
<ol start="79" class="context-line"> | |
<li onclick="toggle('pre140473343528760', 'post140473343528760')"><pre> | |
return super(CursorDebugWrapper, self).execute(sql, params)</pre> <span>...</span></li></ol> | |
<ol start='80' class="post-context" id="post140473343528760"> | |
<li onclick="toggle('pre140473343528760', 'post140473343528760')"><pre> finally:</pre></li> | |
<li onclick="toggle('pre140473343528760', 'post140473343528760')"><pre> stop = time()</pre></li> | |
<li onclick="toggle('pre140473343528760', 'post140473343528760')"><pre> duration = stop - start</pre></li> | |
<li onclick="toggle('pre140473343528760', 'post140473343528760')"><pre> sql = self.db.ops.last_executed_query(self.cursor, sql, params)</pre></li> | |
<li onclick="toggle('pre140473343528760', 'post140473343528760')"><pre> self.db.queries_log.append({</pre></li> | |
<li onclick="toggle('pre140473343528760', 'post140473343528760')"><pre> 'sql': sql,</pre></li> | |
</ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '140473343528760')"><span>▶</span> Local vars</a> | |
</div> | |
<table class="vars" id="v140473343528760"> | |
<thead> | |
<tr> | |
<th>Variable</th> | |
<th>Value</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>self</td> | |
<td class="code"><pre><django.db.backends.utils.CursorDebugWrapper object at 0x7fc27fa55610></pre></td> | |
</tr> | |
<tr> | |
<td>stop</td> | |
<td class="code"><pre>1436370032.80493</pre></td> | |
</tr> | |
<tr> | |
<td>start</td> | |
<td class="code"><pre>1436370032.804226</pre></td> | |
</tr> | |
<tr> | |
<td>params</td> | |
<td class="code"><pre>(2, | |
5, | |
u'eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g', | |
None, | |
datetime.datetime(2015, 7, 8, 19, 40, 24, tzinfo=<django.utils.timezone.LocalTimezone object at 0x7fc2929fdd50>))</pre></td> | |
</tr> | |
<tr> | |
<td>sql</td> | |
<td class="code"><pre>u'INSERT INTO "socialaccount_socialtoken" ("app_id", "account_id", "token", "token_secret", "expires_at") VALUES (2, 5, \'eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g\', NULL, \'2015-07-08T19:40:24+01:00\'::timestamptz) RETURNING "socialaccount_socialtoken"."id"'</pre></td> | |
</tr> | |
<tr> | |
<td>duration</td> | |
<td class="code"><pre>0.0007040500640869141</pre></td> | |
</tr> | |
</tbody> | |
</table> | |
</li> | |
<li class="frame django"> | |
<code>/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/backends/utils.py</code> in <code>execute</code> | |
<div class="context" id="c140473343338544"> | |
<ol start="57" class="pre-context" id="pre140473343338544"> | |
<li onclick="toggle('pre140473343338544', 'post140473343338544')"><pre></pre></li> | |
<li onclick="toggle('pre140473343338544', 'post140473343338544')"><pre> def execute(self, sql, params=None):</pre></li> | |
<li onclick="toggle('pre140473343338544', 'post140473343338544')"><pre> self.db.validate_no_broken_transaction()</pre></li> | |
<li onclick="toggle('pre140473343338544', 'post140473343338544')"><pre> with self.db.wrap_database_errors:</pre></li> | |
<li onclick="toggle('pre140473343338544', 'post140473343338544')"><pre> if params is None:</pre></li> | |
<li onclick="toggle('pre140473343338544', 'post140473343338544')"><pre> return self.cursor.execute(sql)</pre></li> | |
<li onclick="toggle('pre140473343338544', 'post140473343338544')"><pre> else:</pre></li> | |
</ol> | |
<ol start="64" class="context-line"> | |
<li onclick="toggle('pre140473343338544', 'post140473343338544')"><pre> | |
return self.cursor.execute(sql, params)</pre> <span>...</span></li></ol> | |
<ol start='65' class="post-context" id="post140473343338544"> | |
<li onclick="toggle('pre140473343338544', 'post140473343338544')"><pre></pre></li> | |
<li onclick="toggle('pre140473343338544', 'post140473343338544')"><pre> def executemany(self, sql, param_list):</pre></li> | |
<li onclick="toggle('pre140473343338544', 'post140473343338544')"><pre> self.db.validate_no_broken_transaction()</pre></li> | |
<li onclick="toggle('pre140473343338544', 'post140473343338544')"><pre> with self.db.wrap_database_errors:</pre></li> | |
<li onclick="toggle('pre140473343338544', 'post140473343338544')"><pre> return self.cursor.executemany(sql, param_list)</pre></li> | |
<li onclick="toggle('pre140473343338544', 'post140473343338544')"><pre></pre></li> | |
</ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '140473343338544')"><span>▶</span> Local vars</a> | |
</div> | |
<table class="vars" id="v140473343338544"> | |
<thead> | |
<tr> | |
<th>Variable</th> | |
<th>Value</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>self</td> | |
<td class="code"><pre><django.db.backends.utils.CursorDebugWrapper object at 0x7fc27fa55610></pre></td> | |
</tr> | |
<tr> | |
<td>params</td> | |
<td class="code"><pre>(2, | |
5, | |
u'eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g', | |
None, | |
datetime.datetime(2015, 7, 8, 19, 40, 24, tzinfo=<django.utils.timezone.LocalTimezone object at 0x7fc2929fdd50>))</pre></td> | |
</tr> | |
<tr> | |
<td>sql</td> | |
<td class="code"><pre>u'INSERT INTO "socialaccount_socialtoken" ("app_id", "account_id", "token", "token_secret", "expires_at") VALUES (%s, %s, %s, %s, %s) RETURNING "socialaccount_socialtoken"."id"'</pre></td> | |
</tr> | |
</tbody> | |
</table> | |
</li> | |
<li class="frame django"> | |
<code>/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/utils.py</code> in <code>__exit__</code> | |
<div class="context" id="c140473343775664"> | |
<ol start="90" class="pre-context" id="pre140473343775664"> | |
<li onclick="toggle('pre140473343775664', 'post140473343775664')"><pre> if issubclass(exc_type, db_exc_type):</pre></li> | |
<li onclick="toggle('pre140473343775664', 'post140473343775664')"><pre> dj_exc_value = dj_exc_type(*exc_value.args)</pre></li> | |
<li onclick="toggle('pre140473343775664', 'post140473343775664')"><pre> dj_exc_value.__cause__ = exc_value</pre></li> | |
<li onclick="toggle('pre140473343775664', 'post140473343775664')"><pre> # Only set the 'errors_occurred' flag for errors that may make</pre></li> | |
<li onclick="toggle('pre140473343775664', 'post140473343775664')"><pre> # the connection unusable.</pre></li> | |
<li onclick="toggle('pre140473343775664', 'post140473343775664')"><pre> if dj_exc_type not in (DataError, IntegrityError):</pre></li> | |
<li onclick="toggle('pre140473343775664', 'post140473343775664')"><pre> self.wrapper.errors_occurred = True</pre></li> | |
</ol> | |
<ol start="97" class="context-line"> | |
<li onclick="toggle('pre140473343775664', 'post140473343775664')"><pre> | |
six.reraise(dj_exc_type, dj_exc_value, traceback)</pre> <span>...</span></li></ol> | |
<ol start='98' class="post-context" id="post140473343775664"> | |
<li onclick="toggle('pre140473343775664', 'post140473343775664')"><pre></pre></li> | |
<li onclick="toggle('pre140473343775664', 'post140473343775664')"><pre> def __call__(self, func):</pre></li> | |
<li onclick="toggle('pre140473343775664', 'post140473343775664')"><pre> # Note that we are intentionally not using @wraps here for performance</pre></li> | |
<li onclick="toggle('pre140473343775664', 'post140473343775664')"><pre> # reasons. Refs #21109.</pre></li> | |
<li onclick="toggle('pre140473343775664', 'post140473343775664')"><pre> def inner(*args, **kwargs):</pre></li> | |
<li onclick="toggle('pre140473343775664', 'post140473343775664')"><pre> with self:</pre></li> | |
</ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '140473343775664')"><span>▶</span> Local vars</a> | |
</div> | |
<table class="vars" id="v140473343775664"> | |
<thead> | |
<tr> | |
<th>Variable</th> | |
<th>Value</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>self</td> | |
<td class="code"><pre><django.db.utils.DatabaseErrorWrapper object at 0x7fc27fc4c210></pre></td> | |
</tr> | |
<tr> | |
<td>traceback</td> | |
<td class="code"><pre><traceback object at 0x7fc27fc65f38></pre></td> | |
</tr> | |
<tr> | |
<td>exc_type</td> | |
<td class="code"><pre><class 'psycopg2.IntegrityError'></pre></td> | |
</tr> | |
<tr> | |
<td>dj_exc_type</td> | |
<td class="code"><pre><class 'django.db.utils.IntegrityError'></pre></td> | |
</tr> | |
<tr> | |
<td>dj_exc_value</td> | |
<td class="code"><pre>IntegrityError('null value in column "token_secret" violates not-null constraint\nDETAIL: Failing row contains (22, eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMx..., null, 2015-07-08 18:40:24+00, 5, 2).\n',)</pre></td> | |
</tr> | |
<tr> | |
<td>exc_value</td> | |
<td class="code"><pre>IntegrityError('null value in column "token_secret" violates not-null constraint\nDETAIL: Failing row contains (22, eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMx..., null, 2015-07-08 18:40:24+00, 5, 2).\n',)</pre></td> | |
</tr> | |
<tr> | |
<td>db_exc_type</td> | |
<td class="code"><pre><class 'psycopg2.IntegrityError'></pre></td> | |
</tr> | |
</tbody> | |
</table> | |
</li> | |
<li class="frame django"> | |
<code>/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/backends/utils.py</code> in <code>execute</code> | |
<div class="context" id="c140473344089912"> | |
<ol start="57" class="pre-context" id="pre140473344089912"> | |
<li onclick="toggle('pre140473344089912', 'post140473344089912')"><pre></pre></li> | |
<li onclick="toggle('pre140473344089912', 'post140473344089912')"><pre> def execute(self, sql, params=None):</pre></li> | |
<li onclick="toggle('pre140473344089912', 'post140473344089912')"><pre> self.db.validate_no_broken_transaction()</pre></li> | |
<li onclick="toggle('pre140473344089912', 'post140473344089912')"><pre> with self.db.wrap_database_errors:</pre></li> | |
<li onclick="toggle('pre140473344089912', 'post140473344089912')"><pre> if params is None:</pre></li> | |
<li onclick="toggle('pre140473344089912', 'post140473344089912')"><pre> return self.cursor.execute(sql)</pre></li> | |
<li onclick="toggle('pre140473344089912', 'post140473344089912')"><pre> else:</pre></li> | |
</ol> | |
<ol start="64" class="context-line"> | |
<li onclick="toggle('pre140473344089912', 'post140473344089912')"><pre> | |
return self.cursor.execute(sql, params)</pre> <span>...</span></li></ol> | |
<ol start='65' class="post-context" id="post140473344089912"> | |
<li onclick="toggle('pre140473344089912', 'post140473344089912')"><pre></pre></li> | |
<li onclick="toggle('pre140473344089912', 'post140473344089912')"><pre> def executemany(self, sql, param_list):</pre></li> | |
<li onclick="toggle('pre140473344089912', 'post140473344089912')"><pre> self.db.validate_no_broken_transaction()</pre></li> | |
<li onclick="toggle('pre140473344089912', 'post140473344089912')"><pre> with self.db.wrap_database_errors:</pre></li> | |
<li onclick="toggle('pre140473344089912', 'post140473344089912')"><pre> return self.cursor.executemany(sql, param_list)</pre></li> | |
<li onclick="toggle('pre140473344089912', 'post140473344089912')"><pre></pre></li> | |
</ol> | |
</div> | |
<div class="commands"> | |
<a href="#" onclick="return varToggle(this, '140473344089912')"><span>▶</span> Local vars</a> | |
</div> | |
<table class="vars" id="v140473344089912"> | |
<thead> | |
<tr> | |
<th>Variable</th> | |
<th>Value</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>self</td> | |
<td class="code"><pre><django.db.backends.utils.CursorDebugWrapper object at 0x7fc27fa55610></pre></td> | |
</tr> | |
<tr> | |
<td>params</td> | |
<td class="code"><pre>(2, | |
5, | |
u'eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g', | |
None, | |
datetime.datetime(2015, 7, 8, 19, 40, 24, tzinfo=<django.utils.timezone.LocalTimezone object at 0x7fc2929fdd50>))</pre></td> | |
</tr> | |
<tr> | |
<td>sql</td> | |
<td class="code"><pre>u'INSERT INTO "socialaccount_socialtoken" ("app_id", "account_id", "token", "token_secret", "expires_at") VALUES (%s, %s, %s, %s, %s) RETURNING "socialaccount_socialtoken"."id"'</pre></td> | |
</tr> | |
</tbody> | |
</table> | |
</li> | |
</ul> | |
</div> | |
<form action="http://dpaste.com/" name="pasteform" id="pasteform" method="post"> | |
<div id="pastebinTraceback" class="pastebin"> | |
<input type="hidden" name="language" value="PythonConsole"> | |
<input type="hidden" name="title" | |
value="IntegrityError at /api/login/"> | |
<input type="hidden" name="source" value="Django Dpaste Agent"> | |
<input type="hidden" name="poster" value="Django"> | |
<textarea name="content" id="traceback_area" cols="140" rows="25"> | |
Environment: | |
Request Method: POST | |
Request URL: http://139.162.208.84/api/login/ | |
Django Version: 1.8.2 | |
Python Version: 2.7.6 | |
Installed Applications: | |
('admin_tools', | |
'admin_tools.theming', | |
'admin_tools.menu', | |
'admin_tools.dashboard', | |
'django.contrib.auth', | |
'django.contrib.contenttypes', | |
'django.contrib.sessions', | |
'django.contrib.sites', | |
'django.contrib.messages', | |
'django.contrib.staticfiles', | |
'django.contrib.admin', | |
'django.contrib.gis', | |
'accounts', | |
'oauth2_provider', | |
'rest_framework', | |
'allauth', | |
'allauth.socialaccount', | |
'allauth.socialaccount.providers.facebook', | |
'allauth.socialaccount.providers.google', | |
'main', | |
'floppyforms') | |
Installed Middleware: | |
('django.middleware.common.CommonMiddleware', | |
'django.contrib.sessions.middleware.SessionMiddleware', | |
'django.middleware.csrf.CsrfViewMiddleware', | |
'django.contrib.auth.middleware.AuthenticationMiddleware', | |
'django.contrib.messages.middleware.MessageMiddleware') | |
Traceback: | |
File "/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response | |
132. response = wrapped_callback(request, *callback_args, **callback_kwargs) | |
File "/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/views/decorators/http.py" in inner | |
45. return func(request, *args, **kwargs) | |
File "/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/views/decorators/csrf.py" in wrapped_view | |
58. return view_func(*args, **kwargs) | |
File "/home/prontovista/prontovista/accounts/api.py" in api_login | |
86. expires_at=expires_at | |
File "/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/models/manager.py" in manager_method | |
127. return getattr(self.get_queryset(), name)(*args, **kwargs) | |
File "/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/models/query.py" in create | |
348. obj.save(force_insert=True, using=self.db) | |
File "/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/models/base.py" in save | |
710. force_update=force_update, update_fields=update_fields) | |
File "/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/models/base.py" in save_base | |
738. updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields) | |
File "/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/models/base.py" in _save_table | |
822. result = self._do_insert(cls._base_manager, using, fields, update_pk, raw) | |
File "/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/models/base.py" in _do_insert | |
861. using=using, raw=raw) | |
File "/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/models/manager.py" in manager_method | |
127. return getattr(self.get_queryset(), name)(*args, **kwargs) | |
File "/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/models/query.py" in _insert | |
920. return query.get_compiler(using=using).execute_sql(return_id) | |
File "/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in execute_sql | |
974. cursor.execute(sql, params) | |
File "/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/backends/utils.py" in execute | |
79. return super(CursorDebugWrapper, self).execute(sql, params) | |
File "/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/backends/utils.py" in execute | |
64. return self.cursor.execute(sql, params) | |
File "/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/utils.py" in __exit__ | |
97. six.reraise(dj_exc_type, dj_exc_value, traceback) | |
File "/home/prontovista/prontovista/.env/lib/python2.7/site-packages/django/db/backends/utils.py" in execute | |
64. return self.cursor.execute(sql, params) | |
Exception Type: IntegrityError at /api/login/ | |
Exception Value: null value in column "token_secret" violates not-null constraint | |
DETAIL: Failing row contains (22, eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMx..., null, 2015-07-08 18:40:24+00, 5, 2). | |
</textarea> | |
<br><br> | |
<input type="submit" value="Share this traceback on a public Web site"> | |
</div> | |
</form> | |
</div> | |
<div id="requestinfo"> | |
<h2>Request information</h2> | |
<h3 id="get-info">GET</h3> | |
<p>No GET data</p> | |
<h3 id="post-info">POST</h3> | |
<table class="req"> | |
<thead> | |
<tr> | |
<th>Variable</th> | |
<th>Value</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>first_name</td> | |
<td class="code"><pre>u'berry'</pre></td> | |
</tr> | |
<tr> | |
<td>last_name</td> | |
<td class="code"><pre>u' test'</pre></td> | |
</tr> | |
<tr> | |
<td>uid</td> | |
<td class="code"><pre>u'118064698005477220672'</pre></td> | |
</tr> | |
<tr> | |
<td>app_secret</td> | |
<td class="code"><pre>u'0c-bc20zu(b@h(wrp@xb+#v@%a8&amp;vpzfpvdk1#=m+u0+*)sf_9'</pre></td> | |
</tr> | |
<tr> | |
<td>expires_at</td> | |
<td class="code"><pre>u'2015/07/08 19:40:24'</pre></td> | |
</tr> | |
<tr> | |
<td>token</td> | |
<td class="code"><pre>u'eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g'</pre></td> | |
</tr> | |
<tr> | |
<td>social</td> | |
<td class="code"><pre>u'google'</pre></td> | |
</tr> | |
<tr> | |
<td>email</td> | |
<td class="code"><pre>u'[email protected]'</pre></td> | |
</tr> | |
</tbody> | |
</table> | |
<h3 id="files-info">FILES</h3> | |
<p>No FILES data</p> | |
<h3 id="cookie-info">COOKIES</h3> | |
<p>No cookie data</p> | |
<h3 id="meta-info">META</h3> | |
<table class="req"> | |
<thead> | |
<tr> | |
<th>Variable</th> | |
<th>Value</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>mod_wsgi.listener_port</td> | |
<td class="code"><pre>'80'</pre></td> | |
</tr> | |
<tr> | |
<td>mod_wsgi.listener_host</td> | |
<td class="code"><pre>''</pre></td> | |
</tr> | |
<tr> | |
<td>CONTEXT_DOCUMENT_ROOT</td> | |
<td class="code"><pre>'/home/prontovista/prontovista/'</pre></td> | |
</tr> | |
<tr> | |
<td>SERVER_SOFTWARE</td> | |
<td class="code"><pre>'Apache/2.4.7 (Ubuntu)'</pre></td> | |
</tr> | |
<tr> | |
<td>SCRIPT_NAME</td> | |
<td class="code"><pre>u''</pre></td> | |
</tr> | |
<tr> | |
<td>mod_wsgi.enable_sendfile</td> | |
<td class="code"><pre>'0'</pre></td> | |
</tr> | |
<tr> | |
<td>mod_wsgi.handler_script</td> | |
<td class="code"><pre>''</pre></td> | |
</tr> | |
<tr> | |
<td>SERVER_SIGNATURE</td> | |
<td class="code"><pre>'<address>Apache/2.4.7 (Ubuntu) Server at 139.162.208.84 Port 80</address>\n'</pre></td> | |
</tr> | |
<tr> | |
<td>REQUEST_METHOD</td> | |
<td class="code"><pre>'POST'</pre></td> | |
</tr> | |
<tr> | |
<td>PATH_INFO</td> | |
<td class="code"><pre>u'/api/login/'</pre></td> | |
</tr> | |
<tr> | |
<td>SERVER_PROTOCOL</td> | |
<td class="code"><pre>'HTTP/1.1'</pre></td> | |
</tr> | |
<tr> | |
<td>QUERY_STRING</td> | |
<td class="code"><pre>''</pre></td> | |
</tr> | |
<tr> | |
<td>CONTENT_LENGTH</td> | |
<td class="code"><pre>'1703'</pre></td> | |
</tr> | |
<tr> | |
<td>HTTP_USER_AGENT</td> | |
<td class="code"><pre>'ProntoVista/1.0 (iPhone Simulator; iOS 8.1; Scale/2.00)'</pre></td> | |
</tr> | |
<tr> | |
<td>HTTP_CONNECTION</td> | |
<td class="code"><pre>'keep-alive'</pre></td> | |
</tr> | |
<tr> | |
<td>SERVER_NAME</td> | |
<td class="code"><pre>'139.162.208.84'</pre></td> | |
</tr> | |
<tr> | |
<td>REMOTE_ADDR</td> | |
<td class="code"><pre>'83.170.227.48'</pre></td> | |
</tr> | |
<tr> | |
<td>mod_wsgi.queue_start</td> | |
<td class="code"><pre>'1436370032768707'</pre></td> | |
</tr> | |
<tr> | |
<td>mod_wsgi.request_handler</td> | |
<td class="code"><pre>'wsgi-script'</pre></td> | |
</tr> | |
<tr> | |
<td>wsgi.url_scheme</td> | |
<td class="code"><pre>'http'</pre></td> | |
</tr> | |
<tr> | |
<td>PATH_TRANSLATED</td> | |
<td class="code"><pre>'/home/prontovista/prontovista/wsgi.py/api/login/'</pre></td> | |
</tr> | |
<tr> | |
<td>SERVER_PORT</td> | |
<td class="code"><pre>'80'</pre></td> | |
</tr> | |
<tr> | |
<td>wsgi.multiprocess</td> | |
<td class="code"><pre>True</pre></td> | |
</tr> | |
<tr> | |
<td>mod_wsgi.input_chunked</td> | |
<td class="code"><pre>'0'</pre></td> | |
</tr> | |
<tr> | |
<td>SERVER_ADDR</td> | |
<td class="code"><pre>'139.162.208.84'</pre></td> | |
</tr> | |
<tr> | |
<td>DOCUMENT_ROOT</td> | |
<td class="code"><pre>'/home/prontovista/prontovista/'</pre></td> | |
</tr> | |
<tr> | |
<td>mod_wsgi.process_group</td> | |
<td class="code"><pre>'prontovista'</pre></td> | |
</tr> | |
<tr> | |
<td>SCRIPT_FILENAME</td> | |
<td class="code"><pre>'/home/prontovista/prontovista/wsgi.py'</pre></td> | |
</tr> | |
<tr> | |
<td>SERVER_ADMIN</td> | |
<td class="code"><pre>'[no address given]'</pre></td> | |
</tr> | |
<tr> | |
<td>wsgi.input</td> | |
<td class="code"><pre><mod_wsgi.Input object at 0x7fc27fc0cb70></pre></td> | |
</tr> | |
<tr> | |
<td>HTTP_HOST</td> | |
<td class="code"><pre>'139.162.208.84'</pre></td> | |
</tr> | |
<tr> | |
<td>CONTEXT_PREFIX</td> | |
<td class="code"><pre>''</pre></td> | |
</tr> | |
<tr> | |
<td>wsgi.multithread</td> | |
<td class="code"><pre>True</pre></td> | |
</tr> | |
<tr> | |
<td>mod_wsgi.callable_object</td> | |
<td class="code"><pre>'application'</pre></td> | |
</tr> | |
<tr> | |
<td>REQUEST_URI</td> | |
<td class="code"><pre>'/api/login/'</pre></td> | |
</tr> | |
<tr> | |
<td>HTTP_ACCEPT</td> | |
<td class="code"><pre>'*/*'</pre></td> | |
</tr> | |
<tr> | |
<td>wsgi.version</td> | |
<td class="code"><pre>(1, 0)</pre></td> | |
</tr> | |
<tr> | |
<td>GATEWAY_INTERFACE</td> | |
<td class="code"><pre>'CGI/1.1'</pre></td> | |
</tr> | |
<tr> | |
<td>wsgi.run_once</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>wsgi.errors</td> | |
<td class="code"><pre><mod_wsgi.Log object at 0x7fc27fc0c3b0></pre></td> | |
</tr> | |
<tr> | |
<td>REMOTE_PORT</td> | |
<td class="code"><pre>'65519'</pre></td> | |
</tr> | |
<tr> | |
<td>HTTP_ACCEPT_LANGUAGE</td> | |
<td class="code"><pre>'en;q=1'</pre></td> | |
</tr> | |
<tr> | |
<td>REQUEST_SCHEME</td> | |
<td class="code"><pre>'http'</pre></td> | |
</tr> | |
<tr> | |
<td>mod_wsgi.version</td> | |
<td class="code"><pre>(3, 4)</pre></td> | |
</tr> | |
<tr> | |
<td>CONTENT_TYPE</td> | |
<td class="code"><pre>'multipart/form-data; boundary=Boundary+61B344F38C0ADC62'</pre></td> | |
</tr> | |
<tr> | |
<td>mod_wsgi.application_group</td> | |
<td class="code"><pre>'139.162.208.84|'</pre></td> | |
</tr> | |
<tr> | |
<td>mod_wsgi.script_reloading</td> | |
<td class="code"><pre>'1'</pre></td> | |
</tr> | |
<tr> | |
<td>wsgi.file_wrapper</td> | |
<td class="code"><pre>''</pre></td> | |
</tr> | |
<tr> | |
<td>CSRF_COOKIE</td> | |
<td class="code"><pre>u'xsSPJM3plQnj3bYgiHLhIYNJwhlXF7eL'</pre></td> | |
</tr> | |
<tr> | |
<td>HTTP_ACCEPT_ENCODING</td> | |
<td class="code"><pre>'gzip, deflate'</pre></td> | |
</tr> | |
</tbody> | |
</table> | |
<h3 id="settings-info">Settings</h3> | |
<h4>Using settings module <code>settings</code></h4> | |
<table class="req"> | |
<thead> | |
<tr> | |
<th>Setting</th> | |
<th>Value</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>SECURE_BROWSER_XSS_FILTER</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>USE_THOUSAND_SEPARATOR</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>CSRF_COOKIE_SECURE</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>LANGUAGE_CODE</td> | |
<td class="code"><pre>'en-us'</pre></td> | |
</tr> | |
<tr> | |
<td>ROOT_URLCONF</td> | |
<td class="code"><pre>'urls'</pre></td> | |
</tr> | |
<tr> | |
<td>MANAGERS</td> | |
<td class="code"><pre>()</pre></td> | |
</tr> | |
<tr> | |
<td>BASE_DIR</td> | |
<td class="code"><pre>'/home/prontovista/prontovista'</pre></td> | |
</tr> | |
<tr> | |
<td>SILENCED_SYSTEM_CHECKS</td> | |
<td class="code"><pre>[]</pre></td> | |
</tr> | |
<tr> | |
<td>DEFAULT_CHARSET</td> | |
<td class="code"><pre>'utf-8'</pre></td> | |
</tr> | |
<tr> | |
<td>SESSION_SERIALIZER</td> | |
<td class="code"><pre>'django.contrib.sessions.serializers.JSONSerializer'</pre></td> | |
</tr> | |
<tr> | |
<td>STATIC_ROOT</td> | |
<td class="code"><pre>'/home/prontovista/prontovista/collected_static'</pre></td> | |
</tr> | |
<tr> | |
<td>ALLOWED_HOSTS</td> | |
<td class="code"><pre>[]</pre></td> | |
</tr> | |
<tr> | |
<td>MESSAGE_STORAGE</td> | |
<td class="code"><pre>'django.contrib.messages.storage.fallback.FallbackStorage'</pre></td> | |
</tr> | |
<tr> | |
<td>EMAIL_SUBJECT_PREFIX</td> | |
<td class="code"><pre>'[Django] '</pre></td> | |
</tr> | |
<tr> | |
<td>SERVER_EMAIL</td> | |
<td class="code"><pre>'root@localhost'</pre></td> | |
</tr> | |
<tr> | |
<td>SECURE_HSTS_SECONDS</td> | |
<td class="code"><pre>0</pre></td> | |
</tr> | |
<tr> | |
<td>STATICFILES_FINDERS</td> | |
<td class="code"><pre>('django.contrib.staticfiles.finders.FileSystemFinder', | |
'django.contrib.staticfiles.finders.AppDirectoriesFinder')</pre></td> | |
</tr> | |
<tr> | |
<td>SESSION_CACHE_ALIAS</td> | |
<td class="code"><pre>'default'</pre></td> | |
</tr> | |
<tr> | |
<td>SESSION_COOKIE_DOMAIN</td> | |
<td class="code"><pre>None</pre></td> | |
</tr> | |
<tr> | |
<td>SESSION_COOKIE_NAME</td> | |
<td class="code"><pre>'sessionid'</pre></td> | |
</tr> | |
<tr> | |
<td>TIME_INPUT_FORMATS</td> | |
<td class="code"><pre>('%H:%M:%S', '%H:%M:%S.%f', '%H:%M')</pre></td> | |
</tr> | |
<tr> | |
<td>SECURE_REDIRECT_EXEMPT</td> | |
<td class="code"><pre>[]</pre></td> | |
</tr> | |
<tr> | |
<td>DATABASES</td> | |
<td class="code"><pre>{'default': {'ATOMIC_REQUESTS': False, | |
'AUTOCOMMIT': True, | |
'CONN_MAX_AGE': 0, | |
'ENGINE': 'django.contrib.gis.db.backends.postgis', | |
'HOST': '127.0.0.1', | |
'NAME': 'prontovista', | |
'OPTIONS': {}, | |
'PASSWORD': u'********************', | |
'PORT': '5432', | |
'STORAGE_ENGINE': 'INNODB', | |
'TEST': {'CHARSET': None, | |
'COLLATION': None, | |
'MIRROR': None, | |
'NAME': None}, | |
'TIME_ZONE': 'UTC', | |
'USER': 'postgres'}}</pre></td> | |
</tr> | |
<tr> | |
<td>EMAIL_SSL_KEYFILE</td> | |
<td class="code"><pre>u'********************'</pre></td> | |
</tr> | |
<tr> | |
<td>FILE_UPLOAD_DIRECTORY_PERMISSIONS</td> | |
<td class="code"><pre>None</pre></td> | |
</tr> | |
<tr> | |
<td>FILE_UPLOAD_PERMISSIONS</td> | |
<td class="code"><pre>None</pre></td> | |
</tr> | |
<tr> | |
<td>FILE_UPLOAD_HANDLERS</td> | |
<td class="code"><pre>('django.core.files.uploadhandler.MemoryFileUploadHandler', | |
'django.core.files.uploadhandler.TemporaryFileUploadHandler')</pre></td> | |
</tr> | |
<tr> | |
<td>DEFAULT_CONTENT_TYPE</td> | |
<td class="code"><pre>'text/html'</pre></td> | |
</tr> | |
<tr> | |
<td>APPEND_SLASH</td> | |
<td class="code"><pre>True</pre></td> | |
</tr> | |
<tr> | |
<td>LOCALE_PATHS</td> | |
<td class="code"><pre>()</pre></td> | |
</tr> | |
<tr> | |
<td>DATABASE_ROUTERS</td> | |
<td class="code"><pre>[]</pre></td> | |
</tr> | |
<tr> | |
<td>DEFAULT_TABLESPACE</td> | |
<td class="code"><pre>''</pre></td> | |
</tr> | |
<tr> | |
<td>YEAR_MONTH_FORMAT</td> | |
<td class="code"><pre>'F Y'</pre></td> | |
</tr> | |
<tr> | |
<td>STATICFILES_STORAGE</td> | |
<td class="code"><pre>'django.contrib.staticfiles.storage.StaticFilesStorage'</pre></td> | |
</tr> | |
<tr> | |
<td>CACHES</td> | |
<td class="code"><pre>{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}</pre></td> | |
</tr> | |
<tr> | |
<td>SESSION_COOKIE_PATH</td> | |
<td class="code"><pre>'/'</pre></td> | |
</tr> | |
<tr> | |
<td>SECURE_CONTENT_TYPE_NOSNIFF</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>MIDDLEWARE_CLASSES</td> | |
<td class="code"><pre>('django.middleware.common.CommonMiddleware', | |
'django.contrib.sessions.middleware.SessionMiddleware', | |
'django.middleware.csrf.CsrfViewMiddleware', | |
'django.contrib.auth.middleware.AuthenticationMiddleware', | |
'django.contrib.messages.middleware.MessageMiddleware')</pre></td> | |
</tr> | |
<tr> | |
<td>USE_I18N</td> | |
<td class="code"><pre>True</pre></td> | |
</tr> | |
<tr> | |
<td>THOUSAND_SEPARATOR</td> | |
<td class="code"><pre>','</pre></td> | |
</tr> | |
<tr> | |
<td>SECRET_KEY</td> | |
<td class="code"><pre>u'********************'</pre></td> | |
</tr> | |
<tr> | |
<td>LANGUAGE_COOKIE_NAME</td> | |
<td class="code"><pre>'django_language'</pre></td> | |
</tr> | |
<tr> | |
<td>DEFAULT_INDEX_TABLESPACE</td> | |
<td class="code"><pre>''</pre></td> | |
</tr> | |
<tr> | |
<td>LOGGING_CONFIG</td> | |
<td class="code"><pre>'logging.config.dictConfig'</pre></td> | |
</tr> | |
<tr> | |
<td>TEMPLATE_LOADERS</td> | |
<td class="code"><pre>('django.template.loaders.filesystem.Loader', | |
'django.template.loaders.app_directories.Loader')</pre></td> | |
</tr> | |
<tr> | |
<td>FIRST_DAY_OF_WEEK</td> | |
<td class="code"><pre>0</pre></td> | |
</tr> | |
<tr> | |
<td>WSGI_APPLICATION</td> | |
<td class="code"><pre>'wsgi.application'</pre></td> | |
</tr> | |
<tr> | |
<td>TEMPLATE_DEBUG</td> | |
<td class="code"><pre>True</pre></td> | |
</tr> | |
<tr> | |
<td>X_FRAME_OPTIONS</td> | |
<td class="code"><pre>'SAMEORIGIN'</pre></td> | |
</tr> | |
<tr> | |
<td>CSRF_COOKIE_NAME</td> | |
<td class="code"><pre>'csrftoken'</pre></td> | |
</tr> | |
<tr> | |
<td>OAUTH2_PROVIDER</td> | |
<td class="code"><pre>{'SCOPES': {'app': 'app access', 'read': 'Read scope', 'write': 'Write scope'}}</pre></td> | |
</tr> | |
<tr> | |
<td>FORCE_SCRIPT_NAME</td> | |
<td class="code"><pre>None</pre></td> | |
</tr> | |
<tr> | |
<td>USE_X_FORWARDED_HOST</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>EMAIL_TIMEOUT</td> | |
<td class="code"><pre>None</pre></td> | |
</tr> | |
<tr> | |
<td>SECURE_SSL_HOST</td> | |
<td class="code"><pre>None</pre></td> | |
</tr> | |
<tr> | |
<td>SIGNING_BACKEND</td> | |
<td class="code"><pre>'django.core.signing.TimestampSigner'</pre></td> | |
</tr> | |
<tr> | |
<td>SESSION_COOKIE_SECURE</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>CSRF_COOKIE_DOMAIN</td> | |
<td class="code"><pre>None</pre></td> | |
</tr> | |
<tr> | |
<td>FILE_CHARSET</td> | |
<td class="code"><pre>'utf-8'</pre></td> | |
</tr> | |
<tr> | |
<td>DEBUG</td> | |
<td class="code"><pre>True</pre></td> | |
</tr> | |
<tr> | |
<td>LANGUAGE_COOKIE_DOMAIN</td> | |
<td class="code"><pre>None</pre></td> | |
</tr> | |
<tr> | |
<td>DEFAULT_FILE_STORAGE</td> | |
<td class="code"><pre>'django.core.files.storage.FileSystemStorage'</pre></td> | |
</tr> | |
<tr> | |
<td>INSTALLED_APPS</td> | |
<td class="code"><pre>('admin_tools', | |
'admin_tools.theming', | |
'admin_tools.menu', | |
'admin_tools.dashboard', | |
'django.contrib.auth', | |
'django.contrib.contenttypes', | |
'django.contrib.sessions', | |
'django.contrib.sites', | |
'django.contrib.messages', | |
'django.contrib.staticfiles', | |
'django.contrib.admin', | |
'django.contrib.gis', | |
'accounts', | |
'oauth2_provider', | |
'rest_framework', | |
'allauth', | |
'allauth.socialaccount', | |
'allauth.socialaccount.providers.facebook', | |
'allauth.socialaccount.providers.google', | |
'main', | |
'floppyforms')</pre></td> | |
</tr> | |
<tr> | |
<td>LANGUAGES</td> | |
<td class="code"><pre>(('af', 'Afrikaans'), | |
('ar', 'Arabic'), | |
('ast', 'Asturian'), | |
('az', 'Azerbaijani'), | |
('bg', 'Bulgarian'), | |
('be', 'Belarusian'), | |
('bn', 'Bengali'), | |
('br', 'Breton'), | |
('bs', 'Bosnian'), | |
('ca', 'Catalan'), | |
('cs', 'Czech'), | |
('cy', 'Welsh'), | |
('da', 'Danish'), | |
('de', 'German'), | |
('el', 'Greek'), | |
('en', 'English'), | |
('en-au', 'Australian English'), | |
('en-gb', 'British English'), | |
('eo', 'Esperanto'), | |
('es', 'Spanish'), | |
('es-ar', 'Argentinian Spanish'), | |
('es-mx', 'Mexican Spanish'), | |
('es-ni', 'Nicaraguan Spanish'), | |
('es-ve', 'Venezuelan Spanish'), | |
('et', 'Estonian'), | |
('eu', 'Basque'), | |
('fa', 'Persian'), | |
('fi', 'Finnish'), | |
('fr', 'French'), | |
('fy', 'Frisian'), | |
('ga', 'Irish'), | |
('gl', 'Galician'), | |
('he', 'Hebrew'), | |
('hi', 'Hindi'), | |
('hr', 'Croatian'), | |
('hu', 'Hungarian'), | |
('ia', 'Interlingua'), | |
('id', 'Indonesian'), | |
('io', 'Ido'), | |
('is', 'Icelandic'), | |
('it', 'Italian'), | |
('ja', 'Japanese'), | |
('ka', 'Georgian'), | |
('kk', 'Kazakh'), | |
('km', 'Khmer'), | |
('kn', 'Kannada'), | |
('ko', 'Korean'), | |
('lb', 'Luxembourgish'), | |
('lt', 'Lithuanian'), | |
('lv', 'Latvian'), | |
('mk', 'Macedonian'), | |
('ml', 'Malayalam'), | |
('mn', 'Mongolian'), | |
('mr', 'Marathi'), | |
('my', 'Burmese'), | |
('nb', 'Norwegian Bokmal'), | |
('ne', 'Nepali'), | |
('nl', 'Dutch'), | |
('nn', 'Norwegian Nynorsk'), | |
('os', 'Ossetic'), | |
('pa', 'Punjabi'), | |
('pl', 'Polish'), | |
('pt', 'Portuguese'), | |
('pt-br', 'Brazilian Portuguese'), | |
('ro', 'Romanian'), | |
('ru', 'Russian'), | |
('sk', 'Slovak'), | |
('sl', 'Slovenian'), | |
('sq', 'Albanian'), | |
('sr', 'Serbian'), | |
('sr-latn', 'Serbian Latin'), | |
('sv', 'Swedish'), | |
('sw', 'Swahili'), | |
('ta', 'Tamil'), | |
('te', 'Telugu'), | |
('th', 'Thai'), | |
('tr', 'Turkish'), | |
('tt', 'Tatar'), | |
('udm', 'Udmurt'), | |
('uk', 'Ukrainian'), | |
('ur', 'Urdu'), | |
('vi', 'Vietnamese'), | |
('zh-cn', 'Simplified Chinese'), | |
('zh-hans', 'Simplified Chinese'), | |
('zh-hant', 'Traditional Chinese'), | |
('zh-tw', 'Traditional Chinese'))</pre></td> | |
</tr> | |
<tr> | |
<td>USE_L10N</td> | |
<td class="code"><pre>True</pre></td> | |
</tr> | |
<tr> | |
<td>SECURE_HSTS_INCLUDE_SUBDOMAINS</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>STATICFILES_DIRS</td> | |
<td class="code"><pre>()</pre></td> | |
</tr> | |
<tr> | |
<td>PREPEND_WWW</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>SECURE_PROXY_SSL_HEADER</td> | |
<td class="code"><pre>None</pre></td> | |
</tr> | |
<tr> | |
<td>LANGUAGE_COOKIE_AGE</td> | |
<td class="code"><pre>None</pre></td> | |
</tr> | |
<tr> | |
<td>SESSION_COOKIE_HTTPONLY</td> | |
<td class="code"><pre>True</pre></td> | |
</tr> | |
<tr> | |
<td>DEBUG_PROPAGATE_EXCEPTIONS</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>CSRF_COOKIE_AGE</td> | |
<td class="code"><pre>31449600</pre></td> | |
</tr> | |
<tr> | |
<td>MONTH_DAY_FORMAT</td> | |
<td class="code"><pre>'F j'</pre></td> | |
</tr> | |
<tr> | |
<td>LOGIN_URL</td> | |
<td class="code"><pre>'/accounts/login/'</pre></td> | |
</tr> | |
<tr> | |
<td>SESSION_EXPIRE_AT_BROWSER_CLOSE</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>TIME_FORMAT</td> | |
<td class="code"><pre>'P'</pre></td> | |
</tr> | |
<tr> | |
<td>AUTH_USER_MODEL</td> | |
<td class="code"><pre>'accounts.User'</pre></td> | |
</tr> | |
<tr> | |
<td>DATE_INPUT_FORMATS</td> | |
<td class="code"><pre>('%Y-%m-%d', | |
'%m/%d/%Y', | |
'%m/%d/%y', | |
'%b %d %Y', | |
'%b %d, %Y', | |
'%d %b %Y', | |
'%d %b, %Y', | |
'%B %d %Y', | |
'%B %d, %Y', | |
'%d %B %Y', | |
'%d %B, %Y')</pre></td> | |
</tr> | |
<tr> | |
<td>AUTHENTICATION_BACKENDS</td> | |
<td class="code"><pre>('django.contrib.auth.backends.ModelBackend',)</pre></td> | |
</tr> | |
<tr> | |
<td>EMAIL_HOST_PASSWORD</td> | |
<td class="code"><pre>u'********************'</pre></td> | |
</tr> | |
<tr> | |
<td>PASSWORD_RESET_TIMEOUT_DAYS</td> | |
<td class="code"><pre>u'********************'</pre></td> | |
</tr> | |
<tr> | |
<td>SESSION_FILE_PATH</td> | |
<td class="code"><pre>None</pre></td> | |
</tr> | |
<tr> | |
<td>CACHE_MIDDLEWARE_ALIAS</td> | |
<td class="code"><pre>'default'</pre></td> | |
</tr> | |
<tr> | |
<td>SESSION_SAVE_EVERY_REQUEST</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>NUMBER_GROUPING</td> | |
<td class="code"><pre>0</pre></td> | |
</tr> | |
<tr> | |
<td>SESSION_ENGINE</td> | |
<td class="code"><pre>'django.contrib.sessions.backends.db'</pre></td> | |
</tr> | |
<tr> | |
<td>CSRF_FAILURE_VIEW</td> | |
<td class="code"><pre>'django.views.csrf.csrf_failure'</pre></td> | |
</tr> | |
<tr> | |
<td>CSRF_COOKIE_PATH</td> | |
<td class="code"><pre>'/'</pre></td> | |
</tr> | |
<tr> | |
<td>LOGIN_REDIRECT_URL</td> | |
<td class="code"><pre>'/accounts/profile/'</pre></td> | |
</tr> | |
<tr> | |
<td>DECIMAL_SEPARATOR</td> | |
<td class="code"><pre>'.'</pre></td> | |
</tr> | |
<tr> | |
<td>IGNORABLE_404_URLS</td> | |
<td class="code"><pre>()</pre></td> | |
</tr> | |
<tr> | |
<td>MIGRATION_MODULES</td> | |
<td class="code"><pre>{}</pre></td> | |
</tr> | |
<tr> | |
<td>TEMPLATE_STRING_IF_INVALID</td> | |
<td class="code"><pre>''</pre></td> | |
</tr> | |
<tr> | |
<td>LOGOUT_URL</td> | |
<td class="code"><pre>'/accounts/logout/'</pre></td> | |
</tr> | |
<tr> | |
<td>EMAIL_USE_TLS</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>FIXTURE_DIRS</td> | |
<td class="code"><pre>()</pre></td> | |
</tr> | |
<tr> | |
<td>EMAIL_HOST</td> | |
<td class="code"><pre>'localhost'</pre></td> | |
</tr> | |
<tr> | |
<td>DATE_FORMAT</td> | |
<td class="code"><pre>'%Y/%m/%d'</pre></td> | |
</tr> | |
<tr> | |
<td>MEDIA_ROOT</td> | |
<td class="code"><pre>''</pre></td> | |
</tr> | |
<tr> | |
<td>DEFAULT_EXCEPTION_REPORTER_FILTER</td> | |
<td class="code"><pre>'django.views.debug.SafeExceptionReporterFilter'</pre></td> | |
</tr> | |
<tr> | |
<td>ADMINS</td> | |
<td class="code"><pre>()</pre></td> | |
</tr> | |
<tr> | |
<td>FORMAT_MODULE_PATH</td> | |
<td class="code"><pre>None</pre></td> | |
</tr> | |
<tr> | |
<td>DEFAULT_FROM_EMAIL</td> | |
<td class="code"><pre>'webmaster@localhost'</pre></td> | |
</tr> | |
<tr> | |
<td>REST_FRAMEWORK</td> | |
<td class="code"><pre>{'DEFAULT_AUTHENTICATION_CLASSES': ('oauth2_provider.ext.rest_framework.OAuth2Authentication',), | |
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination', | |
'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',), | |
'PAGE_SIZE': 20}</pre></td> | |
</tr> | |
<tr> | |
<td>MEDIA_URL</td> | |
<td class="code"><pre>''</pre></td> | |
</tr> | |
<tr> | |
<td>DATETIME_FORMAT</td> | |
<td class="code"><pre>'%Y/%m/%d %H:%M:%S'</pre></td> | |
</tr> | |
<tr> | |
<td>TEMPLATE_DIRS</td> | |
<td class="code"><pre>()</pre></td> | |
</tr> | |
<tr> | |
<td>SITE_ID</td> | |
<td class="code"><pre>1</pre></td> | |
</tr> | |
<tr> | |
<td>DISALLOWED_USER_AGENTS</td> | |
<td class="code"><pre>()</pre></td> | |
</tr> | |
<tr> | |
<td>ALLOWED_INCLUDE_ROOTS</td> | |
<td class="code"><pre>()</pre></td> | |
</tr> | |
<tr> | |
<td>LOGGING</td> | |
<td class="code"><pre>{'disable_existing_loggers': False, | |
'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, | |
'handlers': {'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', | |
'filters': ['require_debug_false'], | |
'level': 'ERROR'}}, | |
'loggers': {'django.request': {'handlers': ['mail_admins'], | |
'level': 'ERROR', | |
'propagate': True}}, | |
'version': 1}</pre></td> | |
</tr> | |
<tr> | |
<td>SHORT_DATE_FORMAT</td> | |
<td class="code"><pre>'m/d/Y'</pre></td> | |
</tr> | |
<tr> | |
<td>TEMPLATES</td> | |
<td class="code"><pre>[{'APP_DIRS': True, | |
'BACKEND': 'django.template.backends.django.DjangoTemplates', | |
'DIRS': [], | |
'OPTIONS': {'context_processors': ['django.template.context_processors.debug', | |
'django.template.context_processors.request', | |
'django.contrib.auth.context_processors.auth', | |
'django.contrib.messages.context_processors.messages', | |
'django.core.context_processors.static', | |
'allauth.socialaccount.context_processors.socialaccount']}}]</pre></td> | |
</tr> | |
<tr> | |
<td>TEST_RUNNER</td> | |
<td class="code"><pre>'django.test.runner.DiscoverRunner'</pre></td> | |
</tr> | |
<tr> | |
<td>CACHE_MIDDLEWARE_KEY_PREFIX</td> | |
<td class="code"><pre>u'********************'</pre></td> | |
</tr> | |
<tr> | |
<td>SECURE_SSL_REDIRECT</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>TIME_ZONE</td> | |
<td class="code"><pre>'Europe/London'</pre></td> | |
</tr> | |
<tr> | |
<td>FILE_UPLOAD_MAX_MEMORY_SIZE</td> | |
<td class="code"><pre>2621440</pre></td> | |
</tr> | |
<tr> | |
<td>EMAIL_BACKEND</td> | |
<td class="code"><pre>'django.core.mail.backends.smtp.EmailBackend'</pre></td> | |
</tr> | |
<tr> | |
<td>EMAIL_USE_SSL</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>TEMPLATE_CONTEXT_PROCESSORS</td> | |
<td class="code"><pre>('django.contrib.auth.context_processors.auth', | |
'django.template.context_processors.debug', | |
'django.template.context_processors.i18n', | |
'django.template.context_processors.media', | |
'django.template.context_processors.static', | |
'django.template.context_processors.tz', | |
'django.contrib.messages.context_processors.messages')</pre></td> | |
</tr> | |
<tr> | |
<td>SESSION_COOKIE_AGE</td> | |
<td class="code"><pre>1209600</pre></td> | |
</tr> | |
<tr> | |
<td>SETTINGS_MODULE</td> | |
<td class="code"><pre>'settings'</pre></td> | |
</tr> | |
<tr> | |
<td>USE_ETAGS</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>LANGUAGES_BIDI</td> | |
<td class="code"><pre>('he', 'ar', 'fa', 'ur')</pre></td> | |
</tr> | |
<tr> | |
<td>FILE_UPLOAD_TEMP_DIR</td> | |
<td class="code"><pre>None</pre></td> | |
</tr> | |
<tr> | |
<td>INTERNAL_IPS</td> | |
<td class="code"><pre>()</pre></td> | |
</tr> | |
<tr> | |
<td>STATIC_URL</td> | |
<td class="code"><pre>'/static/'</pre></td> | |
</tr> | |
<tr> | |
<td>EMAIL_PORT</td> | |
<td class="code"><pre>25</pre></td> | |
</tr> | |
<tr> | |
<td>USE_TZ</td> | |
<td class="code"><pre>True</pre></td> | |
</tr> | |
<tr> | |
<td>SHORT_DATETIME_FORMAT</td> | |
<td class="code"><pre>'m/d/Y P'</pre></td> | |
</tr> | |
<tr> | |
<td>TEST_NON_SERIALIZED_APPS</td> | |
<td class="code"><pre>[]</pre></td> | |
</tr> | |
<tr> | |
<td>PASSWORD_HASHERS</td> | |
<td class="code"><pre>u'********************'</pre></td> | |
</tr> | |
<tr> | |
<td>ABSOLUTE_URL_OVERRIDES</td> | |
<td class="code"><pre>{}</pre></td> | |
</tr> | |
<tr> | |
<td>LANGUAGE_COOKIE_PATH</td> | |
<td class="code"><pre>'/'</pre></td> | |
</tr> | |
<tr> | |
<td>CACHE_MIDDLEWARE_SECONDS</td> | |
<td class="code"><pre>600</pre></td> | |
</tr> | |
<tr> | |
<td>EMAIL_SSL_CERTFILE</td> | |
<td class="code"><pre>None</pre></td> | |
</tr> | |
<tr> | |
<td>CSRF_COOKIE_HTTPONLY</td> | |
<td class="code"><pre>False</pre></td> | |
</tr> | |
<tr> | |
<td>DATETIME_INPUT_FORMATS</td> | |
<td class="code"><pre>('%Y-%m-%d %H:%M:%S', | |
'%Y-%m-%d %H:%M:%S.%f', | |
'%Y-%m-%d %H:%M', | |
'%Y-%m-%d', | |
'%m/%d/%Y %H:%M:%S', | |
'%m/%d/%Y %H:%M:%S.%f', | |
'%m/%d/%Y %H:%M', | |
'%m/%d/%Y', | |
'%m/%d/%y %H:%M:%S', | |
'%m/%d/%y %H:%M:%S.%f', | |
'%m/%d/%y %H:%M', | |
'%m/%d/%y')</pre></td> | |
</tr> | |
<tr> | |
<td>EMAIL_HOST_USER</td> | |
<td class="code"><pre>''</pre></td> | |
</tr> | |
</tbody> | |
</table> | |
</div> | |
<div id="explanation"> | |
<p> | |
You're seeing this error because you have <code>DEBUG = True</code> in your | |
Django settings file. Change that to <code>False</code>, and Django will | |
display a standard page generated by the handler for this status code. | |
</p> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment