Phrase search: u'work' field has no positions
Request Method: | GET |
---|---|
Request URL: | http://old.sarma.be/s/?t=author%3A%22Marianne+Van+Kerkhoven%22+OR+person%3A%22Marianne+Van+Kerkhoven%22+AND+person%3A%22Isabelle+Ginot%22+AND+language%3A%22French%22+AND+keyword%3A%22dramaturgy%22+AND+work%3A%22Fase%2C+Four+Movements+to+the+Music+of+Steve+Reich%22 |
Django Version: | 1.6.5 |
Exception Type: | QueryError |
Exception Value: | Phrase search: u'work' field has no positions |
Exception Location: | /home/sarma/www/be.sarma/sarma.site.2/venv/lib/python2.6/site-packages/whoosh/query/positional.py in matcher, line 222 |
Python Executable: | /usr/bin/python |
Python Version: | 2.6.6 |
Python Path: | ['/home/sarma/www/be.sarma/sarma.site.2/venv/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg', '/home/sarma/www/be.sarma/sarma.site.2/venv/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg', '/home/sarma/www/be.sarma/sarma.site.2', '/home/sarma/www/be.sarma/sarma.site.2/venv/lib/python2.6/site-packages', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/local/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages', '/usr/lib/pymodules/python2.6'] |
Server time: | Fri, 29 Mar 2024 14:38:55 +0000 |
/home/sarma/www/be.sarma/sarma.site.2/venv/lib/python2.6/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:
# 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 | QueryError("Phrase search: u'work' field has no positions",) |
callback_args | () |
resolver_match | ResolverMatch(func=<function search at 0x7f23194c5140>, args=(), kwargs={}, url_name='sarmasite-search', app_name='None', namespace='') |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f23187bbe90>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f2317e7d2d0> |
request | '<WSGIRequest\npath:/s/,\nGET:<QueryDict: {u\'t\': [u\'author:"Marianne Van Kerkhoven" OR person:"Marianne Van Kerkhoven" AND person:"Isabelle Ginot" AND language:"French" AND keyword:"dramaturgy" AND work:"Fase, Four Movements to the Music of Steve Reich"\']}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{u\'CSRF_COOKIE\': u\'JtOAIu2yZ3k2q05Q80kChmBRHW1RUpiw\',\n \'DOCUMENT_ROOT\': \'/home/sarma/www/be.sarma/sarma.site.2/\',\n \'GATEWAY_INTERFACE\': \'CGI/1.1\',\n \'HTTP_ACCEPT\': \'*/*\',\n \'HTTP_CONNECTION\': \'close\',\n \'HTTP_HOST\': \'old.sarma.be\',\n \'HTTP_USER_AGENT\': \'claudebot\',\n \'HTTP_X_FORWARDED_FOR\': \'54.166.141.52\',\n \'HTTP_X_REAL_IP\': \'54.166.141.52\',\n \'PATH_INFO\': u\'/s/\',\n \'PATH_TRANSLATED\': \'/home/sarma/www/be.sarma/sarma.site.2/sarma/wsgi.py/s/\',\n \'QUERY_STRING\': \'t=author%3A%22Marianne+Van+Kerkhoven%22+OR+person%3A%22Marianne+Van+Kerkhoven%22+AND+person%3A%22Isabelle+Ginot%22+AND+language%3A%22French%22+AND+keyword%3A%22dramaturgy%22+AND+work%3A%22Fase%2C+Four+Movements+to+the+Music+of+Steve+Reich%22\',\n \'REMOTE_ADDR\': \'127.0.0.1\',\n \'REMOTE_PORT\': \'44439\',\n \'REQUEST_METHOD\': \'GET\',\n \'REQUEST_URI\': \'/s/?t=author%3A%22Marianne+Van+Kerkhoven%22+OR+person%3A%22Marianne+Van+Kerkhoven%22+AND+person%3A%22Isabelle+Ginot%22+AND+language%3A%22French%22+AND+keyword%3A%22dramaturgy%22+AND+work%3A%22Fase%2C+Four+Movements+to+the+Music+of+Steve+Reich%22\',\n \'SCRIPT_FILENAME\': \'/home/sarma/www/be.sarma/sarma.site.2/sarma/wsgi.py\',\n \'SCRIPT_NAME\': u\'\',\n \'SERVER_ADDR\': \'127.0.0.1\',\n \'SERVER_ADMIN\': \'[no address given]\',\n \'SERVER_NAME\': \'old.sarma.be\',\n \'SERVER_PORT\': \'80\',\n \'SERVER_PROTOCOL\': \'HTTP/1.0\',\n \'SERVER_SIGNATURE\': \'<address>Apache/2.2.16 (Debian) Server at old.sarma.be Port 80</address>\\n\',\n \'SERVER_SOFTWARE\': \'Apache/2.2.16 (Debian)\',\n \'mod_wsgi.application_group\': \'sarma.be|\',\n \'mod_wsgi.callable_object\': \'application\',\n \'mod_wsgi.handler_script\': \'\',\n \'mod_wsgi.input_chunked\': \'0\',\n \'mod_wsgi.listener_host\': \'\',\n \'mod_wsgi.listener_port\': \'8088\',\n \'mod_wsgi.process_group\': \'sarmasite2\',\n \'mod_wsgi.request_handler\': \'wsgi-script\',\n \'mod_wsgi.script_reloading\': \'1\',\n \'mod_wsgi.version\': (3, 3),\n \'wsgi.errors\': <mod_wsgi.Log object at 0x7f231aa89d70>,\n \'wsgi.file_wrapper\': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f23198f9378>,\n \'wsgi.input\': <mod_wsgi.Input object at 0x7f231ad29130>,\n \'wsgi.multiprocess\': False,\n \'wsgi.multithread\': False,\n \'wsgi.run_once\': False,\n \'wsgi.url_scheme\': \'http\',\n \'wsgi.version\': (1, 1)}>' |
callback | <function search at 0x7f23194c5140> |
wrapped_callback | <function search at 0x7f23194c5140> |
resolver | <RegexURLResolver 'sarma.urls' (None:None) ^/> |
callback_kwargs | {} |
response | None |
urlconf | 'sarma.urls' |
/home/sarma/www/be.sarma/sarma.site.2/sarmasite/views.py
in search
def search (request):
context = {}
context['sidebar'] = Page.objects.get(name = "Sidebar")
search = request.REQUEST.get("t", "").strip()
context['search'] = search
context['title'] = search
context['hidesidesearch'] = True
return render_search_result(request, search, "sarmasite/search.html", context, context_instance = RequestContext(request))...
def wrap_results (results, cat, limit=None):
if limit:
ret = sorted(results.groups().iteritems(), key=operator.itemgetter(1), reverse=True)[:5]
else:
ret = sorted(results.groups().iteritems(), key=operator.itemgetter(1), reverse=True)
Variable | Value |
---|---|
search | u'author:"Marianne Van Kerkhoven" OR person:"Marianne Van Kerkhoven" AND person:"Isabelle Ginot" AND language:"French" AND keyword:"dramaturgy" AND work:"Fase, Four Movements to the Music of Steve Reich"' |
request | '<WSGIRequest\npath:/s/,\nGET:<QueryDict: {u\'t\': [u\'author:"Marianne Van Kerkhoven" OR person:"Marianne Van Kerkhoven" AND person:"Isabelle Ginot" AND language:"French" AND keyword:"dramaturgy" AND work:"Fase, Four Movements to the Music of Steve Reich"\']}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{u\'CSRF_COOKIE\': u\'JtOAIu2yZ3k2q05Q80kChmBRHW1RUpiw\',\n \'DOCUMENT_ROOT\': \'/home/sarma/www/be.sarma/sarma.site.2/\',\n \'GATEWAY_INTERFACE\': \'CGI/1.1\',\n \'HTTP_ACCEPT\': \'*/*\',\n \'HTTP_CONNECTION\': \'close\',\n \'HTTP_HOST\': \'old.sarma.be\',\n \'HTTP_USER_AGENT\': \'claudebot\',\n \'HTTP_X_FORWARDED_FOR\': \'54.166.141.52\',\n \'HTTP_X_REAL_IP\': \'54.166.141.52\',\n \'PATH_INFO\': u\'/s/\',\n \'PATH_TRANSLATED\': \'/home/sarma/www/be.sarma/sarma.site.2/sarma/wsgi.py/s/\',\n \'QUERY_STRING\': \'t=author%3A%22Marianne+Van+Kerkhoven%22+OR+person%3A%22Marianne+Van+Kerkhoven%22+AND+person%3A%22Isabelle+Ginot%22+AND+language%3A%22French%22+AND+keyword%3A%22dramaturgy%22+AND+work%3A%22Fase%2C+Four+Movements+to+the+Music+of+Steve+Reich%22\',\n \'REMOTE_ADDR\': \'127.0.0.1\',\n \'REMOTE_PORT\': \'44439\',\n \'REQUEST_METHOD\': \'GET\',\n \'REQUEST_URI\': \'/s/?t=author%3A%22Marianne+Van+Kerkhoven%22+OR+person%3A%22Marianne+Van+Kerkhoven%22+AND+person%3A%22Isabelle+Ginot%22+AND+language%3A%22French%22+AND+keyword%3A%22dramaturgy%22+AND+work%3A%22Fase%2C+Four+Movements+to+the+Music+of+Steve+Reich%22\',\n \'SCRIPT_FILENAME\': \'/home/sarma/www/be.sarma/sarma.site.2/sarma/wsgi.py\',\n \'SCRIPT_NAME\': u\'\',\n \'SERVER_ADDR\': \'127.0.0.1\',\n \'SERVER_ADMIN\': \'[no address given]\',\n \'SERVER_NAME\': \'old.sarma.be\',\n \'SERVER_PORT\': \'80\',\n \'SERVER_PROTOCOL\': \'HTTP/1.0\',\n \'SERVER_SIGNATURE\': \'<address>Apache/2.2.16 (Debian) Server at old.sarma.be Port 80</address>\\n\',\n \'SERVER_SOFTWARE\': \'Apache/2.2.16 (Debian)\',\n \'mod_wsgi.application_group\': \'sarma.be|\',\n \'mod_wsgi.callable_object\': \'application\',\n \'mod_wsgi.handler_script\': \'\',\n \'mod_wsgi.input_chunked\': \'0\',\n \'mod_wsgi.listener_host\': \'\',\n \'mod_wsgi.listener_port\': \'8088\',\n \'mod_wsgi.process_group\': \'sarmasite2\',\n \'mod_wsgi.request_handler\': \'wsgi-script\',\n \'mod_wsgi.script_reloading\': \'1\',\n \'mod_wsgi.version\': (3, 3),\n \'wsgi.errors\': <mod_wsgi.Log object at 0x7f231aa89d70>,\n \'wsgi.file_wrapper\': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f23198f9378>,\n \'wsgi.input\': <mod_wsgi.Input object at 0x7f231ad29130>,\n \'wsgi.multiprocess\': False,\n \'wsgi.multithread\': False,\n \'wsgi.run_once\': False,\n \'wsgi.url_scheme\': \'http\',\n \'wsgi.version\': (1, 1)}>' |
context | {'help_link': '/pages/Help', 'hidesidesearch': True, 'related_pages': [<Page: Dramaturgy>, <Page: Marianne Van Kerkhoven>], 'search': u'author:"Marianne Van Kerkhoven" OR person:"Marianne Van Kerkhoven" AND person:"Isabelle Ginot" AND language:"French" AND keyword:"dramaturgy" AND work:"Fase, Four Movements to the Music of Steve Reich"', 'sidebar': <Page: Sidebar>, 'sort_author_link': u'/s/?sort=author&t=author%3A%22Marianne+Van+Kerkhoven%22+OR+person%3A%22Marianne+Van+Kerkhoven%22+AND+person%3A%22Isabelle+Ginot%22+AND+language%3A%22French%22+AND+keyword%3A%22dramaturgy%22+AND+work%3A%22Fase%2C+Four+Movements+to+the+Music+of+Steve+Reich%22', 'sort_publication_link': u'/s/?sort=publication&t=author%3A%22Marianne+Van+Kerkhoven%22+OR+person%3A%22Marianne+Van+Kerkhoven%22+AND+person%3A%22Isabelle+Ginot%22+AND+language%3A%22French%22+AND+keyword%3A%22dramaturgy%22+AND+work%3A%22Fase%2C+Four+Movements+to+the+Music+of+Steve+Reich%22', 'sort_reset_link': u'/s/?t=author%3A%22Marianne+Van+Kerkhoven%22+OR+person%3A%22Marianne+Van+Kerkhoven%22+AND+person%3A%22Isabelle+Ginot%22+AND+language%3A%22French%22+AND+keyword%3A%22dramaturgy%22+AND+work%3A%22Fase%2C+Four+Movements+to+the+Music+of+Steve+Reich%22', 'sort_title_link': u'/s/?sort=title&t=author%3A%22Marianne+Van+Kerkhoven%22+OR+person%3A%22Marianne+Van+Kerkhoven%22+AND+person%3A%22Isabelle+Ginot%22+AND+language%3A%22French%22+AND+keyword%3A%22dramaturgy%22+AND+work%3A%22Fase%2C+Four+Movements+to+the+Music+of+Steve+Reich%22', 'sort_year_link': u'/s/?sort=year&t=author%3A%22Marianne+Van+Kerkhoven%22+OR+person%3A%22Marianne+Van+Kerkhoven%22+AND+person%3A%22Isabelle+Ginot%22+AND+language%3A%22French%22+AND+keyword%3A%22dramaturgy%22+AND+work%3A%22Fase%2C+Four+Movements+to+the+Music+of+Steve+Reich%22', 'title': u'author:"Marianne Van Kerkhoven" OR person:"Marianne Van Kerkhoven" AND person:"Isabelle Ginot" AND language:"French" AND keyword:"dramaturgy" AND work:"Fase, Four Movements to the Music of Steve Reich"'} |
/home/sarma/www/be.sarma/sarma.site.2/sarmasite/views.py
in render_search_result
sortedby = "author_sort" # trick to made author names sort by sortname
else:
sortedby = sort
results = s.search_page(query, pagenum, pagelen=pagelen, sortedby=sortedby)
context['sort_'+sort] = True
else:
# results = s.search(query, pagenum, pagelen=pagelen)
results = s.search_page(query, pagenum, pagelen=pagelen)...
context['pagenum'] = results.pagenum
context['pagecount'] = results.pagecount
if results.pagenum > 1:
context['prev_page_link'] = make_link(page=results.pagenum-1)
Variable | Value |
---|---|
ix | FileIndex(FileStorage('/home/sarma/www/be.sarma/sarma.site.2/search_index'), 'MAIN') |
limit_results | <function limit_results at 0x7f231af2caa0> |
pagenum | 1 |
help_page | <Page: Help> |
query | Or([Term(u'author', u'Marianne Van Kerkhoven'), And([Term(u'person', u'Marianne Van Kerkhoven'), Term(u'person', u'Isabelle Ginot'), Term(u'language', u'french'), Term(u'keyword', u'dramaturgy'), Phrase(u'work', [u'Fase', u'Four Movements to the Music of Steve Reich'], slop=1, boost=1.000000)])]) |
wrap_results | <function wrap_results at 0x7f231aebf0c8> |
template | 'sarmasite/search.html' |
make_link | <function make_link at 0x7f231af2c140> |
pagelen | 20 |
sort | None |
search_url | '/s/' |
term | u'french' |
related_pages | [<Page: Dramaturgy>, <Page: Marianne Van Kerkhoven>] |
expand | None |
qp | <whoosh.qparser.default.QueryParser object at 0x7f231aeedd10> |
search | u'author:"Marianne Van Kerkhoven" OR person:"Marianne Van Kerkhoven" AND person:"Isabelle Ginot" AND language:"French" AND keyword:"dramaturgy" AND work:"Fase, Four Movements to the Music of Steve Reich"' |
request | '<WSGIRequest\npath:/s/,\nGET:<QueryDict: {u\'t\': [u\'author:"Marianne Van Kerkhoven" OR person:"Marianne Van Kerkhoven" AND person:"Isabelle Ginot" AND language:"French" AND keyword:"dramaturgy" AND work:"Fase, Four Movements to the Music of Steve Reich"\']}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{u\'CSRF_COOKIE\': u\'JtOAIu2yZ3k2q05Q80kChmBRHW1RUpiw\',\n \'DOCUMENT_ROOT\': \'/home/sarma/www/be.sarma/sarma.site.2/\',\n \'GATEWAY_INTERFACE\': \'CGI/1.1\',\n \'HTTP_ACCEPT\': \'*/*\',\n \'HTTP_CONNECTION\': \'close\',\n \'HTTP_HOST\': \'old.sarma.be\',\n \'HTTP_USER_AGENT\': \'claudebot\',\n \'HTTP_X_FORWARDED_FOR\': \'54.166.141.52\',\n \'HTTP_X_REAL_IP\': \'54.166.141.52\',\n \'PATH_INFO\': u\'/s/\',\n \'PATH_TRANSLATED\': \'/home/sarma/www/be.sarma/sarma.site.2/sarma/wsgi.py/s/\',\n \'QUERY_STRING\': \'t=author%3A%22Marianne+Van+Kerkhoven%22+OR+person%3A%22Marianne+Van+Kerkhoven%22+AND+person%3A%22Isabelle+Ginot%22+AND+language%3A%22French%22+AND+keyword%3A%22dramaturgy%22+AND+work%3A%22Fase%2C+Four+Movements+to+the+Music+of+Steve+Reich%22\',\n \'REMOTE_ADDR\': \'127.0.0.1\',\n \'REMOTE_PORT\': \'44439\',\n \'REQUEST_METHOD\': \'GET\',\n \'REQUEST_URI\': \'/s/?t=author%3A%22Marianne+Van+Kerkhoven%22+OR+person%3A%22Marianne+Van+Kerkhoven%22+AND+person%3A%22Isabelle+Ginot%22+AND+language%3A%22French%22+AND+keyword%3A%22dramaturgy%22+AND+work%3A%22Fase%2C+Four+Movements+to+the+Music+of+Steve+Reich%22\',\n \'SCRIPT_FILENAME\': \'/home/sarma/www/be.sarma/sarma.site.2/sarma/wsgi.py\',\n \'SCRIPT_NAME\': u\'\',\n \'SERVER_ADDR\': \'127.0.0.1\',\n \'SERVER_ADMIN\': \'[no address given]\',\n \'SERVER_NAME\': \'old.sarma.be\',\n \'SERVER_PORT\': \'80\',\n \'SERVER_PROTOCOL\': \'HTTP/1.0\',\n \'SERVER_SIGNATURE\': \'<address>Apache/2.2.16 (Debian) Server at old.sarma.be Port 80</address>\\n\',\n \'SERVER_SOFTWARE\': \'Apache/2.2.16 (Debian)\',\n \'mod_wsgi.application_group\': \'sarma.be|\',\n \'mod_wsgi.callable_object\': \'application\',\n \'mod_wsgi.handler_script\': \'\',\n \'mod_wsgi.input_chunked\': \'0\',\n \'mod_wsgi.listener_host\': \'\',\n \'mod_wsgi.listener_port\': \'8088\',\n \'mod_wsgi.process_group\': \'sarmasite2\',\n \'mod_wsgi.request_handler\': \'wsgi-script\',\n \'mod_wsgi.script_reloading\': \'1\',\n \'mod_wsgi.version\': (3, 3),\n \'wsgi.errors\': <mod_wsgi.Log object at 0x7f231aa89d70>,\n \'wsgi.file_wrapper\': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f23198f9378>,\n \'wsgi.input\': <mod_wsgi.Input object at 0x7f231ad29130>,\n \'wsgi.multiprocess\': False,\n \'wsgi.multithread\': False,\n \'wsgi.run_once\': False,\n \'wsgi.url_scheme\': \'http\',\n \'wsgi.version\': (1, 1)}>' |
cat | u'language' |
facet_values_limit | 5 |
p | <Page: Marianne Van Kerkhoven> |
s | <whoosh.searching.Searcher object at 0x7f231ac33510> |
sort_by_value | <function sort_by_value at 0x7f231af2c320> |
context_instance | [{'False': False, 'None': None, 'True': True}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f231af20bd0>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f231af207d0>, 'user': <SimpleLazyObject: <function <lambda> at 0x7f2317f07230>>}, {}, {u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('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-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-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('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'), ('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-tw', 'Traditional Chinese')), u'LANGUAGE_BIDI': False, u'LANGUAGE_CODE': 'en-us'}, {u'MEDIA_URL': ''}, {u'STATIC_URL': '/static/'}, {u'TIME_ZONE': 'UTC'}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f231af205d0>}] |
context | {'help_link': '/pages/Help', 'hidesidesearch': True, 'related_pages': [<Page: Dramaturgy>, <Page: Marianne Van Kerkhoven>], 'search': u'author:"Marianne Van Kerkhoven" OR person:"Marianne Van Kerkhoven" AND person:"Isabelle Ginot" AND language:"French" AND keyword:"dramaturgy" AND work:"Fase, Four Movements to the Music of Steve Reich"', 'sidebar': <Page: Sidebar>, 'sort_author_link': u'/s/?sort=author&t=author%3A%22Marianne+Van+Kerkhoven%22+OR+person%3A%22Marianne+Van+Kerkhoven%22+AND+person%3A%22Isabelle+Ginot%22+AND+language%3A%22French%22+AND+keyword%3A%22dramaturgy%22+AND+work%3A%22Fase%2C+Four+Movements+to+the+Music+of+Steve+Reich%22', 'sort_publication_link': u'/s/?sort=publication&t=author%3A%22Marianne+Van+Kerkhoven%22+OR+person%3A%22Marianne+Van+Kerkhoven%22+AND+person%3A%22Isabelle+Ginot%22+AND+language%3A%22French%22+AND+keyword%3A%22dramaturgy%22+AND+work%3A%22Fase%2C+Four+Movements+to+the+Music+of+Steve+Reich%22', 'sort_reset_link': u'/s/?t=author%3A%22Marianne+Van+Kerkhoven%22+OR+person%3A%22Marianne+Van+Kerkhoven%22+AND+person%3A%22Isabelle+Ginot%22+AND+language%3A%22French%22+AND+keyword%3A%22dramaturgy%22+AND+work%3A%22Fase%2C+Four+Movements+to+the+Music+of+Steve+Reich%22', 'sort_title_link': u'/s/?sort=title&t=author%3A%22Marianne+Van+Kerkhoven%22+OR+person%3A%22Marianne+Van+Kerkhoven%22+AND+person%3A%22Isabelle+Ginot%22+AND+language%3A%22French%22+AND+keyword%3A%22dramaturgy%22+AND+work%3A%22Fase%2C+Four+Movements+to+the+Music+of+Steve+Reich%22', 'sort_year_link': u'/s/?sort=year&t=author%3A%22Marianne+Van+Kerkhoven%22+OR+person%3A%22Marianne+Van+Kerkhoven%22+AND+person%3A%22Isabelle+Ginot%22+AND+language%3A%22French%22+AND+keyword%3A%22dramaturgy%22+AND+work%3A%22Fase%2C+Four+Movements+to+the+Music+of+Steve+Reich%22', 'title': u'author:"Marianne Van Kerkhoven" OR person:"Marianne Van Kerkhoven" AND person:"Isabelle Ginot" AND language:"French" AND keyword:"dramaturgy" AND work:"Fase, Four Movements to the Music of Steve Reich"'} |
/home/sarma/www/be.sarma/sarma.site.2/venv/lib/python2.6/site-packages/whoosh/searching.py
in search_page
:param pagelen: the number of results per page.
:returns: :class:`ResultsPage`
"""
if pagenum < 1:
raise ValueError("pagenum must be >= 1")
results = self.search(query, limit=pagenum * pagelen, **kwargs)...
return ResultsPage(results, pagenum, pagelen)
def find(self, defaultfield, querystring, **kwargs):
from whoosh.qparser import QueryParser
qp = QueryParser(defaultfield, schema=self.ixreader.schema)
q = qp.parse(querystring)
Variable | Value |
---|---|
pagelen | 20 |
self | <whoosh.searching.Searcher object at 0x7f231ac33510> |
kwargs | {} |
pagenum | 1 |
query | Or([Term(u'author', u'Marianne Van Kerkhoven'), And([Term(u'person', u'Marianne Van Kerkhoven'), Term(u'person', u'Isabelle Ginot'), Term(u'language', u'french'), Term(u'keyword', u'dramaturgy'), Phrase(u'work', [u'Fase', u'Four Movements to the Music of Steve Reich'], slop=1, boost=1.000000)])]) |
/home/sarma/www/be.sarma/sarma.site.2/venv/lib/python2.6/site-packages/whoosh/searching.py
in search
:rtype: :class:`Results`
"""
# Call the collector() method to build a collector based on the
# parameters passed to this method
c = self.collector(**kwargs)
# Call the lower-level method to run the collector
self.search_with_collector(q, c)...
# Return the results object from the collector
return c.results()
def search_with_collector(self, q, collector, context=None):
"""Low-level method: runs a :class:`whoosh.query.Query` object on this
searcher using the given :class:`whoosh.collectors.Collector` object
Variable | Value |
---|---|
q | Or([Term(u'author', u'Marianne Van Kerkhoven'), And([Term(u'person', u'Marianne Van Kerkhoven'), Term(u'person', u'Isabelle Ginot'), Term(u'language', u'french'), Term(u'keyword', u'dramaturgy'), Phrase(u'work', [u'Fase', u'Four Movements to the Music of Steve Reich'], slop=1, boost=1.000000)])]) |
c | <whoosh.collectors.TopCollector object at 0x7f231aa43050> |
self | <whoosh.searching.Searcher object at 0x7f231ac33510> |
kwargs | {'limit': 20} |
/home/sarma/www/be.sarma/sarma.site.2/venv/lib/python2.6/site-packages/whoosh/searching.py
in search_with_collector
"""
# Get the search context object from the searcher
context = context or self.context()
# Allow collector to set up based on the top-level information
collector.prepare(self, q, context)
collector.run()...
def correct_query(self, q, qstring, correctors=None, allfields=False,
terms=None, prefix=0, maxdist=2):
"""Returns a corrected version of the given user query using a default
:class:`whoosh.spelling.ReaderCorrector`.
Variable | Value |
---|---|
q | Or([Term(u'author', u'Marianne Van Kerkhoven'), And([Term(u'person', u'Marianne Van Kerkhoven'), Term(u'person', u'Isabelle Ginot'), Term(u'language', u'french'), Term(u'keyword', u'dramaturgy'), Phrase(u'work', [u'Fase', u'Four Movements to the Music of Steve Reich'], slop=1, boost=1.000000)])]) |
self | <whoosh.searching.Searcher object at 0x7f231ac33510> |
collector | <whoosh.collectors.TopCollector object at 0x7f231aa43050> |
context | SearchContext({'needs_current': False, 'weighting': <whoosh.scoring.BM25F object at 0x7f231aeedad0>, 'limit': 0, 'top_query': None}) |
/home/sarma/www/be.sarma/sarma.site.2/venv/lib/python2.6/site-packages/whoosh/collectors.py
in run
self.runtime = None
self.docset = set()
def run(self):
# Collect matches for each sub-searcher
try:
for subsearcher, offset in self.top_searcher.leaf_searchers():
self.set_subsearcher(subsearcher, offset)...
self.collect_matches()
finally:
self.finish()
def set_subsearcher(self, subsearcher, offset):
"""This method is called each time the collector starts on a new
Variable | Value |
---|---|
self | <whoosh.collectors.TopCollector object at 0x7f231aa43050> |
subsearcher | <whoosh.searching.Searcher object at 0x7f231ac33510> |
offset | 0 |
/home/sarma/www/be.sarma/sarma.site.2/venv/lib/python2.6/site-packages/whoosh/collectors.py
in set_subsearcher
self.matcher
A :class:`whoosh.matching.Matcher` object representing the matches
for the query in the current sub-searcher.
"""
self.subsearcher = subsearcher
self.offset = offset
self.matcher = self.q.matcher(subsearcher, self.context)...
def computes_count(self):
"""Returns True if the collector naturally computes the exact number of
matching documents. Collectors that use block optimizations will return
False since they might skip blocks containing matching documents.
Variable | Value |
---|---|
self | <whoosh.collectors.TopCollector object at 0x7f231aa43050> |
subsearcher | <whoosh.searching.Searcher object at 0x7f231ac33510> |
offset | 0 |
/home/sarma/www/be.sarma/sarma.site.2/venv/lib/python2.6/site-packages/whoosh/query/compound.py
in matcher
subs = self.subqueries
if not subs:
return matching.NullMatcher()
if len(subs) == 1:
m = subs[0].matcher(searcher, context)
else:
m = self._matcher(subs, searcher, context)...
return m
def _matcher(self, subs, searcher, context):
# Subclasses must implement this method
raise NotImplementedError
Variable | Value |
---|---|
searcher | <whoosh.searching.Searcher object at 0x7f231ac33510> |
self | Or([Term(u'author', u'Marianne Van Kerkhoven'), And([Term(u'person', u'Marianne Van Kerkhoven'), Term(u'person', u'Isabelle Ginot'), Term(u'language', u'french'), Term(u'keyword', u'dramaturgy'), Phrase(u'work', [u'Fase', u'Four Movements to the Music of Steve Reich'], slop=1, boost=1.000000)])]) |
subs | [Term(u'author', u'Marianne Van Kerkhoven'), And([Term(u'person', u'Marianne Van Kerkhoven'), Term(u'person', u'Isabelle Ginot'), Term(u'language', u'french'), Term(u'keyword', u'dramaturgy'), Phrase(u'work', [u'Fase', u'Four Movements to the Music of Steve Reich'], slop=1, boost=1.000000)])] |
context | SearchContext({'needs_current': False, 'weighting': <whoosh.scoring.BM25F object at 0x7f231aeedad0>, 'limit': 0, 'top_query': None}) |
/home/sarma/www/be.sarma/sarma.site.2/venv/lib/python2.6/site-packages/whoosh/query/compound.py
in _matcher
elif matcher_type == self.ARRAY_MATCHER:
# Implementation that pre-loads docnums and scores into an array
cls = PreloadedOr
else:
raise ValueError("Unknown matcher_type %r" % self.matcher_type)
return cls(subs, boost=self.boost, minmatch=self.minmatch,
scale=self.scale).matcher(searcher, context)...
class DefaultOr(Or):
JOINT = " dOR "
def _matcher(self, subs, searcher, context):
Variable | Value |
---|---|
matcher_type | 1 |
subs | [Term(u'author', u'Marianne Van Kerkhoven'), And([Term(u'person', u'Marianne Van Kerkhoven'), Term(u'person', u'Isabelle Ginot'), Term(u'language', u'french'), Term(u'keyword', u'dramaturgy'), Phrase(u'work', [u'Fase', u'Four Movements to the Music of Steve Reich'], slop=1, boost=1.000000)])] |
searcher | <whoosh.searching.Searcher object at 0x7f231ac33510> |
self | Or([Term(u'author', u'Marianne Van Kerkhoven'), And([Term(u'person', u'Marianne Van Kerkhoven'), Term(u'person', u'Isabelle Ginot'), Term(u'language', u'french'), Term(u'keyword', u'dramaturgy'), Phrase(u'work', [u'Fase', u'Four Movements to the Music of Steve Reich'], slop=1, boost=1.000000)])]) |
dc | 3028 |
needs_current | False |
weighting | <whoosh.scoring.BM25F object at 0x7f231aeedad0> |
context | SearchContext({'needs_current': False, 'weighting': <whoosh.scoring.BM25F object at 0x7f231aeedad0>, 'limit': 0, 'top_query': None}) |
cls | <class 'whoosh.query.compound.DefaultOr'> |
/home/sarma/www/be.sarma/sarma.site.2/venv/lib/python2.6/site-packages/whoosh/query/compound.py
in matcher
subs = self.subqueries
if not subs:
return matching.NullMatcher()
if len(subs) == 1:
m = subs[0].matcher(searcher, context)
else:
m = self._matcher(subs, searcher, context)...
return m
def _matcher(self, subs, searcher, context):
# Subclasses must implement this method
raise NotImplementedError
Variable | Value |
---|---|
searcher | <whoosh.searching.Searcher object at 0x7f231ac33510> |
self | DefaultOr([Term(u'author', u'Marianne Van Kerkhoven'), And([Term(u'person', u'Marianne Van Kerkhoven'), Term(u'person', u'Isabelle Ginot'), Term(u'language', u'french'), Term(u'keyword', u'dramaturgy'), Phrase(u'work', [u'Fase', u'Four Movements to the Music of Steve Reich'], slop=1, boost=1.000000)])]) |
subs | [Term(u'author', u'Marianne Van Kerkhoven'), And([Term(u'person', u'Marianne Van Kerkhoven'), Term(u'person', u'Isabelle Ginot'), Term(u'language', u'french'), Term(u'keyword', u'dramaturgy'), Phrase(u'work', [u'Fase', u'Four Movements to the Music of Steve Reich'], slop=1, boost=1.000000)])] |
context | SearchContext({'needs_current': False, 'weighting': <whoosh.scoring.BM25F object at 0x7f231aeedad0>, 'limit': 0, 'top_query': None}) |
/home/sarma/www/be.sarma/sarma.site.2/venv/lib/python2.6/site-packages/whoosh/query/compound.py
in _matcher
class DefaultOr(Or):
JOINT = " dOR "
def _matcher(self, subs, searcher, context):
reader = searcher.reader()
q_weight_fn = lambda q: q.estimate_size(reader)
m = self._tree_matcher(subs, matching.UnionMatcher, searcher, context,
q_weight_fn)...
# If a scaling factor was given, wrap the matcher in a CoordMatcher to
# alter scores based on term coordination
if self.scale and any(m.term_matchers()):
m = matching.CoordMatcher(m, scale=self.scale)
Variable | Value |
---|---|
searcher | <whoosh.searching.Searcher object at 0x7f231ac33510> |
subs | [Term(u'author', u'Marianne Van Kerkhoven'), And([Term(u'person', u'Marianne Van Kerkhoven'), Term(u'person', u'Isabelle Ginot'), Term(u'language', u'french'), Term(u'keyword', u'dramaturgy'), Phrase(u'work', [u'Fase', u'Four Movements to the Music of Steve Reich'], slop=1, boost=1.000000)])] |
self | DefaultOr([Term(u'author', u'Marianne Van Kerkhoven'), And([Term(u'person', u'Marianne Van Kerkhoven'), Term(u'person', u'Isabelle Ginot'), Term(u'language', u'french'), Term(u'keyword', u'dramaturgy'), Phrase(u'work', [u'Fase', u'Four Movements to the Music of Steve Reich'], slop=1, boost=1.000000)])]) |
q_weight_fn | <function <lambda> at 0x7f231af2c050> |
context | SearchContext({'needs_current': False, 'weighting': <whoosh.scoring.BM25F object at 0x7f231aeedad0>, 'limit': 0, 'top_query': None}) |
reader | SegmentReader(<whoosh.filedb.filestore.OverlayStorage object at 0x7f231aeede10>, <W3Segment MAIN_0yvqpx778nudjgox>) |
/home/sarma/www/be.sarma/sarma.site.2/venv/lib/python2.6/site-packages/whoosh/query/compound.py
in _tree_matcher
def _tree_matcher(self, subs, mcls, searcher, context, q_weight_fn,
**kwargs):
# q_weight_fn is a function which is called on each query and returns a
# "weight" value which is used to build a huffman-like matcher tree. If
# q_weight_fn is None, an order-preserving binary tree is used instead.
# Create a matcher from the list of subqueries
subms = [q.matcher(searcher, context) for q in subs]...
if len(subms) == 1:
m = subms[0]
elif q_weight_fn is None:
m = make_binary_tree(mcls, subms, **kwargs)
else:
Variable | Value |
---|---|
searcher | <whoosh.searching.Searcher object at 0x7f231ac33510> |
subs | [Term(u'author', u'Marianne Van Kerkhoven'), And([Term(u'person', u'Marianne Van Kerkhoven'), Term(u'person', u'Isabelle Ginot'), Term(u'language', u'french'), Term(u'keyword', u'dramaturgy'), Phrase(u'work', [u'Fase', u'Four Movements to the Music of Steve Reich'], slop=1, boost=1.000000)])] |
self | DefaultOr([Term(u'author', u'Marianne Van Kerkhoven'), And([Term(u'person', u'Marianne Van Kerkhoven'), Term(u'person', u'Isabelle Ginot'), Term(u'language', u'french'), Term(u'keyword', u'dramaturgy'), Phrase(u'work', [u'Fase', u'Four Movements to the Music of Steve Reich'], slop=1, boost=1.000000)])]) |
kwargs | {} |
_[1] | [W3LeafMatcher((u'author', 'Marianne Van Kerkhoven'), True)] |
q | And([Term(u'person', u'Marianne Van Kerkhoven'), Term(u'person', u'Isabelle Ginot'), Term(u'language', u'french'), Term(u'keyword', u'dramaturgy'), Phrase(u'work', [u'Fase', u'Four Movements to the Music of Steve Reich'], slop=1, boost=1.000000)]) |
context | SearchContext({'needs_current': False, 'weighting': <whoosh.scoring.BM25F object at 0x7f231aeedad0>, 'limit': 0, 'top_query': None}) |
mcls | <class 'whoosh.matching.binary.UnionMatcher'> |
q_weight_fn | <function <lambda> at 0x7f231af2c050> |
/home/sarma/www/be.sarma/sarma.site.2/venv/lib/python2.6/site-packages/whoosh/query/compound.py
in matcher
subs = self.subqueries
if not subs:
return matching.NullMatcher()
if len(subs) == 1:
m = subs[0].matcher(searcher, context)
else:
m = self._matcher(subs, searcher, context)...
return m
def _matcher(self, subs, searcher, context):
# Subclasses must implement this method
raise NotImplementedError
Variable | Value |
---|---|
searcher | <whoosh.searching.Searcher object at 0x7f231ac33510> |
self | And([Term(u'person', u'Marianne Van Kerkhoven'), Term(u'person', u'Isabelle Ginot'), Term(u'language', u'french'), Term(u'keyword', u'dramaturgy'), Phrase(u'work', [u'Fase', u'Four Movements to the Music of Steve Reich'], slop=1, boost=1.000000)]) |
subs | [Term(u'person', u'Marianne Van Kerkhoven'), Term(u'person', u'Isabelle Ginot'), Term(u'language', u'french'), Term(u'keyword', u'dramaturgy'), Phrase(u'work', [u'Fase', u'Four Movements to the Music of Steve Reich'], slop=1, boost=1.000000)] |
context | SearchContext({'needs_current': False, 'weighting': <whoosh.scoring.BM25F object at 0x7f231aeedad0>, 'limit': 0, 'top_query': None}) |
/home/sarma/www/be.sarma/sarma.site.2/venv/lib/python2.6/site-packages/whoosh/query/compound.py
in _matcher
def estimate_size(self, ixreader):
return min(q.estimate_size(ixreader) for q in self.subqueries)
def _matcher(self, subs, searcher, context):
r = searcher.reader()
q_weight_fn = lambda q: 0 - q.estimate_size(r)
return self._tree_matcher(subs, matching.IntersectionMatcher, searcher,
context, q_weight_fn)...
class Or(CompoundQuery):
"""Matches documents that match ANY of the subqueries.
>>> Or([Term("content", u"render"),
Variable | Value |
---|---|
searcher | <whoosh.searching.Searcher object at 0x7f231ac33510> |
subs | [Term(u'person', u'Marianne Van Kerkhoven'), Term(u'person', u'Isabelle Ginot'), Term(u'language', u'french'), Term(u'keyword', u'dramaturgy'), Phrase(u'work', [u'Fase', u'Four Movements to the Music of Steve Reich'], slop=1, boost=1.000000)] |
self | And([Term(u'person', u'Marianne Van Kerkhoven'), Term(u'person', u'Isabelle Ginot'), Term(u'language', u'french'), Term(u'keyword', u'dramaturgy'), Phrase(u'work', [u'Fase', u'Four Movements to the Music of Steve Reich'], slop=1, boost=1.000000)]) |
q_weight_fn | <function <lambda> at 0x7f231af2ce60> |
r | SegmentReader(<whoosh.filedb.filestore.OverlayStorage object at 0x7f231aeede10>, <W3Segment MAIN_0yvqpx778nudjgox>) |
context | SearchContext({'needs_current': False, 'weighting': <whoosh.scoring.BM25F object at 0x7f231aeedad0>, 'limit': 0, 'top_query': None}) |
/home/sarma/www/be.sarma/sarma.site.2/venv/lib/python2.6/site-packages/whoosh/query/compound.py
in _tree_matcher
def _tree_matcher(self, subs, mcls, searcher, context, q_weight_fn,
**kwargs):
# q_weight_fn is a function which is called on each query and returns a
# "weight" value which is used to build a huffman-like matcher tree. If
# q_weight_fn is None, an order-preserving binary tree is used instead.
# Create a matcher from the list of subqueries
subms = [q.matcher(searcher, context) for q in subs]...
if len(subms) == 1:
m = subms[0]
elif q_weight_fn is None:
m = make_binary_tree(mcls, subms, **kwargs)
else:
Variable | Value |
---|---|
searcher | <whoosh.searching.Searcher object at 0x7f231ac33510> |
subs | [Term(u'person', u'Marianne Van Kerkhoven'), Term(u'person', u'Isabelle Ginot'), Term(u'language', u'french'), Term(u'keyword', u'dramaturgy'), Phrase(u'work', [u'Fase', u'Four Movements to the Music of Steve Reich'], slop=1, boost=1.000000)] |
self | And([Term(u'person', u'Marianne Van Kerkhoven'), Term(u'person', u'Isabelle Ginot'), Term(u'language', u'french'), Term(u'keyword', u'dramaturgy'), Phrase(u'work', [u'Fase', u'Four Movements to the Music of Steve Reich'], slop=1, boost=1.000000)]) |
kwargs | {} |
_[1] | [W3LeafMatcher((u'person', 'Marianne Van Kerkhoven'), True), W3LeafMatcher((u'person', 'Isabelle Ginot'), True), W3LeafMatcher((u'language', 'french'), True), W3LeafMatcher((u'keyword', 'dramaturgy'), True)] |
q | Phrase(u'work', [u'Fase', u'Four Movements to the Music of Steve Reich'], slop=1, boost=1.000000) |
context | SearchContext({'needs_current': False, 'weighting': <whoosh.scoring.BM25F object at 0x7f231aeedad0>, 'limit': 0, 'top_query': None}) |
mcls | <class 'whoosh.matching.binary.IntersectionMatcher'> |
q_weight_fn | <function <lambda> at 0x7f231af2ce60> |
/home/sarma/www/be.sarma/sarma.site.2/venv/lib/python2.6/site-packages/whoosh/query/positional.py
in matcher
fieldname = self.fieldname
if fieldname not in searcher.schema:
return matching.NullMatcher()
field = searcher.schema[fieldname]
if not field.format or not field.format.supports("positions"):
raise qcore.QueryError("Phrase search: %r field has no positions"
% self.fieldname)...
terms = []
# Build a list of Term queries from the words in the phrase
reader = searcher.reader()
for word in self.words:
try:
Variable | Value |
---|---|
searcher | <whoosh.searching.Searcher object at 0x7f231ac33510> |
Term | <class 'whoosh.query.terms.Term'> |
self | Phrase(u'work', [u'Fase', u'Four Movements to the Music of Steve Reich'], slop=1, boost=1.000000) |
field | KEYWORD(format=Frequency(boost=1.0), vector=None, scorable=False, stored=True, unique=False) |
fieldname | u'work' |
context | SearchContext({'needs_current': False, 'weighting': <whoosh.scoring.BM25F object at 0x7f231aeedad0>, 'limit': 0, 'top_query': None}) |
SpanNear2 | <class 'whoosh.query.spans.SpanNear2'> |
Variable | Value |
---|---|
t | u'author:"Marianne Van Kerkhoven" OR person:"Marianne Van Kerkhoven" AND person:"Isabelle Ginot" AND language:"French" AND keyword:"dramaturgy" AND work:"Fase, Four Movements to the Music of Steve Reich"' |
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
mod_wsgi.listener_port | '8088' |
SERVER_SOFTWARE | 'Apache/2.2.16 (Debian)' |
SCRIPT_NAME | u'' |
mod_wsgi.handler_script | '' |
SERVER_SIGNATURE | '<address>Apache/2.2.16 (Debian) Server at old.sarma.be Port 80</address>\n' |
REQUEST_METHOD | 'GET' |
PATH_INFO | u'/s/' |
SERVER_PROTOCOL | 'HTTP/1.0' |
QUERY_STRING | 't=author%3A%22Marianne+Van+Kerkhoven%22+OR+person%3A%22Marianne+Van+Kerkhoven%22+AND+person%3A%22Isabelle+Ginot%22+AND+language%3A%22French%22+AND+keyword%3A%22dramaturgy%22+AND+work%3A%22Fase%2C+Four+Movements+to+the+Music+of+Steve+Reich%22' |
HTTP_X_REAL_IP | '54.166.141.52' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_CONNECTION | 'close' |
SERVER_NAME | 'old.sarma.be' |
REMOTE_ADDR | '127.0.0.1' |
mod_wsgi.request_handler | 'wsgi-script' |
wsgi.url_scheme | 'http' |
PATH_TRANSLATED | '/home/sarma/www/be.sarma/sarma.site.2/sarma/wsgi.py/s/' |
SERVER_PORT | '80' |
wsgi.multiprocess | False |
mod_wsgi.input_chunked | '0' |
SERVER_ADDR | '127.0.0.1' |
DOCUMENT_ROOT | '/home/sarma/www/be.sarma/sarma.site.2/' |
mod_wsgi.process_group | 'sarmasite2' |
SCRIPT_FILENAME | '/home/sarma/www/be.sarma/sarma.site.2/sarma/wsgi.py' |
SERVER_ADMIN | '[no address given]' |
wsgi.input | <mod_wsgi.Input object at 0x7f231ad29130> |
HTTP_HOST | 'old.sarma.be' |
wsgi.multithread | False |
mod_wsgi.callable_object | 'application' |
REQUEST_URI | '/s/?t=author%3A%22Marianne+Van+Kerkhoven%22+OR+person%3A%22Marianne+Van+Kerkhoven%22+AND+person%3A%22Isabelle+Ginot%22+AND+language%3A%22French%22+AND+keyword%3A%22dramaturgy%22+AND+work%3A%22Fase%2C+Four+Movements+to+the+Music+of+Steve+Reich%22' |
HTTP_ACCEPT | '*/*' |
wsgi.version | (1, 1) |
GATEWAY_INTERFACE | 'CGI/1.1' |
HTTP_X_FORWARDED_FOR | '54.166.141.52' |
wsgi.errors | <mod_wsgi.Log object at 0x7f231aa89d70> |
REMOTE_PORT | '44439' |
mod_wsgi.listener_host | '' |
mod_wsgi.version | (3, 3) |
wsgi.run_once | False |
mod_wsgi.application_group | 'sarma.be|' |
mod_wsgi.script_reloading | '1' |
wsgi.file_wrapper | '' |
CSRF_COOKIE | u'JtOAIu2yZ3k2q05Q80kChmBRHW1RUpiw' |
sarma.settings
Setting | Value |
---|---|
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
CSRF_COOKIE_SECURE | False |
LANGUAGE_CODE | 'en-us' |
ROOT_URLCONF | 'sarma.urls' |
MANAGERS | () |
BASE_DIR | '/home/sarma/www/be.sarma/sarma.site.2' |
DEFAULT_CHARSET | 'utf-8' |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
STATIC_ROOT | '/home/sarma/www/be.sarma.repo/static/' |
ALLOWED_HOSTS | [] |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
FILE_UPLOAD_PERMISSIONS | None |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | 'sessionid' |
ADMIN_FOR | () |
TIME_INPUT_FORMATS | ('%H:%M:%S', '%H:%M:%S.%f', '%H:%M') |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': '/home/sarma/www/be.sarma/sarma.site.2/db.sqlite3', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'UTC', 'USER': ''}} |
SERVER_EMAIL | 'root@localhost' |
FILE_UPLOAD_HANDLERS | ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') |
DEFAULT_CONTENT_TYPE | 'text/html' |
APPEND_SLASH | True |
FIRST_DAY_OF_WEEK | 0 |
DATABASE_ROUTERS | [] |
YEAR_MONTH_FORMAT | 'F Y' |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
SESSION_COOKIE_PATH | '/' |
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') |
USE_I18N | True |
THOUSAND_SEPARATOR | ',' |
SECRET_KEY | u'********************' |
LANGUAGE_COOKIE_NAME | 'django_language' |
DEFAULT_INDEX_TABLESPACE | '' |
TRANSACTIONS_MANAGED | False |
LOGGING_CONFIG | 'django.utils.log.dictConfig' |
SEND_BROKEN_LINK_EMAILS | False |
TEMPLATE_LOADERS | ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') |
WSGI_APPLICATION | 'sarma.wsgi.application' |
TEMPLATE_DEBUG | True |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
CSRF_COOKIE_NAME | 'csrftoken' |
FORCE_SCRIPT_NAME | None |
USE_X_FORWARDED_HOST | False |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SESSION_COOKIE_SECURE | False |
CSRF_COOKIE_DOMAIN | None |
FILE_CHARSET | 'utf-8' |
DEBUG | True |
SESSION_FILE_PATH | None |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
INSTALLED_APPS | ('sarmasite', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'tinymce', 'sarmadocs') |
LANGUAGES | (('af', 'Afrikaans'), ('ar', 'Arabic'), ('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-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-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('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'), ('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-tw', 'Traditional Chinese')) |
COMMENTS_ALLOW_PROFANITIES | False |
STATICFILES_DIRS | () |
PREPEND_WWW | False |
SECURE_PROXY_SSL_HEADER | None |
SESSION_COOKIE_HTTPONLY | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
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'********************' |
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 | () |
LOCALE_PATHS | () |
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 | () |
WHOOSH_PATH | '/home/sarma/www/be.sarma/sarma.site.2/search_index' |
LOGGING | {} |
SHORT_DATE_FORMAT | 'm/d/Y' |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
TIME_ZONE | 'UTC' |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
DEFAULT_TABLESPACE | '' |
TEMPLATE_CONTEXT_PROCESSORS | ('django.contrib.auth.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.static', 'django.core.context_processors.tz', 'django.contrib.messages.context_processors.messages') |
SESSION_COOKIE_AGE | 1209600 |
SETTINGS_MODULE | 'sarma.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' |
PASSWORD_HASHERS | u'********************' |
ABSOLUTE_URL_OVERRIDES | {} |
CACHE_MIDDLEWARE_SECONDS | 600 |
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 | '' |
PROFANITIES_LIST | u'********************' |
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 500 page.