Reverse for 'portfolio' with keyword arguments '{'user_url': ''}' not found. 1 pattern(s) tried: ['(?P<user_url>[0-9A-Za-z\\-]+)/$']
Request Method: | GET |
---|---|
Request URL: | https://scitok.com/project/p/5decc241/ |
Django Version: | 3.2.9 |
Exception Type: | NoReverseMatch |
Exception Value: | Reverse for 'portfolio' with keyword arguments '{'user_url': ''}' not found. 1 pattern(s) tried: ['(?P<user_url>[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.19 |
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: | Fri, 29 Mar 2024 15:41:11 +0000 |
In template /usr/src/templates/base.html
, error at line 172
162 | </div> |
---|---|
163 | <div class="navbar-searchbox-container"> |
164 | <form class="navbar-form" method="GET" action="{% url 'search:search_result' %}"> |
165 | |
166 | <div class="input-group"> |
167 | <div class="input-group-btn"> |
168 | <button class="normal-btn-2" type="submit"> |
169 | <i class="fas fa-search"></i> |
170 | </button> |
171 | </div> |
172 | <input name="query" type="search" class="form-control textarea-1" id="navbar-searchbox" placeholder="Search"> |
173 | |
174 | |
175 | </div> |
176 | </form> |
177 | </div> |
178 | <div class="float-right"> |
179 | {% if user.is_authenticated %} |
180 | <ul class="navbar-nav ml-auto"> |
181 | <li class="nav-item m-l-12"> |
182 | <a class="nav-link hover-dropdown-link p-t-0 p-b-10" data-toggle="dropdown" href="#"> |
/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 0x7faf937efe50>, <ASGIRequest: GET '/project/p/5decc241/'>, NoReverseMatch("Reverse for 'portfolio' with keyword arguments '{'user_url': ''}' not found. 1 pattern(s) tried: ['(?P<user_url>[0-9A-Za-z\\\\-]+)/$']")),) |
current_thread | <Thread(ThreadPoolExecutor-1_0, started daemon 140391720412864)> |
exc_info | (<class 'django.urls.exceptions.NoReverseMatch'>, NoReverseMatch("Reverse for 'portfolio' with keyword arguments '{'user_url': ''}' not found. 1 pattern(s) tried: ['(?P<user_url>[0-9A-Za-z\\\\-]+)/$']"), <traceback object at 0x7faf6e7b4d40>) |
func | <built-in method run of Context object at 0x7faf7c0c2d40> |
kwargs | {} |
loop | <_UnixSelectorEventLoop running=True closed=False debug=False> |
parent_set | True |
self | <asgiref.sync.SyncToAsync object at 0x7faf7cee2fa0> |
source_task | <Task pending name='Task-50720' 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 0x7faf7ce96130>()]>> |
/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 'portfolio' with keyword arguments '{'user_url': ''}' not found. 1 pattern(s) tried: ['(?P<user_url>[0-9A-Za-z\\\\-]+)/$']") |
get_response | <bound method BaseHandler._get_response_async of <django.core.handlers.asgi.ASGIHandler object at 0x7faf842754f0>> |
request | <ASGIRequest: GET '/project/p/5decc241/'> |
/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 0x7faf8462eb80> |
callback_args | () |
callback_kwargs | {'url_handle': '5decc241'} |
middleware_method | <asgiref.sync.SyncToAsync object at 0x7faf840e1550> |
request | <ASGIRequest: GET '/project/p/5decc241/'> |
response | None |
self | <django.core.handlers.asgi.ASGIHandler object at 0x7faf842754f0> |
wrapped_callback | <asgiref.sync.SyncToAsync object at 0x7faf7f4ae130> |
/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 0x7faf8462eb80>, <ASGIRequest: GET '/project/p/5decc241/'>, url_handle='5decc241'),) |
child | functools.partial(<function project at 0x7faf8462eb80>, <ASGIRequest: GET '/project/p/5decc241/'>, url_handle='5decc241') |
context | <Context object at 0x7faf6dfb7100> |
executor | <concurrent.futures.thread.ThreadPoolExecutor object at 0x7faf954dba60> |
func | <built-in method run of Context object at 0x7faf6dfb7100> |
future | <Future finished exception=NoReverseMatch("Reverse for 'portfolio' with keyword arguments '{'user_url': ''}' not found. 1 pattern(s) tried: ['(?P<user_url>[0-9A-Za-z\\\\-]+)/$']")> |
kwargs | {} |
loop | <_UnixSelectorEventLoop running=True closed=False debug=False> |
self | <asgiref.sync.SyncToAsync object at 0x7faf7f4ae130> |
/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 'portfolio' with keyword arguments '{'user_url': ''}' not found. 1 pattern(s) tried: ['(?P<user_url>[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 0x7faf8462eb80>, <ASGIRequest: GET '/project/p/5decc241/'>, url_handle='5decc241'),) |
current_thread | <Thread(ThreadPoolExecutor-0_0, started daemon 140391742961344)> |
exc_info | (None, None, None) |
func | <built-in method run of Context object at 0x7faf6dfb7100> |
kwargs | {} |
loop | <_UnixSelectorEventLoop running=True closed=False debug=False> |
parent_set | True |
self | <asgiref.sync.SyncToAsync object at 0x7faf7f4ae130> |
source_task | <Task pending name='Task-50720' 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 0x7faf7ce96130>()]>> |
/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: gasser.romain@hotmail.fr>, '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: Real-time Conformational Dynamics of SARS-CoV-2 Spikes on Virus Particles 1115>, '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: Microbiology>]>, '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) 1073>]>} |
creater | <User: gasser.romain@hotmail.fr> |
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: Real-time Conformational Dynamics of SARS-CoV-2 Spikes on Virus Particles 1115> |
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/5decc241/'> |
start | 1711726870.6975543 |
t | 0 |
tags | <QuerySet [<Tag: Microbiology>]> |
template | <django.template.backends.django.Template object at 0x7faf7ec2b1f0> |
url_handle | '5decc241' |
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) 1073>]> |
/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: Real-time Conformational Dynamics of SARS-CoV-2 Spikes on Virus Particles 1115>, 'creater': <User: gasser.romain@hotmail.fr>, 'tags': <QuerySet [<Tag: Microbiology>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 1073>]>, '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/5decc241/'> |
self | <django.template.backends.django.Template object at 0x7faf7ec2b1f0> |
/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: Real-time Conformational Dynamics of SARS-CoV-2 Spikes on Virus Particles 1115>, 'creater': <User: gasser.romain@hotmail.fr>, 'tags': <QuerySet [<Tag: Microbiology>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 1073>]>, '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 0x7faf7d538220> |
/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: Real-time Conformational Dynamics of SARS-CoV-2 Spikes on Virus Particles 1115>, 'creater': <User: gasser.romain@hotmail.fr>, 'tags': <QuerySet [<Tag: Microbiology>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 1073>]>, '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 0x7faf7d538220> |
/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: Real-time Conformational Dynamics of SARS-CoV-2 Spikes on Virus Particles 1115>, 'creater': <User: gasser.romain@hotmail.fr>, 'tags': <QuerySet [<Tag: Microbiology>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 1073>]>, '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: Real-time Conformational Dynamics of SARS-CoV-2 Spikes on Virus Particles 1115>, 'creater': <User: gasser.romain@hotmail.fr>, 'tags': <QuerySet [<Tag: Microbiology>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 1073>]>, '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 0x7faf7ec756a0> |
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 0x7faf7d0dddc0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'project': <Project: Real-time Conformational Dynamics of SARS-CoV-2 Spikes on Virus Particles 1115>, 'creater': <User: gasser.romain@hotmail.fr>, 'tags': <QuerySet [<Tag: Microbiology>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 1073>]>, '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 0x7faf7ec75070> |
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: Real-time Conformational Dynamics of SARS-CoV-2 Spikes on Virus Particles 1115>, 'creater': <User: gasser.romain@hotmail.fr>, 'tags': <QuerySet [<Tag: Microbiology>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 1073>]>, '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 0x7faf7d0dddc0> |
/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>', 'Real-time Conformational Dynamics of SARS-CoV-2 Spikes on Virus Particles', ' - 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/5decc241/', '";\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 = \'', 'DwsJOSoWjhgK9614soP7aDtnFSbqyXOR7xVi2INNGCTV1pUu9iR8pX8zkm6LlRTA', "';\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.startsWith('/project/p/')){\n" '\… <trimmed 20446 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'project': <Project: Real-time Conformational Dynamics of SARS-CoV-2 Spikes on Virus Particles 1115>, 'creater': <User: gasser.romain@hotmail.fr>, 'tags': <QuerySet [<Tag: Microbiology>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 1073>]>, '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 0x7faf7ec75070>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7faf7ec75e50>, <TextNode: '\n\n<!DOCTYPE html>\n<html l'>, <Block Node: title. Contents: []>, <TextNode: ' - SciTok</title>\n '>, <django.templatetags.static.StaticNode object at 0x7faf7ec75b80>, <TextNode: '"/>\n\n <!-- Bootstr'>, <django.templatetags.static.StaticNode object at 0x7faf7ec75e80>, <TextNode: '" rel="stylesheet">\n '>, <django.templatetags.static.StaticNode object at 0x7faf7ec75520>, <TextNode: '">\n <!--Iconify CS'>, <django.templatetags.static.StaticNode object at 0x7faf7ec75100>, <TextNode: '"> -->\n <link rel='>, <django.templatetags.static.StaticNode object at 0x7faf7ec75bb0>, <TextNode: '">\n <link href="'>, <django.templatetags.static.StaticNode object at 0x7faf7ec752b0>, <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 0x7faf7ee546d0>, <TextNode: '"></a>\n '>, <django.template.defaulttags.URLNode object at 0x7faf7ee54670>, <TextNode: '">\n '>, <django.templatetags.static.StaticNode object at 0x7faf7ee54eb0>, <TextNode: '"></a>\n '>, <IfNode>, <TextNode: ' menu" id="menu-projects"'>, <django.template.defaulttags.URLNode object at 0x7faf7ee54bb0>, <TextNode: '">Q&A</a>\n '>, <IfNode>, <TextNode: ' menu" id="menu-livetalks'>, <django.template.defaulttags.URLNode object at 0x7faf7ea2cee0>, <TextNode: '">Jobs</a>\n '>, <IfNode>, <TextNode: ' menu" id="menu-hiring_fo'>, <django.template.defaulttags.URLNode object at 0x7faf7f55d2b0>, <TextNode: '">Hiring</a>\n '>, <django.template.defaulttags.URLNode object at 0x7faf7f55dd90>, <TextNode: '">\n \n'>, <IfNode>, <TextNode: '\n \n '>, <django.templatetags.static.StaticNode object at 0x7faf7d48d730>, <TextNode: '"></a>\n '>, <django.template.defaulttags.URLNode object at 0x7faf7f4b64f0>, <TextNode: '" class="menu-logo">\n '>, <django.templatetags.static.StaticNode object at 0x7faf7f4b6d00>, <TextNode: '"></a>\n '>, <django.template.defaulttags.URLNode object at 0x7faf7f4b6f10>, <TextNode: '">\n '>, <IfNode>, <TextNode: '>\n '>, <django.templatetags.static.StaticNode object at 0x7faf7f4b6430>, <TextNode: '">\n '>, <django.templatetags.static.StaticNode object at 0x7faf7f4b63d0>, <TextNode: '">\n '>, <django.template.defaulttags.URLNode object at 0x7faf7f4b6670>, <TextNode: '">\n '>, <IfNode>, <TextNode: '>\n '>, <django.templatetags.static.StaticNode object at 0x7faf7ce1c790>, <TextNode: '">\n '>, <django.templatetags.static.StaticNode object at 0x7faf7ce1cdf0>, <TextNode: '">\n '>, <IfNode>, <TextNode: '>\n '>, <IfNode>, <TextNode: '>\n '>, <django.templatetags.static.StaticNode object at 0x7faf7ce1cdc0>, <TextNode: '">\n '>, <django.templatetags.static.StaticNode object at 0x7faf7ce1caf0>, <TextNode: '">\n '>, <django.template.defaulttags.URLNode object at 0x7faf6e11de50>, <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: Real-time Conformational Dynamics of SARS-CoV-2 Spikes on Virus Particles 1115>, 'creater': <User: gasser.romain@hotmail.fr>, 'tags': <QuerySet [<Tag: Microbiology>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 1073>]>, '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 0x7faf7ef19a30>, <TextNode: '\n'>, <django.template.loader_tags.IncludeNode object at 0x7faf7ef19f70>, <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 0x7faf7ef199a0>, <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 0x7faf7cffb220>, <TextNode: '" '>, <IfEqualNode>, <TextNode: '>\n <!--spa'>, <IfEqualNode>, <TextNode: '></span-->\n '>, <django.templatetags.static.StaticNode object at 0x7faf7cffbb80>, <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 0x7faf7ee16430>, <TextNode: '" id="save" '>, <IfNode>, <TextNode: '>\n <img sr'>, <django.templatetags.static.StaticNode object at 0x7faf7ee8e700>, <TextNode: '" id="saved" '>, <IfNode>, <TextNode: '>\n <span c'>, <IfNode>, <TextNode: '>Save'>, <IfNode>, <TextNode: '</span>\n </d'>, <django.templatetags.static.StaticNode object at 0x7faf7ec5ad90>, <TextNode: '">\n <span '>, <django.templatetags.static.StaticNode object at 0x7faf7ec5a490>, <TextNode: '">\n <span '>, <django.templatetags.static.StaticNode object at 0x7faf7ec5a580>, <TextNode: '">\n </div>\n '>, <django.templatetags.static.StaticNode object at 0x7faf7ec5a6d0>, <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 0x7faf7f565af0>, <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 0x7faf7ec756a0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'project': <Project: Real-time Conformational Dynamics of SARS-CoV-2 Spikes on Virus Particles 1115>, 'creater': <User: gasser.romain@hotmail.fr>, 'tags': <QuerySet [<Tag: Microbiology>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 1073>]>, '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 0x7faf7ef19a30>, <TextNode: '\n'>, <django.template.loader_tags.IncludeNode object at 0x7faf7ef19f70>, <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 0x7faf7ef199a0>, <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 0x7faf7cffb220>, <TextNode: '" '>, <IfEqualNode>, <TextNode: '>\n <!--spa'>, <IfEqualNode>, <TextNode: '></span-->\n '>, <django.templatetags.static.StaticNode object at 0x7faf7cffbb80>, <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 0x7faf7ee16430>, <TextNode: '" id="save" '>, <IfNode>, <TextNode: '>\n <img sr'>, <django.templatetags.static.StaticNode object at 0x7faf7ee8e700>, <TextNode: '" id="saved" '>, <IfNode>, <TextNode: '>\n <span c'>, <IfNode>, <TextNode: '>Save'>, <IfNode>, <TextNode: '</span>\n </d'>, <django.templatetags.static.StaticNode object at 0x7faf7ec5ad90>, <TextNode: '">\n <span '>, <django.templatetags.static.StaticNode object at 0x7faf7ec5a490>, <TextNode: '">\n <span '>, <django.templatetags.static.StaticNode object at 0x7faf7ec5a580>, <TextNode: '">\n </div>\n '>, <django.templatetags.static.StaticNode object at 0x7faf7ec5a6d0>, <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 0x7faf7f565af0>, <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 | '">\n </div>\n\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_9478/project/1115/video/1073/1073.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_9478/project/1115/video/1073/1073.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_9478/project/1115/video/1073/1073.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_9478/project/1115/video/1073/1073.Video ' 'Ab… <trimmed 10429 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'project': <Project: Real-time Conformational Dynamics of SARS-CoV-2 Spikes on Virus Particles 1115>, 'creater': <User: gasser.romain@hotmail.fr>, 'tags': <QuerySet [<Tag: Microbiology>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 1073>]>, '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 author in project|order_project_authors, tail_len: 23> |
self | [<TextNode: '\n\n'>, <django.template.loader_tags.IncludeNode object at 0x7faf7ef19a30>, <TextNode: '\n'>, <django.template.loader_tags.IncludeNode object at 0x7faf7ef19f70>, <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 0x7faf7ef199a0>, <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 0x7faf7cffb220>, <TextNode: '" '>, <IfEqualNode>, <TextNode: '>\n <!--spa'>, <IfEqualNode>, <TextNode: '></span-->\n '>, <django.templatetags.static.StaticNode object at 0x7faf7cffbb80>, <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 0x7faf7ee16430>, <TextNode: '" id="save" '>, <IfNode>, <TextNode: '>\n <img sr'>, <django.templatetags.static.StaticNode object at 0x7faf7ee8e700>, <TextNode: '" id="saved" '>, <IfNode>, <TextNode: '>\n <span c'>, <IfNode>, <TextNode: '>Save'>, <IfNode>, <TextNode: '</span>\n </d'>, <django.templatetags.static.StaticNode object at 0x7faf7ec5ad90>, <TextNode: '">\n <span '>, <django.templatetags.static.StaticNode object at 0x7faf7ec5a490>, <TextNode: '">\n <span '>, <django.templatetags.static.StaticNode object at 0x7faf7ec5a580>, <TextNode: '">\n </div>\n '>, <django.templatetags.static.StaticNode object at 0x7faf7ec5a6d0>, <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 0x7faf7f565af0>, <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: Real-time Conformational Dynamics of SARS-CoV-2 Spikes on Virus Particles 1115>, 'creater': <User: gasser.romain@hotmail.fr>, 'tags': <QuerySet [<Tag: Microbiology>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 1073>]>, '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 author in project|order_project_authors, tail_len: 23> |
/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: Real-time Conformational Dynamics of SARS-CoV-2 Spikes on Virus Particles 1115>, 'creater': <User: gasser.romain@hotmail.fr>, 'tags': <QuerySet [<Tag: Microbiology>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 1073>]>, '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 | 10 |
item | <User: gasser.romain@hotmail.fr> |
len_values | 23 |
loop_dict | {'counter': 11, 'counter0': 10, 'first': False, 'last': False, 'parentloop': {}, 'revcounter': 13, 'revcounter0': 12} |
node | <django.template.defaulttags.URLNode object at 0x7faf7d2c11c0> |
nodelist | ['\n <div class="author-container" id="author_div_', '9523', '">\n <a class="author-visible" target="_blank" href="', '/maolin-lu/', '">\n ', '', '\n <div class="circular">\n ', '\n' ' <img ' 'src="https://scitok.s3.amazonaws.com/user_9523/profile/profile_img?AWSAccessKeyId=AKIAIHJLJGIGBNOJ3BXA&Signature=L5TJXeEUGLVGu5MtgZwnB9%2BbwHg%3D&Expires=1711730470">\n' ' ', '\n' ' </div>\n' ' <p class="header-2 text-center"><!--a target="_blank" ' 'class="w-100" href="', '/maolin-lu/', '"-->', 'Maolin', ' ', 'Lu', '<!--/a--></p>\n' ' </a>\n' ' <div class="author-card">\n' ' ', '\n' '\n' ' \n' ' <div class="row d-block">\n' ' <div class="d-block" style="width: 69%">\n' ' <div class="circular mx-0">\n' ' \n' ' <a target="_blank" href="/maolin-lu/"><img ' 'src="https://scitok.s3.amazonaws.com/user_9523/profile/profile_img?AWSAccessKeyId=AKIAIHJLJGIGBNOJ3BXA&Signature=L5TJXeEUGLVGu5MtgZwnB9%2BbwHg%3D&Expires=1711730470"></a>\n' ' \n' ' </div>\n' ' <p class="author-name float-left header-2 m-b-0 w-100"><a ' 'target="_blank" class="w-100" href="/maolin-lu/">Maolin Lu</a></p>\n' ' </div>\n' ' \n' ' \n' ' <button class="unfollow-user normal-btn float-right active" ' 'id="unfollow-user-9523" value="9523" style="width: 100px" ' 'hidden><span>Following</span></button>\n' ' <button class="follow-user normal-btn float-right" ' 'id="follow-user-9523" value="9523" \n' ' \n' ' data-toggle="modal" data-target="#logged-out-modal" ' 'data-html="Create <strong>an account</strong> to get alerts when this author ' 'publishes new projects." data-img="/static/img/illustrations/illu-3.png" ' '>Follow</button>\n' ' \n' ' </div>\n' ' \n' ' <div class="row d-block w-100">\n' ' \n' ' <p class="author-num-projects float-left m-t-10 m-b-17 ' 'w-100">\n' ' \n' ' Published </span><span class="header-2">3 ' 'Projects</span>\n' ' </p>\n' ' <p class="float-left">\n' ' <a class="tag author-tags" ' 'href="/tag/covid-19/">COVID-19</a> <a class="tag author-tags" ' 'href="/tag/coronavirus/">Coronavirus</a> <a class="tag author-tags" ' 'href="/tag/immunology/">Immunology</a> <a class="tag author-tags" ' 'href="/tag/sars-cov-2/">SARS-CoV-2</a> <a class="tag author-tags" ' 'href="/tag/microbiology/">Microbiology</a> \n' ' </p>\n' ' </div>', '\n' ' </div>\n' ' <div class="author-permission-div d-none show-on-edit">\n' ' <select name="author-permission" class="author-permission">\n' '\n' ' <option value="0" ', ' selected ', '>View Only</option>\n <option value="1" ', '', '>Can Edit</option>\n' ' </select>\n' ' </div>\n' ' <img class=\'icon-close d-none show-on-edit\' src="', '/static/img/icons/close-icon.png', '">\n\n </div>\n ', '\n <div class="author-container" id="author_div_', '9585', '">\n <a class="author-visible" target="_blank" href="', '/pradeep-d-uchil/', '">\n ', '', '\n <div class="circular">\n ', '\n' ' <img ' 'src="https://scitok.s3.amazonaws.com/user_9585/profile/profile_img?AWSAccessKeyId=AKIAIHJLJGIGBNOJ3BXA&Signature=1oF2%2FGOBjhLJBbweQawgBisjSa4%3D&Expires=1711730470">\n' ' ', '\n' ' </div>\n' ' <p class="header-2 text-center"><!--a target="_blank" ' 'class="w-100" href="', '/pradeep-d-uch… <trimmed 34102 bytes string> |
num_loopvars | 1 |
parentloop | {} |
pop_context | False |
self | <ForNode: for author in project|order_project_authors, tail_len: 23> |
unpack | False |
values | <QuerySet [<User: maolin.lu@yale.edu>, <User: pradeep.uchil@yale.edu>, <User: wenwei-li>, <User: desheng-zheng>, <User: daniel-s-terry>, <User: jason.gorman@nih.gov>, <User: wshi@chla.usc.edu>, <User: baoshan.zhang@nih.gov>, <User: tzhou@mail.nih.gov>, <User: shilei-ding>, <User: gasser.romain@hotmail.fr>, <User: jeremie.prevost@umontreal.ca>, <User: guillaume.beaudoin-bussieres@umontreal.ca>, <User: sai.anand@mail.mcgill.ca>, <User: annemarie.laumaea@umontreal.ca>, <User: jonathan-r--grover>, <User: liulihong@bjcyh.com>, <User: dho@adarc.org>, <User: jmascola@mail.nih.gov>, <User: andres.finzi@umontreal.ca>, '...(remaining elements truncated)...']> |
/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: Real-time Conformational Dynamics of SARS-CoV-2 Spikes on Virus Particles 1115>, 'creater': <User: gasser.romain@hotmail.fr>, 'tags': <QuerySet [<Tag: Microbiology>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 1073>]>, '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 0x7faf7d2c11c0> |
/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: Real-time Conformational Dynamics of SARS-CoV-2 Spikes on Virus Particles 1115>, 'creater': <User: gasser.romain@hotmail.fr>, 'tags': <QuerySet [<Tag: Microbiology>]>, 'videos': <QuerySet [<Video: Video Abstract (AI generated) 1073>]>, '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 | {'user_url': ''} |
reverse | <function reverse at 0x7faf93b19820> |
self | <django.template.defaulttags.URLNode object at 0x7faf7d2c11c0> |
url | '' |
view_name | 'scihubhome:portfolio' |
/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 | ['scihubhome'] |
args | [] |
current_app | 'project' |
current_ns | 'project' |
current_path | None |
extra | '' |
kwargs | {'user_url': ''} |
ns | 'scihubhome' |
ns_converters | {} |
ns_pattern | '' |
path | ['scihubhome'] |
prefix | '/' |
resolved_path | ['scihubhome'] |
resolver | <URLResolver <module 'scihubhome.urls' from '/usr/src/scihubhome/urls.py'> (scihubhome:scihubhome) ''> |
urlconf | 'scihub.urls' |
view | 'portfolio' |
viewname | 'scihubhome:portfolio' |
/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 '{'user_url': ''}'" |
args | () |
candidate_pat | '/%(user_url)s/' |
candidate_subs | {'user_url': ''} |
converters | {} |
defaults | {} |
k | 'user_url' |
kwargs | {'user_url': ''} |
lookup_view | 'portfolio' |
lookup_view_s | 'portfolio' |
m | None |
match | True |
msg | ("Reverse for 'portfolio' with keyword arguments '{'user_url': ''}' not found. " "1 pattern(s) tried: ['(?P<user_url>[0-9A-Za-z\\\\-]+)/$']") |
n | None |
params | ['user_url'] |
pattern | '(?P<user_url>[0-9A-Za-z\\-]+)/$' |
patterns | ['(?P<user_url>[0-9A-Za-z\\-]+)/$'] |
possibilities | [([('%(user_url)s/', ['user_url'])], '(?P<user_url>[0-9A-Za-z\\-]+)/$', {}, {})] |
possibility | [('%(user_url)s/', ['user_url'])] |
result | '%(user_url)s/' |
self | <URLResolver <module 'scihubhome.urls' from '/usr/src/scihubhome/urls.py'> (scihubhome:scihubhome) ''> |
text_candidate_subs | {'user_url': ''} |
v | '' |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CSRF_COOKIE | 'ujrZWhfKtcyfy3chGskzHKE4Fxfyi0yEYkUya7EBQxbqqm5HnmmAW4jgk1aT5UDn' |
CSRF_COOKIE_USED | True |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'scitok.com' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_AMZN_TRACE_ID | 'Root=1-6606e116-168bf1bc360d0abd0218da44' |
HTTP_X_FORWARDED_FOR | '3.227.251.194' |
HTTP_X_FORWARDED_PORT | '443' |
HTTP_X_FORWARDED_PROTO | 'https' |
PATH_INFO | '/project/p/5decc241/' |
QUERY_STRING | '' |
REMOTE_ADDR | '172.31.17.205' |
REMOTE_HOST | '172.31.17.205' |
REMOTE_PORT | 47670 |
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.129'] |
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.129' |
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.