Skip to content

Instantly share code, notes, and snippets.

@rbrovko
Created July 8, 2015 15:56
Show Gist options
  • Save rbrovko/06fd39c1b798af934c82 to your computer and use it in GitHub Desktop.
Save rbrovko/06fd39c1b798af934c82 to your computer and use it in GitHub Desktop.
api/login
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
<!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 &quot;token_secret&quot; 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 &quot;token_secret&quot; 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>[&#39;/home/prontovista/prontovista/.env/lib/python2.7/site-packages&#39;,
&#39;/home/prontovista/prontovista&#39;,
&#39;/usr/lib/python2.7&#39;,
&#39;/usr/lib/python2.7/plat-x86_64-linux-gnu&#39;,
&#39;/usr/lib/python2.7/lib-tk&#39;,
&#39;/usr/lib/python2.7/lib-old&#39;,
&#39;/usr/lib/python2.7/lib-dynload&#39;,
&#39;/usr/local/lib/python2.7/dist-packages&#39;,
&#39;/usr/lib/python2.7/dist-packages&#39;,
&#39;/home/prontovista/~/prontovista/.env/local/lib/python2.7/site-packages&#39;]</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>&#x25b6;</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(&#39;null value in column &quot;token_secret&quot; violates not-null constraint\nDETAIL: Failing row contains (22, eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMx..., null, 2015-07-08 18:40:24+00, 5, 2).\n&#39;,)</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>&lt;bound method CsrfViewMiddleware.process_view of &lt;django.middleware.csrf.CsrfViewMiddleware object at 0x7fc2801f5e90&gt;&gt;</pre></td>
</tr>
<tr>
<td>self</td>
<td class="code"><pre>&lt;django.core.handlers.wsgi.WSGIHandler object at 0x7fc2918d9fd0&gt;</pre></td>
</tr>
<tr>
<td>request</td>
<td class="code"><pre>&quot;&lt;WSGIRequest\npath:/api/login/,\nGET:&lt;QueryDict: {}&gt;,\nPOST:&lt;QueryDict: {u&#39;first_name&#39;: [u&#39;berry&#39;], u&#39;last_name&#39;: [u&#39; test&#39;], u&#39;uid&#39;: [u&#39;118064698005477220672&#39;], u&#39;app_secret&#39;: [u&#39;0c-bc20zu(b@h(wrp@xb+#v@%a8&amp;amp;vpzfpvdk1#=m+u0+*)sf_9&#39;], u&#39;expires_at&#39;: [u&#39;2015/07/08 19:40:24&#39;], u&#39;token&#39;: [u&#39;eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g&#39;], u&#39;social&#39;: [u&#39;google&#39;], u&#39;email&#39;: [u&#39;[email protected]&#39;]}&gt;,\nCOOKIES:{},\nMETA:{&#39;CONTENT_LENGTH&#39;: &#39;1703&#39;,\n &#39;CONTENT_TYPE&#39;: &#39;multipart/form-data; boundary=Boundary+61B344F38C0ADC62&#39;,\n &#39;CONTEXT_DOCUMENT_ROOT&#39;: &#39;/home/prontovista/prontovista/&#39;,\n &#39;CONTEXT_PREFIX&#39;: &#39;&#39;,\n u&#39;CSRF_COOKIE&#39;: u&#39;xsSPJM3plQnj3bYgiHLhIYNJwhlXF7eL&#39;,\n &#39;DOCUMENT_ROOT&#39;: &#39;/home/prontovista/prontovista/&#39;,\n &#39;GATEWAY_INTERFACE&#39;: &#39;CGI/1.1&#39;,\n &#39;HTTP_ACCEPT&#39;: &#39;*/*&#39;,\n &#39;HTTP_ACCEPT_ENCODING&#39;: &#39;gzip, deflate&#39;,\n &#39;HTTP_ACCEPT_LANGUAGE&#39;: &#39;en;q=1&#39;,\n &#39;HTTP_CONNECTION&#39;: &#39;keep-alive&#39;,\n &#39;HTTP_HOST&#39;: &#39;139.162.208.84&#39;,\n &#39;HTTP_USER_AGENT&#39;: &#39;ProntoVista/1.0 (iPhone Simulator; iOS 8.1; Scale/2.00)&#39;,\n &#39;PATH_INFO&#39;: u&#39;/api/login/&#39;,\n &#39;PATH_TRANSLATED&#39;: &#39;/home/prontovista/prontovista/wsgi.py/api/login/&#39;,\n &#39;QUERY_STRING&#39;: &#39;&#39;,\n &#39;REMOTE_ADDR&#39;: &#39;83.170.227.48&#39;,\n &#39;REMOTE_PORT&#39;: &#39;65519&#39;,\n &#39;REQUEST_METHOD&#39;: &#39;POST&#39;,\n &#39;REQUEST_SCHEME&#39;: &#39;http&#39;,\n &#39;REQUEST_URI&#39;: &#39;/api/login/&#39;,\n &#39;SCRIPT_FILENAME&#39;: &#39;/home/prontovista/prontovista/wsgi.py&#39;,\n &#39;SCRIPT_NAME&#39;: u&#39;&#39;,\n &#39;SERVER_ADDR&#39;: &#39;139.162.208.84&#39;,\n &#39;SERVER_ADMIN&#39;: &#39;[no address given]&#39;,\n &#39;SERVER_NAME&#39;: &#39;139.162.208.84&#39;,\n &#39;SERVER_PORT&#39;: &#39;80&#39;,\n &#39;SERVER_PROTOCOL&#39;: &#39;HTTP/1.1&#39;,\n &#39;SERVER_SIGNATURE&#39;: &#39;&lt;address&gt;Apache/2.4.7 (Ubuntu) Server at 139.162.208.84 Port 80&lt;/address&gt;\\n&#39;,\n &#39;SERVER_SOFTWARE&#39;: &#39;Apache/2.4.7 (Ubuntu)&#39;,\n &#39;mod_wsgi.application_group&#39;: &#39;139.162.208.84|&#39;,\n &#39;mod_wsgi.callable_object&#39;: &#39;application&#39;,\n &#39;mod_wsgi.enable_sendfile&#39;: &#39;0&#39;,\n &#39;mod_wsgi.handler_script&#39;: &#39;&#39;,\n &#39;mod_wsgi.input_chunked&#39;: &#39;0&#39;,\n &#39;mod_wsgi.listener_host&#39;: &#39;&#39;,\n &#39;mod_wsgi.listener_port&#39;: &#39;80&#39;,\n &#39;mod_wsgi.process_group&#39;: &#39;prontovista&#39;,\n &#39;mod_wsgi.queue_start&#39;: &#39;1436370032768707&#39;,\n &#39;mod_wsgi.request_handler&#39;: &#39;wsgi-script&#39;,\n &#39;mod_wsgi.script_reloading&#39;: &#39;1&#39;,\n &#39;mod_wsgi.version&#39;: (3, 4),\n &#39;wsgi.errors&#39;: &lt;mod_wsgi.Log object at 0x7fc27fc0c3b0&gt;,\n &#39;wsgi.file_wrapper&#39;: &lt;built-in method file_wrapper of mod_wsgi.Adapter object at 0x7fc27fc56eb8&gt;,\n &#39;wsgi.input&#39;: &lt;mod_wsgi.Input object at 0x7fc27fc0cb70&gt;,\n &#39;wsgi.multiprocess&#39;: True,\n &#39;wsgi.multithread&#39;: True,\n &#39;wsgi.run_once&#39;: False,\n &#39;wsgi.url_scheme&#39;: &#39;http&#39;,\n &#39;wsgi.version&#39;: (1, 0)}&gt;&quot;</pre></td>
</tr>
<tr>
<td>callback</td>
<td class="code"><pre>&lt;function api_login at 0x7fc27fccea28&gt;</pre></td>
</tr>
<tr>
<td>wrapped_callback</td>
<td class="code"><pre>&lt;function api_login at 0x7fc27fccea28&gt;</pre></td>
</tr>
<tr>
<td>resolver</td>
<td class="code"><pre>&lt;RegexURLResolver &#39;urls&#39; (None:None) ^/&gt;</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>&#39;urls&#39;</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(&#39;Method Not Allowed (%s): %s&#39;, request.method, request.path,</pre></li>
<li onclick="toggle('pre140473342817704', 'post140473342817704')"><pre> extra={</pre></li>
<li onclick="toggle('pre140473342817704', 'post140473342817704')"><pre> &#39;status_code&#39;: 405,</pre></li>
<li onclick="toggle('pre140473342817704', 'post140473342817704')"><pre> &#39;request&#39;: 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([&quot;GET&quot;])</pre></li>
<li onclick="toggle('pre140473342817704', 'post140473342817704')"><pre>require_GET.__doc__ = &quot;Decorator to require that a view only accept the GET method.&quot;</pre></li>
<li onclick="toggle('pre140473342817704', 'post140473342817704')"><pre></pre></li>
</ol>
</div>
<div class="commands">
<a href="#" onclick="return varToggle(this, '140473342817704')"><span>&#x25b6;</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>[&#39;POST&#39;]</pre></td>
</tr>
<tr>
<td>request</td>
<td class="code"><pre>&quot;&lt;WSGIRequest\npath:/api/login/,\nGET:&lt;QueryDict: {}&gt;,\nPOST:&lt;QueryDict: {u&#39;first_name&#39;: [u&#39;berry&#39;], u&#39;last_name&#39;: [u&#39; test&#39;], u&#39;uid&#39;: [u&#39;118064698005477220672&#39;], u&#39;app_secret&#39;: [u&#39;0c-bc20zu(b@h(wrp@xb+#v@%a8&amp;amp;vpzfpvdk1#=m+u0+*)sf_9&#39;], u&#39;expires_at&#39;: [u&#39;2015/07/08 19:40:24&#39;], u&#39;token&#39;: [u&#39;eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g&#39;], u&#39;social&#39;: [u&#39;google&#39;], u&#39;email&#39;: [u&#39;[email protected]&#39;]}&gt;,\nCOOKIES:{},\nMETA:{&#39;CONTENT_LENGTH&#39;: &#39;1703&#39;,\n &#39;CONTENT_TYPE&#39;: &#39;multipart/form-data; boundary=Boundary+61B344F38C0ADC62&#39;,\n &#39;CONTEXT_DOCUMENT_ROOT&#39;: &#39;/home/prontovista/prontovista/&#39;,\n &#39;CONTEXT_PREFIX&#39;: &#39;&#39;,\n u&#39;CSRF_COOKIE&#39;: u&#39;xsSPJM3plQnj3bYgiHLhIYNJwhlXF7eL&#39;,\n &#39;DOCUMENT_ROOT&#39;: &#39;/home/prontovista/prontovista/&#39;,\n &#39;GATEWAY_INTERFACE&#39;: &#39;CGI/1.1&#39;,\n &#39;HTTP_ACCEPT&#39;: &#39;*/*&#39;,\n &#39;HTTP_ACCEPT_ENCODING&#39;: &#39;gzip, deflate&#39;,\n &#39;HTTP_ACCEPT_LANGUAGE&#39;: &#39;en;q=1&#39;,\n &#39;HTTP_CONNECTION&#39;: &#39;keep-alive&#39;,\n &#39;HTTP_HOST&#39;: &#39;139.162.208.84&#39;,\n &#39;HTTP_USER_AGENT&#39;: &#39;ProntoVista/1.0 (iPhone Simulator; iOS 8.1; Scale/2.00)&#39;,\n &#39;PATH_INFO&#39;: u&#39;/api/login/&#39;,\n &#39;PATH_TRANSLATED&#39;: &#39;/home/prontovista/prontovista/wsgi.py/api/login/&#39;,\n &#39;QUERY_STRING&#39;: &#39;&#39;,\n &#39;REMOTE_ADDR&#39;: &#39;83.170.227.48&#39;,\n &#39;REMOTE_PORT&#39;: &#39;65519&#39;,\n &#39;REQUEST_METHOD&#39;: &#39;POST&#39;,\n &#39;REQUEST_SCHEME&#39;: &#39;http&#39;,\n &#39;REQUEST_URI&#39;: &#39;/api/login/&#39;,\n &#39;SCRIPT_FILENAME&#39;: &#39;/home/prontovista/prontovista/wsgi.py&#39;,\n &#39;SCRIPT_NAME&#39;: u&#39;&#39;,\n &#39;SERVER_ADDR&#39;: &#39;139.162.208.84&#39;,\n &#39;SERVER_ADMIN&#39;: &#39;[no address given]&#39;,\n &#39;SERVER_NAME&#39;: &#39;139.162.208.84&#39;,\n &#39;SERVER_PORT&#39;: &#39;80&#39;,\n &#39;SERVER_PROTOCOL&#39;: &#39;HTTP/1.1&#39;,\n &#39;SERVER_SIGNATURE&#39;: &#39;&lt;address&gt;Apache/2.4.7 (Ubuntu) Server at 139.162.208.84 Port 80&lt;/address&gt;\\n&#39;,\n &#39;SERVER_SOFTWARE&#39;: &#39;Apache/2.4.7 (Ubuntu)&#39;,\n &#39;mod_wsgi.application_group&#39;: &#39;139.162.208.84|&#39;,\n &#39;mod_wsgi.callable_object&#39;: &#39;application&#39;,\n &#39;mod_wsgi.enable_sendfile&#39;: &#39;0&#39;,\n &#39;mod_wsgi.handler_script&#39;: &#39;&#39;,\n &#39;mod_wsgi.input_chunked&#39;: &#39;0&#39;,\n &#39;mod_wsgi.listener_host&#39;: &#39;&#39;,\n &#39;mod_wsgi.listener_port&#39;: &#39;80&#39;,\n &#39;mod_wsgi.process_group&#39;: &#39;prontovista&#39;,\n &#39;mod_wsgi.queue_start&#39;: &#39;1436370032768707&#39;,\n &#39;mod_wsgi.request_handler&#39;: &#39;wsgi-script&#39;,\n &#39;mod_wsgi.script_reloading&#39;: &#39;1&#39;,\n &#39;mod_wsgi.version&#39;: (3, 4),\n &#39;wsgi.errors&#39;: &lt;mod_wsgi.Log object at 0x7fc27fc0c3b0&gt;,\n &#39;wsgi.file_wrapper&#39;: &lt;built-in method file_wrapper of mod_wsgi.Adapter object at 0x7fc27fc56eb8&gt;,\n &#39;wsgi.input&#39;: &lt;mod_wsgi.Input object at 0x7fc27fc0cb70&gt;,\n &#39;wsgi.multiprocess&#39;: True,\n &#39;wsgi.multithread&#39;: True,\n &#39;wsgi.run_once&#39;: False,\n &#39;wsgi.url_scheme&#39;: &#39;http&#39;,\n &#39;wsgi.version&#39;: (1, 0)}&gt;&quot;</pre></td>
</tr>
<tr>
<td>func</td>
<td class="code"><pre>&lt;function api_login at 0x7fc27fcce9b0&gt;</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> &quot;&quot;&quot;</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> &quot;&quot;&quot;</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&#39;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>&#x25b6;</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>(&lt;WSGIRequest: POST &#39;/api/login/&#39;&gt;,)</pre></td>
</tr>
<tr>
<td>view_func</td>
<td class="code"><pre>&lt;function api_login at 0x7fc27fcce938&gt;</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=&#39;app&#39;).order_by(&#39;-expires&#39;)</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>&#x25b6;</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&#39;berry&#39;</pre></td>
</tr>
<tr>
<td>last_name</td>
<td class="code"><pre>u&#39; test&#39;</pre></td>
</tr>
<tr>
<td>uid</td>
<td class="code"><pre>u&#39;118064698005477220672&#39;</pre></td>
</tr>
<tr>
<td>social_account</td>
<td class="code"><pre>&lt;SocialAccount: berry.test&gt;</pre></td>
</tr>
<tr>
<td>app_secret</td>
<td class="code"><pre>u&#39;0c-bc20zu(b@h(wrp@xb+#v@%a8&amp;amp;vpzfpvdk1#=m+u0+*)sf_9&#39;</pre></td>
</tr>
<tr>
<td>social_app</td>
<td class="code"><pre>&lt;SocialApp: google&gt;</pre></td>
</tr>
<tr>
<td>request</td>
<td class="code"><pre>&quot;&lt;WSGIRequest\npath:/api/login/,\nGET:&lt;QueryDict: {}&gt;,\nPOST:&lt;QueryDict: {u&#39;first_name&#39;: [u&#39;berry&#39;], u&#39;last_name&#39;: [u&#39; test&#39;], u&#39;uid&#39;: [u&#39;118064698005477220672&#39;], u&#39;app_secret&#39;: [u&#39;0c-bc20zu(b@h(wrp@xb+#v@%a8&amp;amp;vpzfpvdk1#=m+u0+*)sf_9&#39;], u&#39;expires_at&#39;: [u&#39;2015/07/08 19:40:24&#39;], u&#39;token&#39;: [u&#39;eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g&#39;], u&#39;social&#39;: [u&#39;google&#39;], u&#39;email&#39;: [u&#39;[email protected]&#39;]}&gt;,\nCOOKIES:{},\nMETA:{&#39;CONTENT_LENGTH&#39;: &#39;1703&#39;,\n &#39;CONTENT_TYPE&#39;: &#39;multipart/form-data; boundary=Boundary+61B344F38C0ADC62&#39;,\n &#39;CONTEXT_DOCUMENT_ROOT&#39;: &#39;/home/prontovista/prontovista/&#39;,\n &#39;CONTEXT_PREFIX&#39;: &#39;&#39;,\n u&#39;CSRF_COOKIE&#39;: u&#39;xsSPJM3plQnj3bYgiHLhIYNJwhlXF7eL&#39;,\n &#39;DOCUMENT_ROOT&#39;: &#39;/home/prontovista/prontovista/&#39;,\n &#39;GATEWAY_INTERFACE&#39;: &#39;CGI/1.1&#39;,\n &#39;HTTP_ACCEPT&#39;: &#39;*/*&#39;,\n &#39;HTTP_ACCEPT_ENCODING&#39;: &#39;gzip, deflate&#39;,\n &#39;HTTP_ACCEPT_LANGUAGE&#39;: &#39;en;q=1&#39;,\n &#39;HTTP_CONNECTION&#39;: &#39;keep-alive&#39;,\n &#39;HTTP_HOST&#39;: &#39;139.162.208.84&#39;,\n &#39;HTTP_USER_AGENT&#39;: &#39;ProntoVista/1.0 (iPhone Simulator; iOS 8.1; Scale/2.00)&#39;,\n &#39;PATH_INFO&#39;: u&#39;/api/login/&#39;,\n &#39;PATH_TRANSLATED&#39;: &#39;/home/prontovista/prontovista/wsgi.py/api/login/&#39;,\n &#39;QUERY_STRING&#39;: &#39;&#39;,\n &#39;REMOTE_ADDR&#39;: &#39;83.170.227.48&#39;,\n &#39;REMOTE_PORT&#39;: &#39;65519&#39;,\n &#39;REQUEST_METHOD&#39;: &#39;POST&#39;,\n &#39;REQUEST_SCHEME&#39;: &#39;http&#39;,\n &#39;REQUEST_URI&#39;: &#39;/api/login/&#39;,\n &#39;SCRIPT_FILENAME&#39;: &#39;/home/prontovista/prontovista/wsgi.py&#39;,\n &#39;SCRIPT_NAME&#39;: u&#39;&#39;,\n &#39;SERVER_ADDR&#39;: &#39;139.162.208.84&#39;,\n &#39;SERVER_ADMIN&#39;: &#39;[no address given]&#39;,\n &#39;SERVER_NAME&#39;: &#39;139.162.208.84&#39;,\n &#39;SERVER_PORT&#39;: &#39;80&#39;,\n &#39;SERVER_PROTOCOL&#39;: &#39;HTTP/1.1&#39;,\n &#39;SERVER_SIGNATURE&#39;: &#39;&lt;address&gt;Apache/2.4.7 (Ubuntu) Server at 139.162.208.84 Port 80&lt;/address&gt;\\n&#39;,\n &#39;SERVER_SOFTWARE&#39;: &#39;Apache/2.4.7 (Ubuntu)&#39;,\n &#39;mod_wsgi.application_group&#39;: &#39;139.162.208.84|&#39;,\n &#39;mod_wsgi.callable_object&#39;: &#39;application&#39;,\n &#39;mod_wsgi.enable_sendfile&#39;: &#39;0&#39;,\n &#39;mod_wsgi.handler_script&#39;: &#39;&#39;,\n &#39;mod_wsgi.input_chunked&#39;: &#39;0&#39;,\n &#39;mod_wsgi.listener_host&#39;: &#39;&#39;,\n &#39;mod_wsgi.listener_port&#39;: &#39;80&#39;,\n &#39;mod_wsgi.process_group&#39;: &#39;prontovista&#39;,\n &#39;mod_wsgi.queue_start&#39;: &#39;1436370032768707&#39;,\n &#39;mod_wsgi.request_handler&#39;: &#39;wsgi-script&#39;,\n &#39;mod_wsgi.script_reloading&#39;: &#39;1&#39;,\n &#39;mod_wsgi.version&#39;: (3, 4),\n &#39;wsgi.errors&#39;: &lt;mod_wsgi.Log object at 0x7fc27fc0c3b0&gt;,\n &#39;wsgi.file_wrapper&#39;: &lt;built-in method file_wrapper of mod_wsgi.Adapter object at 0x7fc27fc56eb8&gt;,\n &#39;wsgi.input&#39;: &lt;mod_wsgi.Input object at 0x7fc27fc0cb70&gt;,\n &#39;wsgi.multiprocess&#39;: True,\n &#39;wsgi.multithread&#39;: True,\n &#39;wsgi.run_once&#39;: False,\n &#39;wsgi.url_scheme&#39;: &#39;http&#39;,\n &#39;wsgi.version&#39;: (1, 0)}&gt;&quot;</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>&#39;token&#39;</pre></td>
</tr>
<tr>
<td>token</td>
<td class="code"><pre>u&#39;eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g&#39;</pre></td>
</tr>
<tr>
<td>user</td>
<td class="code"><pre>&lt;User: berry.test&gt;</pre></td>
</tr>
<tr>
<td>social</td>
<td class="code"><pre>u&#39;google&#39;</pre></td>
</tr>
<tr>
<td>data</td>
<td class="code"><pre>&lt;QueryDict: {u&#39;first_name&#39;: [u&#39;berry&#39;], u&#39;last_name&#39;: [u&#39; test&#39;], u&#39;uid&#39;: [u&#39;118064698005477220672&#39;], u&#39;app_secret&#39;: [u&#39;0c-bc20zu(b@h(wrp@xb+#v@%a8&amp;amp;vpzfpvdk1#=m+u0+*)sf_9&#39;], u&#39;expires_at&#39;: [u&#39;2015/07/08 19:40:24&#39;], u&#39;token&#39;: [u&#39;eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g&#39;], u&#39;social&#39;: [u&#39;google&#39;], u&#39;email&#39;: [u&#39;[email protected]&#39;]}&gt;</pre></td>
</tr>
<tr>
<td>email</td>
<td class="code"><pre>u&#39;[email protected]&#39;</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>&#x25b6;</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>&lt;django.db.models.manager.Manager object at 0x7fc2802b6450&gt;</pre></td>
</tr>
<tr>
<td>args</td>
<td class="code"><pre>()</pre></td>
</tr>
<tr>
<td>name</td>
<td class="code"><pre>&#39;create&#39;</pre></td>
</tr>
<tr>
<td>kwargs</td>
<td class="code"><pre>{&#39;account&#39;: &lt;SocialAccount: berry.test&gt;,
&#39;app&#39;: &lt;SocialApp: google&gt;,
&#39;expires_at&#39;: datetime.datetime(2015, 7, 8, 19, 40, 24),
&#39;token&#39;: u&#39;eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g&#39;,
&#39;token_secret&#39;: 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> &quot;&quot;&quot;</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> &quot;&quot;&quot;</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>&#x25b6;</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>[&lt;SocialToken: token&gt;, &lt;SocialToken: token&gt;, &lt;SocialToken: token&gt;, &lt;SocialToken: eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6ImpIREEyVmx1bjZRTHRBT3c1Q0xFNEEiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzYyMjUwLCJleHAiOjE0MzYzNjU4NTB9.qkvJX-cZum440VGZTGND2IvYaTtYqUi0cwiq1uhpe8Qth-06OTiExBaaI28dEG6Al-Y0NCqZEvdA-KZ5oKbVPrS6Tz9ZpY-oK4Zu2-gBq-v2Yk8tPJohnPD3xgU2GIEkCMM54_ffxa0kC48ujUAOoAeIbcdLqbbmY0EgkgH-GZhPtlMe4SaUY2PLYINzEXkH1RYZGPZKf3GA0c9MEV9mask_i8D_yhLUSCmweVO_PggkjIfmRb0vnQHxWHma6xvbC9ejhGsHQesx-TtlxxJbuC4kTDCkwDMg2gkPxBqaBjeTv2k93KOTtM8ot4XtEJgYpR1NWe9vrYCCKl8Xl_8C3A&gt;]</pre></td>
</tr>
<tr>
<td>obj</td>
<td class="code"><pre>&lt;SocialToken: eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g&gt;</pre></td>
</tr>
<tr>
<td>kwargs</td>
<td class="code"><pre>{&#39;account&#39;: &lt;SocialAccount: berry.test&gt;,
&#39;app&#39;: &lt;SocialApp: google&gt;,
&#39;expires_at&#39;: datetime.datetime(2015, 7, 8, 19, 40, 24),
&#39;token&#39;: u&#39;eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g&#39;,
&#39;token_secret&#39;: 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> &quot;&quot;&quot;</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>&#x25b6;</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>&#39;default&#39;</pre></td>
</tr>
<tr>
<td>self</td>
<td class="code"><pre>&lt;SocialToken: eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g&gt;</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>&#x25b6;</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>&lt;class &#39;allauth.socialaccount.models.SocialToken&#39;&gt;</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>&lt;SocialToken: eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g&gt;</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>&lt;Options for SocialToken&gt;</pre></td>
</tr>
<tr>
<td>using</td>
<td class="code"><pre>&#39;default&#39;</pre></td>
</tr>
<tr>
<td>cls</td>
<td class="code"><pre>&lt;class &#39;allauth.socialaccount.models.SocialToken&#39;&gt;</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> &quot;&quot;&quot;</pre></li>
</ol>
</div>
<div class="commands">
<a href="#" onclick="return varToggle(this, '140473343470480')"><span>&#x25b6;</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>[&lt;django.db.models.fields.related.ForeignKey: app&gt;,
&lt;django.db.models.fields.related.ForeignKey: account&gt;,
&lt;django.db.models.fields.TextField: token&gt;,
&lt;django.db.models.fields.TextField: token_secret&gt;,
&lt;django.db.models.fields.DateTimeField: expires_at&gt;]</pre></td>
</tr>
<tr>
<td>updated</td>
<td class="code"><pre>False</pre></td>
</tr>
<tr>
<td>f</td>
<td class="code"><pre>&lt;django.db.models.fields.DateTimeField: expires_at&gt;</pre></td>
</tr>
<tr>
<td>fields</td>
<td class="code"><pre>[&lt;django.db.models.fields.related.ForeignKey: app&gt;,
&lt;django.db.models.fields.related.ForeignKey: account&gt;,
&lt;django.db.models.fields.TextField: token&gt;,
&lt;django.db.models.fields.TextField: token_secret&gt;,
&lt;django.db.models.fields.DateTimeField: expires_at&gt;]</pre></td>
</tr>
<tr>
<td>self</td>
<td class="code"><pre>&lt;SocialToken: eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g&gt;</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>&lt;Options for SocialToken&gt;</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>&#39;default&#39;</pre></td>
</tr>
<tr>
<td>force_insert</td>
<td class="code"><pre>True</pre></td>
</tr>
<tr>
<td>cls</td>
<td class="code"><pre>&lt;class &#39;allauth.socialaccount.models.SocialToken&#39;&gt;</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> &quot;&quot;&quot;</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> &quot;&quot;&quot;</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> &quot;%s object can&#39;t be deleted because its %s attribute is set to None.&quot; %</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>&#x25b6;</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>[&lt;django.db.models.fields.related.ForeignKey: app&gt;,
&lt;django.db.models.fields.related.ForeignKey: account&gt;,
&lt;django.db.models.fields.TextField: token&gt;,
&lt;django.db.models.fields.TextField: token_secret&gt;,
&lt;django.db.models.fields.DateTimeField: expires_at&gt;]</pre></td>
</tr>
<tr>
<td>self</td>
<td class="code"><pre>&lt;SocialToken: eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g&gt;</pre></td>
</tr>
<tr>
<td>raw</td>
<td class="code"><pre>False</pre></td>
</tr>
<tr>
<td>manager</td>
<td class="code"><pre>&lt;django.db.models.manager.Manager object at 0x7fc2802b6450&gt;</pre></td>
</tr>
<tr>
<td>using</td>
<td class="code"><pre>&#39;default&#39;</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>&#x25b6;</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>&lt;django.db.models.manager.Manager object at 0x7fc2802b6450&gt;</pre></td>
</tr>
<tr>
<td>args</td>
<td class="code"><pre>([&lt;SocialToken: eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g&gt;],)</pre></td>
</tr>
<tr>
<td>name</td>
<td class="code"><pre>&#39;_insert&#39;</pre></td>
</tr>
<tr>
<td>kwargs</td>
<td class="code"><pre>{&#39;fields&#39;: [&lt;django.db.models.fields.related.ForeignKey: app&gt;,
&lt;django.db.models.fields.related.ForeignKey: account&gt;,
&lt;django.db.models.fields.TextField: token&gt;,
&lt;django.db.models.fields.TextField: token_secret&gt;,
&lt;django.db.models.fields.DateTimeField: expires_at&gt;],
&#39;raw&#39;: False,
&#39;return_id&#39;: True,
&#39;using&#39;: &#39;default&#39;}</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> &quot;&quot;&quot;</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> &quot;&quot;&quot;</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>&#x25b6;</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>[&lt;SocialToken: eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g&gt;]</pre></td>
</tr>
<tr>
<td>fields</td>
<td class="code"><pre>[&lt;django.db.models.fields.related.ForeignKey: app&gt;,
&lt;django.db.models.fields.related.ForeignKey: account&gt;,
&lt;django.db.models.fields.TextField: token&gt;,
&lt;django.db.models.fields.TextField: token_secret&gt;,
&lt;django.db.models.fields.DateTimeField: expires_at&gt;]</pre></td>
</tr>
<tr>
<td>self</td>
<td class="code"><pre>[&lt;SocialToken: token&gt;, &lt;SocialToken: token&gt;, &lt;SocialToken: token&gt;, &lt;SocialToken: eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6ImpIREEyVmx1bjZRTHRBT3c1Q0xFNEEiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzYyMjUwLCJleHAiOjE0MzYzNjU4NTB9.qkvJX-cZum440VGZTGND2IvYaTtYqUi0cwiq1uhpe8Qth-06OTiExBaaI28dEG6Al-Y0NCqZEvdA-KZ5oKbVPrS6Tz9ZpY-oK4Zu2-gBq-v2Yk8tPJohnPD3xgU2GIEkCMM54_ffxa0kC48ujUAOoAeIbcdLqbbmY0EgkgH-GZhPtlMe4SaUY2PLYINzEXkH1RYZGPZKf3GA0c9MEV9mask_i8D_yhLUSCmweVO_PggkjIfmRb0vnQHxWHma6xvbC9ejhGsHQesx-TtlxxJbuC4kTDCkwDMg2gkPxBqaBjeTv2k93KOTtM8ot4XtEJgYpR1NWe9vrYCCKl8Xl_8C3A&gt;]</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>&lt;django.db.models.sql.subqueries.InsertQuery object at 0x7fc27fa553d0&gt;</pre></td>
</tr>
<tr>
<td>using</td>
<td class="code"><pre>&#39;default&#39;</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>&#x25b6;</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>&lt;django.db.backends.utils.CursorDebugWrapper object at 0x7fc27fa55610&gt;</pre></td>
</tr>
<tr>
<td>self</td>
<td class="code"><pre>&lt;django.db.models.sql.compiler.SQLInsertCompiler object at 0x7fc27fa55210&gt;</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&#39;eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g&#39;,
None,
datetime.datetime(2015, 7, 8, 19, 40, 24, tzinfo=&lt;django.utils.timezone.LocalTimezone object at 0x7fc2929fdd50&gt;))</pre></td>
</tr>
<tr>
<td>sql</td>
<td class="code"><pre>u&#39;INSERT INTO &quot;socialaccount_socialtoken&quot; (&quot;app_id&quot;, &quot;account_id&quot;, &quot;token&quot;, &quot;token_secret&quot;, &quot;expires_at&quot;) VALUES (%s, %s, %s, %s, %s) RETURNING &quot;socialaccount_socialtoken&quot;.&quot;id&quot;&#39;</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&#39;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> &#39;sql&#39;: sql,</pre></li>
</ol>
</div>
<div class="commands">
<a href="#" onclick="return varToggle(this, '140473343528760')"><span>&#x25b6;</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>&lt;django.db.backends.utils.CursorDebugWrapper object at 0x7fc27fa55610&gt;</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&#39;eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g&#39;,
None,
datetime.datetime(2015, 7, 8, 19, 40, 24, tzinfo=&lt;django.utils.timezone.LocalTimezone object at 0x7fc2929fdd50&gt;))</pre></td>
</tr>
<tr>
<td>sql</td>
<td class="code"><pre>u&#39;INSERT INTO &quot;socialaccount_socialtoken&quot; (&quot;app_id&quot;, &quot;account_id&quot;, &quot;token&quot;, &quot;token_secret&quot;, &quot;expires_at&quot;) VALUES (2, 5, \&#39;eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g\&#39;, NULL, \&#39;2015-07-08T19:40:24+01:00\&#39;::timestamptz) RETURNING &quot;socialaccount_socialtoken&quot;.&quot;id&quot;&#39;</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>&#x25b6;</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>&lt;django.db.backends.utils.CursorDebugWrapper object at 0x7fc27fa55610&gt;</pre></td>
</tr>
<tr>
<td>params</td>
<td class="code"><pre>(2,
5,
u&#39;eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g&#39;,
None,
datetime.datetime(2015, 7, 8, 19, 40, 24, tzinfo=&lt;django.utils.timezone.LocalTimezone object at 0x7fc2929fdd50&gt;))</pre></td>
</tr>
<tr>
<td>sql</td>
<td class="code"><pre>u&#39;INSERT INTO &quot;socialaccount_socialtoken&quot; (&quot;app_id&quot;, &quot;account_id&quot;, &quot;token&quot;, &quot;token_secret&quot;, &quot;expires_at&quot;) VALUES (%s, %s, %s, %s, %s) RETURNING &quot;socialaccount_socialtoken&quot;.&quot;id&quot;&#39;</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 &#39;errors_occurred&#39; 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>&#x25b6;</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>&lt;django.db.utils.DatabaseErrorWrapper object at 0x7fc27fc4c210&gt;</pre></td>
</tr>
<tr>
<td>traceback</td>
<td class="code"><pre>&lt;traceback object at 0x7fc27fc65f38&gt;</pre></td>
</tr>
<tr>
<td>exc_type</td>
<td class="code"><pre>&lt;class &#39;psycopg2.IntegrityError&#39;&gt;</pre></td>
</tr>
<tr>
<td>dj_exc_type</td>
<td class="code"><pre>&lt;class &#39;django.db.utils.IntegrityError&#39;&gt;</pre></td>
</tr>
<tr>
<td>dj_exc_value</td>
<td class="code"><pre>IntegrityError(&#39;null value in column &quot;token_secret&quot; violates not-null constraint\nDETAIL: Failing row contains (22, eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMx..., null, 2015-07-08 18:40:24+00, 5, 2).\n&#39;,)</pre></td>
</tr>
<tr>
<td>exc_value</td>
<td class="code"><pre>IntegrityError(&#39;null value in column &quot;token_secret&quot; violates not-null constraint\nDETAIL: Failing row contains (22, eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMx..., null, 2015-07-08 18:40:24+00, 5, 2).\n&#39;,)</pre></td>
</tr>
<tr>
<td>db_exc_type</td>
<td class="code"><pre>&lt;class &#39;psycopg2.IntegrityError&#39;&gt;</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>&#x25b6;</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>&lt;django.db.backends.utils.CursorDebugWrapper object at 0x7fc27fa55610&gt;</pre></td>
</tr>
<tr>
<td>params</td>
<td class="code"><pre>(2,
5,
u&#39;eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g&#39;,
None,
datetime.datetime(2015, 7, 8, 19, 40, 24, tzinfo=&lt;django.utils.timezone.LocalTimezone object at 0x7fc2929fdd50&gt;))</pre></td>
</tr>
<tr>
<td>sql</td>
<td class="code"><pre>u&#39;INSERT INTO &quot;socialaccount_socialtoken&quot; (&quot;app_id&quot;, &quot;account_id&quot;, &quot;token&quot;, &quot;token_secret&quot;, &quot;expires_at&quot;) VALUES (%s, %s, %s, %s, %s) RETURNING &quot;socialaccount_socialtoken&quot;.&quot;id&quot;&#39;</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:
(&#39;admin_tools&#39;,
&#39;admin_tools.theming&#39;,
&#39;admin_tools.menu&#39;,
&#39;admin_tools.dashboard&#39;,
&#39;django.contrib.auth&#39;,
&#39;django.contrib.contenttypes&#39;,
&#39;django.contrib.sessions&#39;,
&#39;django.contrib.sites&#39;,
&#39;django.contrib.messages&#39;,
&#39;django.contrib.staticfiles&#39;,
&#39;django.contrib.admin&#39;,
&#39;django.contrib.gis&#39;,
&#39;accounts&#39;,
&#39;oauth2_provider&#39;,
&#39;rest_framework&#39;,
&#39;allauth&#39;,
&#39;allauth.socialaccount&#39;,
&#39;allauth.socialaccount.providers.facebook&#39;,
&#39;allauth.socialaccount.providers.google&#39;,
&#39;main&#39;,
&#39;floppyforms&#39;)
Installed Middleware:
(&#39;django.middleware.common.CommonMiddleware&#39;,
&#39;django.contrib.sessions.middleware.SessionMiddleware&#39;,
&#39;django.middleware.csrf.CsrfViewMiddleware&#39;,
&#39;django.contrib.auth.middleware.AuthenticationMiddleware&#39;,
&#39;django.contrib.messages.middleware.MessageMiddleware&#39;)
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 &quot;token_secret&quot; 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&#39;berry&#39;</pre></td>
</tr>
<tr>
<td>last_name</td>
<td class="code"><pre>u&#39; test&#39;</pre></td>
</tr>
<tr>
<td>uid</td>
<td class="code"><pre>u&#39;118064698005477220672&#39;</pre></td>
</tr>
<tr>
<td>app_secret</td>
<td class="code"><pre>u&#39;0c-bc20zu(b@h(wrp@xb+#v@%a8&amp;amp;vpzfpvdk1#=m+u0+*)sf_9&#39;</pre></td>
</tr>
<tr>
<td>expires_at</td>
<td class="code"><pre>u&#39;2015/07/08 19:40:24&#39;</pre></td>
</tr>
<tr>
<td>token</td>
<td class="code"><pre>u&#39;eyJhbGciOiJSUzI1NiIsImtpZCI6ImJjOGEzMTkyN2FmMjA4NjA0MThmNmIyMjMxYmJmZDdlYmNjMDQ2NjUifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTE4MDY0Njk4MDA1NDc3MjIwNjcyIiwiYXpwIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZW1haWwiOiJiZXJyeXRlc3QxMjNAZ21haWwuY29tIiwiYXRfaGFzaCI6Im81Yl9pTnhZYWNjc3ZsVzNEOEVxV2ciLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXVkIjoiODY4OTA4MjM2Mjg0LWNmNW5naGZyYTBsdGl2bWNlb2ZqZmhlNzhudXJjcXMxLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiaWF0IjoxNDM2MzcwMDI0LCJleHAiOjE0MzYzNzM2MjR9.HYm9IngdwmsgSmWzqT0j8mrfAZEuWw1jGcLzvqkbDw0FVauaTqxX5bXA-YaoUWk-x98VDBF8vq40N9LRkkg3EnFXm2L82cnHvRoAjOukVgWftIxqeuJyeOcCn-Vm56YYeUUGil0byPn3YE5eT8HlFzEc7k8eAJcQd-iAZW4e27cUf48uzbDOrmrxkgzXMZbFtIFUC6FUjmYOcUmE4sCzB02ZlYx7-fx_aBKgtl2bV4L3Zr5862zDWNFl1fzSprHtLPXfZ35q1p-5hQhZy9C7pJGx6w5CWkPFWaYHmTzPwkCdc8n_w_bSEVvXFvcvAqVWmoQYBqDb9g2xzkMwNJ7I-g&#39;</pre></td>
</tr>
<tr>
<td>social</td>
<td class="code"><pre>u&#39;google&#39;</pre></td>
</tr>
<tr>
<td>email</td>
<td class="code"><pre>u&#39;[email protected]&#39;</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>&#39;80&#39;</pre></td>
</tr>
<tr>
<td>mod_wsgi.listener_host</td>
<td class="code"><pre>&#39;&#39;</pre></td>
</tr>
<tr>
<td>CONTEXT_DOCUMENT_ROOT</td>
<td class="code"><pre>&#39;/home/prontovista/prontovista/&#39;</pre></td>
</tr>
<tr>
<td>SERVER_SOFTWARE</td>
<td class="code"><pre>&#39;Apache/2.4.7 (Ubuntu)&#39;</pre></td>
</tr>
<tr>
<td>SCRIPT_NAME</td>
<td class="code"><pre>u&#39;&#39;</pre></td>
</tr>
<tr>
<td>mod_wsgi.enable_sendfile</td>
<td class="code"><pre>&#39;0&#39;</pre></td>
</tr>
<tr>
<td>mod_wsgi.handler_script</td>
<td class="code"><pre>&#39;&#39;</pre></td>
</tr>
<tr>
<td>SERVER_SIGNATURE</td>
<td class="code"><pre>&#39;&lt;address&gt;Apache/2.4.7 (Ubuntu) Server at 139.162.208.84 Port 80&lt;/address&gt;\n&#39;</pre></td>
</tr>
<tr>
<td>REQUEST_METHOD</td>
<td class="code"><pre>&#39;POST&#39;</pre></td>
</tr>
<tr>
<td>PATH_INFO</td>
<td class="code"><pre>u&#39;/api/login/&#39;</pre></td>
</tr>
<tr>
<td>SERVER_PROTOCOL</td>
<td class="code"><pre>&#39;HTTP/1.1&#39;</pre></td>
</tr>
<tr>
<td>QUERY_STRING</td>
<td class="code"><pre>&#39;&#39;</pre></td>
</tr>
<tr>
<td>CONTENT_LENGTH</td>
<td class="code"><pre>&#39;1703&#39;</pre></td>
</tr>
<tr>
<td>HTTP_USER_AGENT</td>
<td class="code"><pre>&#39;ProntoVista/1.0 (iPhone Simulator; iOS 8.1; Scale/2.00)&#39;</pre></td>
</tr>
<tr>
<td>HTTP_CONNECTION</td>
<td class="code"><pre>&#39;keep-alive&#39;</pre></td>
</tr>
<tr>
<td>SERVER_NAME</td>
<td class="code"><pre>&#39;139.162.208.84&#39;</pre></td>
</tr>
<tr>
<td>REMOTE_ADDR</td>
<td class="code"><pre>&#39;83.170.227.48&#39;</pre></td>
</tr>
<tr>
<td>mod_wsgi.queue_start</td>
<td class="code"><pre>&#39;1436370032768707&#39;</pre></td>
</tr>
<tr>
<td>mod_wsgi.request_handler</td>
<td class="code"><pre>&#39;wsgi-script&#39;</pre></td>
</tr>
<tr>
<td>wsgi.url_scheme</td>
<td class="code"><pre>&#39;http&#39;</pre></td>
</tr>
<tr>
<td>PATH_TRANSLATED</td>
<td class="code"><pre>&#39;/home/prontovista/prontovista/wsgi.py/api/login/&#39;</pre></td>
</tr>
<tr>
<td>SERVER_PORT</td>
<td class="code"><pre>&#39;80&#39;</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>&#39;0&#39;</pre></td>
</tr>
<tr>
<td>SERVER_ADDR</td>
<td class="code"><pre>&#39;139.162.208.84&#39;</pre></td>
</tr>
<tr>
<td>DOCUMENT_ROOT</td>
<td class="code"><pre>&#39;/home/prontovista/prontovista/&#39;</pre></td>
</tr>
<tr>
<td>mod_wsgi.process_group</td>
<td class="code"><pre>&#39;prontovista&#39;</pre></td>
</tr>
<tr>
<td>SCRIPT_FILENAME</td>
<td class="code"><pre>&#39;/home/prontovista/prontovista/wsgi.py&#39;</pre></td>
</tr>
<tr>
<td>SERVER_ADMIN</td>
<td class="code"><pre>&#39;[no address given]&#39;</pre></td>
</tr>
<tr>
<td>wsgi.input</td>
<td class="code"><pre>&lt;mod_wsgi.Input object at 0x7fc27fc0cb70&gt;</pre></td>
</tr>
<tr>
<td>HTTP_HOST</td>
<td class="code"><pre>&#39;139.162.208.84&#39;</pre></td>
</tr>
<tr>
<td>CONTEXT_PREFIX</td>
<td class="code"><pre>&#39;&#39;</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>&#39;application&#39;</pre></td>
</tr>
<tr>
<td>REQUEST_URI</td>
<td class="code"><pre>&#39;/api/login/&#39;</pre></td>
</tr>
<tr>
<td>HTTP_ACCEPT</td>
<td class="code"><pre>&#39;*/*&#39;</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>&#39;CGI/1.1&#39;</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>&lt;mod_wsgi.Log object at 0x7fc27fc0c3b0&gt;</pre></td>
</tr>
<tr>
<td>REMOTE_PORT</td>
<td class="code"><pre>&#39;65519&#39;</pre></td>
</tr>
<tr>
<td>HTTP_ACCEPT_LANGUAGE</td>
<td class="code"><pre>&#39;en;q=1&#39;</pre></td>
</tr>
<tr>
<td>REQUEST_SCHEME</td>
<td class="code"><pre>&#39;http&#39;</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>&#39;multipart/form-data; boundary=Boundary+61B344F38C0ADC62&#39;</pre></td>
</tr>
<tr>
<td>mod_wsgi.application_group</td>
<td class="code"><pre>&#39;139.162.208.84|&#39;</pre></td>
</tr>
<tr>
<td>mod_wsgi.script_reloading</td>
<td class="code"><pre>&#39;1&#39;</pre></td>
</tr>
<tr>
<td>wsgi.file_wrapper</td>
<td class="code"><pre>&#39;&#39;</pre></td>
</tr>
<tr>
<td>CSRF_COOKIE</td>
<td class="code"><pre>u&#39;xsSPJM3plQnj3bYgiHLhIYNJwhlXF7eL&#39;</pre></td>
</tr>
<tr>
<td>HTTP_ACCEPT_ENCODING</td>
<td class="code"><pre>&#39;gzip, deflate&#39;</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>&#39;en-us&#39;</pre></td>
</tr>
<tr>
<td>ROOT_URLCONF</td>
<td class="code"><pre>&#39;urls&#39;</pre></td>
</tr>
<tr>
<td>MANAGERS</td>
<td class="code"><pre>()</pre></td>
</tr>
<tr>
<td>BASE_DIR</td>
<td class="code"><pre>&#39;/home/prontovista/prontovista&#39;</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>&#39;utf-8&#39;</pre></td>
</tr>
<tr>
<td>SESSION_SERIALIZER</td>
<td class="code"><pre>&#39;django.contrib.sessions.serializers.JSONSerializer&#39;</pre></td>
</tr>
<tr>
<td>STATIC_ROOT</td>
<td class="code"><pre>&#39;/home/prontovista/prontovista/collected_static&#39;</pre></td>
</tr>
<tr>
<td>ALLOWED_HOSTS</td>
<td class="code"><pre>[]</pre></td>
</tr>
<tr>
<td>MESSAGE_STORAGE</td>
<td class="code"><pre>&#39;django.contrib.messages.storage.fallback.FallbackStorage&#39;</pre></td>
</tr>
<tr>
<td>EMAIL_SUBJECT_PREFIX</td>
<td class="code"><pre>&#39;[Django] &#39;</pre></td>
</tr>
<tr>
<td>SERVER_EMAIL</td>
<td class="code"><pre>&#39;root@localhost&#39;</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>(&#39;django.contrib.staticfiles.finders.FileSystemFinder&#39;,
&#39;django.contrib.staticfiles.finders.AppDirectoriesFinder&#39;)</pre></td>
</tr>
<tr>
<td>SESSION_CACHE_ALIAS</td>
<td class="code"><pre>&#39;default&#39;</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>&#39;sessionid&#39;</pre></td>
</tr>
<tr>
<td>TIME_INPUT_FORMATS</td>
<td class="code"><pre>(&#39;%H:%M:%S&#39;, &#39;%H:%M:%S.%f&#39;, &#39;%H:%M&#39;)</pre></td>
</tr>
<tr>
<td>SECURE_REDIRECT_EXEMPT</td>
<td class="code"><pre>[]</pre></td>
</tr>
<tr>
<td>DATABASES</td>
<td class="code"><pre>{&#39;default&#39;: {&#39;ATOMIC_REQUESTS&#39;: False,
&#39;AUTOCOMMIT&#39;: True,
&#39;CONN_MAX_AGE&#39;: 0,
&#39;ENGINE&#39;: &#39;django.contrib.gis.db.backends.postgis&#39;,
&#39;HOST&#39;: &#39;127.0.0.1&#39;,
&#39;NAME&#39;: &#39;prontovista&#39;,
&#39;OPTIONS&#39;: {},
&#39;PASSWORD&#39;: u&#39;********************&#39;,
&#39;PORT&#39;: &#39;5432&#39;,
&#39;STORAGE_ENGINE&#39;: &#39;INNODB&#39;,
&#39;TEST&#39;: {&#39;CHARSET&#39;: None,
&#39;COLLATION&#39;: None,
&#39;MIRROR&#39;: None,
&#39;NAME&#39;: None},
&#39;TIME_ZONE&#39;: &#39;UTC&#39;,
&#39;USER&#39;: &#39;postgres&#39;}}</pre></td>
</tr>
<tr>
<td>EMAIL_SSL_KEYFILE</td>
<td class="code"><pre>u&#39;********************&#39;</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>(&#39;django.core.files.uploadhandler.MemoryFileUploadHandler&#39;,
&#39;django.core.files.uploadhandler.TemporaryFileUploadHandler&#39;)</pre></td>
</tr>
<tr>
<td>DEFAULT_CONTENT_TYPE</td>
<td class="code"><pre>&#39;text/html&#39;</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>&#39;&#39;</pre></td>
</tr>
<tr>
<td>YEAR_MONTH_FORMAT</td>
<td class="code"><pre>&#39;F Y&#39;</pre></td>
</tr>
<tr>
<td>STATICFILES_STORAGE</td>
<td class="code"><pre>&#39;django.contrib.staticfiles.storage.StaticFilesStorage&#39;</pre></td>
</tr>
<tr>
<td>CACHES</td>
<td class="code"><pre>{&#39;default&#39;: {&#39;BACKEND&#39;: &#39;django.core.cache.backends.locmem.LocMemCache&#39;}}</pre></td>
</tr>
<tr>
<td>SESSION_COOKIE_PATH</td>
<td class="code"><pre>&#39;/&#39;</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>(&#39;django.middleware.common.CommonMiddleware&#39;,
&#39;django.contrib.sessions.middleware.SessionMiddleware&#39;,
&#39;django.middleware.csrf.CsrfViewMiddleware&#39;,
&#39;django.contrib.auth.middleware.AuthenticationMiddleware&#39;,
&#39;django.contrib.messages.middleware.MessageMiddleware&#39;)</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>&#39;,&#39;</pre></td>
</tr>
<tr>
<td>SECRET_KEY</td>
<td class="code"><pre>u&#39;********************&#39;</pre></td>
</tr>
<tr>
<td>LANGUAGE_COOKIE_NAME</td>
<td class="code"><pre>&#39;django_language&#39;</pre></td>
</tr>
<tr>
<td>DEFAULT_INDEX_TABLESPACE</td>
<td class="code"><pre>&#39;&#39;</pre></td>
</tr>
<tr>
<td>LOGGING_CONFIG</td>
<td class="code"><pre>&#39;logging.config.dictConfig&#39;</pre></td>
</tr>
<tr>
<td>TEMPLATE_LOADERS</td>
<td class="code"><pre>(&#39;django.template.loaders.filesystem.Loader&#39;,
&#39;django.template.loaders.app_directories.Loader&#39;)</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>&#39;wsgi.application&#39;</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>&#39;SAMEORIGIN&#39;</pre></td>
</tr>
<tr>
<td>CSRF_COOKIE_NAME</td>
<td class="code"><pre>&#39;csrftoken&#39;</pre></td>
</tr>
<tr>
<td>OAUTH2_PROVIDER</td>
<td class="code"><pre>{&#39;SCOPES&#39;: {&#39;app&#39;: &#39;app access&#39;, &#39;read&#39;: &#39;Read scope&#39;, &#39;write&#39;: &#39;Write scope&#39;}}</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>&#39;django.core.signing.TimestampSigner&#39;</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>&#39;utf-8&#39;</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>&#39;django.core.files.storage.FileSystemStorage&#39;</pre></td>
</tr>
<tr>
<td>INSTALLED_APPS</td>
<td class="code"><pre>(&#39;admin_tools&#39;,
&#39;admin_tools.theming&#39;,
&#39;admin_tools.menu&#39;,
&#39;admin_tools.dashboard&#39;,
&#39;django.contrib.auth&#39;,
&#39;django.contrib.contenttypes&#39;,
&#39;django.contrib.sessions&#39;,
&#39;django.contrib.sites&#39;,
&#39;django.contrib.messages&#39;,
&#39;django.contrib.staticfiles&#39;,
&#39;django.contrib.admin&#39;,
&#39;django.contrib.gis&#39;,
&#39;accounts&#39;,
&#39;oauth2_provider&#39;,
&#39;rest_framework&#39;,
&#39;allauth&#39;,
&#39;allauth.socialaccount&#39;,
&#39;allauth.socialaccount.providers.facebook&#39;,
&#39;allauth.socialaccount.providers.google&#39;,
&#39;main&#39;,
&#39;floppyforms&#39;)</pre></td>
</tr>
<tr>
<td>LANGUAGES</td>
<td class="code"><pre>((&#39;af&#39;, &#39;Afrikaans&#39;),
(&#39;ar&#39;, &#39;Arabic&#39;),
(&#39;ast&#39;, &#39;Asturian&#39;),
(&#39;az&#39;, &#39;Azerbaijani&#39;),
(&#39;bg&#39;, &#39;Bulgarian&#39;),
(&#39;be&#39;, &#39;Belarusian&#39;),
(&#39;bn&#39;, &#39;Bengali&#39;),
(&#39;br&#39;, &#39;Breton&#39;),
(&#39;bs&#39;, &#39;Bosnian&#39;),
(&#39;ca&#39;, &#39;Catalan&#39;),
(&#39;cs&#39;, &#39;Czech&#39;),
(&#39;cy&#39;, &#39;Welsh&#39;),
(&#39;da&#39;, &#39;Danish&#39;),
(&#39;de&#39;, &#39;German&#39;),
(&#39;el&#39;, &#39;Greek&#39;),
(&#39;en&#39;, &#39;English&#39;),
(&#39;en-au&#39;, &#39;Australian English&#39;),
(&#39;en-gb&#39;, &#39;British English&#39;),
(&#39;eo&#39;, &#39;Esperanto&#39;),
(&#39;es&#39;, &#39;Spanish&#39;),
(&#39;es-ar&#39;, &#39;Argentinian Spanish&#39;),
(&#39;es-mx&#39;, &#39;Mexican Spanish&#39;),
(&#39;es-ni&#39;, &#39;Nicaraguan Spanish&#39;),
(&#39;es-ve&#39;, &#39;Venezuelan Spanish&#39;),
(&#39;et&#39;, &#39;Estonian&#39;),
(&#39;eu&#39;, &#39;Basque&#39;),
(&#39;fa&#39;, &#39;Persian&#39;),
(&#39;fi&#39;, &#39;Finnish&#39;),
(&#39;fr&#39;, &#39;French&#39;),
(&#39;fy&#39;, &#39;Frisian&#39;),
(&#39;ga&#39;, &#39;Irish&#39;),
(&#39;gl&#39;, &#39;Galician&#39;),
(&#39;he&#39;, &#39;Hebrew&#39;),
(&#39;hi&#39;, &#39;Hindi&#39;),
(&#39;hr&#39;, &#39;Croatian&#39;),
(&#39;hu&#39;, &#39;Hungarian&#39;),
(&#39;ia&#39;, &#39;Interlingua&#39;),
(&#39;id&#39;, &#39;Indonesian&#39;),
(&#39;io&#39;, &#39;Ido&#39;),
(&#39;is&#39;, &#39;Icelandic&#39;),
(&#39;it&#39;, &#39;Italian&#39;),
(&#39;ja&#39;, &#39;Japanese&#39;),
(&#39;ka&#39;, &#39;Georgian&#39;),
(&#39;kk&#39;, &#39;Kazakh&#39;),
(&#39;km&#39;, &#39;Khmer&#39;),
(&#39;kn&#39;, &#39;Kannada&#39;),
(&#39;ko&#39;, &#39;Korean&#39;),
(&#39;lb&#39;, &#39;Luxembourgish&#39;),
(&#39;lt&#39;, &#39;Lithuanian&#39;),
(&#39;lv&#39;, &#39;Latvian&#39;),
(&#39;mk&#39;, &#39;Macedonian&#39;),
(&#39;ml&#39;, &#39;Malayalam&#39;),
(&#39;mn&#39;, &#39;Mongolian&#39;),
(&#39;mr&#39;, &#39;Marathi&#39;),
(&#39;my&#39;, &#39;Burmese&#39;),
(&#39;nb&#39;, &#39;Norwegian Bokmal&#39;),
(&#39;ne&#39;, &#39;Nepali&#39;),
(&#39;nl&#39;, &#39;Dutch&#39;),
(&#39;nn&#39;, &#39;Norwegian Nynorsk&#39;),
(&#39;os&#39;, &#39;Ossetic&#39;),
(&#39;pa&#39;, &#39;Punjabi&#39;),
(&#39;pl&#39;, &#39;Polish&#39;),
(&#39;pt&#39;, &#39;Portuguese&#39;),
(&#39;pt-br&#39;, &#39;Brazilian Portuguese&#39;),
(&#39;ro&#39;, &#39;Romanian&#39;),
(&#39;ru&#39;, &#39;Russian&#39;),
(&#39;sk&#39;, &#39;Slovak&#39;),
(&#39;sl&#39;, &#39;Slovenian&#39;),
(&#39;sq&#39;, &#39;Albanian&#39;),
(&#39;sr&#39;, &#39;Serbian&#39;),
(&#39;sr-latn&#39;, &#39;Serbian Latin&#39;),
(&#39;sv&#39;, &#39;Swedish&#39;),
(&#39;sw&#39;, &#39;Swahili&#39;),
(&#39;ta&#39;, &#39;Tamil&#39;),
(&#39;te&#39;, &#39;Telugu&#39;),
(&#39;th&#39;, &#39;Thai&#39;),
(&#39;tr&#39;, &#39;Turkish&#39;),
(&#39;tt&#39;, &#39;Tatar&#39;),
(&#39;udm&#39;, &#39;Udmurt&#39;),
(&#39;uk&#39;, &#39;Ukrainian&#39;),
(&#39;ur&#39;, &#39;Urdu&#39;),
(&#39;vi&#39;, &#39;Vietnamese&#39;),
(&#39;zh-cn&#39;, &#39;Simplified Chinese&#39;),
(&#39;zh-hans&#39;, &#39;Simplified Chinese&#39;),
(&#39;zh-hant&#39;, &#39;Traditional Chinese&#39;),
(&#39;zh-tw&#39;, &#39;Traditional Chinese&#39;))</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>&#39;F j&#39;</pre></td>
</tr>
<tr>
<td>LOGIN_URL</td>
<td class="code"><pre>&#39;/accounts/login/&#39;</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>&#39;P&#39;</pre></td>
</tr>
<tr>
<td>AUTH_USER_MODEL</td>
<td class="code"><pre>&#39;accounts.User&#39;</pre></td>
</tr>
<tr>
<td>DATE_INPUT_FORMATS</td>
<td class="code"><pre>(&#39;%Y-%m-%d&#39;,
&#39;%m/%d/%Y&#39;,
&#39;%m/%d/%y&#39;,
&#39;%b %d %Y&#39;,
&#39;%b %d, %Y&#39;,
&#39;%d %b %Y&#39;,
&#39;%d %b, %Y&#39;,
&#39;%B %d %Y&#39;,
&#39;%B %d, %Y&#39;,
&#39;%d %B %Y&#39;,
&#39;%d %B, %Y&#39;)</pre></td>
</tr>
<tr>
<td>AUTHENTICATION_BACKENDS</td>
<td class="code"><pre>(&#39;django.contrib.auth.backends.ModelBackend&#39;,)</pre></td>
</tr>
<tr>
<td>EMAIL_HOST_PASSWORD</td>
<td class="code"><pre>u&#39;********************&#39;</pre></td>
</tr>
<tr>
<td>PASSWORD_RESET_TIMEOUT_DAYS</td>
<td class="code"><pre>u&#39;********************&#39;</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>&#39;default&#39;</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>&#39;django.contrib.sessions.backends.db&#39;</pre></td>
</tr>
<tr>
<td>CSRF_FAILURE_VIEW</td>
<td class="code"><pre>&#39;django.views.csrf.csrf_failure&#39;</pre></td>
</tr>
<tr>
<td>CSRF_COOKIE_PATH</td>
<td class="code"><pre>&#39;/&#39;</pre></td>
</tr>
<tr>
<td>LOGIN_REDIRECT_URL</td>
<td class="code"><pre>&#39;/accounts/profile/&#39;</pre></td>
</tr>
<tr>
<td>DECIMAL_SEPARATOR</td>
<td class="code"><pre>&#39;.&#39;</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>&#39;&#39;</pre></td>
</tr>
<tr>
<td>LOGOUT_URL</td>
<td class="code"><pre>&#39;/accounts/logout/&#39;</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>&#39;localhost&#39;</pre></td>
</tr>
<tr>
<td>DATE_FORMAT</td>
<td class="code"><pre>&#39;%Y/%m/%d&#39;</pre></td>
</tr>
<tr>
<td>MEDIA_ROOT</td>
<td class="code"><pre>&#39;&#39;</pre></td>
</tr>
<tr>
<td>DEFAULT_EXCEPTION_REPORTER_FILTER</td>
<td class="code"><pre>&#39;django.views.debug.SafeExceptionReporterFilter&#39;</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>&#39;webmaster@localhost&#39;</pre></td>
</tr>
<tr>
<td>REST_FRAMEWORK</td>
<td class="code"><pre>{&#39;DEFAULT_AUTHENTICATION_CLASSES&#39;: (&#39;oauth2_provider.ext.rest_framework.OAuth2Authentication&#39;,),
&#39;DEFAULT_PAGINATION_CLASS&#39;: &#39;rest_framework.pagination.PageNumberPagination&#39;,
&#39;DEFAULT_PERMISSION_CLASSES&#39;: (&#39;rest_framework.permissions.IsAuthenticated&#39;,),
&#39;PAGE_SIZE&#39;: 20}</pre></td>
</tr>
<tr>
<td>MEDIA_URL</td>
<td class="code"><pre>&#39;&#39;</pre></td>
</tr>
<tr>
<td>DATETIME_FORMAT</td>
<td class="code"><pre>&#39;%Y/%m/%d %H:%M:%S&#39;</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>{&#39;disable_existing_loggers&#39;: False,
&#39;filters&#39;: {&#39;require_debug_false&#39;: {&#39;()&#39;: &#39;django.utils.log.RequireDebugFalse&#39;}},
&#39;handlers&#39;: {&#39;mail_admins&#39;: {&#39;class&#39;: &#39;django.utils.log.AdminEmailHandler&#39;,
&#39;filters&#39;: [&#39;require_debug_false&#39;],
&#39;level&#39;: &#39;ERROR&#39;}},
&#39;loggers&#39;: {&#39;django.request&#39;: {&#39;handlers&#39;: [&#39;mail_admins&#39;],
&#39;level&#39;: &#39;ERROR&#39;,
&#39;propagate&#39;: True}},
&#39;version&#39;: 1}</pre></td>
</tr>
<tr>
<td>SHORT_DATE_FORMAT</td>
<td class="code"><pre>&#39;m/d/Y&#39;</pre></td>
</tr>
<tr>
<td>TEMPLATES</td>
<td class="code"><pre>[{&#39;APP_DIRS&#39;: True,
&#39;BACKEND&#39;: &#39;django.template.backends.django.DjangoTemplates&#39;,
&#39;DIRS&#39;: [],
&#39;OPTIONS&#39;: {&#39;context_processors&#39;: [&#39;django.template.context_processors.debug&#39;,
&#39;django.template.context_processors.request&#39;,
&#39;django.contrib.auth.context_processors.auth&#39;,
&#39;django.contrib.messages.context_processors.messages&#39;,
&#39;django.core.context_processors.static&#39;,
&#39;allauth.socialaccount.context_processors.socialaccount&#39;]}}]</pre></td>
</tr>
<tr>
<td>TEST_RUNNER</td>
<td class="code"><pre>&#39;django.test.runner.DiscoverRunner&#39;</pre></td>
</tr>
<tr>
<td>CACHE_MIDDLEWARE_KEY_PREFIX</td>
<td class="code"><pre>u&#39;********************&#39;</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>&#39;Europe/London&#39;</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>&#39;django.core.mail.backends.smtp.EmailBackend&#39;</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>(&#39;django.contrib.auth.context_processors.auth&#39;,
&#39;django.template.context_processors.debug&#39;,
&#39;django.template.context_processors.i18n&#39;,
&#39;django.template.context_processors.media&#39;,
&#39;django.template.context_processors.static&#39;,
&#39;django.template.context_processors.tz&#39;,
&#39;django.contrib.messages.context_processors.messages&#39;)</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>&#39;settings&#39;</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>(&#39;he&#39;, &#39;ar&#39;, &#39;fa&#39;, &#39;ur&#39;)</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>&#39;/static/&#39;</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>&#39;m/d/Y P&#39;</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&#39;********************&#39;</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>&#39;/&#39;</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>(&#39;%Y-%m-%d %H:%M:%S&#39;,
&#39;%Y-%m-%d %H:%M:%S.%f&#39;,
&#39;%Y-%m-%d %H:%M&#39;,
&#39;%Y-%m-%d&#39;,
&#39;%m/%d/%Y %H:%M:%S&#39;,
&#39;%m/%d/%Y %H:%M:%S.%f&#39;,
&#39;%m/%d/%Y %H:%M&#39;,
&#39;%m/%d/%Y&#39;,
&#39;%m/%d/%y %H:%M:%S&#39;,
&#39;%m/%d/%y %H:%M:%S.%f&#39;,
&#39;%m/%d/%y %H:%M&#39;,
&#39;%m/%d/%y&#39;)</pre></td>
</tr>
<tr>
<td>EMAIL_HOST_USER</td>
<td class="code"><pre>&#39;&#39;</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