'utf8' codec can't decode byte 0x96 in position 1378: invalid start byte
Request Method: | GET |
---|---|
Request URL: | http://www.receptome.org/SearchDB/getGenePage.asp?Param=21264324&ProtId=1&ProtType=Receptor |
Django Version: | 1.8.4 |
Exception Type: | UnicodeDecodeError |
Exception Value: | 'utf8' codec can't decode byte 0x96 in position 1378: invalid start byte |
Exception Location: | /usr/lib64/python2.7/codecs.py in decode, line 296 |
Python Executable: | /usr/bin/python |
Python Version: | 2.7.5 |
Python Path: | ['/home/rami/webapps/hpmr/lib/python2.7/Django-1.8.4-py2.7.egg', '/home/rami/webapps/hpmr', '/home/rami/webapps/hpmr/hpmr', '/home/rami/webapps/hpmr/lib/python2.7', '/usr/lib64/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7/site-packages', '/usr/lib64/python2.7/site-packages/PIL', '/usr/lib64/python2.7/site-packages/geos', '/usr/lib/python2.7/site-packages'] |
Server time: | Thu, 28 Mar 2019 10:13:18 -0700 |
The string that could not be encoded/decoded was: otein�coupl
In template /home/rami/webapps/hpmr/hpmr/hpmr/templates/gene_page.html
, error at line 109
99 | <div class="paragraph"><span class="title">Summary: <span style="font-size:85%">(from NCBI-Entrez)</span></span><br/> |
---|---|
100 | <span id="OpenSummary">{{ .ENTREZ_Summary|slice:":300" }} |
101 | {% if gene.ENTREZ_Summary %} |
102 | <a href="#" onClick="document.getElementById('Summary').style.display='block';document.getElementById('OpenSummary').style.display='none';">..[read more]</a></span> |
103 | <span id="Summary" style="display:none">{{ gene.ENTREZ_Summary }}</span> |
104 | {% endif %} |
105 | </div> |
106 | {% endif %} |
107 | |
108 | <div class="paragraph"> |
109 | {% include ints_template %} |
110 | </div> |
111 | |
112 | |
113 | <div class="paragraph"> |
114 | {% include fam_template %} |
115 | </div> |
116 | |
117 | |
118 | <div class="paragraph"><a name="GenExpParag"></a> <span class="supertitle"> |
119 | <!--<a href="#GenExpParag" onClick="void dispFrames('GenExp')"> --> |
/home/rami/webapps/hpmr/lib/python2.7/Django-1.8.4-py2.7.egg/django/core/handlers/base.py
in get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)...
except Exception as e:
# If the view raised an exception, run it through exception
# middleware, and if the exception middleware returns a
# response, use that. Otherwise, reraise the exception.
for middleware_method in self._exception_middleware:
response = middleware_method(request, e)
Variable | Value |
---|---|
e | UnicodeDecodeError('utf8', '\r\r<img id="GeneIntsNode" class="paragNode" src="http://www.appliedbioinfo.com/APBIO_MEDIA/images/hpmr/Icons/open.png" --onClick="void dispFrames(\'GeneInts\')">\r<img class="paragIcon" src="http://www.appliedbioinfo.com/APBIO_MEDIA/images/hpmr/Icons/ReceptorInts.png" border="0">\r<span class="supertitle">\rReceptor TAAR1 interacts with:</span>\r <div id="GeneInts" style="display:block"><div><TABLE width=\'100%\' class=\'ints_table\' border=0 cellpadding=\'2\'><TR BgColor=\'#FFFFFF\'><td></td></TR><TR BgColor=\'#EFEFEF\' ><td><span class=\'IntRow\'><u>non-gene ligand:</u> 3-iodothyronamine</span><span style=\'margin-left: 10px\' class=\'IntRow\'><a id=\'OpenComm_1366\' href=\'#\' onClick=\'document.getElementById("Comm_1366").style.display="block";document.getElementById("OpenComm_1366").style.display="none";\'>[read more..]</a><div id=\'Comm_1366\' style=\'display: none; color: #006600;text-align: left; margin:bottom:3px\'> 3-Iodothyronamine is an endogenous and rapid-acting derivative of thyroid hormone.\r<a target=\'_blank\' title=\'click to open reference in new window\' href=\'http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=pubmed&dopt=Abstract&list_uids=15146179\'>Nat Med. 2004 Jun;10(6):638-42. </a>. This report documented the discovery of 3-iodothyronamine (T1AM), a naturally occurring derivative of thyroid hormone that in vitro is a potent agonist of the G protein\x96coupled trace amine receptor TAR1. </div></span></td></TR></TABLE><input type=\'hidden\' id=\'intslist\' value=\', \'></input></div>\r</div></div>\r\r', 1378, 1379, 'invalid start byte') |
callback_args | () |
resolver_match | ResolverMatch(func=hpmr.hpmr_views.get_gene_by_id, args=(), kwargs={}, url_name=None, app_name=None, namespaces=[]) |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f288a47c1d0>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f28900cbb10> |
request | "<WSGIRequest\npath:/SearchDB/getGenePage.asp,\nGET:<QueryDict: {u'ProtId': [u'1'], u'Param': [u'21264324'], u'ProtType': [u'Receptor']}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/apache2/htdocs',\n 'CONTEXT_PREFIX': '',\n u'CSRF_COOKIE': u'nZFb9j3R2Xy4DEU4euXrNCR88hsgLvC3',\n 'DOCUMENT_ROOT': '/usr/local/apache2/htdocs',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_CONNECTION': 'close',\n 'HTTP_FORWARDED_REQUEST_URI': '/SearchDB/getGenePage.asp?Param=21264324&ProtId=1&ProtType=Receptor',\n 'HTTP_HOST': 'www.receptome.org',\n 'HTTP_HTTPS': 'off',\n 'HTTP_USER_AGENT': 'PycURL/7.43.0.2 libcurl/7.64.0 OpenSSL/1.1.1a zlib/1.2.11 libidn2/2.1.1 libpsl/0.20.2 (+libidn2/2.1.1) libssh2/1.8.0 nghttp2/1.36.0',\n 'HTTP_X_FORWARDED_FOR': '194.94.44.220',\n 'HTTP_X_FORWARDED_HOST': 'www.receptome.org',\n 'HTTP_X_FORWARDED_PROTO': 'http',\n 'HTTP_X_FORWARDED_SERVER': 'www.receptome.org',\n 'HTTP_X_FORWARDED_SSL': 'off',\n 'LD_LIBRARY_PATH': '/home/rami/webapps/hpmr/apache2/lib:/home/rami/webapps/hpmr/lib',\n 'PATH_INFO': u'/SearchDB/getGenePage.asp',\n 'PATH_TRANSLATED': '/home/rami/webapps/hpmr/hpmr/hpmr/wsgi.py/SearchDB/getGenePage.asp',\n 'QUERY_STRING': 'Param=21264324&ProtId=1&ProtType=Receptor',\n 'REMOTE_ADDR': '127.0.0.1',\n 'REMOTE_PORT': '55406',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'http',\n 'REQUEST_URI': '/SearchDB/getGenePage.asp?Param=21264324&ProtId=1&ProtType=Receptor',\n 'SCRIPT_FILENAME': '/home/rami/webapps/hpmr/hpmr/hpmr/wsgi.py',\n 'SCRIPT_NAME': u'',\n 'SERVER_ADDR': '127.0.0.1',\n 'SERVER_ADMIN': '[no address given]',\n 'SERVER_NAME': 'www.receptome.org',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.0',\n 'SERVER_SIGNATURE': '',\n 'SERVER_SOFTWARE': 'Apache/2.4.25 (Unix) mod_wsgi/4.5.15 Python/2.7',\n 'apache.version': (2, 4, 25),\n 'mod_wsgi.application_group': 'web612.webfaction.com|',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.daemon_connects': '1',\n 'mod_wsgi.daemon_restarts': '0',\n 'mod_wsgi.daemon_start': '1553793198884516',\n 'mod_wsgi.enable_sendfile': '0',\n 'mod_wsgi.handler_script': '',\n 'mod_wsgi.ignore_activity': '0',\n 'mod_wsgi.listener_host': '',\n 'mod_wsgi.listener_port': '14245',\n 'mod_wsgi.path_info': '/SearchDB/getGenePage.asp',\n 'mod_wsgi.process_group': 'hpmr',\n 'mod_wsgi.queue_start': '1553793198884357',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.request_id': 'MIWsqzIWagE',\n 'mod_wsgi.request_start': '1553793198884144',\n 'mod_wsgi.script_name': '',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.script_start': '1553793198884565',\n 'mod_wsgi.thread_id': 5,\n 'mod_wsgi.thread_requests': 67136L,\n 'mod_wsgi.total_requests': 238641L,\n 'mod_wsgi.version': (4, 5, 15),\n 'wsgi.errors': <mod_wsgi.Log object at 0x7f288a336080>,\n 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>,\n 'wsgi.input': <mod_wsgi.Input object at 0x7f288a3ea8f0>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
callback | <function get_gene_by_id at 0x7f288a432c80> |
wrapped_callback | <function get_gene_by_id at 0x7f288a432c80> |
resolver | <RegexURLResolver 'hpmr.urls' (None:None) ^/> |
callback_kwargs | {} |
response | None |
urlconf | 'hpmr.urls' |
/home/rami/webapps/hpmr/hpmr/hpmr/hpmr_views.py
in get_gene_by_id
cursor.execute(SQL)
rows = dictfetchall(cursor)
GSymbol = '0' # default none
# >=1 because one gene can have more isoforms
if len(rows)>=1: GSymbol = rows[0]['GeneSymbol']
return get_gene_page(request, prot_type, GSymbol)...
def db_search_gene(term):
cursor = connection.cursor()
term = term.__str__().replace("'",'').replace('"','')
SQL = 'SELECT DISTINCT * FROM GENE_PROT_ALL WHERE '
Variable | Value |
---|---|
rows | [{'GeneSymbol': u'TAAR1'}] |
prot_type | 'rec' |
request | "<WSGIRequest\npath:/SearchDB/getGenePage.asp,\nGET:<QueryDict: {u'ProtId': [u'1'], u'Param': [u'21264324'], u'ProtType': [u'Receptor']}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/apache2/htdocs',\n 'CONTEXT_PREFIX': '',\n u'CSRF_COOKIE': u'nZFb9j3R2Xy4DEU4euXrNCR88hsgLvC3',\n 'DOCUMENT_ROOT': '/usr/local/apache2/htdocs',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_CONNECTION': 'close',\n 'HTTP_FORWARDED_REQUEST_URI': '/SearchDB/getGenePage.asp?Param=21264324&ProtId=1&ProtType=Receptor',\n 'HTTP_HOST': 'www.receptome.org',\n 'HTTP_HTTPS': 'off',\n 'HTTP_USER_AGENT': 'PycURL/7.43.0.2 libcurl/7.64.0 OpenSSL/1.1.1a zlib/1.2.11 libidn2/2.1.1 libpsl/0.20.2 (+libidn2/2.1.1) libssh2/1.8.0 nghttp2/1.36.0',\n 'HTTP_X_FORWARDED_FOR': '194.94.44.220',\n 'HTTP_X_FORWARDED_HOST': 'www.receptome.org',\n 'HTTP_X_FORWARDED_PROTO': 'http',\n 'HTTP_X_FORWARDED_SERVER': 'www.receptome.org',\n 'HTTP_X_FORWARDED_SSL': 'off',\n 'LD_LIBRARY_PATH': '/home/rami/webapps/hpmr/apache2/lib:/home/rami/webapps/hpmr/lib',\n 'PATH_INFO': u'/SearchDB/getGenePage.asp',\n 'PATH_TRANSLATED': '/home/rami/webapps/hpmr/hpmr/hpmr/wsgi.py/SearchDB/getGenePage.asp',\n 'QUERY_STRING': 'Param=21264324&ProtId=1&ProtType=Receptor',\n 'REMOTE_ADDR': '127.0.0.1',\n 'REMOTE_PORT': '55406',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'http',\n 'REQUEST_URI': '/SearchDB/getGenePage.asp?Param=21264324&ProtId=1&ProtType=Receptor',\n 'SCRIPT_FILENAME': '/home/rami/webapps/hpmr/hpmr/hpmr/wsgi.py',\n 'SCRIPT_NAME': u'',\n 'SERVER_ADDR': '127.0.0.1',\n 'SERVER_ADMIN': '[no address given]',\n 'SERVER_NAME': 'www.receptome.org',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.0',\n 'SERVER_SIGNATURE': '',\n 'SERVER_SOFTWARE': 'Apache/2.4.25 (Unix) mod_wsgi/4.5.15 Python/2.7',\n 'apache.version': (2, 4, 25),\n 'mod_wsgi.application_group': 'web612.webfaction.com|',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.daemon_connects': '1',\n 'mod_wsgi.daemon_restarts': '0',\n 'mod_wsgi.daemon_start': '1553793198884516',\n 'mod_wsgi.enable_sendfile': '0',\n 'mod_wsgi.handler_script': '',\n 'mod_wsgi.ignore_activity': '0',\n 'mod_wsgi.listener_host': '',\n 'mod_wsgi.listener_port': '14245',\n 'mod_wsgi.path_info': '/SearchDB/getGenePage.asp',\n 'mod_wsgi.process_group': 'hpmr',\n 'mod_wsgi.queue_start': '1553793198884357',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.request_id': 'MIWsqzIWagE',\n 'mod_wsgi.request_start': '1553793198884144',\n 'mod_wsgi.script_name': '',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.script_start': '1553793198884565',\n 'mod_wsgi.thread_id': 5,\n 'mod_wsgi.thread_requests': 67136L,\n 'mod_wsgi.total_requests': 238641L,\n 'mod_wsgi.version': (4, 5, 15),\n 'wsgi.errors': <mod_wsgi.Log object at 0x7f288a336080>,\n 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>,\n 'wsgi.input': <mod_wsgi.Input object at 0x7f288a3ea8f0>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
cursor | <django.db.backends.utils.CursorDebugWrapper object at 0x7f288a438e90> |
SQL | u'SELECT DISTINCT GeneSymbol FROM GENE_PROT_ALL WHERE HPMR_GeneId = "21264324" OR ENTREZ_GeneId = "21264324"' |
GSymbol | u'TAAR1' |
id | u'21264324' |
mycontext | {} |
/home/rami/webapps/hpmr/hpmr/hpmr/hpmr_views.py
in get_gene_page
#gene_page = 'GENE_PAGES/gene_'+prot_type+'_'+ gene_name+'.html'
mycontext['ints_template'] = 'GENE_PAGES/ints_gene_'+prot_type+'_'+rows[0]['GeneSymbol']+'.html'
mycontext['fam_template'] = 'GENE_PAGES/fam_gene_'+prot_type+'_'+rows[0]['GeneSymbol']+'.html'
gene_page = 'gene_page.html'
mycontext.update(csrf(request))
return render_to_response(gene_page, mycontext,context_instance=RequestContext(request))...
def get_gene_ints_page(request, prot_type, gene_symbol):
mycontext = {}
prot_type=prot_type.replace("'",'').replace('"','')
gene_symbol=gene_symbol.replace("'",'').replace('"','')
Variable | Value |
---|---|
term | u'TAAR1' |
rows | [{'AllTree': u'7TM|A|Amine derivatives|Trace', 'Comments': u'', 'ENTREZ_GeneId': u'134864', 'ENTREZ_Summary': u'TAAR1 is a G protein-coupled receptor activated by trace amines. Trace amines are endogenous amine compounds that account for less than 1% of the biogenic amines in most brain regions (Bunzow et al., 2001 [PubMed 11723224]).[supplied by OMIM, Mar 2008]', 'FamId': u'1.1.1.6', 'GeneName': u'trace amine receptor 1 ', 'GeneSymbol': u'TAAR1', 'GeneSynonyms': u'', 'HPMR_GeneId': u'21264324', 'HPMR_ProtId': u'1', 'MatureProtName': u'trace amine receptor 1', 'OMIM_ID': u'', 'RefSeqId': u'NP_612200', 'prot_type': u'rec'}] |
gene_page | 'gene_page.html' |
prot_type | 'rec' |
request | "<WSGIRequest\npath:/SearchDB/getGenePage.asp,\nGET:<QueryDict: {u'ProtId': [u'1'], u'Param': [u'21264324'], u'ProtType': [u'Receptor']}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTEXT_DOCUMENT_ROOT': '/usr/local/apache2/htdocs',\n 'CONTEXT_PREFIX': '',\n u'CSRF_COOKIE': u'nZFb9j3R2Xy4DEU4euXrNCR88hsgLvC3',\n 'DOCUMENT_ROOT': '/usr/local/apache2/htdocs',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_CONNECTION': 'close',\n 'HTTP_FORWARDED_REQUEST_URI': '/SearchDB/getGenePage.asp?Param=21264324&ProtId=1&ProtType=Receptor',\n 'HTTP_HOST': 'www.receptome.org',\n 'HTTP_HTTPS': 'off',\n 'HTTP_USER_AGENT': 'PycURL/7.43.0.2 libcurl/7.64.0 OpenSSL/1.1.1a zlib/1.2.11 libidn2/2.1.1 libpsl/0.20.2 (+libidn2/2.1.1) libssh2/1.8.0 nghttp2/1.36.0',\n 'HTTP_X_FORWARDED_FOR': '194.94.44.220',\n 'HTTP_X_FORWARDED_HOST': 'www.receptome.org',\n 'HTTP_X_FORWARDED_PROTO': 'http',\n 'HTTP_X_FORWARDED_SERVER': 'www.receptome.org',\n 'HTTP_X_FORWARDED_SSL': 'off',\n 'LD_LIBRARY_PATH': '/home/rami/webapps/hpmr/apache2/lib:/home/rami/webapps/hpmr/lib',\n 'PATH_INFO': u'/SearchDB/getGenePage.asp',\n 'PATH_TRANSLATED': '/home/rami/webapps/hpmr/hpmr/hpmr/wsgi.py/SearchDB/getGenePage.asp',\n 'QUERY_STRING': 'Param=21264324&ProtId=1&ProtType=Receptor',\n 'REMOTE_ADDR': '127.0.0.1',\n 'REMOTE_PORT': '55406',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'http',\n 'REQUEST_URI': '/SearchDB/getGenePage.asp?Param=21264324&ProtId=1&ProtType=Receptor',\n 'SCRIPT_FILENAME': '/home/rami/webapps/hpmr/hpmr/hpmr/wsgi.py',\n 'SCRIPT_NAME': u'',\n 'SERVER_ADDR': '127.0.0.1',\n 'SERVER_ADMIN': '[no address given]',\n 'SERVER_NAME': 'www.receptome.org',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.0',\n 'SERVER_SIGNATURE': '',\n 'SERVER_SOFTWARE': 'Apache/2.4.25 (Unix) mod_wsgi/4.5.15 Python/2.7',\n 'apache.version': (2, 4, 25),\n 'mod_wsgi.application_group': 'web612.webfaction.com|',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.daemon_connects': '1',\n 'mod_wsgi.daemon_restarts': '0',\n 'mod_wsgi.daemon_start': '1553793198884516',\n 'mod_wsgi.enable_sendfile': '0',\n 'mod_wsgi.handler_script': '',\n 'mod_wsgi.ignore_activity': '0',\n 'mod_wsgi.listener_host': '',\n 'mod_wsgi.listener_port': '14245',\n 'mod_wsgi.path_info': '/SearchDB/getGenePage.asp',\n 'mod_wsgi.process_group': 'hpmr',\n 'mod_wsgi.queue_start': '1553793198884357',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.request_id': 'MIWsqzIWagE',\n 'mod_wsgi.request_start': '1553793198884144',\n 'mod_wsgi.script_name': '',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.script_start': '1553793198884565',\n 'mod_wsgi.thread_id': 5,\n 'mod_wsgi.thread_requests': 67136L,\n 'mod_wsgi.total_requests': 238641L,\n 'mod_wsgi.version': (4, 5, 15),\n 'wsgi.errors': <mod_wsgi.Log object at 0x7f288a336080>,\n 'wsgi.file_wrapper': <type 'mod_wsgi.FileWrapper'>,\n 'wsgi.input': <mod_wsgi.Input object at 0x7f288a3ea8f0>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
cursor | <django.db.backends.utils.CursorDebugWrapper object at 0x7f288a438f10> |
mycontext | {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f288a438c90>, 'fam_template': u'GENE_PAGES/fam_gene_rec_TAAR1.html', 'gene': {'AllTree': u'7TM|A|Amine derivatives|Trace', 'Comments': u'', 'ENTREZ_GeneId': u'134864', 'ENTREZ_Summary': u'TAAR1 is a G protein-coupled receptor activated by trace amines. Trace amines are endogenous amine compounds that account for less than 1% of the biogenic amines in most brain regions (Bunzow et al., 2001 [PubMed 11723224]).[supplied by OMIM, Mar 2008]', 'FamId': u'1.1.1.6', 'GeneName': u'trace amine receptor 1 ', 'GeneSymbol': u'TAAR1', 'GeneSynonyms': u'', 'HPMR_GeneId': u'21264324', 'HPMR_ProtId': u'1', 'MatureProtName': u'trace amine receptor 1', 'OMIM_ID': u'', 'RefSeqId': u'NP_612200', 'prot_type': u'rec'}, 'ints_template': u'GENE_PAGES/ints_gene_rec_TAAR1.html', 'prot_type': 'rec'} |
SQL | u"SELECT DISTINCT * FROM GENE_PROT_ALL WHERE GeneSymbol LIKE '%TAAR1%' OR MatureProtName LIKE '%TAAR1%' OR GeneSynonyms LIKE '%TAAR1%' OR ENTREZ_GeneId LIKE '%TAAR1%'" |
gene_name | u'TAAR1' |
/home/rami/webapps/hpmr/lib/python2.7/Django-1.8.4-py2.7.egg/django/shortcuts.py
in render_to_response
# No deprecated arguments were passed - use the new code path
content = loader.render_to_string(template_name, context, using=using)
else:
# Some deprecated arguments were passed - use the legacy code path
content = loader.render_to_string(
template_name, context, context_instance, dirs, dictionary,
using=using)...
return HttpResponse(content, content_type, status)
def render(request, template_name, context=None,
context_instance=_context_instance_undefined,
Variable | Value |
---|---|
dirs | <object object at 0x7f288aec16c0> |
status | None |
content_type | None |
dictionary | <object object at 0x7f288aec16b0> |
template_name | 'gene_page.html' |
context_instance | [{'False': False, 'None': None, 'True': True}, {}, {}] |
context | {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f288a438c90>, 'fam_template': u'GENE_PAGES/fam_gene_rec_TAAR1.html', 'gene': {'AllTree': u'7TM|A|Amine derivatives|Trace', 'Comments': u'', 'ENTREZ_GeneId': u'134864', 'ENTREZ_Summary': u'TAAR1 is a G protein-coupled receptor activated by trace amines. Trace amines are endogenous amine compounds that account for less than 1% of the biogenic amines in most brain regions (Bunzow et al., 2001 [PubMed 11723224]).[supplied by OMIM, Mar 2008]', 'FamId': u'1.1.1.6', 'GeneName': u'trace amine receptor 1 ', 'GeneSymbol': u'TAAR1', 'GeneSynonyms': u'', 'HPMR_GeneId': u'21264324', 'HPMR_ProtId': u'1', 'MatureProtName': u'trace amine receptor 1', 'OMIM_ID': u'', 'RefSeqId': u'NP_612200', 'prot_type': u'rec'}, 'ints_template': u'GENE_PAGES/ints_gene_rec_TAAR1.html', 'prot_type': 'rec'} |
using | None |
/home/rami/webapps/hpmr/lib/python2.7/Django-1.8.4-py2.7.egg/django/template/loader.py
in render_to_string
if isinstance(engine, DjangoTemplates):
if request is not None:
raise ValueError(
"render_to_string doesn't support the request argument "
"when some deprecated arguments are passed.")
# Hack -- use the internal Engine instance of DjangoTemplates.
return engine.engine.render_to_string(
template_name, context, context_instance, dirs, dictionary)...
elif context_instance is not _context_instance_undefined:
warnings.warn(
"Skipping template backend %s because its render_to_string "
"method doesn't support the context_instance argument." %
engine.name, stacklevel=2)
elif dirs is not _dirs_undefined:
Variable | Value |
---|---|
engine | <django.template.backends.django.DjangoTemplates object at 0x7f288a47c350> |
dirs | <object object at 0x7f288aec16c0> |
dictionary | <object object at 0x7f288aec16b0> |
template_name | 'gene_page.html' |
request | None |
context_instance | [{'False': False, 'None': None, 'True': True}, {}, {}] |
context | {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f288a438c90>, 'fam_template': u'GENE_PAGES/fam_gene_rec_TAAR1.html', 'gene': {'AllTree': u'7TM|A|Amine derivatives|Trace', 'Comments': u'', 'ENTREZ_GeneId': u'134864', 'ENTREZ_Summary': u'TAAR1 is a G protein-coupled receptor activated by trace amines. Trace amines are endogenous amine compounds that account for less than 1% of the biogenic amines in most brain regions (Bunzow et al., 2001 [PubMed 11723224]).[supplied by OMIM, Mar 2008]', 'FamId': u'1.1.1.6', 'GeneName': u'trace amine receptor 1 ', 'GeneSymbol': u'TAAR1', 'GeneSynonyms': u'', 'HPMR_GeneId': u'21264324', 'HPMR_ProtId': u'1', 'MatureProtName': u'trace amine receptor 1', 'OMIM_ID': u'', 'RefSeqId': u'NP_612200', 'prot_type': u'rec'}, 'ints_template': u'GENE_PAGES/ints_gene_rec_TAAR1.html', 'prot_type': 'rec'} |
using | None |
/home/rami/webapps/hpmr/lib/python2.7/Django-1.8.4-py2.7.egg/django/template/engine.py
in render_to_string
else:
return t.render(Context(context))
if not context:
return t.render(context_instance)
# Add the context to the context stack, ensuring it gets removed again
# to keep the context_instance in the same state it started in.
with context_instance.push(context):
return t.render(context_instance)...
def select_template(self, template_name_list, dirs=_dirs_undefined):
"""
Given a list of template names, returns the first that can be loaded.
"""
if dirs is _dirs_undefined:
Variable | Value |
---|---|
dirs | <object object at 0x7f288aec16c0> |
dictionary | None |
template_name | 'gene_page.html' |
self | <django.template.engine.Engine object at 0x7f288a40f790> |
t | <django.template.base.Template object at 0x7f288a35ce50> |
context | {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f288a438c90>, 'fam_template': u'GENE_PAGES/fam_gene_rec_TAAR1.html', 'gene': {'AllTree': u'7TM|A|Amine derivatives|Trace', 'Comments': u'', 'ENTREZ_GeneId': u'134864', 'ENTREZ_Summary': u'TAAR1 is a G protein-coupled receptor activated by trace amines. Trace amines are endogenous amine compounds that account for less than 1% of the biogenic amines in most brain regions (Bunzow et al., 2001 [PubMed 11723224]).[supplied by OMIM, Mar 2008]', 'FamId': u'1.1.1.6', 'GeneName': u'trace amine receptor 1 ', 'GeneSymbol': u'TAAR1', 'GeneSynonyms': u'', 'HPMR_GeneId': u'21264324', 'HPMR_ProtId': u'1', 'MatureProtName': u'trace amine receptor 1', 'OMIM_ID': u'', 'RefSeqId': u'NP_612200', 'prot_type': u'rec'}, 'ints_template': u'GENE_PAGES/ints_gene_rec_TAAR1.html', 'prot_type': 'rec'} |
context_instance | [{'False': False, 'None': None, 'True': True}, {}, {}] |
/home/rami/webapps/hpmr/lib/python2.7/Django-1.8.4-py2.7.egg/django/template/base.py
in render
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
if context.template is None:
with context.bind_template(self):
return self._render(context)...
else:
return self._render(context)
finally:
context.render_context.pop()
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7f288a35ce50> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}] |
/home/rami/webapps/hpmr/lib/python2.7/Django-1.8.4-py2.7.egg/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
if context.template is None:
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7f288a35ce50> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}] |
/home/rami/webapps/hpmr/lib/python2.7/Django-1.8.4-py2.7.egg/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <IfNode> |
bit | u'\n\n\n' |
bits | [u'<html>\n<head>\n<title>HPMR - ', u'rec', u' ', u'TAAR1', u', ', u'trace amine receptor 1', u'</title>\n<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n\n\n<!--WZJSGraphic Moduls /Walter Zorn--->\n<script language="JavaScript" src="http://www.appliedbioinfo.com/APBIO_MEDIA/js/hpmr/wz_jsgraphics.js" type="text/javascript"></script>\n<script language="JavaScript" src="http://www.appliedbioinfo.com/APBIO_MEDIA/js/hpmr/ints_jsgraphics.js" type="text/javascript"></script>\n\n<script src="http://code.jquery.com/jquery-1.9.1.js"></script>\n\n<script type="text/javascript" src="http://www.appliedbioinfo.net/APBIO_MEDIA/js/apbio_main.js"></script>\n<script type="text/javascript" src="http://www.appliedbioinfo.net/APBIO_MEDIA/js/bdi_main.js"></script>\n\n\n\n<script language="javascript" type="text/javascript" src="http://www.appliedbioinfo.net/APBIO_MEDIA/Chart.js"></script>\n\n<style>\nbody { font-family: Verdana, Arial, Helvetica, sans-serif; ---background-color: #FFFFFF}\n.box1 {border: solid #cccccc 1px;padding:2px;margin:2px;}\n.dashboard_block{margin:3px;padding:3px;border:solid #cccccc 3px;border-radius:5px}\n</style>\n\n</head>\n\n<script>\n//////////////////////\n\nvar varCurrExpDS = \'PreimplantMmEmbryo\';\n\n//\nfunction loadExpDS(ExpDSSelect) //varExpDS)\n{\n varExpDS = ExpDSSelect.options[ExpDSSelect.selectedIndex].value;\n if(showArray(varExpDS)==1) document.getElementById(\'ExpDSName\').innerHTML=varExpDS;\n\n return;\n}\nfunction is_ds_loaded(dsname){\n return true;\n return [\'PreimplantMmEmbryo\',\'Follicle_Maturation_and_Ovulation_POnly\',\'OocyteDevelopment\'].indexOf(dsname) > -1;\n}\n\nfunction showArray(varExpDS)\n{\n document.getElementById(\'ArrayDiv\').style.display=\'block\';\n $(\'#tmp_message\').remove();\n //////////////// TEMP MESSAGE\n if(!(is_ds_loaded(varExpDS))){\n $(\'#plot_canvass\').prepend(\'<div id="tmp_message" style="color:red; font-size:1em">GENE EXPRESSION SECTION IS UNDER MAINTENANCE. WILL BE FULLY FUNCTIONAL SOON. \'+varExpDS+\' is not loaded yet.</div>\');\n return 0;\n }\n ///////////////////////////////////////////////////////////\n\n document.getElementById(\'ShowTog\').style.display=\'none\';\n \n //draw_exp_chart();\n //return;\n \n getStuff(\'GenExp1\',\'username=', u'OKDB', u';Org=', u'', u';GId=', u'134864', u";ExpDS='+varExpDS+';PlotTitle=", u'TAAR1', u"',true,'", u'TAAR1', u'\');\n\tvarCurrExpDS = varExpDS;\n return 1;\n}\n</script>\n\n\n<body leftmargin="20" topmargin="5" rightmargin="20" bottommargin="20">\n\n<table border="0" width="100%" height="100%"> \n<tr><td class="frame1" valign="top">\n\n', u'\n\n<form id="formTop" action="http://www.receptome.org/SearchDB/findGenes.asp" method="get" name="formTop" target="_self">\n<span align="left" id="headtitle" class="headtitle">\n<a title="HOME" href="http://www.receptome.org/home.asp" target="_self"><img src="http://www.appliedbioinfo.com/APBIO_MEDIA/images/hpmr/Icons/hpmr_logo5.png" border="0" style="vertical-align:baseline"></a>\n</span>\n\t\n\t\n<span id="topSearch" style="display:inline">\n <font size="2" face="Times New Roman, Times, serif">\n<input class="btn" type="submit" id="Submit" value="Search" onClick="checkTopForm()">\n <input type="text" id="toptextName" name="textName" size="10">\n or <input class="btn" type="button" id="Browse" value="Browse" onClick="document.location.href=\'http://www.receptome.org/Families/FamNav/famnav.asp?undefined\'">\n</font> \n</span><img height="5" width="100%" src="http://www.appliedbioinfo.com/APBIO_MEDIA/images/hpmr/Icons/topbar1.png" >\n</form>\t\t\t\n<script language="JavaScript">\ndocument.getElementById(\'toptextName\').focus();\nfunction checkTopForm()\n{\n var tName = String(document.formTop.getElementById(\'toptextName\')).replace(/\\W/g,\'\');\t\n if(tName.length==0) \n {\n alert("Empty Query..");\n document.formTop.action = "";//document.location.href; //stay in the same page\t \n }\n}\n</script>\n\n\n\n', u'\n\n\n'] |
self | [<Text Node: '<html> <head> <title>HPMR'>, <Variable Node: prot_type>, <Text Node: ' '>, <Variable Node: gene.GeneSymbol>, <Text Node: ', '>, <Variable Node: gene.MatureProtName>, <Text Node: '</title> <meta http-equiv'>, <IfNode>, <Text Node: ';Org='>, <Variable Node: gene.SpeciesSelection>, <Text Node: ';GId='>, <Variable Node: gene.ENTREZ_GeneId>, <Text Node: ';ExpDS='+varExpDS+';PlotT'>, <Variable Node: gene.GeneSymbol>, <Text Node: '',true,''>, <Variable Node: gene.GeneSymbol>, <Text Node: ''); varCurrExpDS = varEx'>, <django.template.loader_tags.IncludeNode object at 0x7f288a2fba10>, <Text Node: ' '>, <IfNode>, <Text Node: ' </td></tr></table> </b'>] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}] |
/home/rami/webapps/hpmr/lib/python2.7/Django-1.8.4-py2.7.egg/django/template/debug.py
in render_node
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <IfNode> |
self | [<Text Node: '<html> <head> <title>HPMR'>, <Variable Node: prot_type>, <Text Node: ' '>, <Variable Node: gene.GeneSymbol>, <Text Node: ', '>, <Variable Node: gene.MatureProtName>, <Text Node: '</title> <meta http-equiv'>, <IfNode>, <Text Node: ';Org='>, <Variable Node: gene.SpeciesSelection>, <Text Node: ';GId='>, <Variable Node: gene.ENTREZ_GeneId>, <Text Node: ';ExpDS='+varExpDS+';PlotT'>, <Variable Node: gene.GeneSymbol>, <Text Node: '',true,''>, <Variable Node: gene.GeneSymbol>, <Text Node: ''); varCurrExpDS = varEx'>, <django.template.loader_tags.IncludeNode object at 0x7f288a2fba10>, <Text Node: ' '>, <IfNode>, <Text Node: ' </td></tr></table> </b'>] |
e | UnicodeDecodeError('utf8', '\r\r<img id="GeneIntsNode" class="paragNode" src="http://www.appliedbioinfo.com/APBIO_MEDIA/images/hpmr/Icons/open.png" --onClick="void dispFrames(\'GeneInts\')">\r<img class="paragIcon" src="http://www.appliedbioinfo.com/APBIO_MEDIA/images/hpmr/Icons/ReceptorInts.png" border="0">\r<span class="supertitle">\rReceptor TAAR1 interacts with:</span>\r <div id="GeneInts" style="display:block"><div><TABLE width=\'100%\' class=\'ints_table\' border=0 cellpadding=\'2\'><TR BgColor=\'#FFFFFF\'><td></td></TR><TR BgColor=\'#EFEFEF\' ><td><span class=\'IntRow\'><u>non-gene ligand:</u> 3-iodothyronamine</span><span style=\'margin-left: 10px\' class=\'IntRow\'><a id=\'OpenComm_1366\' href=\'#\' onClick=\'document.getElementById("Comm_1366").style.display="block";document.getElementById("OpenComm_1366").style.display="none";\'>[read more..]</a><div id=\'Comm_1366\' style=\'display: none; color: #006600;text-align: left; margin:bottom:3px\'> 3-Iodothyronamine is an endogenous and rapid-acting derivative of thyroid hormone.\r<a target=\'_blank\' title=\'click to open reference in new window\' href=\'http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=pubmed&dopt=Abstract&list_uids=15146179\'>Nat Med. 2004 Jun;10(6):638-42. </a>. This report documented the discovery of 3-iodothyronamine (T1AM), a naturally occurring derivative of thyroid hormone that in vitro is a potent agonist of the G protein\x96coupled trace amine receptor TAR1. </div></span></td></TR></TABLE><input type=\'hidden\' id=\'intslist\' value=\', \'></input></div>\r</div></div>\r\r', 1378, 1379, 'invalid start byte') |
context | [{'False': False, 'None': None, 'True': True}, {}, {}] |
/home/rami/webapps/hpmr/lib/python2.7/Django-1.8.4-py2.7.egg/django/template/defaulttags.py
in render
match = condition.eval(context)
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:
return nodelist.render(context)...
return ''
class LoremNode(Node):
def __init__(self, count, method, common):
Variable | Value |
---|---|
self | <IfNode> |
match | {'AllTree': u'7TM|A|Amine derivatives|Trace', 'Comments': u'', 'ENTREZ_GeneId': u'134864', 'ENTREZ_Summary': u'TAAR1 is a G protein-coupled receptor activated by trace amines. Trace amines are endogenous amine compounds that account for less than 1% of the biogenic amines in most brain regions (Bunzow et al., 2001 [PubMed 11723224]).[supplied by OMIM, Mar 2008]', 'FamId': u'1.1.1.6', 'GeneName': u'trace amine receptor 1 ', 'GeneSymbol': u'TAAR1', 'GeneSynonyms': u'', 'HPMR_GeneId': u'21264324', 'HPMR_ProtId': u'1', 'MatureProtName': u'trace amine receptor 1', 'OMIM_ID': u'', 'RefSeqId': u'NP_612200', 'prot_type': u'rec'} |
nodelist | [<Text Node: ' <div class="paragraph" '>, <Variable Node: prot_type>, <Text Node: '.png"> <span class="super'>, <Variable Node: gene.GeneSymbol>, <Text Node: ' - '>, <Variable Node: gene.MatureProtName|upper>, <Text Node: '</span> <span class="titl'>, <Variable Node: prot_type>, <Text Node: ' family page" href="http:'>, <Variable Node: gene.FamId>, <Text Node: '&ProtType='>, <Variable Node: prot_type>, <Text Node: '&GeneSelected='>, <Variable Node: gene.HPMR_GeneId>, <Text Node: '">'>, <Variable Node: gene.AllTree>, <Text Node: '</a> <div style="margin-'>, <IfNode>, <Text Node: ' <span style="margin-left'>, <Variable Node: gene.ENTREZ_GeneId>, <Text Node: '" target="_blank">Entrez '>, <Variable Node: gene.OMIM_ID>, <Text Node: '" target="_blank">Omim</a'>, <IfNode>, <Text Node: ' <div class="paragraph">'>, <django.template.loader_tags.IncludeNode object at 0x7f288a34c690>, <Text Node: ' </div> <div class="p'>, <django.template.loader_tags.IncludeNode object at 0x7f288a438790>, <Text Node: ' </div> <div class="pa'>] |
condition | (literal <django.template.base.FilterExpression object at 0x7f288a2fb950>) |
context | [{'False': False, 'None': None, 'True': True}, {}, {}] |
/home/rami/webapps/hpmr/lib/python2.7/Django-1.8.4-py2.7.egg/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <django.template.loader_tags.IncludeNode object at 0x7f288a34c690> |
bit | u'\n\n<div class="paragraph">\n ' |
bits | [u'\n\n<div class="paragraph" style="display:none;height: 1.5em;margin-top: 1px">\n<span class="hmenu">\n\t<span class="hmenu_element"><a href="#FamIntsParag">Interactions in Family</a></span>\n\t<span class="hmenu_element"><a href="#GenExpParag">Gene Expression</a></span>\n</span>\n</div>\n\n<div class="paragraph" style="border-top:none;margin-top: 1px;">\n<img class="paragIcon" src="http://www.appliedbioinfo.com/APBIO_MEDIA/images/hpmr/Icons/', u'rec', u'.png">\n<span class="supertitle">', u'TAAR1', u' - ', u'TRACE AMINE RECEPTOR 1', u'</span>\n<span class="title" style="margin-left: 10px; margin-right: 3px">Family:</span><a title="go to ', u'rec', u' family page" href="http://www.receptome.org/families/frameset_family.asp?FamId=', u'1.1.1.6', u'&ProtType=', u'rec', u'&GeneSelected=', u'21264324', u'">', u'7TM|A|Amine derivatives|Trace', u'</a>\n\n<div style="margin-top:5px">', u'', u'\n<span style="margin-left: 10px" class="title">External \n links:</span> <a href="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=gene&cmd=Retrieve&dopt=Graphics&list_uids=', u'134864', u'" target="_blank">Entrez Gene</a>, <a href="http://www.ncbi.nlm.nih.gov/entrez/dispomim.cgi?id=', u'', u'" target="_blank">Omim</a><!--, <a href="http://ovary.stanford.edu/" target="_blank">OKdb</a> -->\n</div>\n\n</div>\n\n', u'\t\t\n<div class="paragraph"><span class="title">Summary: <span style="font-size:85%">(from NCBI-Entrez)</span></span><br/>\n<span id="OpenSummary">\n\n<a href="#" onClick="document.getElementById(\'Summary\').style.display=\'block\';document.getElementById(\'OpenSummary\').style.display=\'none\';">..[read more]</a></span>\n<span id="Summary" style="display:none">TAAR1 is a G protein-coupled receptor activated by trace amines. Trace amines are endogenous amine compounds that account for less than 1% of the biogenic amines in most brain regions (Bunzow et al., 2001 [PubMed 11723224]).[supplied by OMIM, Mar 2008]</span>\n \n</div> \n ', u'\n\n<div class="paragraph">\n '] |
self | [<Text Node: ' <div class="paragraph" '>, <Variable Node: prot_type>, <Text Node: '.png"> <span class="super'>, <Variable Node: gene.GeneSymbol>, <Text Node: ' - '>, <Variable Node: gene.MatureProtName|upper>, <Text Node: '</span> <span class="titl'>, <Variable Node: prot_type>, <Text Node: ' family page" href="http:'>, <Variable Node: gene.FamId>, <Text Node: '&ProtType='>, <Variable Node: prot_type>, <Text Node: '&GeneSelected='>, <Variable Node: gene.HPMR_GeneId>, <Text Node: '">'>, <Variable Node: gene.AllTree>, <Text Node: '</a> <div style="margin-'>, <IfNode>, <Text Node: ' <span style="margin-left'>, <Variable Node: gene.ENTREZ_GeneId>, <Text Node: '" target="_blank">Entrez '>, <Variable Node: gene.OMIM_ID>, <Text Node: '" target="_blank">Omim</a'>, <IfNode>, <Text Node: ' <div class="paragraph">'>, <django.template.loader_tags.IncludeNode object at 0x7f288a34c690>, <Text Node: ' </div> <div class="p'>, <django.template.loader_tags.IncludeNode object at 0x7f288a438790>, <Text Node: ' </div> <div class="pa'>] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}] |
/home/rami/webapps/hpmr/lib/python2.7/Django-1.8.4-py2.7.egg/django/template/debug.py
in render_node
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <django.template.loader_tags.IncludeNode object at 0x7f288a34c690> |
self | [<Text Node: ' <div class="paragraph" '>, <Variable Node: prot_type>, <Text Node: '.png"> <span class="super'>, <Variable Node: gene.GeneSymbol>, <Text Node: ' - '>, <Variable Node: gene.MatureProtName|upper>, <Text Node: '</span> <span class="titl'>, <Variable Node: prot_type>, <Text Node: ' family page" href="http:'>, <Variable Node: gene.FamId>, <Text Node: '&ProtType='>, <Variable Node: prot_type>, <Text Node: '&GeneSelected='>, <Variable Node: gene.HPMR_GeneId>, <Text Node: '">'>, <Variable Node: gene.AllTree>, <Text Node: '</a> <div style="margin-'>, <IfNode>, <Text Node: ' <span style="margin-left'>, <Variable Node: gene.ENTREZ_GeneId>, <Text Node: '" target="_blank">Entrez '>, <Variable Node: gene.OMIM_ID>, <Text Node: '" target="_blank">Omim</a'>, <IfNode>, <Text Node: ' <div class="paragraph">'>, <django.template.loader_tags.IncludeNode object at 0x7f288a34c690>, <Text Node: ' </div> <div class="p'>, <django.template.loader_tags.IncludeNode object at 0x7f288a438790>, <Text Node: ' </div> <div class="pa'>] |
e | UnicodeDecodeError('utf8', '\r\r<img id="GeneIntsNode" class="paragNode" src="http://www.appliedbioinfo.com/APBIO_MEDIA/images/hpmr/Icons/open.png" --onClick="void dispFrames(\'GeneInts\')">\r<img class="paragIcon" src="http://www.appliedbioinfo.com/APBIO_MEDIA/images/hpmr/Icons/ReceptorInts.png" border="0">\r<span class="supertitle">\rReceptor TAAR1 interacts with:</span>\r <div id="GeneInts" style="display:block"><div><TABLE width=\'100%\' class=\'ints_table\' border=0 cellpadding=\'2\'><TR BgColor=\'#FFFFFF\'><td></td></TR><TR BgColor=\'#EFEFEF\' ><td><span class=\'IntRow\'><u>non-gene ligand:</u> 3-iodothyronamine</span><span style=\'margin-left: 10px\' class=\'IntRow\'><a id=\'OpenComm_1366\' href=\'#\' onClick=\'document.getElementById("Comm_1366").style.display="block";document.getElementById("OpenComm_1366").style.display="none";\'>[read more..]</a><div id=\'Comm_1366\' style=\'display: none; color: #006600;text-align: left; margin:bottom:3px\'> 3-Iodothyronamine is an endogenous and rapid-acting derivative of thyroid hormone.\r<a target=\'_blank\' title=\'click to open reference in new window\' href=\'http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=pubmed&dopt=Abstract&list_uids=15146179\'>Nat Med. 2004 Jun;10(6):638-42. </a>. This report documented the discovery of 3-iodothyronamine (T1AM), a naturally occurring derivative of thyroid hormone that in vitro is a potent agonist of the G protein\x96coupled trace amine receptor TAR1. </div></span></td></TR></TABLE><input type=\'hidden\' id=\'intslist\' value=\', \'></input></div>\r</div></div>\r\r', 1378, 1379, 'invalid start byte') |
context | [{'False': False, 'None': None, 'True': True}, {}, {}] |
/home/rami/webapps/hpmr/lib/python2.7/Django-1.8.4-py2.7.egg/django/template/loader_tags.py
in render
def render(self, context):
try:
template = self.template.resolve(context)
# Does this quack like a Template?
if not callable(getattr(template, 'render', None)):
# If not, we'll try get_template
template = context.template.engine.get_template(template)...
values = {
name: var.resolve(context)
for name, var in six.iteritems(self.extra_context)
}
if self.isolated_context:
return template.render(context.new(values))
Variable | Value |
---|---|
self | <django.template.loader_tags.IncludeNode object at 0x7f288a34c690> |
template | u'GENE_PAGES/ints_gene_rec_TAAR1.html' |
context | [{'False': False, 'None': None, 'True': True}, {}, {}] |
/home/rami/webapps/hpmr/lib/python2.7/Django-1.8.4-py2.7.egg/django/template/engine.py
in get_template
if dirs is _dirs_undefined:
dirs = None
else:
warnings.warn(
"The dirs argument of get_template is deprecated.",
RemovedInDjango110Warning, stacklevel=2)
template, origin = self.find_template(template_name, dirs)...
if not hasattr(template, 'render'):
# template needs to be compiled
template = Template(template, origin, template_name, engine=self)
return template
# This method was originally a function defined in django.template.loader.
Variable | Value |
---|---|
dirs | None |
template_name | u'GENE_PAGES/ints_gene_rec_TAAR1.html' |
self | <django.template.engine.Engine object at 0x7f288a40f790> |
/home/rami/webapps/hpmr/lib/python2.7/Django-1.8.4-py2.7.egg/django/template/engine.py
in find_template
else:
raise ImproperlyConfigured(
"Invalid value in template loaders configuration: %r" % loader)
def find_template(self, name, dirs=None):
for loader in self.template_loaders:
try:
source, display_name = loader(name, dirs)...
origin = self.make_origin(display_name, loader, name, dirs)
return source, origin
except TemplateDoesNotExist:
pass
raise TemplateDoesNotExist(name)
Variable | Value |
---|---|
dirs | None |
self | <django.template.engine.Engine object at 0x7f288a40f790> |
name | u'GENE_PAGES/ints_gene_rec_TAAR1.html' |
loader | <django.template.loaders.filesystem.Loader object at 0x7f288a3d2190> |
/home/rami/webapps/hpmr/lib/python2.7/Django-1.8.4-py2.7.egg/django/template/loaders/base.py
in __call__
# Only used to raise a deprecation warning. Remove in Django 1.10.
_accepts_engine_in_init = True
def __init__(self, engine):
self.engine = engine
def __call__(self, template_name, template_dirs=None):
return self.load_template(template_name, template_dirs)...
def load_template(self, template_name, template_dirs=None):
source, display_name = self.load_template_source(
template_name, template_dirs)
origin = self.engine.make_origin(
display_name, self.load_template_source,
Variable | Value |
---|---|
template_dirs | None |
template_name | u'GENE_PAGES/ints_gene_rec_TAAR1.html' |
self | <django.template.loaders.filesystem.Loader object at 0x7f288a3d2190> |
/home/rami/webapps/hpmr/lib/python2.7/Django-1.8.4-py2.7.egg/django/template/loaders/base.py
in load_template
self.engine = engine
def __call__(self, template_name, template_dirs=None):
return self.load_template(template_name, template_dirs)
def load_template(self, template_name, template_dirs=None):
source, display_name = self.load_template_source(
template_name, template_dirs)...
origin = self.engine.make_origin(
display_name, self.load_template_source,
template_name, template_dirs)
try:
template = Template(source, origin, template_name, self.engine)
Variable | Value |
---|---|
template_dirs | None |
template_name | u'GENE_PAGES/ints_gene_rec_TAAR1.html' |
self | <django.template.loaders.filesystem.Loader object at 0x7f288a3d2190> |
/home/rami/webapps/hpmr/lib/python2.7/Django-1.8.4-py2.7.egg/django/template/loaders/filesystem.py
in load_template_source
pass
def load_template_source(self, template_name, template_dirs=None):
tried = []
for filepath in self.get_template_sources(template_name, template_dirs):
try:
with io.open(filepath, encoding=self.engine.file_charset) as fp:
return fp.read(), filepath...
except IOError:
tried.append(filepath)
if tried:
error_msg = "Tried %s" % tried
else:
error_msg = ("Your template directories configuration is empty. "
Variable | Value |
---|---|
fp | <_io.TextIOWrapper name=u'/home/rami/webapps/hpmr/hpmr/hpmr/templates/GENE_PAGES/ints_gene_rec_TAAR1.html' encoding='utf-8'> |
template_dirs | None |
tried | [] |
filepath | u'/home/rami/webapps/hpmr/hpmr/hpmr/templates/GENE_PAGES/ints_gene_rec_TAAR1.html' |
template_name | u'GENE_PAGES/ints_gene_rec_TAAR1.html' |
self | <django.template.loaders.filesystem.Loader object at 0x7f288a3d2190> |
/usr/lib64/python2.7/codecs.py
in decode
# Overwrite this method in subclasses: It must decode input
# and return an (output, length consumed) tuple
raise NotImplementedError
def decode(self, input, final=False):
# decode input (taking the buffer into account)
data = self.buffer + input
(result, consumed) = self._buffer_decode(data, self.errors, final)...
# keep undecoded input until the next call
self.buffer = data[consumed:]
return result
def reset(self):
IncrementalDecoder.reset(self)
Variable | Value |
---|---|
input | '\r\r<img id="GeneIntsNode" class="paragNode" src="http://www.appliedbioinfo.com/APBIO_MEDIA/images/hpmr/Icons/open.png" --onClick="void dispFrames(\'GeneInts\')">\r<img class="paragIcon" src="http://www.appliedbioinfo.com/APBIO_MEDIA/images/hpmr/Icons/ReceptorInts.png" border="0">\r<span class="supertitle">\rReceptor TAAR1 interacts with:</span>\r <div id="GeneInts" style="display:block"><div><TABLE width=\'100%\' class=\'ints_table\' border=0 cellpadding=\'2\'><TR BgColor=\'#FFFFFF\'><td></td></TR><TR BgColor=\'#EFEFEF\' ><td><span class=\'IntRow\'><u>non-gene ligand:</u> 3-iodothyronamine</span><span style=\'margin-left: 10px\' class=\'IntRow\'><a id=\'OpenComm_1366\' href=\'#\' onClick=\'document.getElementById("Comm_1366").style.display="block";document.getElementById("OpenComm_1366").style.display="none";\'>[read more..]</a><div id=\'Comm_1366\' style=\'display: none; color: #006600;text-align: left; margin:bottom:3px\'> 3-Iodothyronamine is an endogenous and rapid-acting derivative of thyroid hormone.\r<a target=\'_blank\' title=\'click to open reference in new window\' href=\'http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=pubmed&dopt=Abstract&list_uids=15146179\'>Nat Med. 2004 Jun;10(6):638-42. </a>. This report documented the discovery of 3-iodothyronamine (T1AM), a naturally occurring derivative of thyroid hormone that in vitro is a potent agonist of the G protein\x96coupled trace amine receptor TAR1. </div></span></td></TR></TABLE><input type=\'hidden\' id=\'intslist\' value=\', \'></input></div>\r</div></div>\r\r' |
self | <encodings.utf_8.IncrementalDecoder object at 0x7f288a3b7810> |
data | '\r\r<img id="GeneIntsNode" class="paragNode" src="http://www.appliedbioinfo.com/APBIO_MEDIA/images/hpmr/Icons/open.png" --onClick="void dispFrames(\'GeneInts\')">\r<img class="paragIcon" src="http://www.appliedbioinfo.com/APBIO_MEDIA/images/hpmr/Icons/ReceptorInts.png" border="0">\r<span class="supertitle">\rReceptor TAAR1 interacts with:</span>\r <div id="GeneInts" style="display:block"><div><TABLE width=\'100%\' class=\'ints_table\' border=0 cellpadding=\'2\'><TR BgColor=\'#FFFFFF\'><td></td></TR><TR BgColor=\'#EFEFEF\' ><td><span class=\'IntRow\'><u>non-gene ligand:</u> 3-iodothyronamine</span><span style=\'margin-left: 10px\' class=\'IntRow\'><a id=\'OpenComm_1366\' href=\'#\' onClick=\'document.getElementById("Comm_1366").style.display="block";document.getElementById("OpenComm_1366").style.display="none";\'>[read more..]</a><div id=\'Comm_1366\' style=\'display: none; color: #006600;text-align: left; margin:bottom:3px\'> 3-Iodothyronamine is an endogenous and rapid-acting derivative of thyroid hormone.\r<a target=\'_blank\' title=\'click to open reference in new window\' href=\'http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=pubmed&dopt=Abstract&list_uids=15146179\'>Nat Med. 2004 Jun;10(6):638-42. </a>. This report documented the discovery of 3-iodothyronamine (T1AM), a naturally occurring derivative of thyroid hormone that in vitro is a potent agonist of the G protein\x96coupled trace amine receptor TAR1. </div></span></td></TR></TABLE><input type=\'hidden\' id=\'intslist\' value=\', \'></input></div>\r</div></div>\r\r' |
final | True |
Variable | Value |
---|---|
ProtId | u'1' |
Param | u'21264324' |
ProtType | u'Receptor' |
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
mod_wsgi.listener_port | '14245' |
HTTP_X_FORWARDED_SERVER | 'www.receptome.org' |
mod_wsgi.listener_host | '' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'Apache/2.4.25 (Unix) mod_wsgi/4.5.15 Python/2.7' |
SCRIPT_NAME | u'' |
mod_wsgi.enable_sendfile | '0' |
mod_wsgi.handler_script | '' |
SERVER_SIGNATURE | '' |
REQUEST_METHOD | 'GET' |
HTTP_HTTPS | 'off' |
PATH_INFO | u'/SearchDB/getGenePage.asp' |
HTTP_X_FORWARDED_SSL | 'off' |
QUERY_STRING | 'Param=21264324&ProtId=1&ProtType=Receptor' |
LD_LIBRARY_PATH | '/home/rami/webapps/hpmr/apache2/lib:/home/rami/webapps/hpmr/lib' |
HTTP_USER_AGENT | 'PycURL/7.43.0.2 libcurl/7.64.0 OpenSSL/1.1.1a zlib/1.2.11 libidn2/2.1.1 libpsl/0.20.2 (+libidn2/2.1.1) libssh2/1.8.0 nghttp2/1.36.0' |
HTTP_CONNECTION | 'close' |
SERVER_NAME | 'www.receptome.org' |
REMOTE_ADDR | '127.0.0.1' |
mod_wsgi.queue_start | '1553793198884357' |
mod_wsgi.request_handler | 'wsgi-script' |
apache.version | (2, 4, 25) |
mod_wsgi.thread_id | 5 |
wsgi.url_scheme | 'http' |
mod_wsgi.thread_requests | 67136L |
PATH_TRANSLATED | '/home/rami/webapps/hpmr/hpmr/hpmr/wsgi.py/SearchDB/getGenePage.asp' |
SERVER_PORT | '80' |
mod_wsgi.daemon_connects | '1' |
wsgi.multiprocess | True |
SERVER_ADDR | '127.0.0.1' |
DOCUMENT_ROOT | '/usr/local/apache2/htdocs' |
mod_wsgi.process_group | 'hpmr' |
CONTEXT_DOCUMENT_ROOT | '/usr/local/apache2/htdocs' |
HTTP_X_FORWARDED_PROTO | 'http' |
mod_wsgi.request_id | 'MIWsqzIWagE' |
SCRIPT_FILENAME | '/home/rami/webapps/hpmr/hpmr/hpmr/wsgi.py' |
SERVER_ADMIN | '[no address given]' |
mod_wsgi.ignore_activity | '0' |
wsgi.input | <mod_wsgi.Input object at 0x7f288a3ea8f0> |
HTTP_HOST | 'www.receptome.org' |
CONTEXT_PREFIX | '' |
wsgi.multithread | True |
mod_wsgi.callable_object | 'application' |
mod_wsgi.daemon_restarts | '0' |
REQUEST_URI | '/SearchDB/getGenePage.asp?Param=21264324&ProtId=1&ProtType=Receptor' |
HTTP_ACCEPT | '*/*' |
mod_wsgi.path_info | '/SearchDB/getGenePage.asp' |
HTTP_FORWARDED_REQUEST_URI | '/SearchDB/getGenePage.asp?Param=21264324&ProtId=1&ProtType=Receptor' |
wsgi.file_wrapper | '' |
wsgi.version | (1, 0) |
GATEWAY_INTERFACE | 'CGI/1.1' |
HTTP_X_FORWARDED_FOR | '194.94.44.220' |
mod_wsgi.script_name | '' |
REMOTE_PORT | '55406' |
HTTP_X_FORWARDED_HOST | 'www.receptome.org' |
REQUEST_SCHEME | 'http' |
mod_wsgi.version | (4, 5, 15) |
wsgi.run_once | False |
mod_wsgi.script_start | '1553793198884565' |
mod_wsgi.total_requests | 238641L |
mod_wsgi.application_group | 'web612.webfaction.com|' |
mod_wsgi.script_reloading | '1' |
mod_wsgi.request_start | '1553793198884144' |
CSRF_COOKIE | u'nZFb9j3R2Xy4DEU4euXrNCR88hsgLvC3' |
wsgi.errors | <mod_wsgi.Log object at 0x7f288a336080> |
mod_wsgi.daemon_start | '1553793198884516' |
hpmr.settings
Setting | Value |
---|---|
SECURE_BROWSER_XSS_FILTER | False |
USE_THOUSAND_SEPARATOR | False |
CSRF_COOKIE_SECURE | False |
LANGUAGE_CODE | 'en-us' |
ROOT_URLCONF | 'hpmr.urls' |
MANAGERS | () |
BASE_DIR | '/home/rami/webapps/hpmr/hpmr' |
SILENCED_SYSTEM_CHECKS | [] |
DEFAULT_CHARSET | 'utf-8' |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
STATIC_ROOT | None |
ALLOWED_HOSTS | ['*'] |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
SERVER_EMAIL | 'root@localhost' |
SECURE_HSTS_SECONDS | 0 |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | 'sessionid' |
TIME_INPUT_FORMATS | ('%H:%M:%S', '%H:%M:%S.%f', '%H:%M') |
SECURE_REDIRECT_EXEMPT | [] |
DATABASES | {'bdi': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': '/home/rami/webapps/hpmr/hpmr/bdi_db', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': 'UTC', 'USER': ''}, 'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': '/home/rami/webapps/hpmr/hpmr/hpmr_db', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': 'UTC', 'USER': ''}} |
EMAIL_SSL_KEYFILE | u'********************' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') |
DEFAULT_CONTENT_TYPE | 'text/html' |
APPEND_SLASH | True |
LOCALE_PATHS | () |
DATABASE_ROUTERS | [] |
DEFAULT_TABLESPACE | '' |
YEAR_MONTH_FORMAT | 'F Y' |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
SESSION_COOKIE_PATH | '/' |
SECURE_CONTENT_TYPE_NOSNIFF | False |
MIDDLEWARE_CLASSES | ('django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.security.SecurityMiddleware') |
USE_I18N | False |
THOUSAND_SEPARATOR | ',' |
SECRET_KEY | u'********************' |
LANGUAGE_COOKIE_NAME | 'django_language' |
DEFAULT_INDEX_TABLESPACE | '' |
LOGGING_CONFIG | 'logging.config.dictConfig' |
TEMPLATE_LOADERS | ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') |
FIRST_DAY_OF_WEEK | 0 |
WSGI_APPLICATION | 'hpmr.wsgi.application' |
TEMPLATE_DEBUG | False |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
CSRF_COOKIE_NAME | 'csrftoken' |
FORCE_SCRIPT_NAME | None |
USE_X_FORWARDED_HOST | False |
EMAIL_TIMEOUT | None |
SECURE_SSL_HOST | None |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SESSION_COOKIE_SECURE | False |
CSRF_COOKIE_DOMAIN | None |
FILE_CHARSET | 'utf-8' |
DEBUG | True |
LANGUAGE_COOKIE_DOMAIN | None |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
INSTALLED_APPS | ('django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'bdi') |
LANGUAGES | (('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')) |
USE_L10N | True |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
STATICFILES_DIRS | () |
PREPEND_WWW | False |
SECURE_PROXY_SSL_HEADER | None |
LANGUAGE_COOKIE_AGE | None |
SESSION_COOKIE_HTTPONLY | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
CSRF_COOKIE_AGE | 31449600 |
MONTH_DAY_FORMAT | 'F j' |
LOGIN_URL | '/accounts/login/' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
TIME_FORMAT | 'P' |
AUTH_USER_MODEL | 'auth.User' |
DATE_INPUT_FORMATS | ('%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') |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend',) |
EMAIL_HOST_PASSWORD | u'********************' |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
SESSION_FILE_PATH | None |
CACHE_MIDDLEWARE_ALIAS | 'default' |
SESSION_SAVE_EVERY_REQUEST | False |
NUMBER_GROUPING | 0 |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_COOKIE_PATH | '/' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
DECIMAL_SEPARATOR | '.' |
IGNORABLE_404_URLS | () |
MIGRATION_MODULES | {} |
TEMPLATE_STRING_IF_INVALID | '' |
LOGOUT_URL | '/accounts/logout/' |
EMAIL_USE_TLS | False |
FIXTURE_DIRS | () |
EMAIL_HOST | 'localhost' |
DATE_FORMAT | 'N j, Y' |
MEDIA_ROOT | '' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
ADMINS | () |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
MEDIA_URL | '' |
DATETIME_FORMAT | 'N j, Y, P' |
TEMPLATE_DIRS | () |
DISALLOWED_USER_AGENTS | () |
ALLOWED_INCLUDE_ROOTS | () |
LOGGING | {} |
SHORT_DATE_FORMAT | 'm/d/Y' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/rami/webapps/hpmr/hpmr/hpmr/templates'], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}}] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
SECURE_SSL_REDIRECT | False |
TIME_ZONE | 'America/Los_Angeles' |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_USE_SSL | False |
TEMPLATE_CONTEXT_PROCESSORS | ('django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.contrib.messages.context_processors.messages') |
SESSION_COOKIE_AGE | 1209600 |
SETTINGS_MODULE | 'hpmr.settings' |
USE_ETAGS | False |
LANGUAGES_BIDI | ('he', 'ar', 'fa', 'ur') |
FILE_UPLOAD_TEMP_DIR | None |
INTERNAL_IPS | () |
STATIC_URL | '/static/' |
EMAIL_PORT | 25 |
USE_TZ | True |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
TEST_NON_SERIALIZED_APPS | [] |
PASSWORD_HASHERS | u'********************' |
ABSOLUTE_URL_OVERRIDES | {} |
LANGUAGE_COOKIE_PATH | '/' |
CACHE_MIDDLEWARE_SECONDS | 600 |
EMAIL_SSL_CERTFILE | None |
CSRF_COOKIE_HTTPONLY | False |
DATETIME_INPUT_FORMATS | ('%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') |
EMAIL_HOST_USER | '' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.