Error 500:
unsupported operand type(s) for -: 'str' and 'int'
Request Method: | GET |
---|---|
Request URL: | http://t12.ourdigitalworld.org/results?ro=OGS&sid=OOI.270&ID=OOI.2843240&fsu=Brantford%20(Ont.)&fz=0&grd=4047&rows=20&sort=groupid_4047+asc&llen=null&lbm=null&ldp=null&v=l&kml=1 |
Django Version: | 1.11 |
Exception Type: | TypeError |
Exception Value: | unsupported operand type(s) for -: 'str' and 'int' |
Exception Location: | D:\django\VitaWebservices600\ODWPortal\querySolr.py in range_search, line 1023 |
Python Executable: | D:\Apache24\bin\httpd.exe |
Python Version: | 3.6.4 |
Python Path: | ['D:\\Python36\\python36.zip', 'd:\\python36\\DLLs', 'd:\\python36\\lib', 'D:\\Apache24\\bin', 'd:\\python36', 'd:\\python36\\lib\\site-packages', 'D:\\django\\VitaWebservices600'] |
Server time: | Sat, 21 Apr 2018 15:25:19 -0400 |
d:\python36\lib\site-packages\django\core\handlers\exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@wraps(get_response, assigned=available_attrs(get_response))
def inner(request):
try:
response = get_response(request)...
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | TypeError("unsupported operand type(s) for -: 'str' and 'int'",) |
get_response | <bound method BaseHandler._legacy_get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x000000D871F321D0>> |
request | <WSGIRequest: GET '/results?ro=OGS&sid=OOI.270&ID=OOI.2843240&fsu=Brantford%20(Ont.)&fz=0&grd=4047&rows=20&sort=groupid_4047+asc&llen=null&lbm=null&ldp=null&v=l&kml=1'> |
d:\python36\lib\site-packages\django\core\handlers\base.py
in _legacy_get_response
# Apply request middleware
for middleware_method in self._request_middleware:
response = middleware_method(request)
if response:
break
if response is None:
response = self._get_response(request)...
return response
Variable | Value |
---|---|
middleware_method | <bound method MessageMiddleware.process_request of <django.contrib.messages.middleware.MessageMiddleware object at 0x000000D8725DBE48>> |
request | <WSGIRequest: GET '/results?ro=OGS&sid=OOI.270&ID=OOI.2843240&fsu=Brantford%20(Ont.)&fz=0&grd=4047&rows=20&sort=groupid_4047+asc&llen=null&lbm=null&ldp=null&v=l&kml=1'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x000000D871F321D0> |
d:\python36\lib\site-packages\django\core\handlers\base.py
in _get_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:
response = self.process_exception_by_middleware(e, request)...
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
view_name = callback.__name__
else: # CBV
Variable | Value |
---|---|
callback | <function results at 0x000000D872CEF048> |
callback_args | () |
callback_kwargs | {'result_type': 'single'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x000000D87258E278>> |
request | <WSGIRequest: GET '/results?ro=OGS&sid=OOI.270&ID=OOI.2843240&fsu=Brantford%20(Ont.)&fz=0&grd=4047&rows=20&sort=groupid_4047+asc&llen=null&lbm=null&ldp=null&v=l&kml=1'> |
resolver | <RegexURLResolver 'Portal.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=Portal.views.results, args=(), kwargs={'result_type': 'single'}, url_name=results, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x000000D871F321D0> |
wrapped_callback | <function results at 0x000000D872CEF048> |
d:\python36\lib\site-packages\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:
response = self.process_exception_by_middleware(e, request)
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
Variable | Value |
---|---|
callback | <function results at 0x000000D872CEF048> |
callback_args | () |
callback_kwargs | {'result_type': 'single'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x000000D87258E278>> |
request | <WSGIRequest: GET '/results?ro=OGS&sid=OOI.270&ID=OOI.2843240&fsu=Brantford%20(Ont.)&fz=0&grd=4047&rows=20&sort=groupid_4047+asc&llen=null&lbm=null&ldp=null&v=l&kml=1'> |
resolver | <RegexURLResolver 'Portal.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=Portal.views.results, args=(), kwargs={'result_type': 'single'}, url_name=results, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x000000D871F321D0> |
wrapped_callback | <function results at 0x000000D872CEF048> |
D:\django\VitaWebservices600\Portal\views.py
in results
request_q['rows'] = '3'
(solr_response,
num_found,
rows,
page_num,
docs,
facets,
query_dict) = ODWPortal.externalurls.get_docs(request_q, search_set, site_dm)...
num_found_int = int(num_found)
alt_collation = ''
original_num_found = num_found_int
if 'q' in query_dict:
original_q = query_dict.__getitem__('q')
else:
Variable | Value |
---|---|
alt_url | 'http://t12.ourdigitalworld.org/resultm?ro=OGS&sid=OOI.270&ID=OOI.2843240&fsu=Brantford%20(Ont.)&fz=0&grd=4047&rows=20&sort=groupid_4047+asc&llen=null&lbm=null&ldp=null&v=l&kml=1' |
current_url | 'http://t12.ourdigitalworld.org/results?ro=OGS&sid=OOI.270&ID=OOI.2843240&fsu=Brantford%20(Ont.)&fz=0&grd=4047&rows=20&sort=groupid_4047+asc&llen=null&lbm=null&ldp=null&v=l&kml=1' |
is_exhibit | False |
just_q | '' |
request | <WSGIRequest: GET '/results?ro=OGS&sid=OOI.270&ID=OOI.2843240&fsu=Brantford%20(Ont.)&fz=0&grd=4047&rows=20&sort=groupid_4047+asc&llen=null&lbm=null&ldp=null&v=l&kml=1'> |
request_q | {'ID': 'OOI.2843240', 'fsu': 'Brantford (Ont.)', 'fz': '0', 'grd': '4047', 'kml': '1', 'lbm': 'null', 'ldp': 'null', 'llen': 'null', 'ro': 'OGS', 'rows': '20', 'sid': 'OOI.270', 'sort': 'groupid_4047 asc', 'v': 'l'} |
result_type | 'single' |
search_logic_string | '' |
search_q | '' |
search_set | '' |
site_dm | '0' |
site_lang | {'AccDirections': 'Skip to content', 'AccLabel': 'Accessibility', 'AdvDimensionsLabelBeam': 'Beam', 'AdvDimensionsLabelDepth': 'Depth', 'AdvDimensionsLabelLength': 'Length', 'AdvDimensionsLabelUnits': 'feet', 'AdvFinalLabelCargo': 'Cargo', 'AdvFinalLabelHow': 'How', 'AdvFinalLabelLocation': 'Location', 'AdvFinalLabelNotes': 'Notes', 'AdvLabelBetweenDates': 'Between two dates', 'AdvLabelBetweenDatesAfter': 'from', 'AdvLabelBetweenDatesBefore': 'to', 'AdvLabelBetweenDatesBuilt': 'Built', 'AdvLabelBetweenDatesFinished': 'Finished', 'AdvLabelBetweenDatesHint': '(enter in the form YYYYMMDD, YYYYMM or YYYY)', 'AdvLabelComment': 'Has Comment?', 'AdvLabelContributed': 'Was Contributed?', 'AdvLabelContributor': 'Record Contributor', 'AdvLabelCreativeCommons': 'Creative Commons', 'AdvLabelCreativeCommonsBY': 'Attribution only', 'AdvLabelCreativeCommonsBYNC': 'Attribution-NonCommercial', 'AdvLabelCreativeCommonsBYNCND': 'Attribution-NonCommercial-NoDerivatives', 'AdvLabelCreativeCommonsBYNCSA': 'Attribution-NonCommercial-ShareAlike', 'AdvLabelCreativeCommonsBYND': 'Attribution-NoDerivatives', 'AdvLabelCreativeCommonsBYSA': 'Attribution-ShareAlike', 'AdvLabelCreativeCommonsNO': 'All rights reserved', 'AdvLabelCreativeCommonsPD': 'Public Domain', 'AdvLabelCreativeCommonsUNK': 'Rights unknown', 'AdvLabelFields': 'Field(s) to Search', 'AdvLabelFieldsAll': 'All', 'AdvLabelFieldsCorpName': 'Corporate Name', 'AdvLabelFieldsCreator': 'Author', 'AdvLabelFieldsIdentifier': 'ID Number', 'AdvLabelFieldsLastName': 'Last Name', 'AdvLabelFieldsOfficialNumber': 'Official Number', 'AdvLabelFieldsPersName': 'Personal/Family Name', 'AdvLabelFieldsSubject': 'Subject', 'AdvLabelFieldsTitle': 'Title', 'AdvLabelFieldsVesselName': 'Vessel Name', 'AdvLabelFuzzy': 'Fuzzy Search Limits', 'AdvLabelFuzzyDate': '... OR Fuzzy date', 'AdvLabelFuzzyDateHint': 'how fuzzy?', 'AdvLabelFuzzyDatePrompt': 'Enter year', 'AdvLabelFuzzyDateYearPlural': 'years', 'AdvLabelFuzzyDateYearSingle': 'year', 'AdvLabelFuzzyExact': 'Exact', 'AdvLabelFuzzyFuzzier': 'Fuzzier', 'AdvLabelFuzzyFuzziest': 'Fuzziest', 'AdvLabelFuzzyFuzzy': 'Fuzzy', 'AdvLabelFuzzyHint': 'What is this?', 'AdvLabelGroups': 'Groups', 'AdvLabelGroupsScroll': 'Scroll down to select', 'AdvLabelItem': '... or Item Type to limit search to', 'AdvLabelItemScroll': 'Scroll down to select', 'AdvLabelKeyword': 'Keyword(s) to search', 'AdvLabelKeywordOptions': 'Keyword options', 'AdvLabelLocation': 'Geographic Location', 'AdvLabelLocationHint': 'What is this?', 'AdvLabelLocationScroll': 'Scroll down to select', 'AdvLabelLogic': 'Logic between keywords', 'AdvLabelLogicAnd': 'And', 'AdvLabelLogicOr': 'Or', 'AdvLabelLogicPhrase': 'Phrase', 'AdvLabelMechanical': 'Mechanical', 'AdvLabelMedia': 'Media Type to limit search to', 'AdvLabelMediaAudio': 'Audio', 'AdvLabelMediaCollection': 'Collections', 'AdvLabelMediaExhibit': 'Exhibits', 'AdvLabelMediaGenealogy': 'Genealogical Resources', 'AdvLabelMediaGroup': 'Groups', 'AdvLabelMediaImage': 'Images', 'AdvLabelMediaNewspapers': 'Newspapers', 'AdvLabelMediaObject': 'Objects', 'AdvLabelMediaOrganization': 'Organization', 'AdvLabelMediaPlace': 'Places', 'AdvLabelMediaPublication': 'Publications', 'AdvLabelMediaShip': 'Ships', 'AdvLabelMediaText': 'Texts', 'AdvLabelMediaVideo': 'Videos', 'AdvLabelMediaWebsite': 'Web site/pages', 'AdvLabelMystery': 'Has Mystery Question?', 'AdvLabelReset': 'Clear', 'AdvLabelResults': 'Results per page', 'AdvLabelSail': 'Sail', 'AdvLabelSort': 'Sort by', 'AdvLabelSortAdded': 'Date added (newest first)', 'AdvLabelSortNewest': 'Newest date (to oldest)', 'AdvLabelSortOldest': 'Oldest date (to newest)', 'AdvLabelSortRelevance': 'Relevance', 'AdvLabelSortTitle': 'Title (0-9, Z-A)', 'AdvLabelSubmit': 'Go', 'AdvLabelUnpowered': 'Unpowered', 'AdvLabelVesselType': 'Vessel Types', 'AdvLegendLocation': 'Location', 'AdvLegendMediaType': 'Media types', 'AdvPageTitle': 'Advanced Search', 'AtomImage': 'http://images.ourontario.ca/Partners/test41ep/graphics/atomtile2_test41e... <trimmed 48984 bytes string> |
site_values | {'AdvBooleanAllFields': '1', 'AdvBooleanCorpName': '0', 'AdvBooleanCreativeCommons': '1', 'AdvBooleanCreator': '1', 'AdvBooleanDateFuzzy': '0', 'AdvBooleanDateRange': '1', 'AdvBooleanDates': '1', 'AdvBooleanGroups': '1', 'AdvBooleanIdentifier': '1', 'AdvBooleanItemType': '1', 'AdvBooleanLastName': '1', 'AdvBooleanLocation': '1', 'AdvBooleanMedia': '1', 'AdvBooleanMediaType': '1', 'AdvBooleanPersName': '0', 'AdvBooleanSubject': '1', 'AdvBooleanTitle': '1', 'AtomImage': 'http://images.ourontario.ca/Partners/test41ep/graphics/atomtile2_test41ep_s_32.gif', 'AtomImageHeight': '50', 'AtomImageWidth': '50', 'Banner': 'http://images.ourontario.ca/Partners/default/graphics/DA_s_219.jpg', 'BannerHeight': '100', 'BannerPos': 'centre', 'CommentPolicyStatement': '<p>Comments may be edited for appropriate language ' 'and HTML.</p> <hr /> <p>All fields are ' 'required.</p> <hr/> <p>Not all comments will be ' 'posted.</p> <hr/> <p>Your email address will be ' 'stored so that we may contact you again about your ' 'comment, but will not be displayed to the public, ' 'or otherwise shared, without your permission.</p> ' '<hr/> <p>Comments will not be posted until they ' 'have been reviewed.</p> <hr/> <p>To make a a ' 'simple paragraph break, simply hit [Enter] ' 'twice</p>', 'DisplayComments': '1', 'DisplayMaps': '1', 'DisplayMysteries': '1', 'Favicon': 'http://ourontario.ca/static/img/favicon_oo.ico', 'NBLabelWidget': 'Search Widgets', 'NBSiteHomeLabel': 'Home', 'NBSiteHomeURL': 'http://ourdigitalworld.org', 'PodcastCategory': 'Society and Culture', 'PodcastDisplay': '1', 'PodcastExplicit': 'clean', 'PodcastImage': 'http://images.ourontario.ca/Partners/test41ep/graphics/Podcasttile2_test41ep_s_32.jpg', 'PodcastImageHeight': '500', 'PodcastImageWidth': '500', 'PodcastSubCategory': 'History', 'RSSDescription': 'The English language prototype site for new sites.', 'RSSImage': 'http://images.ourontario.ca/Partners/test41ep/graphics/rsstile_test41ep_s_32.gif', 'RSSImageHeight': '31', 'RSSImageWidth': '88', 'RSScategory': 'Regional / North America / Canada / Ontario / Society and ' 'Culture', 'RSSdisplay': '1', 'ResBooleanCreativeCommons': '1', 'ResFacetContributorsBoolean': '1', 'ResFacetCreativeCommonsBoolean': '1', 'ResFacetFeaturesBoolean': '1', 'ResFacetGroupsBoolean': '1', 'ResFacetItemTypesBoolean': '1', 'ResFacetMapBoolean': '1', 'ResFacetMediaTypesBoolean': '1', 'ResFacetSearchBoolean': '1', 'ResFacetSearchBooleanGoogleEarth': '1', 'ResFacetSortBoolean': '1', 'ResFacetSubjectsBoolean': '1', 'ResFacetYearsBoolean': '1', 'ResPartLinkTitle': '1', 'SearchImage': 'http://images.ourontario.ca/Partners/test41ep/graphics/Searchtile2_test41ep_s_32.jpg', 'SearchImageHeight': '73', 'SearchImageWidth': '286', 'SiteDatabaseTitle': '4.1 English Prototype', 'SiteSidebar1': '<div class="SiteNav"></div>', 'SiteUsePostcards': '1', 'SlideshowSet': '99998', 'SocialBookmarkDisplay': '1', 'SocialBookmarkPosition': '0', 'about_content_block': '<div class="left67">\r\n' '<h1>About us</h1>\r\n' '<div class="contentSubTitle">\r\n' '\t\t\t\tWho we are\r\n' '\t\t\t\t</div>\r\n' '<div class="contentText">\r\n' '\t\t\t\tThe\r\n' 'OurOntario.ca is a unique partnership with cultural ' 'and heritage\r\n' 'organizations of all shapes and sizes, designed to ' 'make our digital\r\n' 'content discoverable to a global audience. ' 'OurOntario.ca is a service\r\n' 'of <b><a ' 'href="http... <trimmed 48704 bytes string> |
vsid | 'OOI.270' |
whatsnew | 0 |
D:\django\VitaWebservices600\ODWPortal\externalurls.py
in get_docs
def get_docs(request, search_set, site_dm):
num_found = 0
rows = 0
docs = {}
facets = {}
solr_response, query_dict = query_solr_url(request, 'json', 'html', search_set, site_dm)...
if isinstance(solr_response, dict):
rows = solr_response['responseHeader']['params']['rows']
num_found = solr_response['response']['numFound']
docs = solr_response['response']['docs']
facets = solr_response['facet_counts']['facet_fields']
if "p" in request:
Variable | Value |
---|---|
docs | {} |
facets | {} |
num_found | 0 |
request | {'ID': 'OOI.2843240', 'fsu': 'Brantford (Ont.)', 'fz': '0', 'grd': '4047', 'kml': '1', 'lbm': 'null', 'ldp': 'null', 'llen': 'null', 'ro': 'OGS', 'rows': '20', 'sid': 'OOI.270', 'sort': 'groupid_4047 asc', 'v': 'l'} |
rows | 0 |
search_set | '' |
site_dm | '0' |
D:\django\VitaWebservices600\ODWPortal\externalurls.py
in query_solr_url
def query_solr_url(request, output_format, xml_type, search_set, site_dm):
"""
generate the appropriate URLs for requests
execute the searches against solr, or external datasets
"""
query_str, query_dict = solr_query(request, xml_type, search_set, site_dm)...
# log_request('search_set: ', search_set)
if xml_type == 'hhocr':
url = solr_ocr_xml + query_str
elif xml_type == 'parts':
url = solr_parts_xml + query_str
Variable | Value |
---|---|
output_format | 'json' |
request | {'ID': 'OOI.2843240', 'fsu': 'Brantford (Ont.)', 'fz': '0', 'grd': '4047', 'kml': '1', 'lbm': 'null', 'ldp': 'null', 'llen': 'null', 'ro': 'OGS', 'rows': '20', 'sid': 'OOI.270', 'sort': 'groupid_4047 asc', 'v': 'l'} |
search_set | '' |
site_dm | '0' |
xml_type | 'html' |
D:\django\VitaWebservices600\ODWPortal\querySolr.py
in solr_query
(query_s,
return_str,
facet_form_str) = parse_nvp(nvps, 'lisu', 'l_isUnpowered', '', query_dict)
query_str += query_s
else:
query_dict['lisu'] = ''
if nvps.__contains__('llen'):
query_length_range, dict_value, fuzzy_dict_value = range_search(nvps, 'llen', 'llenfz', 'l_xlength')...
query_str += query_length_range
query_dict['llen'] = str(dict_value)
query_dict['llenfz'] = str(fuzzy_dict_value)
else:
query_dict['llen'] = ''
query_dict['llenfz'] = ''
Variable | Value |
---|---|
date_after | '*' |
date_before | '*' |
facet_form_str | '' |
nvps | {'ID': 'OOI.2843240', 'fsu': 'Brantford (Ont.)', 'fz': '0', 'grd': '4047', 'kml': '1', 'lbm': 'null', 'ldp': 'null', 'llen': 'null', 'ro': 'OGS', 'rows': '20', 'sid': 'OOI.270', 'sort': 'groupid_4047 asc', 'v': 'l'} |
query_dict | {'ct': '', 'da': '', 'db': '', 'dd': '', 'dr': '', 'dt': '', 'dy': '', 'fc': '', 'fcc': '', 'fm': '', 'fsu': 'Brantford (Ont.)', 'gid': '', 'grd': '4047', 'grn': '', 'id': '', 'itype': '', 'lc': '', 'lfcar': '', 'lfdnot': '', 'lfhow': '', 'lfloc': '', 'lism': '', 'liss': '', 'lisu': '', 'lrc': '', 'lvn': '', 'lvt': '', 'mt': '', 'op': '', 'recordOwner': '', 'site': ''} |
query_s | '+groupid:("4047")' |
query_str | '&q=+recordOwner:("OGS")+fSubject:("Brantford%20%28Ont.%29")+groupid:("4047")+publicDisplay:true' |
request | {'ID': 'OOI.2843240', 'fsu': 'Brantford (Ont.)', 'fz': '0', 'grd': '4047', 'kml': '1', 'lbm': 'null', 'ldp': 'null', 'llen': 'null', 'ro': 'OGS', 'rows': '20', 'sid': 'OOI.270', 'sort': 'groupid_4047 asc', 'v': 'l'} |
return_str | '' |
search_set | '' |
site_dm | '0' |
spell_q | '' |
xml_boolean | '' |
xml_type | 'html' |
D:\django\VitaWebservices600\ODWPortal\querySolr.py
in range_search
fuzzy_dict_value = '+/-%s' % str(value_fz_range)
else:
value_fz_range = 0
else:
fuzzy_dict_value = ''
value_fz_range = 0
if value_fz:
lowest = value_fz - value_fz_range...
highest = value_fz + value_fz_range+0.99
query_range = '+%s:[%s+TO+%s]' % (solr_field, lowest, highest)
return query_range, str(value_fz), fuzzy_dict_value
else:
return '', '', ''
Variable | Value |
---|---|
field | 'llen' |
fuzzy_dict_value | '' |
fuzzy_field | 'llenfz' |
nvps | {'ID': 'OOI.2843240', 'fsu': 'Brantford (Ont.)', 'fz': '0', 'grd': '4047', 'kml': '1', 'lbm': 'null', 'ldp': 'null', 'llen': 'null', 'ro': 'OGS', 'rows': '20', 'sid': 'OOI.270', 'sort': 'groupid_4047 asc', 'v': 'l'} |
query_range | '' |
solr_field | 'l_xlength' |
value_fz | 'null' |
value_fz_range | 0 |
AnonymousUser
Variable | Value |
---|---|
ro | 'OGS' |
sid | 'OOI.270' |
ID | 'OOI.2843240' |
fsu | 'Brantford (Ont.)' |
fz | '0' |
grd | '4047' |
rows | '20' |
sort | 'groupid_4047 asc' |
llen | 'null' |
lbm | 'null' |
ldp | 'null' |
v | 'l' |
kml | '1' |
Variable | Value |
---|
No FILES data
No cookie data
Variable | Value |
---|---|
COMSPEC | 'C:\\Windows\\system32\\cmd.exe' |
CONTEXT_DOCUMENT_ROOT | 'D:/django/VitaWebservices600' |
CONTEXT_PREFIX | '' |
DOCUMENT_ROOT | 'D:/django/VitaWebservices600' |
GATEWAY_INTERFACE | 'CGI/1.1' |
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'Keep-Alive' |
HTTP_HOST | 't12.ourdigitalworld.org' |
HTTP_USER_AGENT | 'Mozilla/4.0 (compatible; Win32; WinHttp.WinHttpRequest.5)' |
PATHEXT | '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW' |
PATH_INFO | '/results' |
PATH_TRANSLATED | 'D:\\django\\VitaWebservices600\\Portal\\django.wsgi\\results' |
QUERY_STRING | 'ro=OGS&sid=OOI.270&ID=OOI.2843240&fsu=Brantford%20(Ont.)&fz=0&grd=4047&rows=20&sort=groupid_4047+asc&llen=null&lbm=null&ldp=null&v=l&kml=1' |
REMOTE_ADDR | '172.18.2.5' |
REMOTE_PORT | '59714' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'http' |
REQUEST_URI | '/results?ro=OGS&sid=OOI.270&ID=OOI.2843240&fsu=Brantford%20(Ont.)&fz=0&grd=4047&rows=20&sort=groupid_4047+asc&llen=null&lbm=null&ldp=null&v=l&kml=1' |
SCRIPT_FILENAME | 'D:/django/VitaWebservices600/Portal/django.wsgi' |
SCRIPT_NAME | '' |
SERVER_ADDR | '172.18.2.9' |
SERVER_ADMIN | 'wlewis@ourdigitalworld.org' |
SERVER_NAME | 't12.ourdigitalworld.org' |
SERVER_PORT | '80' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SIGNATURE | '' |
SERVER_SOFTWARE | 'Apache/2.4.23 (Win64) mod_wsgi/4.5.24 Python/3.6 PHP/7.0.12' |
SystemRoot | 'C:\\Windows' |
WINDIR | 'C:\\Windows' |
apache.version | (2, 4, 29) |
mod_wsgi.application_group | 't12.ourdigitalworld.org|' |
mod_wsgi.callable_object | 'application' |
mod_wsgi.enable_sendfile | '0' |
mod_wsgi.handler_script | '' |
mod_wsgi.ignore_activity | '0' |
mod_wsgi.path_info | '/results' |
mod_wsgi.process_group | '' |
mod_wsgi.request_handler | 'wsgi-script' |
mod_wsgi.request_id | 'xaHhw6ik3HM' |
mod_wsgi.request_start | '1524338719302085' |
mod_wsgi.script_name | '' |
mod_wsgi.script_reloading | '1' |
mod_wsgi.script_start | '1524338719302085' |
mod_wsgi.thread_id | 27 |
mod_wsgi.thread_requests | 10560 |
mod_wsgi.total_requests | 451506 |
mod_wsgi.version | (4, 5, 24) |
wsgi.errors | <_io.TextIOWrapper name='<wsgi.errors>' encoding='utf-8'> |
wsgi.file_wrapper | '' |
wsgi.input | <mod_wsgi.Input object at 0x000000D8782A7EA0> |
wsgi.input_terminated | True |
wsgi.multiprocess | False |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
Portal.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['t12.ourdigitalworld.org', '172.18.2.5', '172.18.2.6'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | 'D:\\django\\VitaWebservices600' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django_postgrespool', 'HOST': '127.0.0.1', 'NAME': 'vitawebservices', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '10866', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'postgres'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | 'N j, Y, P' |
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'] |
DATE_FORMAT | 'N j, Y' |
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'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_CONTENT_TYPE | 'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
DJANGO_LOG_LEVEL | True |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'localhost' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | '' |
EMAIL_PORT | 25 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | False |
FILE_CHARSET | 'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | ('D:/django/VitaWebservices600/fixtures/',) |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
GEO_URL | 'http://localhost:8000/solr/geonames/query?' |
GRAPHICS_URL | 'http://graphics.OurOntario.ca/' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ('django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'ODWPortal') |
INTERNAL_IPS | [] |
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'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian 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'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('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 Bokmål'), ('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-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-ca' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | [] |
LOGGING | {'disable_existing_loggers': False, 'handlers': {'file': {'class': 'logging.FileHandler', 'filename': 'D:/LogsApache/VitaWebservices600/error.log', 'level': 'DEBUG'}}, 'loggers': {'django.request': {'handlers': ['file'], 'level': 'DEBUG', 'propagate': True}}, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '' |
MEDIA_URL | '' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | None |
MIDDLEWARE_CLASSES | ('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') |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'Portal.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'Portal.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 1 |
SNIPPET_URL_MHGL | 'http://images.maritimehistoryofthegreatlakes.ca/snippet.asp' |
SNIPPET_URL_OOI | 'http://images.ourontario.ca/exhibits/snippet.asp' |
SNIPPET_URL_OOT | 'http://test.ourontario.ca/snippet.asp' |
SNIPPET_URL_OOTP | 'http://www.knowledgeontario.ca/TestPG/snippet.asp' |
SOLR_DM_URL | 'http://localhost:8000/solr/vitadm/' |
SOLR_OCR_URL | 'http://localhost:8000/solr/vitaocr/' |
SOLR_OCR_URL_2 | 'http://localhost:8000/solr/vitaocr2/' |
SOLR_PARTS_URL | 'http://localhost:8000/solr/vitaParts/' |
SOLR_URL | 'http://localhost:8000/solr/search/' |
STATICFILES_DIRS | ('D:/django/VitaWebservices600/static',) |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | None |
STATIC_URL | 'http://images.ourontario.ca/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['d:/django/VitaWebservices600/templates'], 'OPTIONS': {'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']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'America/Toronto' |
USE_ETAGS | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'Portal.wsgi.application' |
XSL_PATH | 'D:/django/static/VitaWebservices600/' |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
YEAR_MONTH_FORMAT | 'F Y' |
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.