Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta http-equiv="content-type" content="text/html; charset=utf-8">
- <meta name="robots" content="NONE,NOARCHIVE">
- <title>ValueError at /v3/facilities/</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>ValueError at /v3/facilities/</h1>
- <pre class="exception_value">Cannot use None as a query value</pre>
- <table class="meta">
- <tr>
- <th>Request Method:</th>
- <td>GET</td>
- </tr>
- <tr>
- <th>Request URL:</th>
- <td>http://lendleaserenew.flabulessdev.com/v3/facilities/?category=1&alpha=1</td>
- </tr>
- <tr>
- <th>Django Version:</th>
- <td>1.7.9</td>
- </tr>
- <tr>
- <th>Exception Type:</th>
- <td>ValueError</td>
- </tr>
- <tr>
- <th>Exception Value:</th>
- <td>
- <pre>Cannot use None as a query value</pre>
- </td>
- </tr>
- <tr>
- <th>Exception Location:</th>
- <td>/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/django/db/models/sql/query.py in prepare_lookup_value, line 1081</td>
- </tr>
- <tr>
- <th>Python Executable:</th>
- <td>/var/www/dev/flabuless/flabuless/env/bin/python2</td>
- </tr>
- <tr>
- <th>Python Version:</th>
- <td>2.7.10</td>
- </tr>
- <tr>
- <th>Python Path:</th>
- <td>
- <pre>['/var/www/dev/flabuless/flabuless',
- '/var/www/dev/flabuless/flabuless/env/bin',
- '/var/www/dev/flabuless/flabuless/env/src/fitbit',
- '/var/www/dev/flabuless/flabuless/env/src/misfit',
- '/var/www/dev/flabuless/flabuless/env/lib/python27.zip',
- '/var/www/dev/flabuless/flabuless/env/lib/python2.7',
- '/var/www/dev/flabuless/flabuless/env/lib/python2.7/plat-linux2',
- '/var/www/dev/flabuless/flabuless/env/lib/python2.7/lib-tk',
- '/var/www/dev/flabuless/flabuless/env/lib/python2.7/lib-old',
- '/var/www/dev/flabuless/flabuless/env/lib/python2.7/lib-dynload',
- '/usr/lib64/python2.7',
- '/usr/lib/python2.7',
- '/usr/lib/python2.7/plat-linux2',
- '/usr/lib64/python2.7/lib-tk',
- '/usr/lib/python2.7/lib-tk',
- '/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages']</pre>
- </td>
- </tr>
- <tr>
- <th>Server time:</th>
- <td>Fri, 9 Dec 2016 15:52:41 +0800</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>/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/django/core/handlers/base.py</code> in
- <code>get_response</code>
- <div class="context" id="c140577437097712">
- <ol start="104" class="pre-context" id="pre140577437097712">
- <li onclick="toggle('pre140577437097712', 'post140577437097712')">
- <pre> response = middleware_method(request, callback, callback_args, callback_kwargs)</pre>
- </li>
- <li onclick="toggle('pre140577437097712', 'post140577437097712')">
- <pre> if response:</pre>
- </li>
- <li onclick="toggle('pre140577437097712', 'post140577437097712')">
- <pre> break</pre>
- </li>
- <li onclick="toggle('pre140577437097712', 'post140577437097712')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437097712', 'post140577437097712')">
- <pre> if response is None:</pre>
- </li>
- <li onclick="toggle('pre140577437097712', 'post140577437097712')">
- <pre> wrapped_callback = self.make_view_atomic(callback)</pre>
- </li>
- <li onclick="toggle('pre140577437097712', 'post140577437097712')">
- <pre> try:</pre>
- </li>
- </ol>
- <ol start="111" class="context-line">
- <li onclick="toggle('pre140577437097712', 'post140577437097712')">
- <pre> response = wrapped_callback(request, *callback_args, **callback_kwargs)</pre>
- <span>...</span>
- </li>
- </ol>
- <ol start='112' class="post-context" id="post140577437097712">
- <li onclick="toggle('pre140577437097712', 'post140577437097712')">
- <pre> except Exception as e:</pre>
- </li>
- <li onclick="toggle('pre140577437097712', 'post140577437097712')">
- <pre> # If the view raised an exception, run it through exception</pre>
- </li>
- <li onclick="toggle('pre140577437097712', 'post140577437097712')">
- <pre> # middleware, and if the exception middleware returns a</pre>
- </li>
- <li onclick="toggle('pre140577437097712', 'post140577437097712')">
- <pre> # response, use that. Otherwise, reraise the exception.</pre>
- </li>
- <li onclick="toggle('pre140577437097712', 'post140577437097712')">
- <pre> for middleware_method in self._exception_middleware:</pre>
- </li>
- <li onclick="toggle('pre140577437097712', 'post140577437097712')">
- <pre> response = middleware_method(request, e)</pre>
- </li>
- </ol>
- </div>
- <div class="commands">
- <a href="#" onclick="return varToggle(this, '140577437097712')">
- <span>▶</span> Local vars
- </a>
- </div>
- <table class="vars" id="v140577437097712">
- <thead>
- <tr>
- <th>Variable</th>
- <th>Value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>e</td>
- <td class="code">
- <pre>ValueError('Cannot use None as a query value',)</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=<function FacilityViewSet at 0x7fdabc803ed8>, args=(), kwargs={}, url_name='facilities-list', app_name='None', namespace='')</pre>
- </td>
- </tr>
- <tr>
- <td>middleware_method</td>
- <td class="code">
- <pre><function process_view at 0x7fdabd447578></pre>
- </td>
- </tr>
- <tr>
- <td>self</td>
- <td class="code">
- <pre><django.core.handlers.wsgi.WSGIHandler object at 0x7fdac56c4210></pre>
- </td>
- </tr>
- <tr>
- <td>request</td>
- <td class="code">
- <pre>"<WSGIRequest\npath:/v3/facilities/,\nGET:<QueryDict: {u'category': [u'1'], u'alpha': [u'1']}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{u'CSRF_COOKIE': u'gSM1eC6HXjq1PIjWxVWDfkcEgR621Clp',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, sdch',\n 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',\n 'HTTP_AUTHORIZATION': 'token c889272e27428bee9e6c6bce78ca997f07c7c312',\n 'HTTP_CACHE_CONTROL': 'no-cache',\n 'HTTP_CONNECTION': 'close',\n 'HTTP_HOST': 'lendleaserenew.flabulessdev.com',\n 'HTTP_POSTMAN_TOKEN': 'f5c4420a-190f-a9fe-51f5-38ef2fd9230b',\n 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36',\n 'HTTP_X_FORWARDED_FOR': '122.160.254.142',\n 'HTTP_X_REAL_IP': '122.160.254.142',\n 'PATH_INFO': u'/v3/facilities/',\n 'QUERY_STRING': 'category=1&alpha=1',\n 'RAW_URI': '/v3/facilities/?category=1&alpha=1',\n 'REMOTE_ADDR': '127.0.0.1',\n 'REMOTE_PORT': '59512',\n 'REQUEST_METHOD': 'GET',\n 'SCRIPT_NAME': u'',\n 'SERVER_NAME': '127.0.0.1',\n 'SERVER_PORT': '8001',\n 'SERVER_PROTOCOL': 'HTTP/1.0',\n 'SERVER_SOFTWARE': 'gunicorn/19.0.0',\n 'gunicorn.socket': <socket._socketobject object at 0x7fdabc5e60c0>,\n 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7fdabc756190>,\n 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>,\n 'wsgi.input': <gunicorn.http.body.Body object at 0x7fdabc756fd0>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>"</pre>
- </td>
- </tr>
- <tr>
- <td>callback</td>
- <td class="code">
- <pre><function FacilityViewSet at 0x7fdabc803ed8></pre>
- </td>
- </tr>
- <tr>
- <td>wrapped_callback</td>
- <td class="code">
- <pre><function FacilityViewSet at 0x7fdabc803ed8></pre>
- </td>
- </tr>
- <tr>
- <td>resolver</td>
- <td class="code">
- <pre><RegexURLResolver 'flabuless.urls' (None:None) ^/></pre>
- </td>
- </tr>
- <tr>
- <td>callback_kwargs</td>
- <td class="code">
- <pre>{}</pre>
- </td>
- </tr>
- <tr>
- <td>response</td>
- <td class="code">
- <pre>None</pre>
- </td>
- </tr>
- <tr>
- <td>urlconf</td>
- <td class="code">
- <pre>'flabuless.urls'</pre>
- </td>
- </tr>
- </tbody>
- </table>
- </li>
- <li class="frame django">
- <code>/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/django/views/decorators/csrf.py</code> in
- <code>wrapped_view</code>
- <div class="context" id="c140577437097640">
- <ol start="50" class="pre-context" id="pre140577437097640">
- <li onclick="toggle('pre140577437097640', 'post140577437097640')">
- <pre> """</pre>
- </li>
- <li onclick="toggle('pre140577437097640', 'post140577437097640')">
- <pre> Marks a view function as being exempt from the CSRF view protection.</pre>
- </li>
- <li onclick="toggle('pre140577437097640', 'post140577437097640')">
- <pre> """</pre>
- </li>
- <li onclick="toggle('pre140577437097640', 'post140577437097640')">
- <pre> # We could just do view_func.csrf_exempt = True, but decorators</pre>
- </li>
- <li onclick="toggle('pre140577437097640', 'post140577437097640')">
- <pre> # are nicer if they don't have side-effects, so we return a new</pre>
- </li>
- <li onclick="toggle('pre140577437097640', 'post140577437097640')">
- <pre> # function.</pre>
- </li>
- <li onclick="toggle('pre140577437097640', 'post140577437097640')">
- <pre> def wrapped_view(*args, **kwargs):</pre>
- </li>
- </ol>
- <ol start="57" class="context-line">
- <li onclick="toggle('pre140577437097640', 'post140577437097640')">
- <pre> return view_func(*args, **kwargs)</pre>
- <span>...</span>
- </li>
- </ol>
- <ol start='58' class="post-context" id="post140577437097640">
- <li onclick="toggle('pre140577437097640', 'post140577437097640')">
- <pre> wrapped_view.csrf_exempt = True</pre>
- </li>
- <li onclick="toggle('pre140577437097640', 'post140577437097640')">
- <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, '140577437097640')">
- <span>▶</span> Local vars
- </a>
- </div>
- <table class="vars" id="v140577437097640">
- <thead>
- <tr>
- <th>Variable</th>
- <th>Value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>args</td>
- <td class="code">
- <pre>(<WSGIRequest
- path:/v3/facilities/,
- GET:<QueryDict: {u'category': [u'1'], u'alpha': [u'1']}>,
- POST:<QueryDict: {}>,
- COOKIES:{},
- META:{u'CSRF_COOKIE': u'gSM1eC6HXjq1PIjWxVWDfkcEgR621Clp',
- 'HTTP_ACCEPT': '*/*',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, sdch',
- 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',
- 'HTTP_AUTHORIZATION': 'token c889272e27428bee9e6c6bce78ca997f07c7c312',
- 'HTTP_CACHE_CONTROL': 'no-cache',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_HOST': 'lendleaserenew.flabulessdev.com',
- 'HTTP_POSTMAN_TOKEN': 'f5c4420a-190f-a9fe-51f5-38ef2fd9230b',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36',
- 'HTTP_X_FORWARDED_FOR': '122.160.254.142',
- 'HTTP_X_REAL_IP': '122.160.254.142',
- 'PATH_INFO': u'/v3/facilities/',
- 'QUERY_STRING': 'category=1&alpha=1',
- 'RAW_URI': '/v3/facilities/?category=1&alpha=1',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REMOTE_PORT': '59512',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '127.0.0.1',
- 'SERVER_PORT': '8001',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'SERVER_SOFTWARE': 'gunicorn/19.0.0',
- 'gunicorn.socket': <socket._socketobject object at 0x7fdabc5e60c0>,
- 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7fdabc756190>,
- 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>,
- 'wsgi.input': <gunicorn.http.body.Body object at 0x7fdabc756fd0>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>,)</pre>
- </td>
- </tr>
- <tr>
- <td>view_func</td>
- <td class="code">
- <pre><function FacilityViewSet at 0x7fdabc803e60></pre>
- </td>
- </tr>
- <tr>
- <td>kwargs</td>
- <td class="code">
- <pre>{}</pre>
- </td>
- </tr>
- </tbody>
- </table>
- </li>
- <li class="frame user">
- <code>/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/rest_framework/viewsets.py</code> in
- <code>view</code>
- <div class="context" id="c140577437097568">
- <ol start="78" class="pre-context" id="pre140577437097568">
- <li onclick="toggle('pre140577437097568', 'post140577437097568')">
- <pre> setattr(self, method, handler)</pre>
- </li>
- <li onclick="toggle('pre140577437097568', 'post140577437097568')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437097568', 'post140577437097568')">
- <pre> # Patch this in as it's otherwise only present from 1.5 onwards</pre>
- </li>
- <li onclick="toggle('pre140577437097568', 'post140577437097568')">
- <pre> if hasattr(self, 'get') and not hasattr(self, 'head'):</pre>
- </li>
- <li onclick="toggle('pre140577437097568', 'post140577437097568')">
- <pre> self.head = self.get</pre>
- </li>
- <li onclick="toggle('pre140577437097568', 'post140577437097568')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437097568', 'post140577437097568')">
- <pre> # And continue as usual</pre>
- </li>
- </ol>
- <ol start="85" class="context-line">
- <li onclick="toggle('pre140577437097568', 'post140577437097568')">
- <pre> return self.dispatch(request, *args, **kwargs)</pre>
- <span>...</span>
- </li>
- </ol>
- <ol start='86' class="post-context" id="post140577437097568">
- <li onclick="toggle('pre140577437097568', 'post140577437097568')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437097568', 'post140577437097568')">
- <pre> # take name and docstring from class</pre>
- </li>
- <li onclick="toggle('pre140577437097568', 'post140577437097568')">
- <pre> update_wrapper(view, cls, updated=())</pre>
- </li>
- <li onclick="toggle('pre140577437097568', 'post140577437097568')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437097568', 'post140577437097568')">
- <pre> # and possible attributes set by decorators</pre>
- </li>
- <li onclick="toggle('pre140577437097568', 'post140577437097568')">
- <pre> # like csrf_exempt from dispatch</pre>
- </li>
- </ol>
- </div>
- <div class="commands">
- <a href="#" onclick="return varToggle(this, '140577437097568')">
- <span>▶</span> Local vars
- </a>
- </div>
- <table class="vars" id="v140577437097568">
- <thead>
- <tr>
- <th>Variable</th>
- <th>Value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>initkwargs</td>
- <td class="code">
- <pre>{u'suffix': u'List'}</pre>
- </td>
- </tr>
- <tr>
- <td>self</td>
- <td class="code">
- <pre><facilities.views.FacilityViewSet object at 0x7fdabc488690></pre>
- </td>
- </tr>
- <tr>
- <td>args</td>
- <td class="code">
- <pre>()</pre>
- </td>
- </tr>
- <tr>
- <td>request</td>
- <td class="code">
- <pre>"<WSGIRequest\npath:/v3/facilities/,\nGET:<QueryDict: {u'category': [u'1'], u'alpha': [u'1']}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{u'CSRF_COOKIE': u'gSM1eC6HXjq1PIjWxVWDfkcEgR621Clp',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, sdch',\n 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',\n 'HTTP_AUTHORIZATION': 'token c889272e27428bee9e6c6bce78ca997f07c7c312',\n 'HTTP_CACHE_CONTROL': 'no-cache',\n 'HTTP_CONNECTION': 'close',\n 'HTTP_HOST': 'lendleaserenew.flabulessdev.com',\n 'HTTP_POSTMAN_TOKEN': 'f5c4420a-190f-a9fe-51f5-38ef2fd9230b',\n 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36',\n 'HTTP_X_FORWARDED_FOR': '122.160.254.142',\n 'HTTP_X_REAL_IP': '122.160.254.142',\n 'PATH_INFO': u'/v3/facilities/',\n 'QUERY_STRING': 'category=1&alpha=1',\n 'RAW_URI': '/v3/facilities/?category=1&alpha=1',\n 'REMOTE_ADDR': '127.0.0.1',\n 'REMOTE_PORT': '59512',\n 'REQUEST_METHOD': 'GET',\n 'SCRIPT_NAME': u'',\n 'SERVER_NAME': '127.0.0.1',\n 'SERVER_PORT': '8001',\n 'SERVER_PROTOCOL': 'HTTP/1.0',\n 'SERVER_SOFTWARE': 'gunicorn/19.0.0',\n 'gunicorn.socket': <socket._socketobject object at 0x7fdabc5e60c0>,\n 'wsgi.errors': <gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7fdabc756190>,\n 'wsgi.file_wrapper': <class 'gunicorn.http.wsgi.FileWrapper'>,\n 'wsgi.input': <gunicorn.http.body.Body object at 0x7fdabc756fd0>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>"</pre>
- </td>
- </tr>
- <tr>
- <td>actions</td>
- <td class="code">
- <pre>{u'get': u'list', u'post': u'create'}</pre>
- </td>
- </tr>
- <tr>
- <td>handler</td>
- <td class="code">
- <pre><bound method FacilityViewSet.list of <facilities.views.FacilityViewSet object at 0x7fdabc488690>></pre>
- </td>
- </tr>
- <tr>
- <td>kwargs</td>
- <td class="code">
- <pre>{}</pre>
- </td>
- </tr>
- <tr>
- <td>action</td>
- <td class="code">
- <pre>u'list'</pre>
- </td>
- </tr>
- <tr>
- <td>method</td>
- <td class="code">
- <pre>u'get'</pre>
- </td>
- </tr>
- <tr>
- <td>cls</td>
- <td class="code">
- <pre><class 'facilities.views.FacilityViewSet'></pre>
- </td>
- </tr>
- </tbody>
- </table>
- </li>
- <li class="frame user">
- <code>/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/rest_framework/views.py</code> in
- <code>dispatch</code>
- <div class="context" id="c140577437097496">
- <ol start="445" class="pre-context" id="pre140577437097496">
- <li onclick="toggle('pre140577437097496', 'post140577437097496')">
- <pre> self.http_method_not_allowed)</pre>
- </li>
- <li onclick="toggle('pre140577437097496', 'post140577437097496')">
- <pre> else:</pre>
- </li>
- <li onclick="toggle('pre140577437097496', 'post140577437097496')">
- <pre> handler = self.http_method_not_allowed</pre>
- </li>
- <li onclick="toggle('pre140577437097496', 'post140577437097496')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437097496', 'post140577437097496')">
- <pre> response = handler(request, *args, **kwargs)</pre>
- </li>
- <li onclick="toggle('pre140577437097496', 'post140577437097496')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437097496', 'post140577437097496')">
- <pre> except Exception as exc:</pre>
- </li>
- </ol>
- <ol start="452" class="context-line">
- <li onclick="toggle('pre140577437097496', 'post140577437097496')">
- <pre> response = self.handle_exception(exc)</pre>
- <span>...</span>
- </li>
- </ol>
- <ol start='453' class="post-context" id="post140577437097496">
- <li onclick="toggle('pre140577437097496', 'post140577437097496')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437097496', 'post140577437097496')">
- <pre> self.response = self.finalize_response(request, response, *args, **kwargs)</pre>
- </li>
- <li onclick="toggle('pre140577437097496', 'post140577437097496')">
- <pre> return self.response</pre>
- </li>
- <li onclick="toggle('pre140577437097496', 'post140577437097496')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437097496', 'post140577437097496')">
- <pre> def options(self, request, *args, **kwargs):</pre>
- </li>
- <li onclick="toggle('pre140577437097496', 'post140577437097496')">
- <pre> """</pre>
- </li>
- </ol>
- </div>
- <div class="commands">
- <a href="#" onclick="return varToggle(this, '140577437097496')">
- <span>▶</span> Local vars
- </a>
- </div>
- <table class="vars" id="v140577437097496">
- <thead>
- <tr>
- <th>Variable</th>
- <th>Value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>exc</td>
- <td class="code">
- <pre>ValueError('Cannot use None as a query value',)</pre>
- </td>
- </tr>
- <tr>
- <td>self</td>
- <td class="code">
- <pre><facilities.views.FacilityViewSet object at 0x7fdabc488690></pre>
- </td>
- </tr>
- <tr>
- <td>args</td>
- <td class="code">
- <pre>()</pre>
- </td>
- </tr>
- <tr>
- <td>request</td>
- <td class="code">
- <pre><rest_framework.request.Request object at 0x7fdabc488a90></pre>
- </td>
- </tr>
- <tr>
- <td>handler</td>
- <td class="code">
- <pre><bound method FacilityViewSet.list of <facilities.views.FacilityViewSet object at 0x7fdabc488690>></pre>
- </td>
- </tr>
- <tr>
- <td>kwargs</td>
- <td class="code">
- <pre>{}</pre>
- </td>
- </tr>
- </tbody>
- </table>
- </li>
- <li class="frame user">
- <code>/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/rest_framework/views.py</code> in
- <code>dispatch</code>
- <div class="context" id="c140577437097352">
- <ol start="442" class="pre-context" id="pre140577437097352">
- <li onclick="toggle('pre140577437097352', 'post140577437097352')">
- <pre> # Get the appropriate handler method</pre>
- </li>
- <li onclick="toggle('pre140577437097352', 'post140577437097352')">
- <pre> if request.method.lower() in self.http_method_names:</pre>
- </li>
- <li onclick="toggle('pre140577437097352', 'post140577437097352')">
- <pre> handler = getattr(self, request.method.lower(),</pre>
- </li>
- <li onclick="toggle('pre140577437097352', 'post140577437097352')">
- <pre> self.http_method_not_allowed)</pre>
- </li>
- <li onclick="toggle('pre140577437097352', 'post140577437097352')">
- <pre> else:</pre>
- </li>
- <li onclick="toggle('pre140577437097352', 'post140577437097352')">
- <pre> handler = self.http_method_not_allowed</pre>
- </li>
- <li onclick="toggle('pre140577437097352', 'post140577437097352')">
- <pre></pre>
- </li>
- </ol>
- <ol start="449" class="context-line">
- <li onclick="toggle('pre140577437097352', 'post140577437097352')">
- <pre> response = handler(request, *args, **kwargs)</pre>
- <span>...</span>
- </li>
- </ol>
- <ol start='450' class="post-context" id="post140577437097352">
- <li onclick="toggle('pre140577437097352', 'post140577437097352')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437097352', 'post140577437097352')">
- <pre> except Exception as exc:</pre>
- </li>
- <li onclick="toggle('pre140577437097352', 'post140577437097352')">
- <pre> response = self.handle_exception(exc)</pre>
- </li>
- <li onclick="toggle('pre140577437097352', 'post140577437097352')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437097352', 'post140577437097352')">
- <pre> self.response = self.finalize_response(request, response, *args, **kwargs)</pre>
- </li>
- <li onclick="toggle('pre140577437097352', 'post140577437097352')">
- <pre> return self.response</pre>
- </li>
- </ol>
- </div>
- <div class="commands">
- <a href="#" onclick="return varToggle(this, '140577437097352')">
- <span>▶</span> Local vars
- </a>
- </div>
- <table class="vars" id="v140577437097352">
- <thead>
- <tr>
- <th>Variable</th>
- <th>Value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>exc</td>
- <td class="code">
- <pre>ValueError('Cannot use None as a query value',)</pre>
- </td>
- </tr>
- <tr>
- <td>self</td>
- <td class="code">
- <pre><facilities.views.FacilityViewSet object at 0x7fdabc488690></pre>
- </td>
- </tr>
- <tr>
- <td>args</td>
- <td class="code">
- <pre>()</pre>
- </td>
- </tr>
- <tr>
- <td>request</td>
- <td class="code">
- <pre><rest_framework.request.Request object at 0x7fdabc488a90></pre>
- </td>
- </tr>
- <tr>
- <td>handler</td>
- <td class="code">
- <pre><bound method FacilityViewSet.list of <facilities.views.FacilityViewSet object at 0x7fdabc488690>></pre>
- </td>
- </tr>
- <tr>
- <td>kwargs</td>
- <td class="code">
- <pre>{}</pre>
- </td>
- </tr>
- </tbody>
- </table>
- </li>
- <li class="frame user">
- <code>/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/rest_framework/mixins.py</code> in
- <code>list</code>
- <div class="context" id="c140577437097280">
- <ol start="37" class="pre-context" id="pre140577437097280">
- <li onclick="toggle('pre140577437097280', 'post140577437097280')">
- <pre> """</pre>
- </li>
- <li onclick="toggle('pre140577437097280', 'post140577437097280')">
- <pre> def list(self, request, *args, **kwargs):</pre>
- </li>
- <li onclick="toggle('pre140577437097280', 'post140577437097280')">
- <pre> queryset = self.filter_queryset(self.get_queryset())</pre>
- </li>
- <li onclick="toggle('pre140577437097280', 'post140577437097280')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437097280', 'post140577437097280')">
- <pre> page = self.paginate_queryset(queryset)</pre>
- </li>
- <li onclick="toggle('pre140577437097280', 'post140577437097280')">
- <pre> if page is not None:</pre>
- </li>
- <li onclick="toggle('pre140577437097280', 'post140577437097280')">
- <pre> serializer = self.get_serializer(page, many=True)</pre>
- </li>
- </ol>
- <ol start="44" class="context-line">
- <li onclick="toggle('pre140577437097280', 'post140577437097280')">
- <pre> return self.get_paginated_response(serializer.data)</pre>
- <span>...</span>
- </li>
- </ol>
- <ol start='45' class="post-context" id="post140577437097280">
- <li onclick="toggle('pre140577437097280', 'post140577437097280')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437097280', 'post140577437097280')">
- <pre> serializer = self.get_serializer(queryset, many=True)</pre>
- </li>
- <li onclick="toggle('pre140577437097280', 'post140577437097280')">
- <pre> return Response(serializer.data)</pre>
- </li>
- <li onclick="toggle('pre140577437097280', 'post140577437097280')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437097280', 'post140577437097280')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437097280', 'post140577437097280')">
- <pre>class RetrieveModelMixin(object):</pre>
- </li>
- </ol>
- </div>
- <div class="commands">
- <a href="#" onclick="return varToggle(this, '140577437097280')">
- <span>▶</span> Local vars
- </a>
- </div>
- <table class="vars" id="v140577437097280">
- <thead>
- <tr>
- <th>Variable</th>
- <th>Value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>queryset</td>
- <td class="code">
- <pre>[<Facility: Altitude Gym>, <Facility: Amore Fitness>, <Facility: Anytime Fitness>, <Facility: Ares Fight Club>, <Facility: Bedok ActiveSG Gym>, <Facility: Bishan ActiveSG Gym >, <Facility: Brazilian Fight Club MMA>, <Facility: Bruce Fitness>, <Facility: Bukit Gombak ActiveSG Gym >, <Facility: BXG Boxing & Fitness>, <Facility: California Fitness Centres>, <Facility: Celebrity Fitness>, <Facility: Choa Chu Kang ActiveSG Gym>, <Facility: Clementi ActiveSG Gym>, <Facility: De' Boutique Gym>, <Facility: Delta ActiveSG Gym>, <Facility: Elevate - Strength & Conditioning>, <Facility: EnergyOne SAFRA Gym>, <Facility: Equilibrium MMA>, <Facility: EVOLVE MMA Gym>, '...(remaining elements truncated)...']</pre>
- </td>
- </tr>
- <tr>
- <td>self</td>
- <td class="code">
- <pre><facilities.views.FacilityViewSet object at 0x7fdabc488690></pre>
- </td>
- </tr>
- <tr>
- <td>args</td>
- <td class="code">
- <pre>()</pre>
- </td>
- </tr>
- <tr>
- <td>request</td>
- <td class="code">
- <pre><rest_framework.request.Request object at 0x7fdabc488a90></pre>
- </td>
- </tr>
- <tr>
- <td>kwargs</td>
- <td class="code">
- <pre>{}</pre>
- </td>
- </tr>
- <tr>
- <td>page</td>
- <td class="code">
- <pre>[<Facility: Altitude Gym>,
- <Facility: Amore Fitness>,
- <Facility: Anytime Fitness>,
- <Facility: Ares Fight Club>,
- <Facility: Bedok ActiveSG Gym>,
- <Facility: Bishan ActiveSG Gym >,
- <Facility: Brazilian Fight Club MMA>,
- <Facility: Bruce Fitness>,
- <Facility: Bukit Gombak ActiveSG Gym >,
- <Facility: BXG Boxing & Fitness>,
- <Facility: California Fitness Centres>,
- <Facility: Celebrity Fitness>,
- <Facility: Choa Chu Kang ActiveSG Gym>,
- <Facility: Clementi ActiveSG Gym>,
- <Facility: De' Boutique Gym>,
- <Facility: Delta ActiveSG Gym>,
- <Facility: Elevate - Strength & Conditioning>,
- <Facility: EnergyOne SAFRA Gym>,
- <Facility: Equilibrium MMA>,
- <Facility: EVOLVE MMA Gym>,
- <Facility: Fight G>,
- <Facility: Fitness First Centres>,
- <Facility: Genesis Gym>,
- <Facility: Gold's Gym>,
- <Facility: GYMMBOXX>,
- <Facility: Hollandse Club Gym>,
- <Facility: Hougang ActiveSG Gym>,
- <Facility: Impact MMA>,
- <Facility: Impakt Singapore>,
- <Facility: JTC Summit Gym>,
- <Facility: Juggernaut Fight Club>,
- <Facility: Jurong East ActiveSG Gym>,
- <Facility: Jurong Green CC Gym>,
- <Facility: Jurong West ActiveSG Gym>,
- <Facility: Kadir's Boxing School>,
- <Facility: Legends Fight Sport>,
- <Facility: National Service Resort & Country Club>,
- <Facility: NUHS Tower Block Gym>,
- <Facility: Onyx MMA>,
- <Facility: OP Integrated Lifestyle Center>,
- <Facility: Pasir Ris ActiveSG Gym>,
- <Facility: Physical Abuse Fitness Center>,
- <Facility: Pure Fitness>,
- <Facility: Sengkang ActiveSG Gym>,
- <Facility: SUTD Gym>,
- <Facility: Tampines ActiveSG Gym>,
- <Facility: The Fitness Protocol>,
- <Facility: Toa Payoh ActiveSG Gym>,
- <Facility: Transcendence MMA>,
- <Facility: True Fitness Gym>,
- <Facility: Vanda Boxing Club>,
- <Facility: Virgin Active Fitness Club>,
- <Facility: WAKO Kickboxing Singapore>,
- <Facility: Woodlands ActiveSG Gym>,
- <Facility: Yio Chu Kang ActiveSG Gym>,
- <Facility: Yishun ActiveSG Gym>,
- <Facility: Yokkao Training Center KL>]</pre>
- </td>
- </tr>
- <tr>
- <td>serializer</td>
- <td class="code">
- <pre>FacilitySerializer([<Facility: Altitude Gym>, <Facility: Amore Fitness>, <Facility: Anytime Fitness>, <Facility: Ares Fight Club>, <Facility: Bedok ActiveSG Gym>, <Facility: Bishan ActiveSG Gym >, <Facility: Brazilian Fight Club MMA>, <Facility: Bruce Fitness>, <Facility: Bukit Gombak ActiveSG Gym >, <Facility: BXG Boxing & Fitness>, <Facility: California Fitness Centres>, <Facility: Celebrity Fitness>, <Facility: Choa Chu Kang ActiveSG Gym>, <Facility: Clementi ActiveSG Gym>, <Facility: De' Boutique Gym>, <Facility: Delta ActiveSG Gym>, <Facility: Elevate - Strength & Conditioning>, <Facility: EnergyOne SAFRA Gym>, <Facility: Equilibrium MMA>, <Facility: EVOLVE MMA Gym>, <Facility: Fight G>, <Facility: Fitness First Centres>, <Facility: Genesis Gym>, <Facility: Gold's Gym>, <Facility: GYMMBOXX>, <Facility: Hollandse Club Gym>, <Facility: Hougang ActiveSG Gym>, <Facility: Impact MMA>, <Facility: Impakt Singapore>, <Facility: JTC Summit Gym>, <Facility: Juggernaut Fight Club>, <Facility: Jurong East ActiveSG Gym>, <Facility: Jurong Green CC Gym>, <Facility: Jurong West ActiveSG Gym>, <Facility: Kadir's Boxing School>, <Facility: Legends Fight Sport>, <Facility: National Service Resort & Country Club>, <Facility: NUHS Tower Block Gym>, <Facility: Onyx MMA>, <Facility: OP Integrated Lifestyle Center>, <Facility: Pasir Ris ActiveSG Gym>, <Facility: Physical Abuse Fitness Center>, <Facility: Pure Fitness>, <Facility: Sengkang ActiveSG Gym>, <Facility: SUTD Gym>, <Facility: Tampines ActiveSG Gym>, <Facility: The Fitness Protocol>, <Facility: Toa Payoh ActiveSG Gym>, <Facility: Transcendence MMA>, <Facility: True Fitness Gym>, <Facility: Vanda Boxing Club>, <Facility: Virgin Active Fitness Club>, <Facility: WAKO Kickboxing Singapore>, <Facility: Woodlands ActiveSG Gym>, <Facility: Yio Chu Kang ActiveSG Gym>, <Facility: Yishun ActiveSG Gym>, <Facility: Yokkao Training Center KL>], context={'nearby_locations': None, u'view': <facilities.views.FacilityViewSet object>, u'request': <rest_framework.request.Request object>, 'version': u'v3', u'format': None}, many=True):
- pk = IntegerField(label='ID', read_only=True)
- name = CharField(max_length=100)
- category = NestedSerializer(read_only=True):
- id = IntegerField(label='ID', read_only=True)
- img = ImageField(allow_null=True, required=False)
- icon = ImageField(allow_null=True, required=False)
- name = CharField(max_length=100)
- slug = SlugField(max_length=50)
- description = CharField(allow_blank=True, allow_null=True, required=False, style={'base_template': 'textarea.html'})
- point_of_contact = EmailField(max_length=200)
- phone = CharField(max_length=200)
- website = URLField(allow_blank=True, allow_null=True, max_length=200, required=False)
- terms_and_conditions = CharField(allow_blank=True, allow_null=True, required=False, style={'base_template': 'textarea.html'})
- location_set = SerializerMethodField()
- img = ImageField(allow_null=True, required=False)
- img_thumbnail_url = SerializerMethodField()
- img_detail_url = SerializerMethodField()</pre>
- </td>
- </tr>
- </tbody>
- </table>
- </li>
- <li class="frame user">
- <code>/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/rest_framework/serializers.py</code> in
- <code>data</code>
- <div class="context" id="c140577438542304">
- <ol start="611" class="pre-context" id="pre140577438542304">
- <li onclick="toggle('pre140577438542304', 'post140577438542304')">
- <pre> return unicode_to_repr(representation.list_repr(self, indent=1))</pre>
- </li>
- <li onclick="toggle('pre140577438542304', 'post140577438542304')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577438542304', 'post140577438542304')">
- <pre> # Include a backlink to the serializer class on return objects.</pre>
- </li>
- <li onclick="toggle('pre140577438542304', 'post140577438542304')">
- <pre> # Allows renderers such as HTMLFormRenderer to get the full field info.</pre>
- </li>
- <li onclick="toggle('pre140577438542304', 'post140577438542304')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577438542304', 'post140577438542304')">
- <pre> @property</pre>
- </li>
- <li onclick="toggle('pre140577438542304', 'post140577438542304')">
- <pre> def data(self):</pre>
- </li>
- </ol>
- <ol start="618" class="context-line">
- <li onclick="toggle('pre140577438542304', 'post140577438542304')">
- <pre> ret = super(ListSerializer, self).data</pre>
- <span>...</span>
- </li>
- </ol>
- <ol start='619' class="post-context" id="post140577438542304">
- <li onclick="toggle('pre140577438542304', 'post140577438542304')">
- <pre> return ReturnList(ret, serializer=self)</pre>
- </li>
- <li onclick="toggle('pre140577438542304', 'post140577438542304')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577438542304', 'post140577438542304')">
- <pre> @property</pre>
- </li>
- <li onclick="toggle('pre140577438542304', 'post140577438542304')">
- <pre> def errors(self):</pre>
- </li>
- <li onclick="toggle('pre140577438542304', 'post140577438542304')">
- <pre> ret = super(ListSerializer, self).errors</pre>
- </li>
- <li onclick="toggle('pre140577438542304', 'post140577438542304')">
- <pre> if isinstance(ret, dict):</pre>
- </li>
- </ol>
- </div>
- <div class="commands">
- <a href="#" onclick="return varToggle(this, '140577438542304')">
- <span>▶</span> Local vars
- </a>
- </div>
- <table class="vars" id="v140577438542304">
- <thead>
- <tr>
- <th>Variable</th>
- <th>Value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>self</td>
- <td class="code">
- <pre>FacilitySerializer([<Facility: Altitude Gym>, <Facility: Amore Fitness>, <Facility: Anytime Fitness>, <Facility: Ares Fight Club>, <Facility: Bedok ActiveSG Gym>, <Facility: Bishan ActiveSG Gym >, <Facility: Brazilian Fight Club MMA>, <Facility: Bruce Fitness>, <Facility: Bukit Gombak ActiveSG Gym >, <Facility: BXG Boxing & Fitness>, <Facility: California Fitness Centres>, <Facility: Celebrity Fitness>, <Facility: Choa Chu Kang ActiveSG Gym>, <Facility: Clementi ActiveSG Gym>, <Facility: De' Boutique Gym>, <Facility: Delta ActiveSG Gym>, <Facility: Elevate - Strength & Conditioning>, <Facility: EnergyOne SAFRA Gym>, <Facility: Equilibrium MMA>, <Facility: EVOLVE MMA Gym>, <Facility: Fight G>, <Facility: Fitness First Centres>, <Facility: Genesis Gym>, <Facility: Gold's Gym>, <Facility: GYMMBOXX>, <Facility: Hollandse Club Gym>, <Facility: Hougang ActiveSG Gym>, <Facility: Impact MMA>, <Facility: Impakt Singapore>, <Facility: JTC Summit Gym>, <Facility: Juggernaut Fight Club>, <Facility: Jurong East ActiveSG Gym>, <Facility: Jurong Green CC Gym>, <Facility: Jurong West ActiveSG Gym>, <Facility: Kadir's Boxing School>, <Facility: Legends Fight Sport>, <Facility: National Service Resort & Country Club>, <Facility: NUHS Tower Block Gym>, <Facility: Onyx MMA>, <Facility: OP Integrated Lifestyle Center>, <Facility: Pasir Ris ActiveSG Gym>, <Facility: Physical Abuse Fitness Center>, <Facility: Pure Fitness>, <Facility: Sengkang ActiveSG Gym>, <Facility: SUTD Gym>, <Facility: Tampines ActiveSG Gym>, <Facility: The Fitness Protocol>, <Facility: Toa Payoh ActiveSG Gym>, <Facility: Transcendence MMA>, <Facility: True Fitness Gym>, <Facility: Vanda Boxing Club>, <Facility: Virgin Active Fitness Club>, <Facility: WAKO Kickboxing Singapore>, <Facility: Woodlands ActiveSG Gym>, <Facility: Yio Chu Kang ActiveSG Gym>, <Facility: Yishun ActiveSG Gym>, <Facility: Yokkao Training Center KL>], context={'nearby_locations': None, u'view': <facilities.views.FacilityViewSet object>, u'request': <rest_framework.request.Request object>, 'version': u'v3', u'format': None}, many=True):
- pk = IntegerField(label='ID', read_only=True)
- name = CharField(max_length=100)
- category = NestedSerializer(read_only=True):
- id = IntegerField(label='ID', read_only=True)
- img = ImageField(allow_null=True, required=False)
- icon = ImageField(allow_null=True, required=False)
- name = CharField(max_length=100)
- slug = SlugField(max_length=50)
- description = CharField(allow_blank=True, allow_null=True, required=False, style={'base_template': 'textarea.html'})
- point_of_contact = EmailField(max_length=200)
- phone = CharField(max_length=200)
- website = URLField(allow_blank=True, allow_null=True, max_length=200, required=False)
- terms_and_conditions = CharField(allow_blank=True, allow_null=True, required=False, style={'base_template': 'textarea.html'})
- location_set = SerializerMethodField()
- img = ImageField(allow_null=True, required=False)
- img_thumbnail_url = SerializerMethodField()
- img_detail_url = SerializerMethodField()</pre>
- </td>
- </tr>
- </tbody>
- </table>
- </li>
- <li class="frame user">
- <code>/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/rest_framework/serializers.py</code> in
- <code>data</code>
- <div class="context" id="c140577437097208">
- <ol start="206" class="pre-context" id="pre140577437097208">
- <li onclick="toggle('pre140577437097208', 'post140577437097208')">
- <pre> 'You should either call `.is_valid()` first, '</pre>
- </li>
- <li onclick="toggle('pre140577437097208', 'post140577437097208')">
- <pre> 'or access `.initial_data` instead.'</pre>
- </li>
- <li onclick="toggle('pre140577437097208', 'post140577437097208')">
- <pre> )</pre>
- </li>
- <li onclick="toggle('pre140577437097208', 'post140577437097208')">
- <pre> raise AssertionError(msg)</pre>
- </li>
- <li onclick="toggle('pre140577437097208', 'post140577437097208')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437097208', 'post140577437097208')">
- <pre> if not hasattr(self, '_data'):</pre>
- </li>
- <li onclick="toggle('pre140577437097208', 'post140577437097208')">
- <pre> if self.instance is not None and not getattr(self, '_errors', None):</pre>
- </li>
- </ol>
- <ol start="213" class="context-line">
- <li onclick="toggle('pre140577437097208', 'post140577437097208')">
- <pre> self._data = self.to_representation(self.instance)</pre>
- <span>...</span>
- </li>
- </ol>
- <ol start='214' class="post-context" id="post140577437097208">
- <li onclick="toggle('pre140577437097208', 'post140577437097208')">
- <pre> elif hasattr(self, '_validated_data') and not getattr(self, '_errors', None):</pre>
- </li>
- <li onclick="toggle('pre140577437097208', 'post140577437097208')">
- <pre> self._data = self.to_representation(self.validated_data)</pre>
- </li>
- <li onclick="toggle('pre140577437097208', 'post140577437097208')">
- <pre> else:</pre>
- </li>
- <li onclick="toggle('pre140577437097208', 'post140577437097208')">
- <pre> self._data = self.get_initial()</pre>
- </li>
- <li onclick="toggle('pre140577437097208', 'post140577437097208')">
- <pre> return self._data</pre>
- </li>
- <li onclick="toggle('pre140577437097208', 'post140577437097208')">
- <pre></pre>
- </li>
- </ol>
- </div>
- <div class="commands">
- <a href="#" onclick="return varToggle(this, '140577437097208')">
- <span>▶</span> Local vars
- </a>
- </div>
- <table class="vars" id="v140577437097208">
- <thead>
- <tr>
- <th>Variable</th>
- <th>Value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>self</td>
- <td class="code">
- <pre>FacilitySerializer([<Facility: Altitude Gym>, <Facility: Amore Fitness>, <Facility: Anytime Fitness>, <Facility: Ares Fight Club>, <Facility: Bedok ActiveSG Gym>, <Facility: Bishan ActiveSG Gym >, <Facility: Brazilian Fight Club MMA>, <Facility: Bruce Fitness>, <Facility: Bukit Gombak ActiveSG Gym >, <Facility: BXG Boxing & Fitness>, <Facility: California Fitness Centres>, <Facility: Celebrity Fitness>, <Facility: Choa Chu Kang ActiveSG Gym>, <Facility: Clementi ActiveSG Gym>, <Facility: De' Boutique Gym>, <Facility: Delta ActiveSG Gym>, <Facility: Elevate - Strength & Conditioning>, <Facility: EnergyOne SAFRA Gym>, <Facility: Equilibrium MMA>, <Facility: EVOLVE MMA Gym>, <Facility: Fight G>, <Facility: Fitness First Centres>, <Facility: Genesis Gym>, <Facility: Gold's Gym>, <Facility: GYMMBOXX>, <Facility: Hollandse Club Gym>, <Facility: Hougang ActiveSG Gym>, <Facility: Impact MMA>, <Facility: Impakt Singapore>, <Facility: JTC Summit Gym>, <Facility: Juggernaut Fight Club>, <Facility: Jurong East ActiveSG Gym>, <Facility: Jurong Green CC Gym>, <Facility: Jurong West ActiveSG Gym>, <Facility: Kadir's Boxing School>, <Facility: Legends Fight Sport>, <Facility: National Service Resort & Country Club>, <Facility: NUHS Tower Block Gym>, <Facility: Onyx MMA>, <Facility: OP Integrated Lifestyle Center>, <Facility: Pasir Ris ActiveSG Gym>, <Facility: Physical Abuse Fitness Center>, <Facility: Pure Fitness>, <Facility: Sengkang ActiveSG Gym>, <Facility: SUTD Gym>, <Facility: Tampines ActiveSG Gym>, <Facility: The Fitness Protocol>, <Facility: Toa Payoh ActiveSG Gym>, <Facility: Transcendence MMA>, <Facility: True Fitness Gym>, <Facility: Vanda Boxing Club>, <Facility: Virgin Active Fitness Club>, <Facility: WAKO Kickboxing Singapore>, <Facility: Woodlands ActiveSG Gym>, <Facility: Yio Chu Kang ActiveSG Gym>, <Facility: Yishun ActiveSG Gym>, <Facility: Yokkao Training Center KL>], context={'nearby_locations': None, u'view': <facilities.views.FacilityViewSet object>, u'request': <rest_framework.request.Request object>, 'version': u'v3', u'format': None}, many=True):
- pk = IntegerField(label='ID', read_only=True)
- name = CharField(max_length=100)
- category = NestedSerializer(read_only=True):
- id = IntegerField(label='ID', read_only=True)
- img = ImageField(allow_null=True, required=False)
- icon = ImageField(allow_null=True, required=False)
- name = CharField(max_length=100)
- slug = SlugField(max_length=50)
- description = CharField(allow_blank=True, allow_null=True, required=False, style={'base_template': 'textarea.html'})
- point_of_contact = EmailField(max_length=200)
- phone = CharField(max_length=200)
- website = URLField(allow_blank=True, allow_null=True, max_length=200, required=False)
- terms_and_conditions = CharField(allow_blank=True, allow_null=True, required=False, style={'base_template': 'textarea.html'})
- location_set = SerializerMethodField()
- img = ImageField(allow_null=True, required=False)
- img_thumbnail_url = SerializerMethodField()
- img_detail_url = SerializerMethodField()</pre>
- </td>
- </tr>
- </tbody>
- </table>
- </li>
- <li class="frame user">
- <code>/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/rest_framework/serializers.py</code> in
- <code>to_representation</code>
- <div class="context" id="c140577437097136">
- <ol start="561" class="pre-context" id="pre140577437097136">
- <li onclick="toggle('pre140577437097136', 'post140577437097136')">
- <pre> """</pre>
- </li>
- <li onclick="toggle('pre140577437097136', 'post140577437097136')">
- <pre> List of object instances -> List of dicts of primitive datatypes.</pre>
- </li>
- <li onclick="toggle('pre140577437097136', 'post140577437097136')">
- <pre> """</pre>
- </li>
- <li onclick="toggle('pre140577437097136', 'post140577437097136')">
- <pre> # Dealing with nested relationships, data can be a Manager,</pre>
- </li>
- <li onclick="toggle('pre140577437097136', 'post140577437097136')">
- <pre> # so, first get a queryset from the Manager if needed</pre>
- </li>
- <li onclick="toggle('pre140577437097136', 'post140577437097136')">
- <pre> iterable = data.all() if isinstance(data, (models.Manager, query.QuerySet)) else data</pre>
- </li>
- <li onclick="toggle('pre140577437097136', 'post140577437097136')">
- <pre> return [</pre>
- </li>
- </ol>
- <ol start="568" class="context-line">
- <li onclick="toggle('pre140577437097136', 'post140577437097136')">
- <pre> self.child.to_representation(item) for item in iterable</pre>
- <span>...</span>
- </li>
- </ol>
- <ol start='569' class="post-context" id="post140577437097136">
- <li onclick="toggle('pre140577437097136', 'post140577437097136')">
- <pre> ]</pre>
- </li>
- <li onclick="toggle('pre140577437097136', 'post140577437097136')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437097136', 'post140577437097136')">
- <pre> def validate(self, attrs):</pre>
- </li>
- <li onclick="toggle('pre140577437097136', 'post140577437097136')">
- <pre> return attrs</pre>
- </li>
- <li onclick="toggle('pre140577437097136', 'post140577437097136')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437097136', 'post140577437097136')">
- <pre> def update(self, instance, validated_data):</pre>
- </li>
- </ol>
- </div>
- <div class="commands">
- <a href="#" onclick="return varToggle(this, '140577437097136')">
- <span>▶</span> Local vars
- </a>
- </div>
- <table class="vars" id="v140577437097136">
- <thead>
- <tr>
- <th>Variable</th>
- <th>Value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>item</td>
- <td class="code">
- <pre><Facility: Altitude Gym></pre>
- </td>
- </tr>
- <tr>
- <td>self</td>
- <td class="code">
- <pre>FacilitySerializer([<Facility: Altitude Gym>, <Facility: Amore Fitness>, <Facility: Anytime Fitness>, <Facility: Ares Fight Club>, <Facility: Bedok ActiveSG Gym>, <Facility: Bishan ActiveSG Gym >, <Facility: Brazilian Fight Club MMA>, <Facility: Bruce Fitness>, <Facility: Bukit Gombak ActiveSG Gym >, <Facility: BXG Boxing & Fitness>, <Facility: California Fitness Centres>, <Facility: Celebrity Fitness>, <Facility: Choa Chu Kang ActiveSG Gym>, <Facility: Clementi ActiveSG Gym>, <Facility: De' Boutique Gym>, <Facility: Delta ActiveSG Gym>, <Facility: Elevate - Strength & Conditioning>, <Facility: EnergyOne SAFRA Gym>, <Facility: Equilibrium MMA>, <Facility: EVOLVE MMA Gym>, <Facility: Fight G>, <Facility: Fitness First Centres>, <Facility: Genesis Gym>, <Facility: Gold's Gym>, <Facility: GYMMBOXX>, <Facility: Hollandse Club Gym>, <Facility: Hougang ActiveSG Gym>, <Facility: Impact MMA>, <Facility: Impakt Singapore>, <Facility: JTC Summit Gym>, <Facility: Juggernaut Fight Club>, <Facility: Jurong East ActiveSG Gym>, <Facility: Jurong Green CC Gym>, <Facility: Jurong West ActiveSG Gym>, <Facility: Kadir's Boxing School>, <Facility: Legends Fight Sport>, <Facility: National Service Resort & Country Club>, <Facility: NUHS Tower Block Gym>, <Facility: Onyx MMA>, <Facility: OP Integrated Lifestyle Center>, <Facility: Pasir Ris ActiveSG Gym>, <Facility: Physical Abuse Fitness Center>, <Facility: Pure Fitness>, <Facility: Sengkang ActiveSG Gym>, <Facility: SUTD Gym>, <Facility: Tampines ActiveSG Gym>, <Facility: The Fitness Protocol>, <Facility: Toa Payoh ActiveSG Gym>, <Facility: Transcendence MMA>, <Facility: True Fitness Gym>, <Facility: Vanda Boxing Club>, <Facility: Virgin Active Fitness Club>, <Facility: WAKO Kickboxing Singapore>, <Facility: Woodlands ActiveSG Gym>, <Facility: Yio Chu Kang ActiveSG Gym>, <Facility: Yishun ActiveSG Gym>, <Facility: Yokkao Training Center KL>], context={'nearby_locations': None, u'view': <facilities.views.FacilityViewSet object>, u'request': <rest_framework.request.Request object>, 'version': u'v3', u'format': None}, many=True):
- pk = IntegerField(label='ID', read_only=True)
- name = CharField(max_length=100)
- category = NestedSerializer(read_only=True):
- id = IntegerField(label='ID', read_only=True)
- img = ImageField(allow_null=True, required=False)
- icon = ImageField(allow_null=True, required=False)
- name = CharField(max_length=100)
- slug = SlugField(max_length=50)
- description = CharField(allow_blank=True, allow_null=True, required=False, style={'base_template': 'textarea.html'})
- point_of_contact = EmailField(max_length=200)
- phone = CharField(max_length=200)
- website = URLField(allow_blank=True, allow_null=True, max_length=200, required=False)
- terms_and_conditions = CharField(allow_blank=True, allow_null=True, required=False, style={'base_template': 'textarea.html'})
- location_set = SerializerMethodField()
- img = ImageField(allow_null=True, required=False)
- img_thumbnail_url = SerializerMethodField()
- img_detail_url = SerializerMethodField()</pre>
- </td>
- </tr>
- <tr>
- <td>data</td>
- <td class="code">
- <pre>[<Facility: Altitude Gym>,
- <Facility: Amore Fitness>,
- <Facility: Anytime Fitness>,
- <Facility: Ares Fight Club>,
- <Facility: Bedok ActiveSG Gym>,
- <Facility: Bishan ActiveSG Gym >,
- <Facility: Brazilian Fight Club MMA>,
- <Facility: Bruce Fitness>,
- <Facility: Bukit Gombak ActiveSG Gym >,
- <Facility: BXG Boxing & Fitness>,
- <Facility: California Fitness Centres>,
- <Facility: Celebrity Fitness>,
- <Facility: Choa Chu Kang ActiveSG Gym>,
- <Facility: Clementi ActiveSG Gym>,
- <Facility: De' Boutique Gym>,
- <Facility: Delta ActiveSG Gym>,
- <Facility: Elevate - Strength & Conditioning>,
- <Facility: EnergyOne SAFRA Gym>,
- <Facility: Equilibrium MMA>,
- <Facility: EVOLVE MMA Gym>,
- <Facility: Fight G>,
- <Facility: Fitness First Centres>,
- <Facility: Genesis Gym>,
- <Facility: Gold's Gym>,
- <Facility: GYMMBOXX>,
- <Facility: Hollandse Club Gym>,
- <Facility: Hougang ActiveSG Gym>,
- <Facility: Impact MMA>,
- <Facility: Impakt Singapore>,
- <Facility: JTC Summit Gym>,
- <Facility: Juggernaut Fight Club>,
- <Facility: Jurong East ActiveSG Gym>,
- <Facility: Jurong Green CC Gym>,
- <Facility: Jurong West ActiveSG Gym>,
- <Facility: Kadir's Boxing School>,
- <Facility: Legends Fight Sport>,
- <Facility: National Service Resort & Country Club>,
- <Facility: NUHS Tower Block Gym>,
- <Facility: Onyx MMA>,
- <Facility: OP Integrated Lifestyle Center>,
- <Facility: Pasir Ris ActiveSG Gym>,
- <Facility: Physical Abuse Fitness Center>,
- <Facility: Pure Fitness>,
- <Facility: Sengkang ActiveSG Gym>,
- <Facility: SUTD Gym>,
- <Facility: Tampines ActiveSG Gym>,
- <Facility: The Fitness Protocol>,
- <Facility: Toa Payoh ActiveSG Gym>,
- <Facility: Transcendence MMA>,
- <Facility: True Fitness Gym>,
- <Facility: Vanda Boxing Club>,
- <Facility: Virgin Active Fitness Club>,
- <Facility: WAKO Kickboxing Singapore>,
- <Facility: Woodlands ActiveSG Gym>,
- <Facility: Yio Chu Kang ActiveSG Gym>,
- <Facility: Yishun ActiveSG Gym>,
- <Facility: Yokkao Training Center KL>]</pre>
- </td>
- </tr>
- <tr>
- <td>iterable</td>
- <td class="code">
- <pre>[<Facility: Altitude Gym>,
- <Facility: Amore Fitness>,
- <Facility: Anytime Fitness>,
- <Facility: Ares Fight Club>,
- <Facility: Bedok ActiveSG Gym>,
- <Facility: Bishan ActiveSG Gym >,
- <Facility: Brazilian Fight Club MMA>,
- <Facility: Bruce Fitness>,
- <Facility: Bukit Gombak ActiveSG Gym >,
- <Facility: BXG Boxing & Fitness>,
- <Facility: California Fitness Centres>,
- <Facility: Celebrity Fitness>,
- <Facility: Choa Chu Kang ActiveSG Gym>,
- <Facility: Clementi ActiveSG Gym>,
- <Facility: De' Boutique Gym>,
- <Facility: Delta ActiveSG Gym>,
- <Facility: Elevate - Strength & Conditioning>,
- <Facility: EnergyOne SAFRA Gym>,
- <Facility: Equilibrium MMA>,
- <Facility: EVOLVE MMA Gym>,
- <Facility: Fight G>,
- <Facility: Fitness First Centres>,
- <Facility: Genesis Gym>,
- <Facility: Gold's Gym>,
- <Facility: GYMMBOXX>,
- <Facility: Hollandse Club Gym>,
- <Facility: Hougang ActiveSG Gym>,
- <Facility: Impact MMA>,
- <Facility: Impakt Singapore>,
- <Facility: JTC Summit Gym>,
- <Facility: Juggernaut Fight Club>,
- <Facility: Jurong East ActiveSG Gym>,
- <Facility: Jurong Green CC Gym>,
- <Facility: Jurong West ActiveSG Gym>,
- <Facility: Kadir's Boxing School>,
- <Facility: Legends Fight Sport>,
- <Facility: National Service Resort & Country Club>,
- <Facility: NUHS Tower Block Gym>,
- <Facility: Onyx MMA>,
- <Facility: OP Integrated Lifestyle Center>,
- <Facility: Pasir Ris ActiveSG Gym>,
- <Facility: Physical Abuse Fitness Center>,
- <Facility: Pure Fitness>,
- <Facility: Sengkang ActiveSG Gym>,
- <Facility: SUTD Gym>,
- <Facility: Tampines ActiveSG Gym>,
- <Facility: The Fitness Protocol>,
- <Facility: Toa Payoh ActiveSG Gym>,
- <Facility: Transcendence MMA>,
- <Facility: True Fitness Gym>,
- <Facility: Vanda Boxing Club>,
- <Facility: Virgin Active Fitness Club>,
- <Facility: WAKO Kickboxing Singapore>,
- <Facility: Woodlands ActiveSG Gym>,
- <Facility: Yio Chu Kang ActiveSG Gym>,
- <Facility: Yishun ActiveSG Gym>,
- <Facility: Yokkao Training Center KL>]</pre>
- </td>
- </tr>
- </tbody>
- </table>
- </li>
- <li class="frame user">
- <code>/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/rest_framework/serializers.py</code> in
- <code>to_representation</code>
- <div class="context" id="c140577437097064">
- <ol start="428" class="pre-context" id="pre140577437097064">
- <li onclick="toggle('pre140577437097064', 'post140577437097064')">
- <pre> continue</pre>
- </li>
- <li onclick="toggle('pre140577437097064', 'post140577437097064')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437097064', 'post140577437097064')">
- <pre> if attribute is None:</pre>
- </li>
- <li onclick="toggle('pre140577437097064', 'post140577437097064')">
- <pre> # We skip `to_representation` for `None` values so that</pre>
- </li>
- <li onclick="toggle('pre140577437097064', 'post140577437097064')">
- <pre> # fields do not have to explicitly deal with that case.</pre>
- </li>
- <li onclick="toggle('pre140577437097064', 'post140577437097064')">
- <pre> ret[field.field_name] = None</pre>
- </li>
- <li onclick="toggle('pre140577437097064', 'post140577437097064')">
- <pre> else:</pre>
- </li>
- </ol>
- <ol start="435" class="context-line">
- <li onclick="toggle('pre140577437097064', 'post140577437097064')">
- <pre> ret[field.field_name] = field.to_representation(attribute)</pre>
- <span>...</span>
- </li>
- </ol>
- <ol start='436' class="post-context" id="post140577437097064">
- <li onclick="toggle('pre140577437097064', 'post140577437097064')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437097064', 'post140577437097064')">
- <pre> return ret</pre>
- </li>
- <li onclick="toggle('pre140577437097064', 'post140577437097064')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437097064', 'post140577437097064')">
- <pre> def validate(self, attrs):</pre>
- </li>
- <li onclick="toggle('pre140577437097064', 'post140577437097064')">
- <pre> return attrs</pre>
- </li>
- <li onclick="toggle('pre140577437097064', 'post140577437097064')">
- <pre></pre>
- </li>
- </ol>
- </div>
- <div class="commands">
- <a href="#" onclick="return varToggle(this, '140577437097064')">
- <span>▶</span> Local vars
- </a>
- </div>
- <table class="vars" id="v140577437097064">
- <thead>
- <tr>
- <th>Variable</th>
- <th>Value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>instance</td>
- <td class="code">
- <pre><Facility: Altitude Gym></pre>
- </td>
- </tr>
- <tr>
- <td>fields</td>
- <td class="code">
- <pre>[IntegerField(label='ID', read_only=True),
- CharField(max_length=100),
- NestedSerializer(read_only=True):
- id = IntegerField(label='ID', read_only=True)
- img = ImageField(allow_null=True, required=False)
- icon = ImageField(allow_null=True, required=False)
- name = CharField(max_length=100)
- slug = SlugField(max_length=50),
- CharField(allow_blank=True, allow_null=True, required=False, style={'base_template': 'textarea.html'}),
- EmailField(max_length=200),
- CharField(max_length=200),
- URLField(allow_blank=True, allow_null=True, max_length=200, required=False),
- CharField(allow_blank=True, allow_null=True, required=False, style={'base_template': 'textarea.html'}),
- SerializerMethodField(),
- ImageField(allow_null=True, required=False),
- SerializerMethodField(),
- SerializerMethodField()]</pre>
- </td>
- </tr>
- <tr>
- <td>self</td>
- <td class="code">
- <pre>FacilitySerializer([<Facility: Altitude Gym>, <Facility: Amore Fitness>, <Facility: Anytime Fitness>, <Facility: Ares Fight Club>, <Facility: Bedok ActiveSG Gym>, <Facility: Bishan ActiveSG Gym >, <Facility: Brazilian Fight Club MMA>, <Facility: Bruce Fitness>, <Facility: Bukit Gombak ActiveSG Gym >, <Facility: BXG Boxing & Fitness>, <Facility: California Fitness Centres>, <Facility: Celebrity Fitness>, <Facility: Choa Chu Kang ActiveSG Gym>, <Facility: Clementi ActiveSG Gym>, <Facility: De' Boutique Gym>, <Facility: Delta ActiveSG Gym>, <Facility: Elevate - Strength & Conditioning>, <Facility: EnergyOne SAFRA Gym>, <Facility: Equilibrium MMA>, <Facility: EVOLVE MMA Gym>, <Facility: Fight G>, <Facility: Fitness First Centres>, <Facility: Genesis Gym>, <Facility: Gold's Gym>, <Facility: GYMMBOXX>, <Facility: Hollandse Club Gym>, <Facility: Hougang ActiveSG Gym>, <Facility: Impact MMA>, <Facility: Impakt Singapore>, <Facility: JTC Summit Gym>, <Facility: Juggernaut Fight Club>, <Facility: Jurong East ActiveSG Gym>, <Facility: Jurong Green CC Gym>, <Facility: Jurong West ActiveSG Gym>, <Facility: Kadir's Boxing School>, <Facility: Legends Fight Sport>, <Facility: National Service Resort & Country Club>, <Facility: NUHS Tower Block Gym>, <Facility: Onyx MMA>, <Facility: OP Integrated Lifestyle Center>, <Facility: Pasir Ris ActiveSG Gym>, <Facility: Physical Abuse Fitness Center>, <Facility: Pure Fitness>, <Facility: Sengkang ActiveSG Gym>, <Facility: SUTD Gym>, <Facility: Tampines ActiveSG Gym>, <Facility: The Fitness Protocol>, <Facility: Toa Payoh ActiveSG Gym>, <Facility: Transcendence MMA>, <Facility: True Fitness Gym>, <Facility: Vanda Boxing Club>, <Facility: Virgin Active Fitness Club>, <Facility: WAKO Kickboxing Singapore>, <Facility: Woodlands ActiveSG Gym>, <Facility: Yio Chu Kang ActiveSG Gym>, <Facility: Yishun ActiveSG Gym>, <Facility: Yokkao Training Center KL>], context={'nearby_locations': None, u'view': <facilities.views.FacilityViewSet object>, u'request': <rest_framework.request.Request object>, 'version': u'v3', u'format': None}):
- pk = IntegerField(label='ID', read_only=True)
- name = CharField(max_length=100)
- category = NestedSerializer(read_only=True):
- id = IntegerField(label='ID', read_only=True)
- img = ImageField(allow_null=True, required=False)
- icon = ImageField(allow_null=True, required=False)
- name = CharField(max_length=100)
- slug = SlugField(max_length=50)
- description = CharField(allow_blank=True, allow_null=True, required=False, style={'base_template': 'textarea.html'})
- point_of_contact = EmailField(max_length=200)
- phone = CharField(max_length=200)
- website = URLField(allow_blank=True, allow_null=True, max_length=200, required=False)
- terms_and_conditions = CharField(allow_blank=True, allow_null=True, required=False, style={'base_template': 'textarea.html'})
- location_set = SerializerMethodField()
- img = ImageField(allow_null=True, required=False)
- img_thumbnail_url = SerializerMethodField()
- img_detail_url = SerializerMethodField()</pre>
- </td>
- </tr>
- <tr>
- <td>ret</td>
- <td class="code">
- <pre>OrderedDict([('pk', 344), ('name', u'Altitude Gym'), ('category', OrderedDict([(u'id', 1), ('img', 'http://lendleaserenew.flabulessdev.com/media/categorypics/Gyms.png'), ('icon', 'http://lendleaserenew.flabulessdev.com/media/icons/Fitness_icon.png'), ('name', u'Gym'), ('slug', u'gym')])), ('description', u'Altitude is Singapore\u2019s first simulated altitude training facility. Our purpose built altitude room features a state of the art compressor system from global leaders in altitude technology, Altitude Training Systems. This means unlike other gyms, we can create a safe training environment that can simulate any altitude up to 4,500 metres.'), ('point_of_contact', u'info@altitude.sg'), ('phone', u'9373 9034'), ('website', u'http://altitude.sg/'), ('terms_and_conditions', u'Opening Hours:\r\n\r\nMondays & Fridays 8am - 8pm \r\nTuesdays, Wednesdays & Thursdays 7am - 9pm\r\nSaturdays and Sundays 7am - 2pm ')])</pre>
- </td>
- </tr>
- <tr>
- <td>field</td>
- <td class="code">
- <pre>SerializerMethodField()</pre>
- </td>
- </tr>
- <tr>
- <td>attribute</td>
- <td class="code">
- <pre><Facility: Altitude Gym></pre>
- </td>
- </tr>
- </tbody>
- </table>
- </li>
- <li class="frame user">
- <code>/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/rest_framework/fields.py</code> in
- <code>to_representation</code>
- <div class="context" id="c140577437096992">
- <ol start="1316" class="pre-context" id="pre140577437096992">
- <li onclick="toggle('pre140577437096992', 'post140577437096992')">
- <pre> if self.method_name is None:</pre>
- </li>
- <li onclick="toggle('pre140577437096992', 'post140577437096992')">
- <pre> self.method_name = default_method_name</pre>
- </li>
- <li onclick="toggle('pre140577437096992', 'post140577437096992')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437096992', 'post140577437096992')">
- <pre> super(SerializerMethodField, self).bind(field_name, parent)</pre>
- </li>
- <li onclick="toggle('pre140577437096992', 'post140577437096992')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437096992', 'post140577437096992')">
- <pre> def to_representation(self, value):</pre>
- </li>
- <li onclick="toggle('pre140577437096992', 'post140577437096992')">
- <pre> method = getattr(self.parent, self.method_name)</pre>
- </li>
- </ol>
- <ol start="1323" class="context-line">
- <li onclick="toggle('pre140577437096992', 'post140577437096992')">
- <pre> return method(value)</pre>
- <span>...</span>
- </li>
- </ol>
- <ol start='1324' class="post-context" id="post140577437096992">
- <li onclick="toggle('pre140577437096992', 'post140577437096992')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437096992', 'post140577437096992')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437096992', 'post140577437096992')">
- <pre>class ModelField(Field):</pre>
- </li>
- <li onclick="toggle('pre140577437096992', 'post140577437096992')">
- <pre> """</pre>
- </li>
- <li onclick="toggle('pre140577437096992', 'post140577437096992')">
- <pre> A generic field that can be used against an arbitrary model field.</pre>
- </li>
- <li onclick="toggle('pre140577437096992', 'post140577437096992')">
- <pre></pre>
- </li>
- </ol>
- </div>
- <div class="commands">
- <a href="#" onclick="return varToggle(this, '140577437096992')">
- <span>▶</span> Local vars
- </a>
- </div>
- <table class="vars" id="v140577437096992">
- <thead>
- <tr>
- <th>Variable</th>
- <th>Value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>self</td>
- <td class="code">
- <pre>SerializerMethodField()</pre>
- </td>
- </tr>
- <tr>
- <td>method</td>
- <td class="code">
- <pre><bound method FacilitySerializer.get_location_set of FacilitySerializer([<Facility: Altitude Gym>, <Facility: Amore Fitness>, <Facility: Anytime Fitness>, <Facility: Ares Fight Club>, <Facility: Bedok ActiveSG Gym>, <Facility: Bishan ActiveSG Gym >, <Facility: Brazilian Fight Club MMA>, <Facility: Bruce Fitness>, <Facility: Bukit Gombak ActiveSG Gym >, <Facility: BXG Boxing & Fitness>, <Facility: California Fitness Centres>, <Facility: Celebrity Fitness>, <Facility: Choa Chu Kang ActiveSG Gym>, <Facility: Clementi ActiveSG Gym>, <Facility: De' Boutique Gym>, <Facility: Delta ActiveSG Gym>, <Facility: Elevate - Strength & Conditioning>, <Facility: EnergyOne SAFRA Gym>, <Facility: Equilibrium MMA>, <Facility: EVOLVE MMA Gym>, <Facility: Fight G>, <Facility: Fitness First Centres>, <Facility: Genesis Gym>, <Facility: Gold's Gym>, <Facility: GYMMBOXX>, <Facility: Hollandse Club Gym>, <Facility: Hougang ActiveSG Gym>, <Facility: Impact MMA>, <Facility: Impakt Singapore>, <Facility: JTC Summit Gym>, <Facility: Juggernaut Fight Club>, <Facility: Jurong East ActiveSG Gym>, <Facility: Jurong Green CC Gym>, <Facility: Jurong West ActiveSG Gym>, <Facility: Kadir's Boxing School>, <Facility: Legends Fight Sport>, <Facility: National Service Resort & Country Club>, <Facility: NUHS Tower Block Gym>, <Facility: Onyx MMA>, <Facility: OP Integrated Lifestyle Center>, <Facility: Pasir Ris ActiveSG Gym>, <Facility: Physical Abuse Fitness Center>, <Facility: Pure Fitness>, <Facility: Sengkang ActiveSG Gym>, <Facility: SUTD Gym>, <Facility: Tampines ActiveSG Gym>, <Facility: The Fitness Protocol>, <Facility: Toa Payoh ActiveSG Gym>, <Facility: Transcendence MMA>, <Facility: True Fitness Gym>, <Facility: Vanda Boxing Club>, <Facility: Virgin Active Fitness Club>, <Facility: WAKO Kickboxing Singapore>, <Facility: Woodlands ActiveSG Gym>, <Facility: Yio Chu Kang ActiveSG Gym>, <Facility: Yishun ActiveSG Gym>, <Facility: Yokkao Training Center KL>], context={'nearby_locations': None, u'view': <facilities.views.FacilityViewSet object>, u'request': <rest_framework.request.Request object>, 'version': u'v3', u'format': None}):
- pk = IntegerField(label='ID', read_only=True)
- name = CharField(max_length=100)
- category = NestedSerializer(read_only=True):
- id = IntegerField(label='ID', read_only=True)
- img = ImageField(allow_null=True, required=False)
- icon = ImageField(allow_null=True, required=False)
- name = CharField(max_length=100)
- slug = SlugField(max_length=50)
- description = CharField(allow_blank=True, allow_null=True, required=False, style={'base_template': 'textarea.html'})
- point_of_contact = EmailField(max_length=200)
- phone = CharField(max_length=200)
- website = URLField(allow_blank=True, allow_null=True, max_length=200, required=False)
- terms_and_conditions = CharField(allow_blank=True, allow_null=True, required=False, style={'base_template': 'textarea.html'})
- location_set = SerializerMethodField()
- img = ImageField(allow_null=True, required=False)
- img_thumbnail_url = SerializerMethodField()
- img_detail_url = SerializerMethodField()></pre>
- </td>
- </tr>
- <tr>
- <td>value</td>
- <td class="code">
- <pre><Facility: Altitude Gym></pre>
- </td>
- </tr>
- </tbody>
- </table>
- </li>
- <li class="frame user">
- <code>/var/www/dev/flabuless/flabuless/facilities/serializers.py</code> in
- <code>get_location_set</code>
- <div class="context" id="c140577437096920">
- <ol start="61" class="pre-context" id="pre140577437096920">
- <li onclick="toggle('pre140577437096920', 'post140577437096920')">
- <pre> model = Facility</pre>
- </li>
- <li onclick="toggle('pre140577437096920', 'post140577437096920')">
- <pre> fields = ("pk", "name", "category", "description", "point_of_contact",</pre>
- </li>
- <li onclick="toggle('pre140577437096920', 'post140577437096920')">
- <pre> "phone", "website", "terms_and_conditions",</pre>
- </li>
- <li onclick="toggle('pre140577437096920', 'post140577437096920')">
- <pre> "location_set", "nearby_locations", "img", "img_thumbnail_url", "img_detail_url")</pre>
- </li>
- <li onclick="toggle('pre140577437096920', 'post140577437096920')">
- <pre> depth = 1</pre>
- </li>
- <li onclick="toggle('pre140577437096920', 'post140577437096920')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437096920', 'post140577437096920')">
- <pre> def get_location_set(self, obj):</pre>
- </li>
- </ol>
- <ol start="68" class="context-line">
- <li onclick="toggle('pre140577437096920', 'post140577437096920')">
- <pre> queryset = obj.location_set.filter(pk__in=self.context.get("nearby_locations", []))</pre>
- <span>...</span>
- </li>
- </ol>
- <ol start='69' class="post-context" id="post140577437096920">
- <li onclick="toggle('pre140577437096920', 'post140577437096920')">
- <pre> return LocationSerializer(queryset, many=True, context=self.context).data</pre>
- </li>
- <li onclick="toggle('pre140577437096920', 'post140577437096920')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437096920', 'post140577437096920')">
- <pre> def get_nearby_locations(self, obj):</pre>
- </li>
- <li onclick="toggle('pre140577437096920', 'post140577437096920')">
- <pre> queryset = obj.location_set.filter(pk__in=self.context.get("nearby_locations", []))</pre>
- </li>
- <li onclick="toggle('pre140577437096920', 'post140577437096920')">
- <pre> return LocationSerializer(queryset, many=True, context=self.context).data</pre>
- </li>
- <li onclick="toggle('pre140577437096920', 'post140577437096920')">
- <pre></pre>
- </li>
- </ol>
- </div>
- <div class="commands">
- <a href="#" onclick="return varToggle(this, '140577437096920')">
- <span>▶</span> Local vars
- </a>
- </div>
- <table class="vars" id="v140577437096920">
- <thead>
- <tr>
- <th>Variable</th>
- <th>Value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>self</td>
- <td class="code">
- <pre>FacilitySerializer([<Facility: Altitude Gym>, <Facility: Amore Fitness>, <Facility: Anytime Fitness>, <Facility: Ares Fight Club>, <Facility: Bedok ActiveSG Gym>, <Facility: Bishan ActiveSG Gym >, <Facility: Brazilian Fight Club MMA>, <Facility: Bruce Fitness>, <Facility: Bukit Gombak ActiveSG Gym >, <Facility: BXG Boxing & Fitness>, <Facility: California Fitness Centres>, <Facility: Celebrity Fitness>, <Facility: Choa Chu Kang ActiveSG Gym>, <Facility: Clementi ActiveSG Gym>, <Facility: De' Boutique Gym>, <Facility: Delta ActiveSG Gym>, <Facility: Elevate - Strength & Conditioning>, <Facility: EnergyOne SAFRA Gym>, <Facility: Equilibrium MMA>, <Facility: EVOLVE MMA Gym>, <Facility: Fight G>, <Facility: Fitness First Centres>, <Facility: Genesis Gym>, <Facility: Gold's Gym>, <Facility: GYMMBOXX>, <Facility: Hollandse Club Gym>, <Facility: Hougang ActiveSG Gym>, <Facility: Impact MMA>, <Facility: Impakt Singapore>, <Facility: JTC Summit Gym>, <Facility: Juggernaut Fight Club>, <Facility: Jurong East ActiveSG Gym>, <Facility: Jurong Green CC Gym>, <Facility: Jurong West ActiveSG Gym>, <Facility: Kadir's Boxing School>, <Facility: Legends Fight Sport>, <Facility: National Service Resort & Country Club>, <Facility: NUHS Tower Block Gym>, <Facility: Onyx MMA>, <Facility: OP Integrated Lifestyle Center>, <Facility: Pasir Ris ActiveSG Gym>, <Facility: Physical Abuse Fitness Center>, <Facility: Pure Fitness>, <Facility: Sengkang ActiveSG Gym>, <Facility: SUTD Gym>, <Facility: Tampines ActiveSG Gym>, <Facility: The Fitness Protocol>, <Facility: Toa Payoh ActiveSG Gym>, <Facility: Transcendence MMA>, <Facility: True Fitness Gym>, <Facility: Vanda Boxing Club>, <Facility: Virgin Active Fitness Club>, <Facility: WAKO Kickboxing Singapore>, <Facility: Woodlands ActiveSG Gym>, <Facility: Yio Chu Kang ActiveSG Gym>, <Facility: Yishun ActiveSG Gym>, <Facility: Yokkao Training Center KL>], context={'nearby_locations': None, u'view': <facilities.views.FacilityViewSet object>, u'request': <rest_framework.request.Request object>, 'version': u'v3', u'format': None}):
- pk = IntegerField(label='ID', read_only=True)
- name = CharField(max_length=100)
- category = NestedSerializer(read_only=True):
- id = IntegerField(label='ID', read_only=True)
- img = ImageField(allow_null=True, required=False)
- icon = ImageField(allow_null=True, required=False)
- name = CharField(max_length=100)
- slug = SlugField(max_length=50)
- description = CharField(allow_blank=True, allow_null=True, required=False, style={'base_template': 'textarea.html'})
- point_of_contact = EmailField(max_length=200)
- phone = CharField(max_length=200)
- website = URLField(allow_blank=True, allow_null=True, max_length=200, required=False)
- terms_and_conditions = CharField(allow_blank=True, allow_null=True, required=False, style={'base_template': 'textarea.html'})
- location_set = SerializerMethodField()
- img = ImageField(allow_null=True, required=False)
- img_thumbnail_url = SerializerMethodField()
- img_detail_url = SerializerMethodField()</pre>
- </td>
- </tr>
- <tr>
- <td>obj</td>
- <td class="code">
- <pre><Facility: Altitude Gym></pre>
- </td>
- </tr>
- </tbody>
- </table>
- </li>
- <li class="frame django">
- <code>/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/django/db/models/manager.py</code> in
- <code>manager_method</code>
- <div class="context" id="c140577437096848">
- <ol start="85" class="pre-context" id="pre140577437096848">
- <li onclick="toggle('pre140577437096848', 'post140577437096848')">
- <pre> def check(self, **kwargs):</pre>
- </li>
- <li onclick="toggle('pre140577437096848', 'post140577437096848')">
- <pre> return []</pre>
- </li>
- <li onclick="toggle('pre140577437096848', 'post140577437096848')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437096848', 'post140577437096848')">
- <pre> @classmethod</pre>
- </li>
- <li onclick="toggle('pre140577437096848', 'post140577437096848')">
- <pre> def _get_queryset_methods(cls, queryset_class):</pre>
- </li>
- <li onclick="toggle('pre140577437096848', 'post140577437096848')">
- <pre> def create_method(name, method):</pre>
- </li>
- <li onclick="toggle('pre140577437096848', 'post140577437096848')">
- <pre> def manager_method(self, *args, **kwargs):</pre>
- </li>
- </ol>
- <ol start="92" class="context-line">
- <li onclick="toggle('pre140577437096848', 'post140577437096848')">
- <pre> return getattr(self.get_queryset(), name)(*args, **kwargs)</pre>
- <span>...</span>
- </li>
- </ol>
- <ol start='93' class="post-context" id="post140577437096848">
- <li onclick="toggle('pre140577437096848', 'post140577437096848')">
- <pre> manager_method.__name__ = method.__name__</pre>
- </li>
- <li onclick="toggle('pre140577437096848', 'post140577437096848')">
- <pre> manager_method.__doc__ = method.__doc__</pre>
- </li>
- <li onclick="toggle('pre140577437096848', 'post140577437096848')">
- <pre> return manager_method</pre>
- </li>
- <li onclick="toggle('pre140577437096848', 'post140577437096848')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437096848', 'post140577437096848')">
- <pre> new_methods = {}</pre>
- </li>
- <li onclick="toggle('pre140577437096848', 'post140577437096848')">
- <pre> # Refs http://bugs.python.org/issue1785.</pre>
- </li>
- </ol>
- </div>
- <div class="commands">
- <a href="#" onclick="return varToggle(this, '140577437096848')">
- <span>▶</span> Local vars
- </a>
- </div>
- <table class="vars" id="v140577437096848">
- <thead>
- <tr>
- <th>Variable</th>
- <th>Value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>self</td>
- <td class="code">
- <pre><django.db.models.fields.related.RelatedManager object at 0x7fdabc4aedd0></pre>
- </td>
- </tr>
- <tr>
- <td>args</td>
- <td class="code">
- <pre>()</pre>
- </td>
- </tr>
- <tr>
- <td>name</td>
- <td class="code">
- <pre>'filter'</pre>
- </td>
- </tr>
- <tr>
- <td>kwargs</td>
- <td class="code">
- <pre>{'pk__in': None}</pre>
- </td>
- </tr>
- </tbody>
- </table>
- </li>
- <li class="frame django">
- <code>/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/django/db/models/query.py</code> in
- <code>filter</code>
- <div class="context" id="c140577437096776">
- <ol start="684" class="pre-context" id="pre140577437096776">
- <li onclick="toggle('pre140577437096776', 'post140577437096776')">
- <pre> return self._clone()</pre>
- </li>
- <li onclick="toggle('pre140577437096776', 'post140577437096776')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437096776', 'post140577437096776')">
- <pre> def filter(self, *args, **kwargs):</pre>
- </li>
- <li onclick="toggle('pre140577437096776', 'post140577437096776')">
- <pre> """</pre>
- </li>
- <li onclick="toggle('pre140577437096776', 'post140577437096776')">
- <pre> Returns a new QuerySet instance with the args ANDed to the existing</pre>
- </li>
- <li onclick="toggle('pre140577437096776', 'post140577437096776')">
- <pre> set.</pre>
- </li>
- <li onclick="toggle('pre140577437096776', 'post140577437096776')">
- <pre> """</pre>
- </li>
- </ol>
- <ol start="691" class="context-line">
- <li onclick="toggle('pre140577437096776', 'post140577437096776')">
- <pre> return self._filter_or_exclude(False, *args, **kwargs)</pre>
- <span>...</span>
- </li>
- </ol>
- <ol start='692' class="post-context" id="post140577437096776">
- <li onclick="toggle('pre140577437096776', 'post140577437096776')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437096776', 'post140577437096776')">
- <pre> def exclude(self, *args, **kwargs):</pre>
- </li>
- <li onclick="toggle('pre140577437096776', 'post140577437096776')">
- <pre> """</pre>
- </li>
- <li onclick="toggle('pre140577437096776', 'post140577437096776')">
- <pre> Returns a new QuerySet instance with NOT (args) ANDed to the existing</pre>
- </li>
- <li onclick="toggle('pre140577437096776', 'post140577437096776')">
- <pre> set.</pre>
- </li>
- <li onclick="toggle('pre140577437096776', 'post140577437096776')">
- <pre> """</pre>
- </li>
- </ol>
- </div>
- <div class="commands">
- <a href="#" onclick="return varToggle(this, '140577437096776')">
- <span>▶</span> Local vars
- </a>
- </div>
- <table class="vars" id="v140577437096776">
- <thead>
- <tr>
- <th>Variable</th>
- <th>Value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>self</td>
- <td class="code">
- <pre>[<Location: Altitude Performing Arts Studio - Altitude Gym>]</pre>
- </td>
- </tr>
- <tr>
- <td>args</td>
- <td class="code">
- <pre>()</pre>
- </td>
- </tr>
- <tr>
- <td>kwargs</td>
- <td class="code">
- <pre>{'pk__in': None}</pre>
- </td>
- </tr>
- </tbody>
- </table>
- </li>
- <li class="frame django">
- <code>/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/django/db/models/query.py</code> in
- <code>_filter_or_exclude</code>
- <div class="context" id="c140577437096704">
- <ol start="702" class="pre-context" id="pre140577437096704">
- <li onclick="toggle('pre140577437096704', 'post140577437096704')">
- <pre> assert self.query.can_filter(), \</pre>
- </li>
- <li onclick="toggle('pre140577437096704', 'post140577437096704')">
- <pre> "Cannot filter a query once a slice has been taken."</pre>
- </li>
- <li onclick="toggle('pre140577437096704', 'post140577437096704')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437096704', 'post140577437096704')">
- <pre> clone = self._clone()</pre>
- </li>
- <li onclick="toggle('pre140577437096704', 'post140577437096704')">
- <pre> if negate:</pre>
- </li>
- <li onclick="toggle('pre140577437096704', 'post140577437096704')">
- <pre> clone.query.add_q(~Q(*args, **kwargs))</pre>
- </li>
- <li onclick="toggle('pre140577437096704', 'post140577437096704')">
- <pre> else:</pre>
- </li>
- </ol>
- <ol start="709" class="context-line">
- <li onclick="toggle('pre140577437096704', 'post140577437096704')">
- <pre> clone.query.add_q(Q(*args, **kwargs))</pre>
- <span>...</span>
- </li>
- </ol>
- <ol start='710' class="post-context" id="post140577437096704">
- <li onclick="toggle('pre140577437096704', 'post140577437096704')">
- <pre> return clone</pre>
- </li>
- <li onclick="toggle('pre140577437096704', 'post140577437096704')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437096704', 'post140577437096704')">
- <pre> def complex_filter(self, filter_obj):</pre>
- </li>
- <li onclick="toggle('pre140577437096704', 'post140577437096704')">
- <pre> """</pre>
- </li>
- <li onclick="toggle('pre140577437096704', 'post140577437096704')">
- <pre> Returns a new QuerySet instance with filter_obj added to the filters.</pre>
- </li>
- <li onclick="toggle('pre140577437096704', 'post140577437096704')">
- <pre></pre>
- </li>
- </ol>
- </div>
- <div class="commands">
- <a href="#" onclick="return varToggle(this, '140577437096704')">
- <span>▶</span> Local vars
- </a>
- </div>
- <table class="vars" id="v140577437096704">
- <thead>
- <tr>
- <th>Variable</th>
- <th>Value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>negate</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>clone</td>
- <td class="code">
- <pre>[<Location: Altitude Performing Arts Studio - Altitude Gym>]</pre>
- </td>
- </tr>
- <tr>
- <td>args</td>
- <td class="code">
- <pre>()</pre>
- </td>
- </tr>
- <tr>
- <td>self</td>
- <td class="code">
- <pre>[<Location: Altitude Performing Arts Studio - Altitude Gym>]</pre>
- </td>
- </tr>
- <tr>
- <td>kwargs</td>
- <td class="code">
- <pre>{'pk__in': None}</pre>
- </td>
- </tr>
- </tbody>
- </table>
- </li>
- <li class="frame django">
- <code>/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/django/db/models/sql/query.py</code> in
- <code>add_q</code>
- <div class="context" id="c140577437096632">
- <ol start="1324" class="pre-context" id="pre140577437096632">
- <li onclick="toggle('pre140577437096632', 'post140577437096632')">
- <pre> # and existing conditions. So, any existing inner join forces the join</pre>
- </li>
- <li onclick="toggle('pre140577437096632', 'post140577437096632')">
- <pre> # type to remain inner. Existing outer joins can however be demoted.</pre>
- </li>
- <li onclick="toggle('pre140577437096632', 'post140577437096632')">
- <pre> # (Consider case where rel_a is LOUTER and rel_a__col=1 is added - if</pre>
- </li>
- <li onclick="toggle('pre140577437096632', 'post140577437096632')">
- <pre> # rel_a doesn't produce any rows, then the whole condition must fail.</pre>
- </li>
- <li onclick="toggle('pre140577437096632', 'post140577437096632')">
- <pre> # So, demotion is OK.</pre>
- </li>
- <li onclick="toggle('pre140577437096632', 'post140577437096632')">
- <pre> existing_inner = set(</pre>
- </li>
- <li onclick="toggle('pre140577437096632', 'post140577437096632')">
- <pre> (a for a in self.alias_map if self.alias_map[a].join_type == self.INNER))</pre>
- </li>
- </ol>
- <ol start="1331" class="context-line">
- <li onclick="toggle('pre140577437096632', 'post140577437096632')">
- <pre> clause, require_inner = self._add_q(where_part, self.used_aliases)</pre>
- <span>...</span>
- </li>
- </ol>
- <ol start='1332' class="post-context" id="post140577437096632">
- <li onclick="toggle('pre140577437096632', 'post140577437096632')">
- <pre> self.where.add(clause, AND)</pre>
- </li>
- <li onclick="toggle('pre140577437096632', 'post140577437096632')">
- <pre> for hp in having_parts:</pre>
- </li>
- <li onclick="toggle('pre140577437096632', 'post140577437096632')">
- <pre> clause, _ = self._add_q(hp, self.used_aliases)</pre>
- </li>
- <li onclick="toggle('pre140577437096632', 'post140577437096632')">
- <pre> self.having.add(clause, AND)</pre>
- </li>
- <li onclick="toggle('pre140577437096632', 'post140577437096632')">
- <pre> self.demote_joins(existing_inner)</pre>
- </li>
- <li onclick="toggle('pre140577437096632', 'post140577437096632')">
- <pre></pre>
- </li>
- </ol>
- </div>
- <div class="commands">
- <a href="#" onclick="return varToggle(this, '140577437096632')">
- <span>▶</span> Local vars
- </a>
- </div>
- <table class="vars" id="v140577437096632">
- <thead>
- <tr>
- <th>Variable</th>
- <th>Value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>q_object</td>
- <td class="code">
- <pre><django.db.models.query_utils.Q object at 0x7fdabc338310></pre>
- </td>
- </tr>
- <tr>
- <td>self</td>
- <td class="code">
- <pre><django.db.models.sql.query.Query object at 0x7fdabc338110></pre>
- </td>
- </tr>
- <tr>
- <td>existing_inner</td>
- <td class="code">
- <pre>set([u'facilities_facility'])</pre>
- </td>
- </tr>
- <tr>
- <td>having_parts</td>
- <td class="code">
- <pre>[]</pre>
- </td>
- </tr>
- <tr>
- <td>where_part</td>
- <td class="code">
- <pre><django.db.models.query_utils.Q object at 0x7fdabc338310></pre>
- </td>
- </tr>
- </tbody>
- </table>
- </li>
- <li class="frame django">
- <code>/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/django/db/models/sql/query.py</code> in
- <code>_add_q</code>
- <div class="context" id="c140577437096560">
- <ol start="1351" class="pre-context" id="pre140577437096560">
- <li onclick="toggle('pre140577437096560', 'post140577437096560')">
- <pre> child_clause, needed_inner = self._add_q(</pre>
- </li>
- <li onclick="toggle('pre140577437096560', 'post140577437096560')">
- <pre> child, used_aliases, branch_negated,</pre>
- </li>
- <li onclick="toggle('pre140577437096560', 'post140577437096560')">
- <pre> current_negated)</pre>
- </li>
- <li onclick="toggle('pre140577437096560', 'post140577437096560')">
- <pre> joinpromoter.add_votes(needed_inner)</pre>
- </li>
- <li onclick="toggle('pre140577437096560', 'post140577437096560')">
- <pre> else:</pre>
- </li>
- <li onclick="toggle('pre140577437096560', 'post140577437096560')">
- <pre> child_clause, needed_inner = self.build_filter(</pre>
- </li>
- <li onclick="toggle('pre140577437096560', 'post140577437096560')">
- <pre> child, can_reuse=used_aliases, branch_negated=branch_negated,</pre>
- </li>
- </ol>
- <ol start="1358" class="context-line">
- <li onclick="toggle('pre140577437096560', 'post140577437096560')">
- <pre> current_negated=current_negated, connector=connector)</pre>
- <span>...</span>
- </li>
- </ol>
- <ol start='1359' class="post-context" id="post140577437096560">
- <li onclick="toggle('pre140577437096560', 'post140577437096560')">
- <pre> joinpromoter.add_votes(needed_inner)</pre>
- </li>
- <li onclick="toggle('pre140577437096560', 'post140577437096560')">
- <pre> target_clause.add(child_clause, connector)</pre>
- </li>
- <li onclick="toggle('pre140577437096560', 'post140577437096560')">
- <pre> needed_inner = joinpromoter.update_join_types(self)</pre>
- </li>
- <li onclick="toggle('pre140577437096560', 'post140577437096560')">
- <pre> return target_clause, needed_inner</pre>
- </li>
- <li onclick="toggle('pre140577437096560', 'post140577437096560')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437096560', 'post140577437096560')">
- <pre> def names_to_path(self, names, opts, allow_many=True, fail_on_missing=False):</pre>
- </li>
- </ol>
- </div>
- <div class="commands">
- <a href="#" onclick="return varToggle(this, '140577437096560')">
- <span>▶</span> Local vars
- </a>
- </div>
- <table class="vars" id="v140577437096560">
- <thead>
- <tr>
- <th>Variable</th>
- <th>Value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>used_aliases</td>
- <td class="code">
- <pre>set([])</pre>
- </td>
- </tr>
- <tr>
- <td>current_negated</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>target_clause</td>
- <td class="code">
- <pre><django.db.models.sql.where.WhereNode object at 0x7fdabc3383d0></pre>
- </td>
- </tr>
- <tr>
- <td>branch_negated</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>joinpromoter</td>
- <td class="code">
- <pre><django.db.models.sql.query.JoinPromoter object at 0x7fdabc338350></pre>
- </td>
- </tr>
- <tr>
- <td>child</td>
- <td class="code">
- <pre>('pk__in', None)</pre>
- </td>
- </tr>
- <tr>
- <td>connector</td>
- <td class="code">
- <pre>u'AND'</pre>
- </td>
- </tr>
- <tr>
- <td>q_object</td>
- <td class="code">
- <pre><django.db.models.query_utils.Q object at 0x7fdabc338310></pre>
- </td>
- </tr>
- <tr>
- <td>self</td>
- <td class="code">
- <pre><django.db.models.sql.query.Query object at 0x7fdabc338110></pre>
- </td>
- </tr>
- </tbody>
- </table>
- </li>
- <li class="frame django">
- <code>/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/django/db/models/sql/query.py</code> in
- <code>build_filter</code>
- <div class="context" id="c140577437096488">
- <ol start="1179" class="pre-context" id="pre140577437096488">
- <li onclick="toggle('pre140577437096488', 'post140577437096488')">
- <pre> arg, value = filter_expr</pre>
- </li>
- <li onclick="toggle('pre140577437096488', 'post140577437096488')">
- <pre> if not arg:</pre>
- </li>
- <li onclick="toggle('pre140577437096488', 'post140577437096488')">
- <pre> raise FieldError("Cannot parse keyword query %r" % arg)</pre>
- </li>
- <li onclick="toggle('pre140577437096488', 'post140577437096488')">
- <pre> lookups, parts, reffed_aggregate = self.solve_lookup_type(arg)</pre>
- </li>
- <li onclick="toggle('pre140577437096488', 'post140577437096488')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437096488', 'post140577437096488')">
- <pre> # Work out the lookup type and remove it from the end of 'parts',</pre>
- </li>
- <li onclick="toggle('pre140577437096488', 'post140577437096488')">
- <pre> # if necessary.</pre>
- </li>
- </ol>
- <ol start="1186" class="context-line">
- <li onclick="toggle('pre140577437096488', 'post140577437096488')">
- <pre> value, lookups = self.prepare_lookup_value(value, lookups, can_reuse)</pre>
- <span>...</span>
- </li>
- </ol>
- <ol start='1187' class="post-context" id="post140577437096488">
- <li onclick="toggle('pre140577437096488', 'post140577437096488')">
- <pre> used_joins = getattr(value, '_used_joins', [])</pre>
- </li>
- <li onclick="toggle('pre140577437096488', 'post140577437096488')">
- <pre></pre>
- </li>
- <li onclick="toggle('pre140577437096488', 'post140577437096488')">
- <pre> clause = self.where_class()</pre>
- </li>
- <li onclick="toggle('pre140577437096488', 'post140577437096488')">
- <pre> if reffed_aggregate:</pre>
- </li>
- <li onclick="toggle('pre140577437096488', 'post140577437096488')">
- <pre> condition = self.build_lookup(lookups, reffed_aggregate, value)</pre>
- </li>
- <li onclick="toggle('pre140577437096488', 'post140577437096488')">
- <pre> if not condition:</pre>
- </li>
- </ol>
- </div>
- <div class="commands">
- <a href="#" onclick="return varToggle(this, '140577437096488')">
- <span>▶</span> Local vars
- </a>
- </div>
- <table class="vars" id="v140577437096488">
- <thead>
- <tr>
- <th>Variable</th>
- <th>Value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>lookups</td>
- <td class="code">
- <pre>['in']</pre>
- </td>
- </tr>
- <tr>
- <td>current_negated</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>reffed_aggregate</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>branch_negated</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>self</td>
- <td class="code">
- <pre><django.db.models.sql.query.Query object at 0x7fdabc338110></pre>
- </td>
- </tr>
- <tr>
- <td>arg</td>
- <td class="code">
- <pre>'pk__in'</pre>
- </td>
- </tr>
- <tr>
- <td>value</td>
- <td class="code">
- <pre>None</pre>
- </td>
- </tr>
- <tr>
- <td>connector</td>
- <td class="code">
- <pre>u'AND'</pre>
- </td>
- </tr>
- <tr>
- <td>parts</td>
- <td class="code">
- <pre>['pk']</pre>
- </td>
- </tr>
- <tr>
- <td>filter_expr</td>
- <td class="code">
- <pre>('pk__in', None)</pre>
- </td>
- </tr>
- <tr>
- <td>can_reuse</td>
- <td class="code">
- <pre>set([])</pre>
- </td>
- </tr>
- </tbody>
- </table>
- </li>
- <li class="frame django">
- <code>/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/django/db/models/sql/query.py</code> in
- <code>prepare_lookup_value</code>
- <div class="context" id="c140577437096416">
- <ol start="1074" class="pre-context" id="pre140577437096416">
- <li onclick="toggle('pre140577437096416', 'post140577437096416')">
- <pre> # Default lookup if none given is exact.</pre>
- </li>
- <li onclick="toggle('pre140577437096416', 'post140577437096416')">
- <pre> if len(lookups) == 0:</pre>
- </li>
- <li onclick="toggle('pre140577437096416', 'post140577437096416')">
- <pre> lookups = ['exact']</pre>
- </li>
- <li onclick="toggle('pre140577437096416', 'post140577437096416')">
- <pre> # Interpret '__exact=None' as the sql 'is NULL'; otherwise, reject all</pre>
- </li>
- <li onclick="toggle('pre140577437096416', 'post140577437096416')">
- <pre> # uses of None as a query value.</pre>
- </li>
- <li onclick="toggle('pre140577437096416', 'post140577437096416')">
- <pre> if value is None:</pre>
- </li>
- <li onclick="toggle('pre140577437096416', 'post140577437096416')">
- <pre> if lookups[-1] not in ('exact', 'iexact'):</pre>
- </li>
- </ol>
- <ol start="1081" class="context-line">
- <li onclick="toggle('pre140577437096416', 'post140577437096416')">
- <pre> raise ValueError("Cannot use None as a query value")</pre>
- <span>...</span>
- </li>
- </ol>
- <ol start='1082' class="post-context" id="post140577437096416">
- <li onclick="toggle('pre140577437096416', 'post140577437096416')">
- <pre> lookups[-1] = 'isnull'</pre>
- </li>
- <li onclick="toggle('pre140577437096416', 'post140577437096416')">
- <pre> value = True</pre>
- </li>
- <li onclick="toggle('pre140577437096416', 'post140577437096416')">
- <pre> elif callable(value):</pre>
- </li>
- <li onclick="toggle('pre140577437096416', 'post140577437096416')">
- <pre> warnings.warn(</pre>
- </li>
- <li onclick="toggle('pre140577437096416', 'post140577437096416')">
- <pre> "Passing callable arguments to queryset is deprecated.",</pre>
- </li>
- <li onclick="toggle('pre140577437096416', 'post140577437096416')">
- <pre> RemovedInDjango19Warning, stacklevel=2)</pre>
- </li>
- </ol>
- </div>
- <div class="commands">
- <a href="#" onclick="return varToggle(this, '140577437096416')">
- <span>▶</span> Local vars
- </a>
- </div>
- <table class="vars" id="v140577437096416">
- <thead>
- <tr>
- <th>Variable</th>
- <th>Value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>can_reuse</td>
- <td class="code">
- <pre>set([])</pre>
- </td>
- </tr>
- <tr>
- <td>lookups</td>
- <td class="code">
- <pre>['in']</pre>
- </td>
- </tr>
- <tr>
- <td>value</td>
- <td class="code">
- <pre>None</pre>
- </td>
- </tr>
- <tr>
- <td>self</td>
- <td class="code">
- <pre><django.db.models.sql.query.Query object at 0x7fdabc338110></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="ValueError at /v3/facilities/">
- <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: GET
- Request URL: http://lendleaserenew.flabulessdev.com/v3/facilities/?category=1&alpha=1
- Django Version: 1.7.9
- Python Version: 2.7.10
- Installed Applications:
- ('django.contrib.admin',
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.messages',
- 'django.contrib.staticfiles',
- 'django.contrib.sites',
- 'django.contrib.flatpages',
- 'django.contrib.humanize',
- 'rest_framework',
- 'rest_framework.authtoken',
- 'profiles',
- 'services',
- 'home',
- 'base',
- 'dashboard',
- 'signup',
- 'password_reset',
- 'events',
- 'facilities',
- 'rewards',
- 'challenges',
- 'employees_admin',
- 'notification_triggers',
- 'directory_listings',
- 'gunicorn',
- 'tinymce',
- 'django_extensions',
- 'crispy_forms',
- 'mathfilters',
- 'data_exports',
- 'moves',
- 'compressor',
- 'push_notifications',
- 'sslserver',
- 'easy_thumbnails',
- 'image_cropping',
- 'cropimg')
- Installed Middleware:
- ('django.contrib.sessions.middleware.SessionMiddleware',
- 'django.middleware.common.CommonMiddleware',
- 'django.middleware.csrf.CsrfViewMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.contrib.messages.middleware.MessageMiddleware',
- 'django.middleware.clickjacking.XFrameOptionsMiddleware',
- 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
- 'base.middleware.TimezoneMiddleware',
- 'request_log.middleware.RequestLogMiddleware')
- Traceback:
- File "/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
- 111. response = wrapped_callback(request, *callback_args, **callback_kwargs)
- File "/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/django/views/decorators/csrf.py" in wrapped_view
- 57. return view_func(*args, **kwargs)
- File "/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/rest_framework/viewsets.py" in view
- 85. return self.dispatch(request, *args, **kwargs)
- File "/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/rest_framework/views.py" in dispatch
- 452. response = self.handle_exception(exc)
- File "/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/rest_framework/views.py" in dispatch
- 449. response = handler(request, *args, **kwargs)
- File "/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/rest_framework/mixins.py" in list
- 44. return self.get_paginated_response(serializer.data)
- File "/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/rest_framework/serializers.py" in data
- 618. ret = super(ListSerializer, self).data
- File "/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/rest_framework/serializers.py" in data
- 213. self._data = self.to_representation(self.instance)
- File "/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/rest_framework/serializers.py" in to_representation
- 568. self.child.to_representation(item) for item in iterable
- File "/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/rest_framework/serializers.py" in to_representation
- 435. ret[field.field_name] = field.to_representation(attribute)
- File "/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/rest_framework/fields.py" in to_representation
- 1323. return method(value)
- File "/var/www/dev/flabuless/flabuless/facilities/serializers.py" in get_location_set
- 68. queryset = obj.location_set.filter(pk__in=self.context.get("nearby_locations", []))
- File "/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/django/db/models/manager.py" in manager_method
- 92. return getattr(self.get_queryset(), name)(*args, **kwargs)
- File "/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/django/db/models/query.py" in filter
- 691. return self._filter_or_exclude(False, *args, **kwargs)
- File "/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/django/db/models/query.py" in _filter_or_exclude
- 709. clone.query.add_q(Q(*args, **kwargs))
- File "/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/django/db/models/sql/query.py" in add_q
- 1331. clause, require_inner = self._add_q(where_part, self.used_aliases)
- File "/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/django/db/models/sql/query.py" in _add_q
- 1358. current_negated=current_negated, connector=connector)
- File "/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/django/db/models/sql/query.py" in build_filter
- 1186. value, lookups = self.prepare_lookup_value(value, lookups, can_reuse)
- File "/var/www/dev/flabuless/flabuless/env/lib/python2.7/site-packages/django/db/models/sql/query.py" in prepare_lookup_value
- 1081. raise ValueError("Cannot use None as a query value")
- Exception Type: ValueError at /v3/facilities/
- Exception Value: Cannot use None as a query value
- </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>
- <table class="req">
- <thead>
- <tr>
- <th>Variable</th>
- <th>Value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>category</td>
- <td class="code">
- <pre>u'1'</pre>
- </td>
- </tr>
- <tr>
- <td>alpha</td>
- <td class="code">
- <pre>u'1'</pre>
- </td>
- </tr>
- </tbody>
- </table>
- <h3 id="post-info">POST</h3>
- <p>No POST data</p>
- <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>HTTP_AUTHORIZATION</td>
- <td class="code">
- <pre>'token c889272e27428bee9e6c6bce78ca997f07c7c312'</pre>
- </td>
- </tr>
- <tr>
- <td>SERVER_SOFTWARE</td>
- <td class="code">
- <pre>'gunicorn/19.0.0'</pre>
- </td>
- </tr>
- <tr>
- <td>SCRIPT_NAME</td>
- <td class="code">
- <pre>u''</pre>
- </td>
- </tr>
- <tr>
- <td>REQUEST_METHOD</td>
- <td class="code">
- <pre>'GET'</pre>
- </td>
- </tr>
- <tr>
- <td>PATH_INFO</td>
- <td class="code">
- <pre>u'/v3/facilities/'</pre>
- </td>
- </tr>
- <tr>
- <td>SERVER_PROTOCOL</td>
- <td class="code">
- <pre>'HTTP/1.0'</pre>
- </td>
- </tr>
- <tr>
- <td>QUERY_STRING</td>
- <td class="code">
- <pre>'category=1&alpha=1'</pre>
- </td>
- </tr>
- <tr>
- <td>HTTP_X_REAL_IP</td>
- <td class="code">
- <pre>'122.160.254.142'</pre>
- </td>
- </tr>
- <tr>
- <td>HTTP_USER_AGENT</td>
- <td class="code">
- <pre>'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36'</pre>
- </td>
- </tr>
- <tr>
- <td>HTTP_CONNECTION</td>
- <td class="code">
- <pre>'close'</pre>
- </td>
- </tr>
- <tr>
- <td>REMOTE_PORT</td>
- <td class="code">
- <pre>'59512'</pre>
- </td>
- </tr>
- <tr>
- <td>SERVER_NAME</td>
- <td class="code">
- <pre>'127.0.0.1'</pre>
- </td>
- </tr>
- <tr>
- <td>REMOTE_ADDR</td>
- <td class="code">
- <pre>'127.0.0.1'</pre>
- </td>
- </tr>
- <tr>
- <td>wsgi.url_scheme</td>
- <td class="code">
- <pre>'http'</pre>
- </td>
- </tr>
- <tr>
- <td>SERVER_PORT</td>
- <td class="code">
- <pre>'8001'</pre>
- </td>
- </tr>
- <tr>
- <td>HTTP_POSTMAN_TOKEN</td>
- <td class="code">
- <pre>'f5c4420a-190f-a9fe-51f5-38ef2fd9230b'</pre>
- </td>
- </tr>
- <tr>
- <td>wsgi.input</td>
- <td class="code">
- <pre><gunicorn.http.body.Body object at 0x7fdabc756fd0></pre>
- </td>
- </tr>
- <tr>
- <td>HTTP_HOST</td>
- <td class="code">
- <pre>'lendleaserenew.flabulessdev.com'</pre>
- </td>
- </tr>
- <tr>
- <td>wsgi.multithread</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>HTTP_CACHE_CONTROL</td>
- <td class="code">
- <pre>'no-cache'</pre>
- </td>
- </tr>
- <tr>
- <td>HTTP_ACCEPT</td>
- <td class="code">
- <pre>'*/*'</pre>
- </td>
- </tr>
- <tr>
- <td>wsgi.version</td>
- <td class="code">
- <pre>(1, 0)</pre>
- </td>
- </tr>
- <tr>
- <td>RAW_URI</td>
- <td class="code">
- <pre>'/v3/facilities/?category=1&alpha=1'</pre>
- </td>
- </tr>
- <tr>
- <td>wsgi.run_once</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>wsgi.errors</td>
- <td class="code">
- <pre><gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7fdabc756190></pre>
- </td>
- </tr>
- <tr>
- <td>wsgi.multiprocess</td>
- <td class="code">
- <pre>True</pre>
- </td>
- </tr>
- <tr>
- <td>HTTP_ACCEPT_LANGUAGE</td>
- <td class="code">
- <pre>'en-US,en;q=0.8'</pre>
- </td>
- </tr>
- <tr>
- <td>gunicorn.socket</td>
- <td class="code">
- <pre><socket._socketobject object at 0x7fdabc5e60c0></pre>
- </td>
- </tr>
- <tr>
- <td>HTTP_X_FORWARDED_FOR</td>
- <td class="code">
- <pre>'122.160.254.142'</pre>
- </td>
- </tr>
- <tr>
- <td>wsgi.file_wrapper</td>
- <td class="code">
- <pre>''</pre>
- </td>
- </tr>
- <tr>
- <td>CSRF_COOKIE</td>
- <td class="code">
- <pre>u'gSM1eC6HXjq1PIjWxVWDfkcEgR621Clp'</pre>
- </td>
- </tr>
- <tr>
- <td>HTTP_ACCEPT_ENCODING</td>
- <td class="code">
- <pre>'gzip, deflate, sdch'</pre>
- </td>
- </tr>
- </tbody>
- </table>
- <h3 id="settings-info">Settings</h3>
- <h4>Using settings module
- <code>flabuless.settings.dev</code>
- </h4>
- <table class="req">
- <thead>
- <tr>
- <th>Setting</th>
- <th>Value</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>COMPRESS_URL</td>
- <td class="code">
- <pre>'/static/'</pre>
- </td>
- </tr>
- <tr>
- <td>POLAR_PARTNER_NAME</td>
- <td class="code">
- <pre>'Rewardz Private Limited'</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_OUTPUT_DIR</td>
- <td class="code">
- <pre>u'CACHE'</pre>
- </td>
- </tr>
- <tr>
- <td>REWARDZ_URL</td>
- <td class="code">
- <pre>'http://localhost:8001/'</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_TEMPLATE_FILTER_CONTEXT</td>
- <td class="code">
- <pre>{u'STATIC_URL': '/static/'}</pre>
- </td>
- </tr>
- <tr>
- <td>USE_L10N</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>MAX_PUSH_IMAGE_FILE_SIZE</td>
- <td class="code">
- <pre>10485760</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_DATA_URI_MAX_SIZE</td>
- <td class="code">
- <pre>1024</pre>
- </td>
- </tr>
- <tr>
- <td>CSRF_COOKIE_SECURE</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>LANGUAGE_CODE</td>
- <td class="code">
- <pre>'en-us'</pre>
- </td>
- </tr>
- <tr>
- <td>ROOT_URLCONF</td>
- <td class="code">
- <pre>'flabuless.urls'</pre>
- </td>
- </tr>
- <tr>
- <td>MANAGERS</td>
- <td class="code">
- <pre>(('Mario', 'mario.r.vallejo@gmail.com'),
- ('Ramast', 'minamspace-2@yahoo.co.uk'),
- ('Shashi', 'shashiessp@gmail.com'),
- ('Sudhanshu', 'sudhanshu@rewardz.sg'))</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_CSS_HASHING_METHOD</td>
- <td class="code">
- <pre>'content'</pre>
- </td>
- </tr>
- <tr>
- <td>BASE_DIR</td>
- <td class="code">
- <pre>'/var/www/dev/flabuless/flabuless'</pre>
- </td>
- </tr>
- <tr>
- <td>RUNKEEPER_RETURN_URL</td>
- <td class="code">
- <pre>{'flabuless': 'http://flabuless.rewardz.sg/dashboard/runkeeper',
- 'lendlease': 'http://lendleaserenew.rewardz.sg:8000/dashboard/runkeeper'}</pre>
- </td>
- </tr>
- <tr>
- <td>DEFAULT_CHARSET</td>
- <td class="code">
- <pre>'utf-8'</pre>
- </td>
- </tr>
- <tr>
- <td>IGNORABLE_404_URLS</td>
- <td class="code">
- <pre>()</pre>
- </td>
- </tr>
- <tr>
- <td>SESSION_SERIALIZER</td>
- <td class="code">
- <pre>'django.contrib.sessions.serializers.JSONSerializer'</pre>
- </td>
- </tr>
- <tr>
- <td>STATIC_ROOT</td>
- <td class="code">
- <pre>'/var/www/dev/flabuless/flabuless/static'</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_CLOSURE_COMPILER_ARGUMENTS</td>
- <td class="code">
- <pre>u''</pre>
- </td>
- </tr>
- <tr>
- <td>SUPPORT_EMAIL_ADDRESS</td>
- <td class="code">
- <pre>'flabuless@rewardz.sg'</pre>
- </td>
- </tr>
- <tr>
- <td>USE_THOUSAND_SEPARATOR</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_OFFLINE_MANIFEST</td>
- <td class="code">
- <pre>u'manifest.json'</pre>
- </td>
- </tr>
- <tr>
- <td>ALLOWED_HOSTS</td>
- <td class="code">
- <pre>[]</pre>
- </td>
- </tr>
- <tr>
- <td>MESSAGE_STORAGE</td>
- <td class="code">
- <pre>'django.contrib.messages.storage.fallback.FallbackStorage'</pre>
- </td>
- </tr>
- <tr>
- <td>EMAIL_SUBJECT_PREFIX</td>
- <td class="code">
- <pre>'[Flabuless] '</pre>
- </td>
- </tr>
- <tr>
- <td>SEND_BROKEN_LINK_EMAILS</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>STATICFILES_FINDERS</td>
- <td class="code">
- <pre>('django.contrib.staticfiles.finders.FileSystemFinder',
- 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
- 'compressor.finders.CompressorFinder')</pre>
- </td>
- </tr>
- <tr>
- <td>SESSION_CACHE_ALIAS</td>
- <td class="code">
- <pre>'default'</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_CSSTIDY_ARGUMENTS</td>
- <td class="code">
- <pre>u'--template=highest'</pre>
- </td>
- </tr>
- <tr>
- <td>MAX_TOTOAL_ACITIVTY_POINTS</td>
- <td class="code">
- <pre>80</pre>
- </td>
- </tr>
- <tr>
- <td>RUNKEEPER_AUTH_URL</td>
- <td class="code">
- <pre>'https://runkeeper.com/apps/authorize'</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_YUGLIFY_JS_ARGUMENTS</td>
- <td class="code">
- <pre>u'--terminal'</pre>
- </td>
- </tr>
- <tr>
- <td>ADMIN_FOR</td>
- <td class="code">
- <pre>()</pre>
- </td>
- </tr>
- <tr>
- <td>TIME_INPUT_FORMATS</td>
- <td class="code">
- <pre>('%H:%M:%S', '%H:%M:%S.%f', '%H:%M')</pre>
- </td>
- </tr>
- <tr>
- <td>DATABASES</td>
- <td class="code">
- <pre>{'default': {'ATOMIC_REQUESTS': False,
- 'AUTOCOMMIT': True,
- 'CONN_MAX_AGE': 0,
- 'ENGINE': 'django.db.backends.postgresql_psycopg2',
- 'HOST': '',
- 'NAME': 'flabuless',
- 'OPTIONS': {},
- 'PASSWORD': u'********************',
- 'PORT': '',
- 'TEST': {'CHARSET': None,
- 'COLLATION': None,
- 'MIRROR': None,
- 'NAME': None},
- 'TIME_ZONE': 'UTC',
- 'USER': 'rewardz_user'},
- 'log': {'ATOMIC_REQUESTS': False,
- 'AUTOCOMMIT': True,
- 'CONN_MAX_AGE': 0,
- 'ENGINE': 'django.db.backends.sqlite3',
- 'HOST': '',
- 'NAME': '/var/www/dev/flabuless/flabuless/logs/log.sqlite3',
- 'OPTIONS': {},
- 'PASSWORD': u'********************',
- 'PORT': '',
- 'TEST': {'CHARSET': None,
- 'COLLATION': None,
- 'MIRROR': None,
- 'NAME': None},
- 'TIME_ZONE': 'UTC',
- 'USER': ''}}</pre>
- </td>
- </tr>
- <tr>
- <td>FILE_UPLOAD_DIRECTORY_PERMISSIONS</td>
- <td class="code">
- <pre>None</pre>
- </td>
- </tr>
- <tr>
- <td>STATIC_URL</td>
- <td class="code">
- <pre>'/static/'</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_YUI_BINARY</td>
- <td class="code">
- <pre>u'java -jar yuicompressor.jar'</pre>
- </td>
- </tr>
- <tr>
- <td>FILE_UPLOAD_PERMISSIONS</td>
- <td class="code">
- <pre>None</pre>
- </td>
- </tr>
- <tr>
- <td>FILE_UPLOAD_HANDLERS</td>
- <td class="code">
- <pre>('django.core.files.uploadhandler.MemoryFileUploadHandler',
- 'django.core.files.uploadhandler.TemporaryFileUploadHandler')</pre>
- </td>
- </tr>
- <tr>
- <td>TEMPLATE_CONTEXT_PROCESSORS</td>
- <td class="code">
- <pre>('django.contrib.auth.context_processors.auth',
- 'django.core.context_processors.debug',
- 'django.core.context_processors.i18n',
- 'django.core.context_processors.media',
- 'django.core.context_processors.static',
- 'django.core.context_processors.tz',
- 'django.contrib.messages.context_processors.messages',
- 'profiles.context_processor.preload_data',
- 'base.context_processor.support_urls')</pre>
- </td>
- </tr>
- <tr>
- <td>DEFAULT_CONTENT_TYPE</td>
- <td class="code">
- <pre>'text/html'</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_CSS_COMPRESSOR</td>
- <td class="code">
- <pre>u'compressor.css.CssCompressor'</pre>
- </td>
- </tr>
- <tr>
- <td>MISFIT_APP_KEY</td>
- <td class="code">
- <pre>u'********************'</pre>
- </td>
- </tr>
- <tr>
- <td>SUPPORT_FAQ_URL</td>
- <td class="code">
- <pre>'https://flabuless.uservoice.com/knowledgebase'</pre>
- </td>
- </tr>
- <tr>
- <td>APPEND_SLASH</td>
- <td class="code">
- <pre>True</pre>
- </td>
- </tr>
- <tr>
- <td>FIRST_DAY_OF_WEEK</td>
- <td class="code">
- <pre>0</pre>
- </td>
- </tr>
- <tr>
- <td>DATABASE_ROUTERS</td>
- <td class="code">
- <pre>[]</pre>
- </td>
- </tr>
- <tr>
- <td>EMAIL_USE_SSL</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>YEAR_MONTH_FORMAT</td>
- <td class="code">
- <pre>'F Y'</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_OFFLINE_TIMEOUT</td>
- <td class="code">
- <pre>31536000</pre>
- </td>
- </tr>
- <tr>
- <td>STATICFILES_STORAGE</td>
- <td class="code">
- <pre>'django.contrib.staticfiles.storage.StaticFilesStorage'</pre>
- </td>
- </tr>
- <tr>
- <td>CACHES</td>
- <td class="code">
- <pre>{'default': {'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
- 'LOCATION': 'flabuless_cache'}}</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_CLEAN_CSS_ARGUMENTS</td>
- <td class="code">
- <pre>u''</pre>
- </td>
- </tr>
- <tr>
- <td>TEMPLATE_DIRS</td>
- <td class="code">
- <pre>['templates']</pre>
- </td>
- </tr>
- <tr>
- <td>HOME_PAGE_TEMPLATE</td>
- <td class="code">
- <pre>'home/index_sg.html'</pre>
- </td>
- </tr>
- <tr>
- <td>SERVER_EMAIL</td>
- <td class="code">
- <pre>'flabuless@rewardz.sg'</pre>
- </td>
- </tr>
- <tr>
- <td>SESSION_COOKIE_PATH</td>
- <td class="code">
- <pre>'/'</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_PARSER</td>
- <td class="code">
- <pre>u'compressor.parser.AutoSelectParser'</pre>
- </td>
- </tr>
- <tr>
- <td>SKIP_FITBIT_ACTIVITIES</td>
- <td class="code">
- <pre>True</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_CACHE_BACKEND</td>
- <td class="code">
- <pre>u'default'</pre>
- </td>
- </tr>
- <tr>
- <td>SILENCED_SYSTEM_CHECKS</td>
- <td class="code">
- <pre>[]</pre>
- </td>
- </tr>
- <tr>
- <td>IMAGE_CROPPING_JQUERY_URL</td>
- <td class="code">
- <pre>'https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'</pre>
- </td>
- </tr>
- <tr>
- <td>MIDDLEWARE_CLASSES</td>
- <td class="code">
- <pre>('django.contrib.sessions.middleware.SessionMiddleware',
- 'django.middleware.common.CommonMiddleware',
- 'django.middleware.csrf.CsrfViewMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.contrib.messages.middleware.MessageMiddleware',
- 'django.middleware.clickjacking.XFrameOptionsMiddleware',
- 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
- 'base.middleware.TimezoneMiddleware',
- 'request_log.middleware.RequestLogMiddleware')</pre>
- </td>
- </tr>
- <tr>
- <td>USE_I18N</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>THOUSAND_SEPARATOR</td>
- <td class="code">
- <pre>','</pre>
- </td>
- </tr>
- <tr>
- <td>SECRET_KEY</td>
- <td class="code">
- <pre>u'********************'</pre>
- </td>
- </tr>
- <tr>
- <td>LANGUAGE_COOKIE_NAME</td>
- <td class="code">
- <pre>'django_language'</pre>
- </td>
- </tr>
- <tr>
- <td>PUSH_NOTIFICATIONS_SETTINGS</td>
- <td class="code">
- <pre>{'APNS_ERROR_TIMEOUT': None,
- 'APNS_FEEDBACK_HOST': 'feedback.sandbox.push.apple.com',
- 'APNS_FEEDBACK_PORT': 2196,
- 'APNS_HOST': 'gateway.push.apple.com',
- 'APNS_MAX_NOTIFICATION_SIZE': 2048,
- 'APNS_PORT': 2195,
- 'GCM_MAX_RECIPIENTS': 1000,
- 'GCM_POST_URL': 'https://android.googleapis.com/gcm/send'}</pre>
- </td>
- </tr>
- <tr>
- <td>DEFAULT_INDEX_TABLESPACE</td>
- <td class="code">
- <pre>''</pre>
- </td>
- </tr>
- <tr>
- <td>TRANSACTIONS_MANAGED</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>LOGGING_CONFIG</td>
- <td class="code">
- <pre>'logging.config.dictConfig'</pre>
- </td>
- </tr>
- <tr>
- <td>SIGNING_BACKEND</td>
- <td class="code">
- <pre>'django.core.signing.TimestampSigner'</pre>
- </td>
- </tr>
- <tr>
- <td>TEMPLATE_LOADERS</td>
- <td class="code">
- <pre>('django.template.loaders.filesystem.Loader',
- 'django.template.loaders.app_directories.Loader')</pre>
- </td>
- </tr>
- <tr>
- <td>WSGI_APPLICATION</td>
- <td class="code">
- <pre>'flabuless.wsgi.application'</pre>
- </td>
- </tr>
- <tr>
- <td>TEMPLATE_DEBUG</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>X_FRAME_OPTIONS</td>
- <td class="code">
- <pre>'SAMEORIGIN'</pre>
- </td>
- </tr>
- <tr>
- <td>CSRF_COOKIE_NAME</td>
- <td class="code">
- <pre>'csrftoken'</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_CLEAN_CSS_BINARY</td>
- <td class="code">
- <pre>u'cleancss'</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>RUNKEEPER_TOKEN_URL</td>
- <td class="code">
- <pre>u'********************'</pre>
- </td>
- </tr>
- <tr>
- <td>CLIENT_SITES_ROOT</td>
- <td class="code">
- <pre>'/var/www/dev/flabuless/flabuless/../flab_client_sites'</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_CSSTIDY_BINARY</td>
- <td class="code">
- <pre>u'csstidy'</pre>
- </td>
- </tr>
- <tr>
- <td>SESSION_COOKIE_SECURE</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_DEBUG_TOGGLE</td>
- <td class="code">
- <pre>None</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_VERBOSE</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>CSRF_COOKIE_DOMAIN</td>
- <td class="code">
- <pre>None</pre>
- </td>
- </tr>
- <tr>
- <td>FILE_CHARSET</td>
- <td class="code">
- <pre>'utf-8'</pre>
- </td>
- </tr>
- <tr>
- <td>DEBUG</td>
- <td class="code">
- <pre>True</pre>
- </td>
- </tr>
- <tr>
- <td>LANGUAGE_COOKIE_DOMAIN</td>
- <td class="code">
- <pre>None</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_JS_FILTERS</td>
- <td class="code">
- <pre>[u'compressor.filters.jsmin.JSMinFilter']</pre>
- </td>
- </tr>
- <tr>
- <td>DEFAULT_FILE_STORAGE</td>
- <td class="code">
- <pre>'django.core.files.storage.FileSystemStorage'</pre>
- </td>
- </tr>
- <tr>
- <td>INSTALLED_APPS</td>
- <td class="code">
- <pre>('django.contrib.admin',
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.messages',
- 'django.contrib.staticfiles',
- 'django.contrib.sites',
- 'django.contrib.flatpages',
- 'django.contrib.humanize',
- 'rest_framework',
- 'rest_framework.authtoken',
- 'profiles',
- 'services',
- 'home',
- 'base',
- 'dashboard',
- 'signup',
- 'password_reset',
- 'events',
- 'facilities',
- 'rewards',
- 'challenges',
- 'employees_admin',
- 'notification_triggers',
- 'directory_listings',
- 'gunicorn',
- 'tinymce',
- 'django_extensions',
- 'crispy_forms',
- 'mathfilters',
- 'data_exports',
- 'moves',
- 'compressor',
- 'push_notifications',
- 'sslserver',
- 'easy_thumbnails',
- 'image_cropping',
- 'cropimg')</pre>
- </td>
- </tr>
- <tr>
- <td>LANGUAGES_BIDI</td>
- <td class="code">
- <pre>('he', 'ar', 'fa', 'ur')</pre>
- </td>
- </tr>
- <tr>
- <td>NOTIFICATION_TRIGGER_SENDERS</td>
- <td class="code">
- <pre>['flabuless.triggerconfig.senders.fake_sender',
- 'flabuless.triggerconfig.senders.push_notifications']</pre>
- </td>
- </tr>
- <tr>
- <td>COMMENTS_ALLOW_PROFANITIES</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_YUI_CSS_ARGUMENTS</td>
- <td class="code">
- <pre>u''</pre>
- </td>
- </tr>
- <tr>
- <td>SALTS</td>
- <td class="code">
- <pre>{'recovery_salt': 'password_recovery',
- 'recovery_url_salt': 'password_recovery_url'}</pre>
- </td>
- </tr>
- <tr>
- <td>STATICFILES_DIRS</td>
- <td class="code">
- <pre>()</pre>
- </td>
- </tr>
- <tr>
- <td>MISFIT_APP_SECRET</td>
- <td class="code">
- <pre>u'********************'</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>INTERNAL_IPS</td>
- <td class="code">
- <pre>()</pre>
- </td>
- </tr>
- <tr>
- <td>MONTH_DAY_FORMAT</td>
- <td class="code">
- <pre>'F j'</pre>
- </td>
- </tr>
- <tr>
- <td>LOGIN_URL</td>
- <td class="code">
- <pre><django.utils.functional.__proxy__ object at 0x7fdac5419a10></pre>
- </td>
- </tr>
- <tr>
- <td>SESSION_EXPIRE_AT_BROWSER_CLOSE</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>TIME_FORMAT</td>
- <td class="code">
- <pre>'P'</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_STORAGE</td>
- <td class="code">
- <pre>u'compressor.storage.CompressorFileStorage'</pre>
- </td>
- </tr>
- <tr>
- <td>AUTH_USER_MODEL</td>
- <td class="code">
- <pre>'profiles.CustomUser'</pre>
- </td>
- </tr>
- <tr>
- <td>DATE_INPUT_FORMATS</td>
- <td class="code">
- <pre>('%Y-%m-%d',
- '%m/%d/%Y',
- '%m/%d/%y',
- '%b %d %Y',
- '%b %d, %Y',
- '%d %b %Y',
- '%d %b, %Y',
- '%B %d %Y',
- '%B %d, %Y',
- '%d %B %Y',
- '%d %B, %Y')</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_CSS_FILTERS</td>
- <td class="code">
- <pre>[u'compressor.filters.css_default.CssAbsoluteFilter']</pre>
- </td>
- </tr>
- <tr>
- <td>AUTHENTICATION_BACKENDS</td>
- <td class="code">
- <pre>('profiles.backends.EmailOrUsernameModelBackend',
- 'profiles.backends.TokenWebBackend',
- 'profiles.backends.OneTimeTokenBackend',
- 'django.contrib.auth.backends.ModelBackend')</pre>
- </td>
- </tr>
- <tr>
- <td>EMAIL_HOST_PASSWORD</td>
- <td class="code">
- <pre>u'********************'</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_REBUILD_TIMEOUT</td>
- <td class="code">
- <pre>2592000</pre>
- </td>
- </tr>
- <tr>
- <td>PASSWORD_RESET_TIMEOUT_DAYS</td>
- <td class="code">
- <pre>u'********************'</pre>
- </td>
- </tr>
- <tr>
- <td>SESSION_FILE_PATH</td>
- <td class="code">
- <pre>None</pre>
- </td>
- </tr>
- <tr>
- <td>CACHE_MIDDLEWARE_ALIAS</td>
- <td class="code">
- <pre>'default'</pre>
- </td>
- </tr>
- <tr>
- <td>SESSION_SAVE_EVERY_REQUEST</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>NUMBER_GROUPING</td>
- <td class="code">
- <pre>0</pre>
- </td>
- </tr>
- <tr>
- <td>SESSION_ENGINE</td>
- <td class="code">
- <pre>'django.contrib.sessions.backends.db'</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_YUGLIFY_BINARY</td>
- <td class="code">
- <pre>u'yuglify'</pre>
- </td>
- </tr>
- <tr>
- <td>CSRF_FAILURE_VIEW</td>
- <td class="code">
- <pre>'django.views.csrf.csrf_failure'</pre>
- </td>
- </tr>
- <tr>
- <td>CSRF_COOKIE_PATH</td>
- <td class="code">
- <pre>'/'</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_CACHE_KEY_FUNCTION</td>
- <td class="code">
- <pre>u'********************'</pre>
- </td>
- </tr>
- <tr>
- <td>LOGIN_REDIRECT_URL</td>
- <td class="code">
- <pre>'/accounts/profile/'</pre>
- </td>
- </tr>
- <tr>
- <td>NOTIFICATION_TRIGGER_CONFIG</td>
- <td class="code">
- <pre>'flabuless.triggerconfig.config'</pre>
- </td>
- </tr>
- <tr>
- <td>DECIMAL_SEPARATOR</td>
- <td class="code">
- <pre>'.'</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_PRECOMPILERS</td>
- <td class="code">
- <pre>(('text/jsx', 'base.compressor_filters.ReactFilter'),)</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_MTIME_DELAY</td>
- <td class="code">
- <pre>10</pre>
- </td>
- </tr>
- <tr>
- <td>SITE_ID</td>
- <td class="code">
- <pre>1</pre>
- </td>
- </tr>
- <tr>
- <td>LOCALE_PATHS</td>
- <td class="code">
- <pre>()</pre>
- </td>
- </tr>
- <tr>
- <td>TEMPLATE_STRING_IF_INVALID</td>
- <td class="code">
- <pre>''</pre>
- </td>
- </tr>
- <tr>
- <td>LOGOUT_URL</td>
- <td class="code">
- <pre>'/accounts/logout/'</pre>
- </td>
- </tr>
- <tr>
- <td>EMAIL_USE_TLS</td>
- <td class="code">
- <pre>True</pre>
- </td>
- </tr>
- <tr>
- <td>SKIP_POLAR_ACTIVITIES</td>
- <td class="code">
- <pre>True</pre>
- </td>
- </tr>
- <tr>
- <td>FIXTURE_DIRS</td>
- <td class="code">
- <pre>()</pre>
- </td>
- </tr>
- <tr>
- <td>EMAIL_HOST</td>
- <td class="code">
- <pre>'smtp.gmail.com'</pre>
- </td>
- </tr>
- <tr>
- <td>DATE_FORMAT</td>
- <td class="code">
- <pre>'N j, Y'</pre>
- </td>
- </tr>
- <tr>
- <td>MEDIA_ROOT</td>
- <td class="code">
- <pre>'/var/www/dev/flabuless/flabuless/media'</pre>
- </td>
- </tr>
- <tr>
- <td>WELLNESS_BLOG_URL</td>
- <td class="code">
- <pre>'/blog/widget/'</pre>
- </td>
- </tr>
- <tr>
- <td>THUMBNAIL_PROCESSORS</td>
- <td class="code">
- <pre>('cropimg.thumbnail_processors.crop_box',
- 'image_cropping.thumbnail_processors.crop_corners',
- 'easy_thumbnails.processors.colorspace',
- 'easy_thumbnails.processors.autocrop',
- 'easy_thumbnails.processors.scale_and_crop',
- 'easy_thumbnails.processors.filters',
- 'easy_thumbnails.processors.background')</pre>
- </td>
- </tr>
- <tr>
- <td>POLAR_PARTNER_PASSWORD</td>
- <td class="code">
- <pre>u'********************'</pre>
- </td>
- </tr>
- <tr>
- <td>DEFAULT_EXCEPTION_REPORTER_FILTER</td>
- <td class="code">
- <pre>'django.views.debug.SafeExceptionReporterFilter'</pre>
- </td>
- </tr>
- <tr>
- <td>ADMINS</td>
- <td class="code">
- <pre>(('Mario', 'mario.r.vallejo@gmail.com'),
- ('Ramast', 'minamspace-2@yahoo.co.uk'),
- ('Shashi', 'shashiessp@gmail.com'),
- ('Sudhanshu', 'sudhanshu@rewardz.sg'))</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>'Flabuless Support <flabuless@rewardz.sg>'</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_ROOT</td>
- <td class="code">
- <pre>'/var/www/dev/flabuless/flabuless/static'</pre>
- </td>
- </tr>
- <tr>
- <td>REST_FRAMEWORK</td>
- <td class="code">
- <pre>{'DEFAULT_AUTHENTICATION_CLASSES': ('base.restframework.auth.CustomTokenAuthentication',
- 'rest_framework.authentication.TokenAuthentication',
- 'rest_framework.authentication.SessionAuthentication'),
- 'DEFAULT_FILTER_BACKENDS': ('rest_framework.filters.DjangoFilterBackend',
- 'rest_framework.filters.SearchFilter'),
- 'DEFAULT_VERSION': 'v',
- 'DEFAULT_VERSIONING_CLASS': 'base.restframework.versioning.CustomAPIVersion',
- 'MAX_PAGINATE_BY': 5000,
- 'PAGINATE_BY': 300,
- 'PAGINATE_BY_PARAM': 'page',
- 'V3_PAGINATE_BY': 300}</pre>
- </td>
- </tr>
- <tr>
- <td>MEDIA_URL</td>
- <td class="code">
- <pre>'/media/'</pre>
- </td>
- </tr>
- <tr>
- <td>DATETIME_FORMAT</td>
- <td class="code">
- <pre>'N j, Y, P'</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_YUI_JS_ARGUMENTS</td>
- <td class="code">
- <pre>u''</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_JS_COMPRESSOR</td>
- <td class="code">
- <pre>u'compressor.js.JsCompressor'</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>COMPRESS_MINT_DELAY</td>
- <td class="code">
- <pre>30</pre>
- </td>
- </tr>
- <tr>
- <td>LOGGING</td>
- <td class="code">
- <pre>{}</pre>
- </td>
- </tr>
- <tr>
- <td>SHORT_DATE_FORMAT</td>
- <td class="code">
- <pre>'m/d/Y'</pre>
- </td>
- </tr>
- <tr>
- <td>NOTIFICATION_PROD_SENDERS</td>
- <td class="code">
- <pre>['flabuless.triggerconfig.senders.push_notifications']</pre>
- </td>
- </tr>
- <tr>
- <td>TEST_RUNNER</td>
- <td class="code">
- <pre>'django.test.runner.DiscoverRunner'</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_ENABLED</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>CACHE_MIDDLEWARE_KEY_PREFIX</td>
- <td class="code">
- <pre>u'********************'</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_OFFLINE</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>TIME_ZONE</td>
- <td class="code">
- <pre>'Asia/Singapore'</pre>
- </td>
- </tr>
- <tr>
- <td>IMAGE_CROPPING_THUMB_SIZE</td>
- <td class="code">
- <pre>(300, 300)</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_OFFLINE_CONTEXT</td>
- <td class="code">
- <pre>{u'STATIC_URL': '/static/'}</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_YUGLIFY_CSS_ARGUMENTS</td>
- <td class="code">
- <pre>u'--terminal'</pre>
- </td>
- </tr>
- <tr>
- <td>EMAIL_BACKEND</td>
- <td class="code">
- <pre>'django.core.mail.backends.dummy.EmailBackend'</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_JINJA2_GET_ENVIRONMENT</td>
- <td class="code">
- <pre><function JINJA2_GET_ENVIRONMENT at 0x7fdabd9bf7d0></pre>
- </td>
- </tr>
- <tr>
- <td>TRUSTED_IPS</td>
- <td class="code">
- <pre>['127.0.0.1']</pre>
- </td>
- </tr>
- <tr>
- <td>DEFAULT_TABLESPACE</td>
- <td class="code">
- <pre>''</pre>
- </td>
- </tr>
- <tr>
- <td>DATETIME_INPUT_FORMATS</td>
- <td class="code">
- <pre>('%Y-%m-%d %H:%M:%S',
- '%Y-%m-%d %H:%M:%S.%f',
- '%Y-%m-%d %H:%M',
- '%Y-%m-%d',
- '%m/%d/%Y %H:%M:%S',
- '%m/%d/%Y %H:%M:%S.%f',
- '%m/%d/%Y %H:%M',
- '%m/%d/%Y',
- '%m/%d/%y %H:%M:%S',
- '%m/%d/%y %H:%M:%S.%f',
- '%m/%d/%y %H:%M',
- '%m/%d/%y')</pre>
- </td>
- </tr>
- <tr>
- <td>MIGRATION_MODULES</td>
- <td class="code">
- <pre>{}</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>'flabuless.settings.dev'</pre>
- </td>
- </tr>
- <tr>
- <td>USE_ETAGS</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>NOTIFICATION_TRIGGERS_SITENAME</td>
- <td class="code">
- <pre>'flabuless'</pre>
- </td>
- </tr>
- <tr>
- <td>SESSION_COOKIE_DOMAIN</td>
- <td class="code">
- <pre>None</pre>
- </td>
- </tr>
- <tr>
- <td>LANGUAGES</td>
- <td class="code">
- <pre>(('af', 'Afrikaans'),
- ('ar', 'Arabic'),
- ('ast', 'Asturian'),
- ('az', 'Azerbaijani'),
- ('bg', 'Bulgarian'),
- ('be', 'Belarusian'),
- ('bn', 'Bengali'),
- ('br', 'Breton'),
- ('bs', 'Bosnian'),
- ('ca', 'Catalan'),
- ('cs', 'Czech'),
- ('cy', 'Welsh'),
- ('da', 'Danish'),
- ('de', 'German'),
- ('el', 'Greek'),
- ('en', 'English'),
- ('en-au', 'Australian English'),
- ('en-gb', 'British English'),
- ('eo', 'Esperanto'),
- ('es', 'Spanish'),
- ('es-ar', 'Argentinian Spanish'),
- ('es-mx', 'Mexican Spanish'),
- ('es-ni', 'Nicaraguan Spanish'),
- ('es-ve', 'Venezuelan Spanish'),
- ('et', 'Estonian'),
- ('eu', 'Basque'),
- ('fa', 'Persian'),
- ('fi', 'Finnish'),
- ('fr', 'French'),
- ('fy', 'Frisian'),
- ('ga', 'Irish'),
- ('gl', 'Galician'),
- ('he', 'Hebrew'),
- ('hi', 'Hindi'),
- ('hr', 'Croatian'),
- ('hu', 'Hungarian'),
- ('ia', 'Interlingua'),
- ('id', 'Indonesian'),
- ('io', 'Ido'),
- ('is', 'Icelandic'),
- ('it', 'Italian'),
- ('ja', 'Japanese'),
- ('ka', 'Georgian'),
- ('kk', 'Kazakh'),
- ('km', 'Khmer'),
- ('kn', 'Kannada'),
- ('ko', 'Korean'),
- ('lb', 'Luxembourgish'),
- ('lt', 'Lithuanian'),
- ('lv', 'Latvian'),
- ('mk', 'Macedonian'),
- ('ml', 'Malayalam'),
- ('mn', 'Mongolian'),
- ('mr', 'Marathi'),
- ('my', 'Burmese'),
- ('nb', 'Norwegian Bokmal'),
- ('ne', 'Nepali'),
- ('nl', 'Dutch'),
- ('nn', 'Norwegian Nynorsk'),
- ('os', 'Ossetic'),
- ('pa', 'Punjabi'),
- ('pl', 'Polish'),
- ('pt', 'Portuguese'),
- ('pt-br', 'Brazilian Portuguese'),
- ('ro', 'Romanian'),
- ('ru', 'Russian'),
- ('sk', 'Slovak'),
- ('sl', 'Slovenian'),
- ('sq', 'Albanian'),
- ('sr', 'Serbian'),
- ('sr-latn', 'Serbian Latin'),
- ('sv', 'Swedish'),
- ('sw', 'Swahili'),
- ('ta', 'Tamil'),
- ('te', 'Telugu'),
- ('th', 'Thai'),
- ('tr', 'Turkish'),
- ('tt', 'Tatar'),
- ('udm', 'Udmurt'),
- ('uk', 'Ukrainian'),
- ('ur', 'Urdu'),
- ('vi', 'Vietnamese'),
- ('zh-cn', 'Simplified Chinese'),
- ('zh-hans', 'Simplified Chinese'),
- ('zh-hant', 'Traditional Chinese'),
- ('zh-tw', 'Traditional Chinese'))</pre>
- </td>
- </tr>
- <tr>
- <td>COMPRESS_CLOSURE_COMPILER_BINARY</td>
- <td class="code">
- <pre>u'java -jar compiler.jar'</pre>
- </td>
- </tr>
- <tr>
- <td>FILE_UPLOAD_TEMP_DIR</td>
- <td class="code">
- <pre>None</pre>
- </td>
- </tr>
- <tr>
- <td>CSRF_COOKIE_AGE</td>
- <td class="code">
- <pre>31449600</pre>
- </td>
- </tr>
- <tr>
- <td>SESSION_COOKIE_NAME</td>
- <td class="code">
- <pre>'sessionid'</pre>
- </td>
- </tr>
- <tr>
- <td>EMAIL_PORT</td>
- <td class="code">
- <pre>587</pre>
- </td>
- </tr>
- <tr>
- <td>USE_TZ</td>
- <td class="code">
- <pre>True</pre>
- </td>
- </tr>
- <tr>
- <td>SHORT_DATETIME_FORMAT</td>
- <td class="code">
- <pre>'m/d/Y P'</pre>
- </td>
- </tr>
- <tr>
- <td>USE_HTTPS</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>TEST_NON_SERIALIZED_APPS</td>
- <td class="code">
- <pre>[]</pre>
- </td>
- </tr>
- <tr>
- <td>PASSWORD_HASHERS</td>
- <td class="code">
- <pre>u'********************'</pre>
- </td>
- </tr>
- <tr>
- <td>FILE_UPLOAD_MAX_MEMORY_SIZE</td>
- <td class="code">
- <pre>2621440</pre>
- </td>
- </tr>
- <tr>
- <td>TINYMCE_DEFAULT_CONFIG</td>
- <td class="code">
- <pre>{'cleanup_on_startup': True,
- 'custom_undo_redo_levels': 10,
- 'height': '360px',
- 'plugins': 'table,spellchecker,paste,searchreplace',
- 'theme': 'advanced',
- 'theme_advanced_buttons1': 'bold,italic,underline,strikethrough,separator,bullist,numlist,separator,forecolor,backcolor,hr,separator,removeformat',
- 'theme_advanced_buttons2': 'fontselect,fontsizeselect,separator,undo,redo,separator,link,unlink,outdent,indent',
- 'theme_advanced_buttons3': '',
- 'width': '640px'}</pre>
- </td>
- </tr>
- <tr>
- <td>ABSOLUTE_URL_OVERRIDES</td>
- <td class="code">
- <pre>{}</pre>
- </td>
- </tr>
- <tr>
- <td>LANGUAGE_COOKIE_PATH</td>
- <td class="code">
- <pre>'/'</pre>
- </td>
- </tr>
- <tr>
- <td>CLIENT_SITES_URL</td>
- <td class="code">
- <pre>'/client_sites/'</pre>
- </td>
- </tr>
- <tr>
- <td>CACHE_MIDDLEWARE_SECONDS</td>
- <td class="code">
- <pre>600</pre>
- </td>
- </tr>
- <tr>
- <td>DEBUG_TOOLBAR_CONFIG</td>
- <td class="code">
- <pre>{'INTERCEPT_REDIRECTS': False}</pre>
- </td>
- </tr>
- <tr>
- <td>CSRF_COOKIE_HTTPONLY</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>CRISPY_TEMPLATE_PACK</td>
- <td class="code">
- <pre>'bootstrap3'</pre>
- </td>
- </tr>
- <tr>
- <td>IMAGE_CROPPING_SIZE_WARNING</td>
- <td class="code">
- <pre>False</pre>
- </td>
- </tr>
- <tr>
- <td>EMAIL_HOST_USER</td>
- <td class="code">
- <pre>'flabuless@rewardz.sg'</pre>
- </td>
- </tr>
- <tr>
- <td>PROFANITIES_LIST</td>
- <td class="code">
- <pre>u'********************'</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 500 page.
- </p>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement