Reverse for 'tag_page' with keyword arguments '{'slug': 'electric-field'}' not found. 1 pattern(s) tried: ['tag/(?P<slug>[0-9A-Za-z_\\-]+)/$']
Request Method: | GET |
---|---|
Request URL: | https://scitok.com/project/p/8401030a/ |
Django Version: | 3.2.9 |
Exception Type: | NoReverseMatch |
Exception Value: | Reverse for 'tag_page' with keyword arguments '{'slug': 'electric-field'}' not found. 1 pattern(s) tried: ['tag/(?P<slug>[0-9A-Za-z_\\-]+)/$'] |
Exception Location: | /usr/local/lib/python3.8/site-packages/django/urls/resolvers.py, line 694, in _reverse_with_prefix |
Python Executable: | /usr/local/bin/python |
Python Version: | 3.8.18 |
Python Path: | ['/usr/src', '/var/app/venv/staging-LQM1lest/bin', '/usr/local/lib/python38.zip', '/usr/local/lib/python3.8', '/usr/local/lib/python3.8/lib-dynload', '/usr/local/lib/python3.8/site-packages'] |
Server time: | Tue, 19 Mar 2024 10:42:09 +0000 |
In template /usr/src/templates/base.html
, error at line 263
253 | <img src="{% static 'img/menu.png' %}"></a> |
---|---|
254 | </a> |
255 | <a href="{% url 'scihubhome:home' %}" class="menu-logo"> |
256 | <img src="{% static 'img/logo.png' %}"></a> |
257 | </a> |
258 | </div> |
259 | <div class="nav-section"> |
260 | <!--a href="{% url 'scihubhome:home' %}"> |
261 | <li class="nav-text nav-header-1" id="home" onmouseover="$(this).addClass('active');" {% if request.path != '/' %} onmouseout="$(this).removeClass('active');" {% endif %}> |
262 | <img src="{% static 'img/icons/home-icon.png' %}"> |
263 | <img class="active" src="{% static 'img/icons/home-icon-active.png' %}"> |
264 | Home |
265 | </li> |
266 | </a--> |
267 | <a href="{% url 'follow:following' %}"> |
268 | <li class="nav-text nav-header-1" id="following" onmouseover="$(this).addClass('active');" {% if request.path != '/follow/following/' %} onmouseout="$(this).removeClass('active');" {% endif %}> |
269 | <img src="{% static 'img/icons/follow-icon.png' %}"> |
270 | <img class="active" src="{% static 'img/icons/follow-icon-active.png' %}"> |
271 | Following |
272 | </li> |
273 | </a> |
/usr/local/lib/python3.8/site-packages/asgiref/sync.py
, line 458, in thread_handler
parent_set = True
# Run the function
try:
# If we have an exception, run the function inside the except block
# after raising it so exc_info is correctly populated.
if exc_info[1]:
try:
raise exc_info[1]…
except BaseException:
return func(*args, **kwargs)
else:
return func(*args, **kwargs)
finally:
# Only delete the launch_map parent if we set it, otherwise it is
Variable | Value |
---|---|
args | (functools.partial(<function response_for_exception at 0x7fb7b42b8c10>, <ASGIRequest: GET '/project/p/8401030a/'>, NoReverseMatch("Reverse for 'tag_page' with keyword arguments '{'slug': 'electric-field'}' not found. 1 pattern(s) tried: ['tag/(?P<slug>[0-9A-Za-z_\\\\-]+)/$']")),) |
current_thread | <Thread(ThreadPoolExecutor-1_0, started daemon 140426629605056)> |
exc_info | (<class 'django.urls.exceptions.NoReverseMatch'>, NoReverseMatch("Reverse for 'tag_page' with keyword arguments '{'slug': 'electric-field'}' not found. 1 pattern(s) tried: ['tag/(?P<slug>[0-9A-Za-z_\\\\-]+)/$']"), <traceback object at 0x7fb79dfc51c0>) |
func | <built-in method run of Context object at 0x7fb7a4b75440> |
kwargs | {} |
loop | <_UnixSelectorEventLoop running=True closed=False debug=False> |
parent_set | True |
self | <asgiref.sync.SyncToAsync object at 0x7fb79e1a2760> |
source_task | <Task pending name='Task-33282' coro=<StaticFilesWrapper.__call__() running at /usr/local/lib/python3.8/site-packages/channels/staticfiles.py:44> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/local/lib/python3.8/asyncio/futures.py:360, <TaskWakeupMethWrapper object at 0x7fb7a41236d0>()]>> |
/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py
, line 38, in inner
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
if asyncio.iscoroutinefunction(get_response):
@wraps(get_response)
async def inner(request):
try:
response = await get_response(request)…
except Exception as exc:
response = await sync_to_async(response_for_exception, thread_sensitive=False)(request, exc)
return response
return inner
else:
@wraps(get_response)
Variable | Value |
---|---|
exc | NoReverseMatch("Reverse for 'tag_page' with keyword arguments '{'slug': 'electric-field'}' not found. 1 pattern(s) tried: ['tag/(?P<slug>[0-9A-Za-z_\\\\-]+)/$']") |
get_response | <bound method BaseHandler._get_response_async of <django.core.handlers.asgi.ASGIHandler object at 0x7fb7a4d17940>> |
request | <ASGIRequest: GET '/project/p/8401030a/'> |
/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py
, line 233, in _get_response_async
if response is None:
wrapped_callback = self.make_view_atomic(callback)
# If it is a synchronous view, run it in a subthread
if not asyncio.iscoroutinefunction(wrapped_callback):
wrapped_callback = sync_to_async(wrapped_callback, thread_sensitive=True)
try:
response = await wrapped_callback(request, *callback_args, **callback_kwargs)…
except Exception as e:
response = await sync_to_async(
self.process_exception_by_middleware,
thread_sensitive=True,
)(e, request)
if response is None:
Variable | Value |
---|---|
callback | <function project at 0x7fb7a51270d0> |
callback_args | () |
callback_kwargs | {'url_handle': '8401030a'} |
middleware_method | <asgiref.sync.SyncToAsync object at 0x7fb7a4af7610> |
request | <ASGIRequest: GET '/project/p/8401030a/'> |
response | None |
self | <django.core.handlers.asgi.ASGIHandler object at 0x7fb7a4d17940> |
wrapped_callback | <asgiref.sync.SyncToAsync object at 0x7fb79e1a2280> |
/usr/local/lib/python3.8/site-packages/asgiref/sync.py
, line 423, in __call__
self.get_current_task(),
sys.exc_info(),
func,
*args,
**kwargs,
),
)
ret = await asyncio.wait_for(future, timeout=None)…
if contextvars is not None:
_restore_context(context)
return ret
Variable | Value |
---|---|
args | (functools.partial(<function project at 0x7fb7a51270d0>, <ASGIRequest: GET '/project/p/8401030a/'>, url_handle='8401030a'),) |
child | functools.partial(<function project at 0x7fb7a51270d0>, <ASGIRequest: GET '/project/p/8401030a/'>, url_handle='8401030a') |
context | <Context object at 0x7fb79c8c9080> |
executor | <concurrent.futures.thread.ThreadPoolExecutor object at 0x7fb7b5fc0ac0> |
func | <built-in method run of Context object at 0x7fb79c8c9080> |
future | <Future finished exception=NoReverseMatch("Reverse for 'tag_page' with keyword arguments '{'slug': 'electric-field'}' not found. 1 pattern(s) tried: ['tag/(?P<slug>[0-9A-Za-z_\\\\-]+)/$']")> |
kwargs | {} |
loop | <_UnixSelectorEventLoop running=True closed=False debug=False> |
self | <asgiref.sync.SyncToAsync object at 0x7fb79e1a2280> |
/usr/local/lib/python3.8/asyncio/tasks.py
, line 455, in wait_for
loop = events.get_running_loop()
else:
warnings.warn("The loop argument is deprecated since Python 3.8, "
"and scheduled for removal in Python 3.10.",
DeprecationWarning, stacklevel=2)
if timeout is None:
return await fut…
if timeout <= 0:
fut = ensure_future(fut, loop=loop)
if fut.done():
return fut.result()
Variable | Value |
---|---|
fut | <Future finished exception=NoReverseMatch("Reverse for 'tag_page' with keyword arguments '{'slug': 'electric-field'}' not found. 1 pattern(s) tried: ['tag/(?P<slug>[0-9A-Za-z_\\\\-]+)/$']")> |
loop | <_UnixSelectorEventLoop running=True closed=False debug=False> |
timeout | None |
/usr/local/lib/python3.8/concurrent/futures/thread.py
, line 57, in run
self.kwargs = kwargs
def run(self):
if not self.future.set_running_or_notify_cancel():
return
try:
result = self.fn(*self.args, **self.kwargs)…
except BaseException as exc:
self.future.set_exception(exc)
# Break a reference cycle with the exception 'exc'
self = None
else:
self.future.set_result(result)
Variable | Value |
---|---|
self | None |
/usr/local/lib/python3.8/site-packages/asgiref/sync.py
, line 462, in thread_handler
# after raising it so exc_info is correctly populated.
if exc_info[1]:
try:
raise exc_info[1]
except BaseException:
return func(*args, **kwargs)
else:
return func(*args, **kwargs)…
finally:
# Only delete the launch_map parent if we set it, otherwise it is
# from someone else.
if parent_set:
del self.launch_map[current_thread]
Variable | Value |
---|---|
args | (functools.partial(<function project at 0x7fb7a51270d0>, <ASGIRequest: GET '/project/p/8401030a/'>, url_handle='8401030a'),) |
current_thread | <Thread(ThreadPoolExecutor-0_0, started daemon 140426640094912)> |
exc_info | (None, None, None) |
func | <built-in method run of Context object at 0x7fb79c8c9080> |
kwargs | {} |
loop | <_UnixSelectorEventLoop running=True closed=False debug=False> |
parent_set | True |
self | <asgiref.sync.SyncToAsync object at 0x7fb79e1a2280> |
source_task | <Task pending name='Task-33282' coro=<StaticFilesWrapper.__call__() running at /usr/local/lib/python3.8/site-packages/channels/staticfiles.py:44> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/local/lib/python3.8/asyncio/futures.py:360, <TaskWakeupMethWrapper object at 0x7fb7a41236d0>()]>> |
/usr/src/project/views.py
, line 280, in project
'user_following':user_following_ids,
'user_collections': get_user_collections(request),
't':t,
'v':v,
'e':e,
}
template = loader.get_template('project/project.html')
return HttpResponse(template.render(context, request))…
def watch(request, url_handle):
t = 0
print(request.method)
if request.method=='POST':
Variable | Value |
---|---|
answer_comment_form | <AnswerCommentForm bound=False, valid=Unknown, fields=(body)> |
answer_form | <AnswerForm bound=False, valid=Unknown, fields=(body)> |
collection_form | <CollectionForm bound=False, valid=Unknown, fields=(name)> |
comment_form | <CommentForm bound=False, valid=Unknown, fields=(body)> |
comments | <TreeQuerySet []> |
context | {'answer_comment_form': <AnswerCommentForm bound=False, valid=Unknown, fields=(body)>, 'answer_form': <AnswerForm bound=False, valid=Unknown, fields=(body)>, 'collection_form': <CollectionForm bound=False, valid=Unknown, fields=(name)>, 'comment_form': <CommentForm bound=False, valid=Unknown, fields=(body)>, 'comments': <TreeQuerySet []>, 'creater': <User: daniele.proverbio@uni.lu>, 'custom_url_form': <CustomURLForm bound=False, valid=Unknown, fields=(name;url)>, 'e': 0, 'new_author_form': <NewAuthorForm bound=False, valid=Unknown, fields=(first_name;last_name;email)>, 'note_form': <NoteForm bound=False, valid=Unknown, fields=(body)>, 'project': <Project: FastField: An Open-Source Toolbox for Efficient Approximation of Deep Brain Stimulation Electric Fields 917>, 'question_form': <QuestionForm bound=False, valid=Unknown, fields=(title;description)>, 'questions': <QuerySet []>, 'related_projects': <QuerySet [<Project: One way to give a talk 214>, <Project: Autoimmunity to extracellular DNA 113>, <Project: How Dinosaur Brains and Bat Noses Can Save the World 223>, <Project: Human T cell subsets in health and diseases 103>, <Project: Modeling the dynamics of mouse iron body distribution: hepcidin is necessary but not sufficient 1032>, <Project: Integrated molecular, clinical, and ontological analysis identifies overlooked disease relationships 318>, <Project: Distinct neural contributions to metacognition for detecting (but not discriminating) visual stimuli 406>, <Project: Very early initiation of antiretroviral therapy that inform HIV cure strategies 105>, <Project: Wearable 3D Machine Knitting 177>, <Project: Mitigación de emisiones de metano en vacuno. 197>]>, 't': 0, 'tags': <QuerySet [<Tag: Neuroscience>, <Tag: Deep Brain Stimulation>, <Tag: 1. Introduction>, <Tag: Toolbox>, <Tag: Neuromodulation>, <Tag: Simulation>, <Tag: Electric Field>, <Tag: Volume Of Tissue Activated>]>, 'url_options': ['paper', 'project', 'supplements'], 'user_collections': None, 'user_following': [], 'user_upvoted': False, 'v': 0, 'video_form': <VideoForm bound=False, valid=Unknown, fields=(title;video_file)>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 875>]>} |
creater | <User: daniele.proverbio@uni.lu> |
custom_url_form | <CustomURLForm bound=False, valid=Unknown, fields=(name;url)> |
e | 0 |
new_author_form | <NewAuthorForm bound=False, valid=Unknown, fields=(first_name;last_name;email)> |
note | None |
note_form | <NoteForm bound=False, valid=Unknown, fields=(body)> |
project | <Project: FastField: An Open-Source Toolbox for Efficient Approximation of Deep Brain Stimulation Electric Fields 917> |
question_form | <QuestionForm bound=False, valid=Unknown, fields=(title;description)> |
questions | <QuerySet []> |
related_projects | <QuerySet [<Project: One way to give a talk 214>, <Project: Autoimmunity to extracellular DNA 113>, <Project: How Dinosaur Brains and Bat Noses Can Save the World 223>, <Project: Human T cell subsets in health and diseases 103>, <Project: Modeling the dynamics of mouse iron body distribution: hepcidin is necessary but not sufficient 1032>, <Project: Integrated molecular, clinical, and ontological analysis identifies overlooked disease relationships 318>, <Project: Distinct neural contributions to metacognition for detecting (but not discriminating) visual stimuli 406>, <Project: Very early initiation of antiretroviral therapy that inform HIV cure strategies 105>, <Project: Wearable 3D Machine Knitting 177>, <Project: Mitigación de emisiones de metano en vacuno. 197>]> |
request | <ASGIRequest: GET '/project/p/8401030a/'> |
start | 1710844928.5739985 |
t | 0 |
tags | <QuerySet [<Tag: Neuroscience>, <Tag: Deep Brain Stimulation>, <Tag: 1. Introduction>, <Tag: Toolbox>, <Tag: Neuromodulation>, <Tag: Simulation>, <Tag: Electric Field>, <Tag: Volume Of Tissue Activated>]> |
template | <django.template.backends.django.Template object at 0x7fb7a4399700> |
url_handle | '8401030a' |
user_downvoted | False |
user_following | [] |
user_following_ids | [] |
user_upvoted | False |
v | 0 |
video_form | <VideoForm bound=False, valid=Unknown, fields=(title;video_file)> |
videos | <QuerySet [<Video: Video Abstract (AI generated) 875>]> |
/usr/local/lib/python3.8/site-packages/django/template/backends/django.py
, line 61, in render
@property
def origin(self):
return self.template.origin
def render(self, context=None, request=None):
context = make_context(context, request, autoescape=self.backend.engine.autoescape)
try:
return self.template.render(context)…
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'project': <Project: FastField: An Open-Source Toolbox for Efficient Approximation of Deep Brain Stimulation Electric Fields 917>, 'creater': <User: daniele.proverbio@uni.lu>, 'tags': <QuerySet [<Tag: Neuroscience>, <Tag: Deep Brain Stimulation>, <Tag: 1. Introduction>, <Tag: Toolbox>, <Tag: Neuromodulation>, <Tag: Simulation>, <Tag: Electric Field>, <Tag: Volume Of Tissue Activated>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 875>]>, 'questions': <QuerySet []>, 'comments': <TreeQuerySet []>, 'note_form': <NoteForm bound=False, valid=Unknown, fields=(body)>, 'url_options': ['paper', 'project', 'supplements'], 'related_projects': <QuerySet [<Project: One way to give a talk 214>, <Project: Autoimmunity to extracellular DNA 113>, <Project: How Dinosaur Brains and Bat Noses Can Save the World 223>, <Project: Human T cell subsets in health and diseases 103>, <Project: Modeling the dynamics of mouse iron body distribution: hepcidin is necessary but not sufficient 1032>, <Project: Integrated molecular, clinical, and ontological analysis identifies overlooked disease relationships 318>, <Project: Distinct neural contributions to metacognition for detecting (but not discriminating) visual stimuli 406>, <Project: Very early initiation of antiretroviral therapy that inform HIV cure strategies 105>, <Project: Wearable 3D Machine Knitting 177>, <Project: Mitigación de emisiones de metano en vacuno. 197>]>, 'user_upvoted': False, 'collection_form': <CollectionForm bound=False, valid=Unknown, fields=(name)>, 'custom_url_form': <CustomURLForm bound=False, valid=Unknown, fields=(name;url)>, 'new_author_form': <NewAuthorForm bound=False, valid=Unknown, fields=(first_name;last_name;email)>, 'video_form': <VideoForm bound=False, valid=Unknown, fields=(title;video_file)>, 'question_form': <QuestionForm bound=False, valid=Unknown, fields=(title;description)>, 'answer_form': <AnswerForm bound=False, valid=Unknown, fields=(body)>, 'answer_comment_form': <AnswerCommentForm bound=False, valid=Unknown, fields=(body)>, 'comment_form': <CommentForm bound=False, valid=Unknown, fields=(body)>, 'user_following': [], 'user_collections': None, 't': 0, 'v': 0, 'e': 0}] |
request | <ASGIRequest: GET '/project/p/8401030a/'> |
self | <django.template.backends.django.Template object at 0x7fb7a4399700> |
/usr/local/lib/python3.8/site-packages/django/template/base.py
, line 170, in render
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)…
else:
return self._render(context)
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'project': <Project: FastField: An Open-Source Toolbox for Efficient Approximation of Deep Brain Stimulation Electric Fields 917>, 'creater': <User: daniele.proverbio@uni.lu>, 'tags': <QuerySet [<Tag: Neuroscience>, <Tag: Deep Brain Stimulation>, <Tag: 1. Introduction>, <Tag: Toolbox>, <Tag: Neuromodulation>, <Tag: Simulation>, <Tag: Electric Field>, <Tag: Volume Of Tissue Activated>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 875>]>, 'questions': <QuerySet []>, 'comments': <TreeQuerySet []>, 'note_form': <NoteForm bound=False, valid=Unknown, fields=(body)>, 'url_options': ['paper', 'project', 'supplements'], 'related_projects': <QuerySet [<Project: One way to give a talk 214>, <Project: Autoimmunity to extracellular DNA 113>, <Project: How Dinosaur Brains and Bat Noses Can Save the World 223>, <Project: Human T cell subsets in health and diseases 103>, <Project: Modeling the dynamics of mouse iron body distribution: hepcidin is necessary but not sufficient 1032>, <Project: Integrated molecular, clinical, and ontological analysis identifies overlooked disease relationships 318>, <Project: Distinct neural contributions to metacognition for detecting (but not discriminating) visual stimuli 406>, <Project: Very early initiation of antiretroviral therapy that inform HIV cure strategies 105>, <Project: Wearable 3D Machine Knitting 177>, <Project: Mitigación de emisiones de metano en vacuno. 197>]>, 'user_upvoted': False, 'collection_form': <CollectionForm bound=False, valid=Unknown, fields=(name)>, 'custom_url_form': <CustomURLForm bound=False, valid=Unknown, fields=(name;url)>, 'new_author_form': <NewAuthorForm bound=False, valid=Unknown, fields=(first_name;last_name;email)>, 'video_form': <VideoForm bound=False, valid=Unknown, fields=(title;video_file)>, 'question_form': <QuestionForm bound=False, valid=Unknown, fields=(title;description)>, 'answer_form': <AnswerForm bound=False, valid=Unknown, fields=(body)>, 'answer_comment_form': <AnswerCommentForm bound=False, valid=Unknown, fields=(body)>, 'comment_form': <CommentForm bound=False, valid=Unknown, fields=(body)>, 'user_following': [], 'user_collections': None, 't': 0, 'v': 0, 'e': 0}] |
self | <django.template.base.Template object at 0x7fb7a41579a0> |
/usr/local/lib/python3.8/site-packages/django/template/base.py
, line 162, in _render
self.nodelist = self.compile_nodelist()
def __iter__(self):
for node in self.nodelist:
yield from node
def _render(self, context):
return self.nodelist.render(context)…
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'project': <Project: FastField: An Open-Source Toolbox for Efficient Approximation of Deep Brain Stimulation Electric Fields 917>, 'creater': <User: daniele.proverbio@uni.lu>, 'tags': <QuerySet [<Tag: Neuroscience>, <Tag: Deep Brain Stimulation>, <Tag: 1. Introduction>, <Tag: Toolbox>, <Tag: Neuromodulation>, <Tag: Simulation>, <Tag: Electric Field>, <Tag: Volume Of Tissue Activated>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 875>]>, 'questions': <QuerySet []>, 'comments': <TreeQuerySet []>, 'note_form': <NoteForm bound=False, valid=Unknown, fields=(body)>, 'url_options': ['paper', 'project', 'supplements'], 'related_projects': <QuerySet [<Project: One way to give a talk 214>, <Project: Autoimmunity to extracellular DNA 113>, <Project: How Dinosaur Brains and Bat Noses Can Save the World 223>, <Project: Human T cell subsets in health and diseases 103>, <Project: Modeling the dynamics of mouse iron body distribution: hepcidin is necessary but not sufficient 1032>, <Project: Integrated molecular, clinical, and ontological analysis identifies overlooked disease relationships 318>, <Project: Distinct neural contributions to metacognition for detecting (but not discriminating) visual stimuli 406>, <Project: Very early initiation of antiretroviral therapy that inform HIV cure strategies 105>, <Project: Wearable 3D Machine Knitting 177>, <Project: Mitigación de emisiones de metano en vacuno. 197>]>, 'user_upvoted': False, 'collection_form': <CollectionForm bound=False, valid=Unknown, fields=(name)>, 'custom_url_form': <CustomURLForm bound=False, valid=Unknown, fields=(name;url)>, 'new_author_form': <NewAuthorForm bound=False, valid=Unknown, fields=(first_name;last_name;email)>, 'video_form': <VideoForm bound=False, valid=Unknown, fields=(title;video_file)>, 'question_form': <QuestionForm bound=False, valid=Unknown, fields=(title;description)>, 'answer_form': <AnswerForm bound=False, valid=Unknown, fields=(body)>, 'answer_comment_form': <AnswerCommentForm bound=False, valid=Unknown, fields=(body)>, 'comment_form': <CommentForm bound=False, valid=Unknown, fields=(body)>, 'user_following': [], 'user_collections': None, 't': 0, 'v': 0, 'e': 0}] |
self | <django.template.base.Template object at 0x7fb7a41579a0> |
/usr/local/lib/python3.8/site-packages/django/template/base.py
, line 938, in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'project': <Project: FastField: An Open-Source Toolbox for Efficient Approximation of Deep Brain Stimulation Electric Fields 917>, 'creater': <User: daniele.proverbio@uni.lu>, 'tags': <QuerySet [<Tag: Neuroscience>, <Tag: Deep Brain Stimulation>, <Tag: 1. Introduction>, <Tag: Toolbox>, <Tag: Neuromodulation>, <Tag: Simulation>, <Tag: Electric Field>, <Tag: Volume Of Tissue Activated>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 875>]>, 'questions': <QuerySet []>, 'comments': <TreeQuerySet []>, 'note_form': <NoteForm bound=False, valid=Unknown, fields=(body)>, 'url_options': ['paper', 'project', 'supplements'], 'related_projects': <QuerySet [<Project: One way to give a talk 214>, <Project: Autoimmunity to extracellular DNA 113>, <Project: How Dinosaur Brains and Bat Noses Can Save the World 223>, <Project: Human T cell subsets in health and diseases 103>, <Project: Modeling the dynamics of mouse iron body distribution: hepcidin is necessary but not sufficient 1032>, <Project: Integrated molecular, clinical, and ontological analysis identifies overlooked disease relationships 318>, <Project: Distinct neural contributions to metacognition for detecting (but not discriminating) visual stimuli 406>, <Project: Very early initiation of antiretroviral therapy that inform HIV cure strategies 105>, <Project: Wearable 3D Machine Knitting 177>, <Project: Mitigación de emisiones de metano en vacuno. 197>]>, 'user_upvoted': False, 'collection_form': <CollectionForm bound=False, valid=Unknown, fields=(name)>, 'custom_url_form': <CustomURLForm bound=False, valid=Unknown, fields=(name;url)>, 'new_author_form': <NewAuthorForm bound=False, valid=Unknown, fields=(first_name;last_name;email)>, 'video_form': <VideoForm bound=False, valid=Unknown, fields=(title;video_file)>, 'question_form': <QuestionForm bound=False, valid=Unknown, fields=(title;description)>, 'answer_form': <AnswerForm bound=False, valid=Unknown, fields=(body)>, 'answer_comment_form': <AnswerCommentForm bound=False, valid=Unknown, fields=(body)>, 'comment_form': <CommentForm bound=False, valid=Unknown, fields=(body)>, 'user_following': [], 'user_collections': None, 't': 0, 'v': 0, 'e': 0}] |
node | <ExtendsNode: extends 'base.html'> |
self | [<ExtendsNode: extends 'base.html'>] |
/usr/local/lib/python3.8/site-packages/django/template/base.py
, line 905, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'project': <Project: FastField: An Open-Source Toolbox for Efficient Approximation of Deep Brain Stimulation Electric Fields 917>, 'creater': <User: daniele.proverbio@uni.lu>, 'tags': <QuerySet [<Tag: Neuroscience>, <Tag: Deep Brain Stimulation>, <Tag: 1. Introduction>, <Tag: Toolbox>, <Tag: Neuromodulation>, <Tag: Simulation>, <Tag: Electric Field>, <Tag: Volume Of Tissue Activated>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 875>]>, 'questions': <QuerySet []>, 'comments': <TreeQuerySet []>, 'note_form': <NoteForm bound=False, valid=Unknown, fields=(body)>, 'url_options': ['paper', 'project', 'supplements'], 'related_projects': <QuerySet [<Project: One way to give a talk 214>, <Project: Autoimmunity to extracellular DNA 113>, <Project: How Dinosaur Brains and Bat Noses Can Save the World 223>, <Project: Human T cell subsets in health and diseases 103>, <Project: Modeling the dynamics of mouse iron body distribution: hepcidin is necessary but not sufficient 1032>, <Project: Integrated molecular, clinical, and ontological analysis identifies overlooked disease relationships 318>, <Project: Distinct neural contributions to metacognition for detecting (but not discriminating) visual stimuli 406>, <Project: Very early initiation of antiretroviral therapy that inform HIV cure strategies 105>, <Project: Wearable 3D Machine Knitting 177>, <Project: Mitigación de emisiones de metano en vacuno. 197>]>, 'user_upvoted': False, 'collection_form': <CollectionForm bound=False, valid=Unknown, fields=(name)>, 'custom_url_form': <CustomURLForm bound=False, valid=Unknown, fields=(name;url)>, 'new_author_form': <NewAuthorForm bound=False, valid=Unknown, fields=(first_name;last_name;email)>, 'video_form': <VideoForm bound=False, valid=Unknown, fields=(title;video_file)>, 'question_form': <QuestionForm bound=False, valid=Unknown, fields=(title;description)>, 'answer_form': <AnswerForm bound=False, valid=Unknown, fields=(body)>, 'answer_comment_form': <AnswerCommentForm bound=False, valid=Unknown, fields=(body)>, 'comment_form': <CommentForm bound=False, valid=Unknown, fields=(body)>, 'user_following': [], 'user_collections': None, 't': 0, 'v': 0, 'e': 0}] |
self | <ExtendsNode: extends 'base.html'> |
/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py
, line 150, in render
compiled_parent.nodelist.get_nodes_by_type(BlockNode)}
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
with context.render_context.push_state(compiled_parent, isolated_context=False):
return compiled_parent._render(context)…
class IncludeNode(Node):
context_key = '__include_context'
def __init__(self, template, *args, extra_context=None, isolated_context=False, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7fb7a411e340> |
blocks | {'body': <Block Node: body. Contents: [<TextNode: '\n '>]>, 'css': <Block Node: css. Contents: []>, 'js': <Block Node: js. Contents: [<TextNode: '\n'>]>, 'title': <Block Node: title. Contents: []>} |
compiled_parent | <django.template.base.Template object at 0x7fb7a42db9d0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'project': <Project: FastField: An Open-Source Toolbox for Efficient Approximation of Deep Brain Stimulation Electric Fields 917>, 'creater': <User: daniele.proverbio@uni.lu>, 'tags': <QuerySet [<Tag: Neuroscience>, <Tag: Deep Brain Stimulation>, <Tag: 1. Introduction>, <Tag: Toolbox>, <Tag: Neuromodulation>, <Tag: Simulation>, <Tag: Electric Field>, <Tag: Volume Of Tissue Activated>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 875>]>, 'questions': <QuerySet []>, 'comments': <TreeQuerySet []>, 'note_form': <NoteForm bound=False, valid=Unknown, fields=(body)>, 'url_options': ['paper', 'project', 'supplements'], 'related_projects': <QuerySet [<Project: One way to give a talk 214>, <Project: Autoimmunity to extracellular DNA 113>, <Project: How Dinosaur Brains and Bat Noses Can Save the World 223>, <Project: Human T cell subsets in health and diseases 103>, <Project: Modeling the dynamics of mouse iron body distribution: hepcidin is necessary but not sufficient 1032>, <Project: Integrated molecular, clinical, and ontological analysis identifies overlooked disease relationships 318>, <Project: Distinct neural contributions to metacognition for detecting (but not discriminating) visual stimuli 406>, <Project: Very early initiation of antiretroviral therapy that inform HIV cure strategies 105>, <Project: Wearable 3D Machine Knitting 177>, <Project: Mitigación de emisiones de metano en vacuno. 197>]>, 'user_upvoted': False, 'collection_form': <CollectionForm bound=False, valid=Unknown, fields=(name)>, 'custom_url_form': <CustomURLForm bound=False, valid=Unknown, fields=(name;url)>, 'new_author_form': <NewAuthorForm bound=False, valid=Unknown, fields=(first_name;last_name;email)>, 'video_form': <VideoForm bound=False, valid=Unknown, fields=(title;video_file)>, 'question_form': <QuestionForm bound=False, valid=Unknown, fields=(title;description)>, 'answer_form': <AnswerForm bound=False, valid=Unknown, fields=(body)>, 'answer_comment_form': <AnswerCommentForm bound=False, valid=Unknown, fields=(body)>, 'comment_form': <CommentForm bound=False, valid=Unknown, fields=(body)>, 'user_following': [], 'user_collections': None, 't': 0, 'v': 0, 'e': 0}] |
node | <django.template.defaulttags.LoadNode object at 0x7fb7a4b4d520> |
self | <ExtendsNode: extends 'base.html'> |
/usr/local/lib/python3.8/site-packages/django/template/base.py
, line 162, in _render
self.nodelist = self.compile_nodelist()
def __iter__(self):
for node in self.nodelist:
yield from node
def _render(self, context):
return self.nodelist.render(context)…
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'project': <Project: FastField: An Open-Source Toolbox for Efficient Approximation of Deep Brain Stimulation Electric Fields 917>, 'creater': <User: daniele.proverbio@uni.lu>, 'tags': <QuerySet [<Tag: Neuroscience>, <Tag: Deep Brain Stimulation>, <Tag: 1. Introduction>, <Tag: Toolbox>, <Tag: Neuromodulation>, <Tag: Simulation>, <Tag: Electric Field>, <Tag: Volume Of Tissue Activated>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 875>]>, 'questions': <QuerySet []>, 'comments': <TreeQuerySet []>, 'note_form': <NoteForm bound=False, valid=Unknown, fields=(body)>, 'url_options': ['paper', 'project', 'supplements'], 'related_projects': <QuerySet [<Project: One way to give a talk 214>, <Project: Autoimmunity to extracellular DNA 113>, <Project: How Dinosaur Brains and Bat Noses Can Save the World 223>, <Project: Human T cell subsets in health and diseases 103>, <Project: Modeling the dynamics of mouse iron body distribution: hepcidin is necessary but not sufficient 1032>, <Project: Integrated molecular, clinical, and ontological analysis identifies overlooked disease relationships 318>, <Project: Distinct neural contributions to metacognition for detecting (but not discriminating) visual stimuli 406>, <Project: Very early initiation of antiretroviral therapy that inform HIV cure strategies 105>, <Project: Wearable 3D Machine Knitting 177>, <Project: Mitigación de emisiones de metano en vacuno. 197>]>, 'user_upvoted': False, 'collection_form': <CollectionForm bound=False, valid=Unknown, fields=(name)>, 'custom_url_form': <CustomURLForm bound=False, valid=Unknown, fields=(name;url)>, 'new_author_form': <NewAuthorForm bound=False, valid=Unknown, fields=(first_name;last_name;email)>, 'video_form': <VideoForm bound=False, valid=Unknown, fields=(title;video_file)>, 'question_form': <QuestionForm bound=False, valid=Unknown, fields=(title;description)>, 'answer_form': <AnswerForm bound=False, valid=Unknown, fields=(body)>, 'answer_comment_form': <AnswerCommentForm bound=False, valid=Unknown, fields=(body)>, 'comment_form': <CommentForm bound=False, valid=Unknown, fields=(body)>, 'user_following': [], 'user_collections': None, 't': 0, 'v': 0, 'e': 0}] |
self | <django.template.base.Template object at 0x7fb7a42db9d0> |
/usr/local/lib/python3.8/site-packages/django/template/base.py
, line 938, in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('\n' ' </div>\n' ' </ul>\n' ' </nav>\n' '\n' '\n' ' \n' ' ') |
bits | ['', '\n', '', '\n\n<!DOCTYPE html>\n<html lang="en">\n <head>\n <title>', 'FastField: An Open-Source Toolbox for Efficient Approximation of Deep Brain ' 'Stimulation Electric Fields', ' - SciTok</title>\n' ' <meta charset="utf-8">\n' ' <meta name="viewport" content="width=device-width, ' 'initial-scale=1">\n' '\n' ' <!-- Favicon -->\n' ' <link rel="icon" href="', '/static/img/scihub_logo.png', '"/>\n' '\n' ' <!-- Bootstrap CSS -->\n' ' <link rel="stylesheet" ' 'href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">\n' ' <!-- Responsive CSS -->\n' ' <link href="', '/static/css/lib/responsive.css', '" rel="stylesheet">\n' ' <!--FONT AWESOME CSS-->\n' ' <link rel="stylesheet" href="', '/static/css/lib/fontawesome/css/all.css', '">\n' ' <!--Iconify CSS-->\n' ' <script ' 'src="https://code.iconify.design/1/1.0.6/iconify.min.js"></script>\n' ' <!-- <link rel=\'stylesheet\' href="', '/static/css/base.css', '"> -->\n <link rel=\'stylesheet\' href="', '/static/css/base.css', '">\n <link href="', '/static/css/accounts/util.css', '" rel="stylesheet">\n' ' <!-- <script src="https://kit.fontawesome.com/9b1fd1db20.js" ' 'crossorigin="anonymous"></script> -->\n' ' <!--Google Fonts CSS-->\n' ' <link rel="preconnect" href="https://fonts.gstatic.com">\n' ' <link ' 'href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" ' 'rel="stylesheet">\n' ' <!--Jquery-->\n' ' <script ' 'src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>\n' ' <script ' 'src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>\n' ' <script ' 'src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.0-rc.2/jquery-ui.js"></script>\n' '\n' ' <script ' 'src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js" ' 'integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW" ' 'crossorigin="anonymous"></script>\n' ' <script ' 'src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>\n' ' <script ' 'src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>\n' ' \n' ' <!--Google Analytics-->\n' ' <script async ' 'src="https://www.googletagmanager.com/gtag/js?id=G-W2N0ZQ3PKH"></script>\n' ' <script src="https://cdn.lr-ingest.io/LogRocket.min.js" ' 'crossorigin="anonymous"></script>\n' ' <!--LogRocket-->\n' '\n' ' <!--Sortable-->\n' ' <script ' 'src="https://raw.githack.com/SortableJS/Sortable/master/Sortable.js"></script>\n' ' \n' ' <!-- summernote -->\n' ' <link ' 'href="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-lite.min.css" ' 'rel="stylesheet">\n' ' <script ' 'src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-lite.min.js"></script>\n' '\n' ' <script ' 'src="https://cdn.rawgit.com/xcash/bootstrap-autocomplete/3de7ad37/dist/latest/bootstrap-autocomplete.js"></script>\n' ' \n' ' <script type="text/javascript">\n' ' var path = "', '/project/p/8401030a/', '";\n var request_host = "', 'scitok.com', '";\n var request_user = "', 'AnonymousUser', '";\n var request_user_id = "', 'None', '";\n var request_user_email = "', 'None', '";\n var request_user_fullname = "', '', ' ', '', '";\n var csrftoken = \'', 'vEPaNOXeYOwZJGAQ6wWvPNfHbzuLAg4Z4cd0bzwsN7pCgkPYCl9We3u3NeMsxeoO', "';\n" '\n' ' $(document).ready(function(){\n' " if (path=='/project/list/'){\n" ' $("li.nav-text.active").removeClass("active");\n' ' $("#work").addClass("active");\n' " } else if (path.… <trimmed 20871 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'project': <Project: FastField: An Open-Source Toolbox for Efficient Approximation of Deep Brain Stimulation Electric Fields 917>, 'creater': <User: daniele.proverbio@uni.lu>, 'tags': <QuerySet [<Tag: Neuroscience>, <Tag: Deep Brain Stimulation>, <Tag: 1. Introduction>, <Tag: Toolbox>, <Tag: Neuromodulation>, <Tag: Simulation>, <Tag: Electric Field>, <Tag: Volume Of Tissue Activated>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 875>]>, 'questions': <QuerySet []>, 'comments': <TreeQuerySet []>, 'note_form': <NoteForm bound=False, valid=Unknown, fields=(body)>, 'url_options': ['paper', 'project', 'supplements'], 'related_projects': <QuerySet [<Project: One way to give a talk 214>, <Project: Autoimmunity to extracellular DNA 113>, <Project: How Dinosaur Brains and Bat Noses Can Save the World 223>, <Project: Human T cell subsets in health and diseases 103>, <Project: Modeling the dynamics of mouse iron body distribution: hepcidin is necessary but not sufficient 1032>, <Project: Integrated molecular, clinical, and ontological analysis identifies overlooked disease relationships 318>, <Project: Distinct neural contributions to metacognition for detecting (but not discriminating) visual stimuli 406>, <Project: Very early initiation of antiretroviral therapy that inform HIV cure strategies 105>, <Project: Wearable 3D Machine Knitting 177>, <Project: Mitigación de emisiones de metano en vacuno. 197>]>, 'user_upvoted': False, 'collection_form': <CollectionForm bound=False, valid=Unknown, fields=(name)>, 'custom_url_form': <CustomURLForm bound=False, valid=Unknown, fields=(name;url)>, 'new_author_form': <NewAuthorForm bound=False, valid=Unknown, fields=(first_name;last_name;email)>, 'video_form': <VideoForm bound=False, valid=Unknown, fields=(title;video_file)>, 'question_form': <QuestionForm bound=False, valid=Unknown, fields=(title;description)>, 'answer_form': <AnswerForm bound=False, valid=Unknown, fields=(body)>, 'answer_comment_form': <AnswerCommentForm bound=False, valid=Unknown, fields=(body)>, 'comment_form': <CommentForm bound=False, valid=Unknown, fields=(body)>, 'user_following': [], 'user_collections': None, 't': 0, 'v': 0, 'e': 0}] |
node | <Block Node: body. Contents: [<TextNode: '\n '>]> |
self | [<django.template.defaulttags.LoadNode object at 0x7fb7a4b4d520>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7fb7a4b4d430>, <TextNode: '\n\n<!DOCTYPE html>\n<html l'>, <Block Node: title. Contents: []>, <TextNode: ' - SciTok</title>\n '>, <django.templatetags.static.StaticNode object at 0x7fb7a4b4d040>, <TextNode: '"/>\n\n <!-- Bootstr'>, <django.templatetags.static.StaticNode object at 0x7fb7a4b4d2e0>, <TextNode: '" rel="stylesheet">\n '>, <django.templatetags.static.StaticNode object at 0x7fb7a4b4dcd0>, <TextNode: '">\n <!--Iconify CS'>, <django.templatetags.static.StaticNode object at 0x7fb7a4b4dd90>, <TextNode: '"> -->\n <link rel='>, <django.templatetags.static.StaticNode object at 0x7fb7a4b4da00>, <TextNode: '">\n <link href="'>, <django.templatetags.static.StaticNode object at 0x7fb7a4b4db50>, <TextNode: '" rel="stylesheet">\n '>, <Variable Node: request.path>, <TextNode: '";\n var reques'>, <Variable Node: request.get_host>, <TextNode: '";\n var reques'>, <Variable Node: request.user>, <TextNode: '";\n var reques'>, <Variable Node: request.user.id>, <TextNode: '";\n var reques'>, <Variable Node: request.user.id>, <TextNode: '";\n var reques'>, <Variable Node: request.user.first_name>, <TextNode: ' '>, <Variable Node: request.user.last_name>, <TextNode: '";\n var csrfto'>, <Variable Node: csrf_token>, <TextNode: "';\n\n $(documen">, <Block Node: css. Contents: []>, <TextNode: '\n\n </head>\n\n <body>'>, <django.templatetags.static.StaticNode object at 0x7fb7a406f670>, <TextNode: '"></a>\n '>, <django.template.defaulttags.URLNode object at 0x7fb7a406f820>, <TextNode: '">\n '>, <django.templatetags.static.StaticNode object at 0x7fb79e113af0>, <TextNode: '"></a>\n '>, <IfNode>, <TextNode: ' menu" id="menu-projects"'>, <django.template.defaulttags.URLNode object at 0x7fb79e113b50>, <TextNode: '">Q&A</a>\n '>, <IfNode>, <TextNode: ' menu" id="menu-livetalks'>, <django.template.defaulttags.URLNode object at 0x7fb7a4b73ac0>, <TextNode: '">Jobs</a>\n '>, <IfNode>, <TextNode: ' menu" id="menu-hiring_fo'>, <django.template.defaulttags.URLNode object at 0x7fb79deb4f40>, <TextNode: '">Hiring</a>\n '>, <django.template.defaulttags.URLNode object at 0x7fb79deb4820>, <TextNode: '">\n \n'>, <IfNode>, <TextNode: '\n \n '>, <django.templatetags.static.StaticNode object at 0x7fb79c589730>, <TextNode: '"></a>\n '>, <django.template.defaulttags.URLNode object at 0x7fb79c589430>, <TextNode: '" class="menu-logo">\n '>, <django.templatetags.static.StaticNode object at 0x7fb79c589d00>, <TextNode: '"></a>\n '>, <django.template.defaulttags.URLNode object at 0x7fb79c589c40>, <TextNode: '">\n '>, <IfNode>, <TextNode: '>\n '>, <django.templatetags.static.StaticNode object at 0x7fb7a42da9d0>, <TextNode: '">\n '>, <django.templatetags.static.StaticNode object at 0x7fb7a42dac40>, <TextNode: '">\n '>, <django.template.defaulttags.URLNode object at 0x7fb7a42dae50>, <TextNode: '">\n '>, <IfNode>, <TextNode: '>\n '>, <django.templatetags.static.StaticNode object at 0x7fb7a4aed730>, <TextNode: '">\n '>, <django.templatetags.static.StaticNode object at 0x7fb7a4aedb80>, <TextNode: '">\n '>, <IfNode>, <TextNode: '>\n '>, <IfNode>, <TextNode: '>\n '>, <django.templatetags.static.StaticNode object at 0x7fb79c508e80>, <TextNode: '">\n '>, <django.templatetags.static.StaticNode object at 0x7fb7a4a86910>, <TextNode: '">\n '>, <django.template.defaulttags.URLNode object at 0x7fb7a4a864f0>, <TextNode: '" >\… <trimmed 6707 bytes string> |
/usr/local/lib/python3.8/site-packages/django/template/base.py
, line 905, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'project': <Project: FastField: An Open-Source Toolbox for Efficient Approximation of Deep Brain Stimulation Electric Fields 917>, 'creater': <User: daniele.proverbio@uni.lu>, 'tags': <QuerySet [<Tag: Neuroscience>, <Tag: Deep Brain Stimulation>, <Tag: 1. Introduction>, <Tag: Toolbox>, <Tag: Neuromodulation>, <Tag: Simulation>, <Tag: Electric Field>, <Tag: Volume Of Tissue Activated>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 875>]>, 'questions': <QuerySet []>, 'comments': <TreeQuerySet []>, 'note_form': <NoteForm bound=False, valid=Unknown, fields=(body)>, 'url_options': ['paper', 'project', 'supplements'], 'related_projects': <QuerySet [<Project: One way to give a talk 214>, <Project: Autoimmunity to extracellular DNA 113>, <Project: How Dinosaur Brains and Bat Noses Can Save the World 223>, <Project: Human T cell subsets in health and diseases 103>, <Project: Modeling the dynamics of mouse iron body distribution: hepcidin is necessary but not sufficient 1032>, <Project: Integrated molecular, clinical, and ontological analysis identifies overlooked disease relationships 318>, <Project: Distinct neural contributions to metacognition for detecting (but not discriminating) visual stimuli 406>, <Project: Very early initiation of antiretroviral therapy that inform HIV cure strategies 105>, <Project: Wearable 3D Machine Knitting 177>, <Project: Mitigación de emisiones de metano en vacuno. 197>]>, 'user_upvoted': False, 'collection_form': <CollectionForm bound=False, valid=Unknown, fields=(name)>, 'custom_url_form': <CustomURLForm bound=False, valid=Unknown, fields=(name;url)>, 'new_author_form': <NewAuthorForm bound=False, valid=Unknown, fields=(first_name;last_name;email)>, 'video_form': <VideoForm bound=False, valid=Unknown, fields=(title;video_file)>, 'question_form': <QuestionForm bound=False, valid=Unknown, fields=(title;description)>, 'answer_form': <AnswerForm bound=False, valid=Unknown, fields=(body)>, 'answer_comment_form': <AnswerCommentForm bound=False, valid=Unknown, fields=(body)>, 'comment_form': <CommentForm bound=False, valid=Unknown, fields=(body)>, 'user_following': [], 'user_collections': None, 't': 0, 'v': 0, 'e': 0}] |
self | <Block Node: body. Contents: [<TextNode: '\n '>]> |
/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py
, line 62, in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)…
if push is not None:
block_context.push(self.name, push)
return result
def super(self):
if not hasattr(self, 'context'):
Variable | Value |
---|---|
block | <Block Node: body. Contents: [<TextNode: '\n\n'>, <django.template.loader_tags.IncludeNode object at 0x7fb7a42cb9d0>, <TextNode: '\n'>, <django.template.loader_tags.IncludeNode object at 0x7fb7a42cb1f0>, <TextNode: '\n\n<div class="container-f'>, <Variable Node: videos|url_of_videos:v>, <TextNode: '" type=\'video/mp4\' />\n '>, <Variable Node: videos|url_of_videos:v>, <TextNode: '" type=\'video/mp4\' />\n '>, <django.templatetags.static.StaticNode object at 0x7fb7a4ac9b20>, <TextNode: '" alt="logo">\n <vi'>, <Variable Node: videos|url_of_videos:v>, <TextNode: '" type=\'video/mp4\' codecs'>, <Variable Node: videos|url_of_videos:v>, <TextNode: '" type=\'video/mp4\' />\n <'>, <Variable Node: videos.0.video_url>, <TextNode: '\' type="video/mp4" />\n '>, <Variable Node: project.url_handle>, <TextNode: '">'>, <Variable Node: project.title>, <TextNode: '</h1>\n </div>\n '>, <Variable Node: project.view_count|intcomma>, <TextNode: ' views • '>, <Variable Node: project.created_at|date:"M j, Y">, <TextNode: '\n </h5>\n <d'>, <IfNode>, <TextNode: '\n <div class'>, <IfNode>, <TextNode: '\n '>, <IfEqualNode>, <TextNode: '\n onmouseo'>, <IfEqualNode>, <TextNode: '></span-->\n '>, <django.templatetags.static.StaticNode object at 0x7fb7a4ae2280>, <TextNode: '" '>, <IfEqualNode>, <TextNode: '>\n <!--spa'>, <IfEqualNode>, <TextNode: '></span-->\n '>, <django.templatetags.static.StaticNode object at 0x7fb7a4a71640>, <TextNode: '" '>, <IfEqualNode>, <TextNode: '>\n <span c'>, <IfEqualNode>, <TextNode: '>'>, <Variable Node: project.vote_count|number_formatted>, <TextNode: '</span>\n </d'>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n\n onmouse'>, <django.templatetags.static.StaticNode object at 0x7fb7a4abb760>, <TextNode: '" id="save" '>, <IfNode>, <TextNode: '>\n <img sr'>, <django.templatetags.static.StaticNode object at 0x7fb7a4abbd90>, <TextNode: '" id="saved" '>, <IfNode>, <TextNode: '>\n <span c'>, <IfNode>, <TextNode: '>Save'>, <IfNode>, <TextNode: '</span>\n </d'>, <django.templatetags.static.StaticNode object at 0x7fb7a49bdc70>, <TextNode: '">\n <span '>, <django.templatetags.static.StaticNode object at 0x7fb7a49bdd00>, <TextNode: '">\n <span '>, <django.templatetags.static.StaticNode object at 0x7fb7a49bd610>, <TextNode: '">\n </div>\n '>, <django.templatetags.static.StaticNode object at 0x7fb7a49bdb20>, <TextNode: '">\n </div>\n\n '>, <ForNode: for author in project|order_project_authors, tail_len: 23>, <TextNode: '\n </div>\n '>, <Variable Node: project.url_handle>, <TextNode: '\' class="row mt-3 mb-3 au'>, <ForNode: for author in project|order_project_authors, tail_len: 9>, <TextNode: '\n </select>\n '>, <ForNode: for video in project|project_videos, tail_len: 13>, <TextNode: '\n '>, <ForNode: for custom_url in project|project_custom_urls, tail_len: 5>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n </div>\n <'>, <Variable Node: project.url_handle>, <TextNode: '">\n <p class="bo'>, <Variable Node: project.description|video_timestamp:project.url_handle>, <TextNode: '</p>\n </div>\n\n '>, <ForNode: for tag in tags, tail_len: 7>, <TextNode: '\n </div>\n </d'>, <Variable Node: questions.count>, <TextNode: ' Question'>, <IfNode>, <TextNode: '</a>\n <a class="'>, <Variable Node: comments.count>, <TextNode: ' Comment'>, <IfNode>, <TextNode: '</a>\n <a class="'>, <IfNode>, <TextNode: '\n </div>\n '>, <django.template.defaulttags.CsrfTokenNode object at 0x7fb79de55340>, <TextNode: '\n <div '>, <IfNode>, <TextNode: '>\n '>, <Variable Node: question_form.title>, <TextNode: '\n '>, <Variable Node: question_form.description>, <TextNode: '\n </div>\n '>, <I… <trimmed 8307 bytes string> |
block_context | <django.template.loader_tags.BlockContext object at 0x7fb7a411e340> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'project': <Project: FastField: An Open-Source Toolbox for Efficient Approximation of Deep Brain Stimulation Electric Fields 917>, 'creater': <User: daniele.proverbio@uni.lu>, 'tags': <QuerySet [<Tag: Neuroscience>, <Tag: Deep Brain Stimulation>, <Tag: 1. Introduction>, <Tag: Toolbox>, <Tag: Neuromodulation>, <Tag: Simulation>, <Tag: Electric Field>, <Tag: Volume Of Tissue Activated>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 875>]>, 'questions': <QuerySet []>, 'comments': <TreeQuerySet []>, 'note_form': <NoteForm bound=False, valid=Unknown, fields=(body)>, 'url_options': ['paper', 'project', 'supplements'], 'related_projects': <QuerySet [<Project: One way to give a talk 214>, <Project: Autoimmunity to extracellular DNA 113>, <Project: How Dinosaur Brains and Bat Noses Can Save the World 223>, <Project: Human T cell subsets in health and diseases 103>, <Project: Modeling the dynamics of mouse iron body distribution: hepcidin is necessary but not sufficient 1032>, <Project: Integrated molecular, clinical, and ontological analysis identifies overlooked disease relationships 318>, <Project: Distinct neural contributions to metacognition for detecting (but not discriminating) visual stimuli 406>, <Project: Very early initiation of antiretroviral therapy that inform HIV cure strategies 105>, <Project: Wearable 3D Machine Knitting 177>, <Project: Mitigación de emisiones de metano en vacuno. 197>]>, 'user_upvoted': False, 'collection_form': <CollectionForm bound=False, valid=Unknown, fields=(name)>, 'custom_url_form': <CustomURLForm bound=False, valid=Unknown, fields=(name;url)>, 'new_author_form': <NewAuthorForm bound=False, valid=Unknown, fields=(first_name;last_name;email)>, 'video_form': <VideoForm bound=False, valid=Unknown, fields=(title;video_file)>, 'question_form': <QuestionForm bound=False, valid=Unknown, fields=(title;description)>, 'answer_form': <AnswerForm bound=False, valid=Unknown, fields=(body)>, 'answer_comment_form': <AnswerCommentForm bound=False, valid=Unknown, fields=(body)>, 'comment_form': <CommentForm bound=False, valid=Unknown, fields=(body)>, 'user_following': [], 'user_collections': None, 't': 0, 'v': 0, 'e': 0}] |
push | <Block Node: body. Contents: [<TextNode: '\n\n'>, <django.template.loader_tags.IncludeNode object at 0x7fb7a42cb9d0>, <TextNode: '\n'>, <django.template.loader_tags.IncludeNode object at 0x7fb7a42cb1f0>, <TextNode: '\n\n<div class="container-f'>, <Variable Node: videos|url_of_videos:v>, <TextNode: '" type=\'video/mp4\' />\n '>, <Variable Node: videos|url_of_videos:v>, <TextNode: '" type=\'video/mp4\' />\n '>, <django.templatetags.static.StaticNode object at 0x7fb7a4ac9b20>, <TextNode: '" alt="logo">\n <vi'>, <Variable Node: videos|url_of_videos:v>, <TextNode: '" type=\'video/mp4\' codecs'>, <Variable Node: videos|url_of_videos:v>, <TextNode: '" type=\'video/mp4\' />\n <'>, <Variable Node: videos.0.video_url>, <TextNode: '\' type="video/mp4" />\n '>, <Variable Node: project.url_handle>, <TextNode: '">'>, <Variable Node: project.title>, <TextNode: '</h1>\n </div>\n '>, <Variable Node: project.view_count|intcomma>, <TextNode: ' views • '>, <Variable Node: project.created_at|date:"M j, Y">, <TextNode: '\n </h5>\n <d'>, <IfNode>, <TextNode: '\n <div class'>, <IfNode>, <TextNode: '\n '>, <IfEqualNode>, <TextNode: '\n onmouseo'>, <IfEqualNode>, <TextNode: '></span-->\n '>, <django.templatetags.static.StaticNode object at 0x7fb7a4ae2280>, <TextNode: '" '>, <IfEqualNode>, <TextNode: '>\n <!--spa'>, <IfEqualNode>, <TextNode: '></span-->\n '>, <django.templatetags.static.StaticNode object at 0x7fb7a4a71640>, <TextNode: '" '>, <IfEqualNode>, <TextNode: '>\n <span c'>, <IfEqualNode>, <TextNode: '>'>, <Variable Node: project.vote_count|number_formatted>, <TextNode: '</span>\n </d'>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n\n onmouse'>, <django.templatetags.static.StaticNode object at 0x7fb7a4abb760>, <TextNode: '" id="save" '>, <IfNode>, <TextNode: '>\n <img sr'>, <django.templatetags.static.StaticNode object at 0x7fb7a4abbd90>, <TextNode: '" id="saved" '>, <IfNode>, <TextNode: '>\n <span c'>, <IfNode>, <TextNode: '>Save'>, <IfNode>, <TextNode: '</span>\n </d'>, <django.templatetags.static.StaticNode object at 0x7fb7a49bdc70>, <TextNode: '">\n <span '>, <django.templatetags.static.StaticNode object at 0x7fb7a49bdd00>, <TextNode: '">\n <span '>, <django.templatetags.static.StaticNode object at 0x7fb7a49bd610>, <TextNode: '">\n </div>\n '>, <django.templatetags.static.StaticNode object at 0x7fb7a49bdb20>, <TextNode: '">\n </div>\n\n '>, <ForNode: for author in project|order_project_authors, tail_len: 23>, <TextNode: '\n </div>\n '>, <Variable Node: project.url_handle>, <TextNode: '\' class="row mt-3 mb-3 au'>, <ForNode: for author in project|order_project_authors, tail_len: 9>, <TextNode: '\n </select>\n '>, <ForNode: for video in project|project_videos, tail_len: 13>, <TextNode: '\n '>, <ForNode: for custom_url in project|project_custom_urls, tail_len: 5>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n </div>\n <'>, <Variable Node: project.url_handle>, <TextNode: '">\n <p class="bo'>, <Variable Node: project.description|video_timestamp:project.url_handle>, <TextNode: '</p>\n </div>\n\n '>, <ForNode: for tag in tags, tail_len: 7>, <TextNode: '\n </div>\n </d'>, <Variable Node: questions.count>, <TextNode: ' Question'>, <IfNode>, <TextNode: '</a>\n <a class="'>, <Variable Node: comments.count>, <TextNode: ' Comment'>, <IfNode>, <TextNode: '</a>\n <a class="'>, <IfNode>, <TextNode: '\n </div>\n '>, <django.template.defaulttags.CsrfTokenNode object at 0x7fb79de55340>, <TextNode: '\n <div '>, <IfNode>, <TextNode: '>\n '>, <Variable Node: question_form.title>, <TextNode: '\n '>, <Variable Node: question_form.description>, <TextNode: '\n </div>\n '>, <I… <trimmed 8307 bytes string> |
self | <Block Node: body. Contents: [<TextNode: '\n '>]> |
/usr/local/lib/python3.8/site-packages/django/template/base.py
, line 938, in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '</p>\n </div>\n\n <div class="row mt-3 mb-3">\n ' |
bits | ['\n\n', '<script type="text/javascript">\n' ' $(document).ready(function(){\n' " $('#logged-out-modal').on('show.bs.modal', function (event) {\n" ' var button = $(event.relatedTarget); // Button that triggered the ' 'modal\n' " var data_html = button.attr('data-html');\n" " var data_img = button.attr('data-img');\n" ' var modal = $(this);\n' " modal.find('.modal-body p').html(data_html);\n" ' modal.find(\'.modal-body img\').attr("src",data_img);\n' ' })\n' ' });\n' '</script>\n' ' \n' '<div class="modal fade" id="logged-out-modal" tabindex="-1" role="dialog" ' 'aria-hidden="true">\n' ' <div class="modal-dialog modal-dialog-centered" role="document">\n' ' <div class="modal-content">\n' ' <div class="modal-header">\n' ' <h5 class="modal-title header-1 text-center w-100">Hey there 👋</h5>\n' ' <button type="button" class="close" data-dismiss="modal" ' 'aria-label="Close">\n' ' <span aria-hidden="true">×</span>\n' ' </button>\n' ' </div>\n' ' <div class="modal-body">\n' ' <p class="body-1"></p>\n' ' <img>\n' ' </div>\n' ' <div class="modal-footer">\n' ' <a class="normal-btn active" href="/accounts/signup" ' 'target="_blank">Create Account</a>\n' ' <a class="normal-btn" href="/accounts/login" target="_blank">Log ' 'In</a>\n' ' <button type="button" class="normal-btn" data-dismiss="modal">Maybe ' 'later</button>\n' ' </div>\n' ' </div>\n' ' </div>\n' '</div>', '\n', '<div id="loadingModal" class="modal" data-backdrop="static" ' 'data-keyboard="false">\n' ' <div class="modal-dialog">\n' ' <div class="modal-content">\n' ' <div class="modal-header">\n' ' <h1>Processing...</h1>\n' ' <!-- <h2>Video uploading may take several minutes.</h2> -->\n' ' </div>\n' ' <div class="modal-body">\n' ' <div class="progress progress-striped active">\n' ' <div class="progress-bar" style="width: 100%;"></div>\n' ' </div>\n' ' </div>\n' ' </div><!-- /.modal-content -->\n' ' </div><!-- /.modal-dialog -->\n' '</div><!-- /.modal -->', '\n' '\n' '<div class="container-fluid pt-3 px-0 pb-3 d-block mx-auto" ' 'id="body-container">\n' ' <div id="adjuster"></div>\n' ' <div class="row">\n' ' <div class="col-9">\n' '\n' ' <div id="video-wrapper">\n' ' <video id="video" class=\'w-100 video-js vjs-default-skin\' controls ' 'autoplay="autoplay" data-setup=\'{ "playbackRates": [0.5, 1, 1.5, 2] }\'>\n' ' <source id=\'video_source\' src="', 'https://scitok.s3-us-west-1.amazonaws.com/user_7157/project/917/video/875/875.Video ' 'Abstract (AI generated)', '" type=\'video/mp4\' />\n' ' Your browser does not support HTML5 video.\n' ' </video>\n' ' </div>\n' '<!-- <div id="video-wrapper">\n' ' <video id="video" class=\'w-100\' controls autoplay="autoplay" src="', 'https://scitok.s3-us-west-1.amazonaws.com/user_7157/project/917/video/875/875.Video ' 'Abstract (AI generated)', '" type=\'video/mp4\' />\n' ' Your browser does not support HTML5 video.\n' ' </video>\n' ' </div> -->\n' '<!-- !working <div id="video-wrapper">\n' ' <img src="', '/static/img/logo-watermark.png', '" alt="logo">\n' ' <video id="video" class=\'w-100\' controls controlsList="nodownload" ' 'autoplay="autoplay" />\n' ' <source id="video-source" src="', 'https://scitok.s3-us-west-1.amazonaws.com/user_7157/project/917/video/875/875.Video ' 'Abstract (AI generated)', '" type=\'video/mp4\' codecs="avc1.4d002a, mp4a.40.2">\n' ' Your browser does not support HTML5 video.\n' ' </video>\n' ' </div> -->\n' '<!-- <video id="example_video_1" class="video-js vjs-default-skin" ' 'controls preload="none" width="640" height="264"\n' ' data-setup="{}">\n' ' <source src="', 'https://scitok.s3-us-west-1.amazonaws.com/user_7157/project/917/video/875/875.Video ' 'Abstract (AI g… <trimmed 34118 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'project': <Project: FastField: An Open-Source Toolbox for Efficient Approximation of Deep Brain Stimulation Electric Fields 917>, 'creater': <User: daniele.proverbio@uni.lu>, 'tags': <QuerySet [<Tag: Neuroscience>, <Tag: Deep Brain Stimulation>, <Tag: 1. Introduction>, <Tag: Toolbox>, <Tag: Neuromodulation>, <Tag: Simulation>, <Tag: Electric Field>, <Tag: Volume Of Tissue Activated>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 875>]>, 'questions': <QuerySet []>, 'comments': <TreeQuerySet []>, 'note_form': <NoteForm bound=False, valid=Unknown, fields=(body)>, 'url_options': ['paper', 'project', 'supplements'], 'related_projects': <QuerySet [<Project: One way to give a talk 214>, <Project: Autoimmunity to extracellular DNA 113>, <Project: How Dinosaur Brains and Bat Noses Can Save the World 223>, <Project: Human T cell subsets in health and diseases 103>, <Project: Modeling the dynamics of mouse iron body distribution: hepcidin is necessary but not sufficient 1032>, <Project: Integrated molecular, clinical, and ontological analysis identifies overlooked disease relationships 318>, <Project: Distinct neural contributions to metacognition for detecting (but not discriminating) visual stimuli 406>, <Project: Very early initiation of antiretroviral therapy that inform HIV cure strategies 105>, <Project: Wearable 3D Machine Knitting 177>, <Project: Mitigación de emisiones de metano en vacuno. 197>]>, 'user_upvoted': False, 'collection_form': <CollectionForm bound=False, valid=Unknown, fields=(name)>, 'custom_url_form': <CustomURLForm bound=False, valid=Unknown, fields=(name;url)>, 'new_author_form': <NewAuthorForm bound=False, valid=Unknown, fields=(first_name;last_name;email)>, 'video_form': <VideoForm bound=False, valid=Unknown, fields=(title;video_file)>, 'question_form': <QuestionForm bound=False, valid=Unknown, fields=(title;description)>, 'answer_form': <AnswerForm bound=False, valid=Unknown, fields=(body)>, 'answer_comment_form': <AnswerCommentForm bound=False, valid=Unknown, fields=(body)>, 'comment_form': <CommentForm bound=False, valid=Unknown, fields=(body)>, 'user_following': [], 'user_collections': None, 't': 0, 'v': 0, 'e': 0}] |
node | <ForNode: for tag in tags, tail_len: 7> |
self | [<TextNode: '\n\n'>, <django.template.loader_tags.IncludeNode object at 0x7fb7a42cb9d0>, <TextNode: '\n'>, <django.template.loader_tags.IncludeNode object at 0x7fb7a42cb1f0>, <TextNode: '\n\n<div class="container-f'>, <Variable Node: videos|url_of_videos:v>, <TextNode: '" type=\'video/mp4\' />\n '>, <Variable Node: videos|url_of_videos:v>, <TextNode: '" type=\'video/mp4\' />\n '>, <django.templatetags.static.StaticNode object at 0x7fb7a4ac9b20>, <TextNode: '" alt="logo">\n <vi'>, <Variable Node: videos|url_of_videos:v>, <TextNode: '" type=\'video/mp4\' codecs'>, <Variable Node: videos|url_of_videos:v>, <TextNode: '" type=\'video/mp4\' />\n <'>, <Variable Node: videos.0.video_url>, <TextNode: '\' type="video/mp4" />\n '>, <Variable Node: project.url_handle>, <TextNode: '">'>, <Variable Node: project.title>, <TextNode: '</h1>\n </div>\n '>, <Variable Node: project.view_count|intcomma>, <TextNode: ' views • '>, <Variable Node: project.created_at|date:"M j, Y">, <TextNode: '\n </h5>\n <d'>, <IfNode>, <TextNode: '\n <div class'>, <IfNode>, <TextNode: '\n '>, <IfEqualNode>, <TextNode: '\n onmouseo'>, <IfEqualNode>, <TextNode: '></span-->\n '>, <django.templatetags.static.StaticNode object at 0x7fb7a4ae2280>, <TextNode: '" '>, <IfEqualNode>, <TextNode: '>\n <!--spa'>, <IfEqualNode>, <TextNode: '></span-->\n '>, <django.templatetags.static.StaticNode object at 0x7fb7a4a71640>, <TextNode: '" '>, <IfEqualNode>, <TextNode: '>\n <span c'>, <IfEqualNode>, <TextNode: '>'>, <Variable Node: project.vote_count|number_formatted>, <TextNode: '</span>\n </d'>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n\n onmouse'>, <django.templatetags.static.StaticNode object at 0x7fb7a4abb760>, <TextNode: '" id="save" '>, <IfNode>, <TextNode: '>\n <img sr'>, <django.templatetags.static.StaticNode object at 0x7fb7a4abbd90>, <TextNode: '" id="saved" '>, <IfNode>, <TextNode: '>\n <span c'>, <IfNode>, <TextNode: '>Save'>, <IfNode>, <TextNode: '</span>\n </d'>, <django.templatetags.static.StaticNode object at 0x7fb7a49bdc70>, <TextNode: '">\n <span '>, <django.templatetags.static.StaticNode object at 0x7fb7a49bdd00>, <TextNode: '">\n <span '>, <django.templatetags.static.StaticNode object at 0x7fb7a49bd610>, <TextNode: '">\n </div>\n '>, <django.templatetags.static.StaticNode object at 0x7fb7a49bdb20>, <TextNode: '">\n </div>\n\n '>, <ForNode: for author in project|order_project_authors, tail_len: 23>, <TextNode: '\n </div>\n '>, <Variable Node: project.url_handle>, <TextNode: '\' class="row mt-3 mb-3 au'>, <ForNode: for author in project|order_project_authors, tail_len: 9>, <TextNode: '\n </select>\n '>, <ForNode: for video in project|project_videos, tail_len: 13>, <TextNode: '\n '>, <ForNode: for custom_url in project|project_custom_urls, tail_len: 5>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n </div>\n <'>, <Variable Node: project.url_handle>, <TextNode: '">\n <p class="bo'>, <Variable Node: project.description|video_timestamp:project.url_handle>, <TextNode: '</p>\n </div>\n\n '>, <ForNode: for tag in tags, tail_len: 7>, <TextNode: '\n </div>\n </d'>, <Variable Node: questions.count>, <TextNode: ' Question'>, <IfNode>, <TextNode: '</a>\n <a class="'>, <Variable Node: comments.count>, <TextNode: ' Comment'>, <IfNode>, <TextNode: '</a>\n <a class="'>, <IfNode>, <TextNode: '\n </div>\n '>, <django.template.defaulttags.CsrfTokenNode object at 0x7fb79de55340>, <TextNode: '\n <div '>, <IfNode>, <TextNode: '>\n '>, <Variable Node: question_form.title>, <TextNode: '\n '>, <Variable Nod… <trimmed 8491 bytes string> |
/usr/local/lib/python3.8/site-packages/django/template/base.py
, line 905, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'project': <Project: FastField: An Open-Source Toolbox for Efficient Approximation of Deep Brain Stimulation Electric Fields 917>, 'creater': <User: daniele.proverbio@uni.lu>, 'tags': <QuerySet [<Tag: Neuroscience>, <Tag: Deep Brain Stimulation>, <Tag: 1. Introduction>, <Tag: Toolbox>, <Tag: Neuromodulation>, <Tag: Simulation>, <Tag: Electric Field>, <Tag: Volume Of Tissue Activated>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 875>]>, 'questions': <QuerySet []>, 'comments': <TreeQuerySet []>, 'note_form': <NoteForm bound=False, valid=Unknown, fields=(body)>, 'url_options': ['paper', 'project', 'supplements'], 'related_projects': <QuerySet [<Project: One way to give a talk 214>, <Project: Autoimmunity to extracellular DNA 113>, <Project: How Dinosaur Brains and Bat Noses Can Save the World 223>, <Project: Human T cell subsets in health and diseases 103>, <Project: Modeling the dynamics of mouse iron body distribution: hepcidin is necessary but not sufficient 1032>, <Project: Integrated molecular, clinical, and ontological analysis identifies overlooked disease relationships 318>, <Project: Distinct neural contributions to metacognition for detecting (but not discriminating) visual stimuli 406>, <Project: Very early initiation of antiretroviral therapy that inform HIV cure strategies 105>, <Project: Wearable 3D Machine Knitting 177>, <Project: Mitigación de emisiones de metano en vacuno. 197>]>, 'user_upvoted': False, 'collection_form': <CollectionForm bound=False, valid=Unknown, fields=(name)>, 'custom_url_form': <CustomURLForm bound=False, valid=Unknown, fields=(name;url)>, 'new_author_form': <NewAuthorForm bound=False, valid=Unknown, fields=(first_name;last_name;email)>, 'video_form': <VideoForm bound=False, valid=Unknown, fields=(title;video_file)>, 'question_form': <QuestionForm bound=False, valid=Unknown, fields=(title;description)>, 'answer_form': <AnswerForm bound=False, valid=Unknown, fields=(body)>, 'answer_comment_form': <AnswerCommentForm bound=False, valid=Unknown, fields=(body)>, 'comment_form': <CommentForm bound=False, valid=Unknown, fields=(body)>, 'user_following': [], 'user_collections': None, 't': 0, 'v': 0, 'e': 0}] |
self | <ForNode: for tag in tags, tail_len: 7> |
/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py
, line 211, in render
unpacked_vars = dict(zip(self.loopvars, item))
pop_context = True
context.update(unpacked_vars)
else:
context[self.loopvars[0]] = item
for node in self.nodelist_loop:
nodelist.append(node.render_annotated(context))…
if pop_context:
# Pop the loop variables pushed on to the context to avoid
# the context ending up in an inconsistent state when other
# tags (e.g., include and with) push data to context.
context.pop()
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'project': <Project: FastField: An Open-Source Toolbox for Efficient Approximation of Deep Brain Stimulation Electric Fields 917>, 'creater': <User: daniele.proverbio@uni.lu>, 'tags': <QuerySet [<Tag: Neuroscience>, <Tag: Deep Brain Stimulation>, <Tag: 1. Introduction>, <Tag: Toolbox>, <Tag: Neuromodulation>, <Tag: Simulation>, <Tag: Electric Field>, <Tag: Volume Of Tissue Activated>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 875>]>, 'questions': <QuerySet []>, 'comments': <TreeQuerySet []>, 'note_form': <NoteForm bound=False, valid=Unknown, fields=(body)>, 'url_options': ['paper', 'project', 'supplements'], 'related_projects': <QuerySet [<Project: One way to give a talk 214>, <Project: Autoimmunity to extracellular DNA 113>, <Project: How Dinosaur Brains and Bat Noses Can Save the World 223>, <Project: Human T cell subsets in health and diseases 103>, <Project: Modeling the dynamics of mouse iron body distribution: hepcidin is necessary but not sufficient 1032>, <Project: Integrated molecular, clinical, and ontological analysis identifies overlooked disease relationships 318>, <Project: Distinct neural contributions to metacognition for detecting (but not discriminating) visual stimuli 406>, <Project: Very early initiation of antiretroviral therapy that inform HIV cure strategies 105>, <Project: Wearable 3D Machine Knitting 177>, <Project: Mitigación de emisiones de metano en vacuno. 197>]>, 'user_upvoted': False, 'collection_form': <CollectionForm bound=False, valid=Unknown, fields=(name)>, 'custom_url_form': <CustomURLForm bound=False, valid=Unknown, fields=(name;url)>, 'new_author_form': <NewAuthorForm bound=False, valid=Unknown, fields=(first_name;last_name;email)>, 'video_form': <VideoForm bound=False, valid=Unknown, fields=(title;video_file)>, 'question_form': <QuestionForm bound=False, valid=Unknown, fields=(title;description)>, 'answer_form': <AnswerForm bound=False, valid=Unknown, fields=(body)>, 'answer_comment_form': <AnswerCommentForm bound=False, valid=Unknown, fields=(body)>, 'comment_form': <CommentForm bound=False, valid=Unknown, fields=(body)>, 'user_following': [], 'user_collections': None, 't': 0, 'v': 0, 'e': 0}] |
i | 6 |
item | <Tag: Electric Field> |
len_values | 8 |
loop_dict | {'counter': 7, 'counter0': 6, 'first': False, 'last': False, 'parentloop': {}, 'revcounter': 2, 'revcounter0': 1} |
node | <django.template.defaulttags.URLNode object at 0x7fb7a4d47430> |
nodelist | ['\n <div class="tag-container">\n <a class="tag" href="', '/tag/neuroscience/', '">', 'Neuroscience', '</a>\n <div class="tag-card">\n ', '\n' '\n' '<span class="tag-name header-1 m-r-20"><a ' 'href="/tag/neuroscience/">Neuroscience</a></span>\n' '<button class="follow-tag normal-btn float-right" id="follow-tag-122" ' 'value="122" \n' '\n' ' data-toggle="modal" data-target="#logged-out-modal" data-html="Create ' '<strong>an account</strong> to get the latest updates on Neuroscience." ' 'data-img="/static/img/illustrations/illu-3.png" >Follow</button>\n' '<button class="unfollow-tag normal-btn float-right active" ' 'id="unfollow-tag-122" value="122" style="width: 100px" ' 'hidden><span>Following</span></button>\n' '<span class="tag-num-projects subheader-1 row m-t-7">179 Projects</span>\n', '\n </div>\n </div>\n ', '\n <div class="tag-container">\n <a class="tag" href="', '/tag/deep-brain-stimulation/', '">', 'Deep Brain Stimulation', '</a>\n <div class="tag-card">\n ', '\n' '\n' '<span class="tag-name header-1 m-r-20"><a ' 'href="/tag/deep-brain-stimulation/">Deep Brain Stimulation</a></span>\n' '<button class="follow-tag normal-btn float-right" id="follow-tag-304" ' 'value="304" \n' '\n' ' data-toggle="modal" data-target="#logged-out-modal" data-html="Create ' '<strong>an account</strong> to get the latest updates on Deep Brain ' 'Stimulation." data-img="/static/img/illustrations/illu-3.png" ' '>Follow</button>\n' '<button class="unfollow-tag normal-btn float-right active" ' 'id="unfollow-tag-304" value="304" style="width: 100px" ' 'hidden><span>Following</span></button>\n' '<span class="tag-num-projects subheader-1 row m-t-7">2 Projects</span>\n', '\n </div>\n </div>\n ', '\n <div class="tag-container">\n <a class="tag" href="', '/tag/1-introduction/', '">', '1. Introduction', '</a>\n <div class="tag-card">\n ', '\n' '\n' '<span class="tag-name header-1 m-r-20"><a href="/tag/1-introduction/">1. ' 'Introduction</a></span>\n' '<button class="follow-tag normal-btn float-right" id="follow-tag-435" ' 'value="435" \n' '\n' ' data-toggle="modal" data-target="#logged-out-modal" data-html="Create ' '<strong>an account</strong> to get the latest updates on 1. Introduction." ' 'data-img="/static/img/illustrations/illu-3.png" >Follow</button>\n' '<button class="unfollow-tag normal-btn float-right active" ' 'id="unfollow-tag-435" value="435" style="width: 100px" ' 'hidden><span>Following</span></button>\n' '<span class="tag-num-projects subheader-1 row m-t-7">8 Projects</span>\n', '\n </div>\n </div>\n ', '\n <div class="tag-container">\n <a class="tag" href="', '/tag/toolbox/', '">', 'Toolbox', '</a>\n <div class="tag-card">\n ', '\n' '\n' '<span class="tag-name header-1 m-r-20"><a ' 'href="/tag/toolbox/">Toolbox</a></span>\n' '<button class="follow-tag normal-btn float-right" id="follow-tag-1228" ' 'value="1228" \n' '\n' ' data-toggle="modal" data-target="#logged-out-modal" data-html="Create ' '<strong>an account</strong> to get the latest updates on Toolbox." ' 'data-img="/static/img/illustrations/illu-3.png" >Follow</button>\n' '<button class="unfollow-tag normal-btn float-right active" ' 'id="unfollow-tag-1228" value="1228" style="width: 100px" ' 'hidden><span>Following</span></button>\n' '<span class="tag-num-projects subheader-1 row m-t-7">1 Project</span>\n', '\n </div>\n </div>\n ', '\n <div class="tag-container">\n <a class="tag" href="', '/tag/neuromodulation/', '">', 'Neuromodulation', '</a>\n <div class="tag-card">\n ', '\n' '\n' '<span class="tag-name header-1 m-r-20"><a ' 'href="/tag/neuromodulation/">Neuromodulation</a></span>\n' '<button class="follow-tag normal-btn float-right" id="follow-tag-12… <trimmed 5639 bytes string> |
num_loopvars | 1 |
parentloop | {} |
pop_context | False |
self | <ForNode: for tag in tags, tail_len: 7> |
unpack | False |
values | <QuerySet [<Tag: Neuroscience>, <Tag: Deep Brain Stimulation>, <Tag: 1. Introduction>, <Tag: Toolbox>, <Tag: Neuromodulation>, <Tag: Simulation>, <Tag: Electric Field>, <Tag: Volume Of Tissue Activated>]> |
/usr/local/lib/python3.8/site-packages/django/template/base.py
, line 905, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'project': <Project: FastField: An Open-Source Toolbox for Efficient Approximation of Deep Brain Stimulation Electric Fields 917>, 'creater': <User: daniele.proverbio@uni.lu>, 'tags': <QuerySet [<Tag: Neuroscience>, <Tag: Deep Brain Stimulation>, <Tag: 1. Introduction>, <Tag: Toolbox>, <Tag: Neuromodulation>, <Tag: Simulation>, <Tag: Electric Field>, <Tag: Volume Of Tissue Activated>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 875>]>, 'questions': <QuerySet []>, 'comments': <TreeQuerySet []>, 'note_form': <NoteForm bound=False, valid=Unknown, fields=(body)>, 'url_options': ['paper', 'project', 'supplements'], 'related_projects': <QuerySet [<Project: One way to give a talk 214>, <Project: Autoimmunity to extracellular DNA 113>, <Project: How Dinosaur Brains and Bat Noses Can Save the World 223>, <Project: Human T cell subsets in health and diseases 103>, <Project: Modeling the dynamics of mouse iron body distribution: hepcidin is necessary but not sufficient 1032>, <Project: Integrated molecular, clinical, and ontological analysis identifies overlooked disease relationships 318>, <Project: Distinct neural contributions to metacognition for detecting (but not discriminating) visual stimuli 406>, <Project: Very early initiation of antiretroviral therapy that inform HIV cure strategies 105>, <Project: Wearable 3D Machine Knitting 177>, <Project: Mitigación de emisiones de metano en vacuno. 197>]>, 'user_upvoted': False, 'collection_form': <CollectionForm bound=False, valid=Unknown, fields=(name)>, 'custom_url_form': <CustomURLForm bound=False, valid=Unknown, fields=(name;url)>, 'new_author_form': <NewAuthorForm bound=False, valid=Unknown, fields=(first_name;last_name;email)>, 'video_form': <VideoForm bound=False, valid=Unknown, fields=(title;video_file)>, 'question_form': <QuestionForm bound=False, valid=Unknown, fields=(title;description)>, 'answer_form': <AnswerForm bound=False, valid=Unknown, fields=(body)>, 'answer_comment_form': <AnswerCommentForm bound=False, valid=Unknown, fields=(body)>, 'comment_form': <CommentForm bound=False, valid=Unknown, fields=(body)>, 'user_following': [], 'user_collections': None, 't': 0, 'v': 0, 'e': 0}] |
self | <django.template.defaulttags.URLNode object at 0x7fb7a4d47430> |
/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py
, line 446, in render
current_app = context.request.resolver_match.namespace
except AttributeError:
current_app = None
# Try to look up the URL. If it fails, raise NoReverseMatch unless the
# {% url ... as var %} construct is used, in which case return nothing.
url = ''
try:
url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)…
except NoReverseMatch:
if self.asvar is None:
raise
if self.asvar:
context[self.asvar] = url
Variable | Value |
---|---|
NoReverseMatch | <class 'django.urls.exceptions.NoReverseMatch'> |
args | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'project': <Project: FastField: An Open-Source Toolbox for Efficient Approximation of Deep Brain Stimulation Electric Fields 917>, 'creater': <User: daniele.proverbio@uni.lu>, 'tags': <QuerySet [<Tag: Neuroscience>, <Tag: Deep Brain Stimulation>, <Tag: 1. Introduction>, <Tag: Toolbox>, <Tag: Neuromodulation>, <Tag: Simulation>, <Tag: Electric Field>, <Tag: Volume Of Tissue Activated>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 875>]>, 'questions': <QuerySet []>, 'comments': <TreeQuerySet []>, 'note_form': <NoteForm bound=False, valid=Unknown, fields=(body)>, 'url_options': ['paper', 'project', 'supplements'], 'related_projects': <QuerySet [<Project: One way to give a talk 214>, <Project: Autoimmunity to extracellular DNA 113>, <Project: How Dinosaur Brains and Bat Noses Can Save the World 223>, <Project: Human T cell subsets in health and diseases 103>, <Project: Modeling the dynamics of mouse iron body distribution: hepcidin is necessary but not sufficient 1032>, <Project: Integrated molecular, clinical, and ontological analysis identifies overlooked disease relationships 318>, <Project: Distinct neural contributions to metacognition for detecting (but not discriminating) visual stimuli 406>, <Project: Very early initiation of antiretroviral therapy that inform HIV cure strategies 105>, <Project: Wearable 3D Machine Knitting 177>, <Project: Mitigación de emisiones de metano en vacuno. 197>]>, 'user_upvoted': False, 'collection_form': <CollectionForm bound=False, valid=Unknown, fields=(name)>, 'custom_url_form': <CustomURLForm bound=False, valid=Unknown, fields=(name;url)>, 'new_author_form': <NewAuthorForm bound=False, valid=Unknown, fields=(first_name;last_name;email)>, 'video_form': <VideoForm bound=False, valid=Unknown, fields=(title;video_file)>, 'question_form': <QuestionForm bound=False, valid=Unknown, fields=(title;description)>, 'answer_form': <AnswerForm bound=False, valid=Unknown, fields=(body)>, 'answer_comment_form': <AnswerCommentForm bound=False, valid=Unknown, fields=(body)>, 'comment_form': <CommentForm bound=False, valid=Unknown, fields=(body)>, 'user_following': [], 'user_collections': None, 't': 0, 'v': 0, 'e': 0}] |
current_app | 'project' |
kwargs | {'slug': 'electric-field'} |
reverse | <function reverse at 0x7fb7b45db5e0> |
self | <django.template.defaulttags.URLNode object at 0x7fb7a4d47430> |
url | '' |
view_name | 'tags:tag_page' |
/usr/local/lib/python3.8/site-packages/django/urls/base.py
, line 86, in reverse
(key, ':'.join(resolved_path))
)
else:
raise NoReverseMatch("%s is not a registered namespace" % key)
if ns_pattern:
resolver = get_ns_resolver(ns_pattern, resolver, tuple(ns_converters.items()))
return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)…
reverse_lazy = lazy(reverse, str)
def clear_url_caches():
Variable | Value |
---|---|
app_list | ['tags'] |
args | [] |
current_app | 'project' |
current_ns | 'project' |
current_path | None |
extra | 'tag/' |
kwargs | {'slug': 'electric-field'} |
ns | 'tags' |
ns_converters | {} |
ns_pattern | 'tag/' |
path | ['tags'] |
prefix | '/' |
resolved_path | ['tags'] |
resolver | <URLResolver <URLResolver list> (None:None) '^/'> |
urlconf | 'scihub.urls' |
view | 'tag_page' |
viewname | 'tags:tag_page' |
/usr/local/lib/python3.8/site-packages/django/urls/resolvers.py
, line 694, in _reverse_with_prefix
(lookup_view_s, arg_msg, len(patterns), patterns)
)
else:
msg = (
"Reverse for '%(view)s' not found. '%(view)s' is not "
"a valid view function or pattern name." % {'view': lookup_view_s}
)
raise NoReverseMatch(msg)…
Variable | Value |
---|---|
_prefix | '/' |
arg_msg | "keyword arguments '{'slug': 'electric-field'}'" |
args | () |
candidate_pat | '/tag/%(slug)s/' |
candidate_subs | {'slug': 'electric-field'} |
converters | {} |
defaults | {} |
k | 'slug' |
kwargs | {'slug': 'electric-field'} |
lookup_view | 'tag_page' |
lookup_view_s | 'tag_page' |
m | None |
match | True |
msg | ("Reverse for 'tag_page' with keyword arguments '{'slug': 'electric-field'}' " "not found. 1 pattern(s) tried: ['tag/(?P<slug>[0-9A-Za-z_\\\\-]+)/$']") |
n | None |
params | ['slug'] |
pattern | 'tag/(?P<slug>[0-9A-Za-z_\\-]+)/$' |
patterns | ['tag/(?P<slug>[0-9A-Za-z_\\-]+)/$'] |
possibilities | [([('tag/%(slug)s/', ['slug'])], 'tag/(?P<slug>[0-9A-Za-z_\\-]+)/$', {}, {})] |
possibility | [('tag/%(slug)s/', ['slug'])] |
result | 'tag/%(slug)s/' |
self | <URLResolver <URLResolver list> (None:None) '^/'> |
text_candidate_subs | {'slug': 'electric-field'} |
v | 'electric-field' |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CSRF_COOKIE | 'TBB8kZOHO9KqIYu4VorhHg4m6pQSv97ns9ZYIKnVDsD3fCJcrdEI6wjII48zs7rc' |
CSRF_COOKIE_USED | True |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'scitok.com' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_AMZN_TRACE_ID | 'Root=1-65f96c00-466c5a02119e65f504d4f633' |
HTTP_X_FORWARDED_FOR | '34.204.181.19' |
HTTP_X_FORWARDED_PORT | '443' |
HTTP_X_FORWARDED_PROTO | 'https' |
PATH_INFO | '/project/p/8401030a/' |
QUERY_STRING | '' |
REMOTE_ADDR | '172.31.14.103' |
REMOTE_HOST | '172.31.14.103' |
REMOTE_PORT | 48466 |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | '172.18.0.2' |
SERVER_PORT | '8000' |
wsgi.multiprocess | True |
wsgi.multithread | True |
scihub.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['localhost', '127.0.0.1', '0.0.0.0', '.nettrons.com', '.scitok.com', 'scihub-env.eba-ifahbsa4.us-west-1.elasticbeanstalk.com', 'awseb-awseb-1lskhbm3e522j-279235258.us-west-1.elb.amazonaws.com', 'Scihub-env-test.eba-ifahbsa4.us-west-1.elasticbeanstalk.com', '.clay.run', '.clay.com', 'www.scihub.local', 'app.scihub.local', '172.31.26.185'] |
APPEND_SLASH | True |
ASGI_APPLICATION | 'scihub.asgi.application' |
AUTHENTICATION_BACKENDS | ['accounts.backends.EmailBackend', 'social_core.backends.open_id.OpenIdAuth', 'social_core.backends.google.GoogleOAuth2', 'social_core.backends.google.GoogleOAuth', 'django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_PROFILE_MODULE | 'accounts.UserProfile' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/usr/src' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CHANNEL_LAYERS | {'default': {'BACKEND': 'channels_redis.core.RedisChannelLayer', 'CONFIG': {'hosts': [('scitko-redis.uk21vm.ng.0001.usw1.cache.amazonaws.com', 6379)]}}} |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
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.db.backends.postgresql_psycopg2', 'HOST': 'scihub-restore.ctu1praghneq.us-west-1.rds.amazonaws.com', 'NAME': 'scihub', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'xiaoyan'}} |
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', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M'] |
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_AUTO_FIELD | 'django.db.models.AutoField' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'main.custom_storage.MediaStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_HASHING_ALGORITHM | 'sha256' |
DEFAULT_HOST | 'www' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
DJANGO_NOTIFICATIONS_CONFIG | {'USE_JSONFIELD': True} |
EC2_PRIVATE_IP | '172.31.26.185' |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp.sendgrid.net' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'apikey' |
EMAIL_PORT | 587 |
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 | True |
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 | 420 |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['model_clone', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize', 'django.contrib.postgres', 'main', 'scihubhome', 'accounts', 'project', 'feed', 'comment', 'collection', 'event', 'tags', 'tracker', 'follow', 'qa', 'search', 'inbox', 'notes', 'job', 'api', 'refer', 'taggit', 'widget_tweaks', 'social_django', 'notifications', 'django_summernote', 'rest_framework', 'django_hosts', 'channels', 'mptt'] |
INTERNAL_IPS | [] |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ar-dz', 'Algerian 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'), ('hy', 'Armenian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('ig', 'Igbo'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('ky', 'Kyrgyz'), ('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'), ('tg', 'Tajik'), ('th', 'Thai'), ('tk', 'Turkmen'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('uz', 'Uzbek'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'ar-dz', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-us' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_HTTPONLY | False |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LANGUAGE_COOKIE_SAMESITE | None |
LANGUAGE_COOKIE_SECURE | False |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '' |
MEDIA_URL | '/django-summernote/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django_hosts.middleware.HostsRequestMiddleware', 'django.middleware.security.SecurityMiddleware', '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', 'social_django.middleware.SocialAuthExceptionMiddleware', 'django_hosts.middleware.HostsResponseMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NOTIFICATIONS_NOTIFICATION_MODEL | 'notifications.Notification' |
NUMBER_GROUPING | 0 |
PARENT_HOST | 'scitok.com' |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
PROJECT_DIR | '/usr/src/scihub' |
ROOT_HOSTCONF | 'scihub.hosts' |
ROOT_URLCONF | 'scihub.urls' |
S3_BUCKET | 'scitok' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | ('HTTP_X_FORWARDED_PROTO', 'https') |
SECURE_REDIRECT_EXEMPT | ['^healthcheck$'] |
SECURE_REFERRER_POLICY | 'same-origin' |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | True |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | 'scitok.com' |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sharesession' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SAMESITE | 'Lax' |
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 | 'scihub.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY | '********************' |
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET | '********************' |
SOCIAL_AUTH_LOGIN_REDIRECT_URL | '/' |
SOCIAL_AUTH_PIPELINE | ('social.pipeline.social_auth.social_details', 'social.pipeline.social_auth.social_uid', 'social.pipeline.social_auth.auth_allowed', 'social.pipeline.social_auth.social_user', 'social.pipeline.user.get_username', 'social_core.pipeline.social_auth.associate_by_email', 'social.pipeline.user.create_user', 'social.pipeline.social_auth.associate_user', 'social.pipeline.social_auth.load_extra_data', 'social.pipeline.user.user_details', 'accounts.pipeline.get_avatar') |
SOCIAL_AUTH_POSTGRES_JSONFIELD | True |
SOCIAL_AUTH_REDIRECT_IS_HTTPS | True |
SOCIAL_AUTH_URL_NAMESPACE | 'social' |
STATICFILES_DIRS | ['/usr/src/static'] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/usr/src/scihub/static' |
STATIC_URL | '/static/' |
STRIPE_API_KEY | '********************' |
SUMMERNOTE_THEME | 'lite' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/usr/src/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', 'social_django.context_processors.backends', 'social_django.context_processors.login_redirect']}}] |
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 | 'UTC' |
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 | 'scihub.wsgi.application' |
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.