The source file does not appear to be an image
Request Method: | GET |
---|---|
Request URL: | https://fashiongraphics.net/fg2017/slideshow/fg2017-lzhu/img370/ |
Django Version: | 1.11.7.dev20171013175222 |
Exception Type: | InvalidImageFormatError |
Exception Value: | The source file does not appear to be an image |
Exception Location: | /home/zvez01/apps/fg2017/env/lib/python3.6/site-packages/easy_thumbnails/files.py in generate_thumbnail, line 388 |
Python Executable: | /home/zvez01/apps/fg2017/env/bin/uwsgi |
Python Version: | 3.6.8 |
Python Path: | ['/home/zvez01/apps/fg2017/django-fashiongraphics/', '.', '', '/usr/lib64/python36.zip', '/usr/lib64/python3.6', '/usr/lib64/python3.6/lib-dynload', '/home/zvez01/apps/fg2017/env/lib64/python3.6/site-packages', '/home/zvez01/apps/fg2017/env/lib/python3.6/site-packages', '/home/zvez01/apps/fg2017/env/src/django', '/home/zvez01/apps/fg2017/django-portfolio', '/home/zvez01/apps/fg2017/django-fgstudents'] |
Server time: | Thu, 28 Mar 2024 04:08:39 -0400 |
In template /home/zvez01/apps/fg2017/django-fashiongraphics/fgsite/templates/base.html
, error at line 0
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
---|---|
2 | "http://www.w3.org/TR/html4/strict.dtd"> |
3 | <html> |
4 | <head> |
5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
6 | <title>{% block title %}{% endblock %}</title> |
7 | <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/site.css"> |
8 | {% block css %}{% endblock %} |
9 | {% block js %}{% endblock %} |
10 | {% block feeds %}{% endblock %} |
/home/zvez01/apps/fg2017/env/src/django/django/core/handlers/exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@wraps(get_response, assigned=available_attrs(get_response))
def inner(request):
try:
response = get_response(request)...
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | InvalidImageFormatError('The source file does not appear to be an image',) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f348de876d8>> |
request | <WSGIRequest: GET '/fg2017/slideshow/fg2017-lzhu/img370/'> |
/home/zvez01/apps/fg2017/env/src/django/django/core/handlers/base.py
in _get_response
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)
except Exception as e:
response = self.process_exception_by_middleware(e, request)...
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
view_name = callback.__name__
else: # CBV
Variable | Value |
---|---|
callback | <function slideshow_image at 0x7f347a61e488> |
callback_args | () |
callback_kwargs | {'class_slug': 'fg2017', 'gallery_slug': 'fg2017-lzhu', 'image_slug': 'img370'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f347b0b0080>> |
request | <WSGIRequest: GET '/fg2017/slideshow/fg2017-lzhu/img370/'> |
resolver | <RegexURLResolver 'fgsite.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=fgstudents.views.slideshow_image, args=(), kwargs={'class_slug': 'fg2017', 'gallery_slug': 'fg2017-lzhu', 'image_slug': 'img370'}, url_name=students_slideshow_image, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f348de876d8> |
wrapped_callback | <function slideshow_image at 0x7f347a61e488> |
/home/zvez01/apps/fg2017/env/src/django/django/core/handlers/base.py
in _get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)...
except Exception as e:
response = self.process_exception_by_middleware(e, request)
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
Variable | Value |
---|---|
callback | <function slideshow_image at 0x7f347a61e488> |
callback_args | () |
callback_kwargs | {'class_slug': 'fg2017', 'gallery_slug': 'fg2017-lzhu', 'image_slug': 'img370'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f347b0b0080>> |
request | <WSGIRequest: GET '/fg2017/slideshow/fg2017-lzhu/img370/'> |
resolver | <RegexURLResolver 'fgsite.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=fgstudents.views.slideshow_image, args=(), kwargs={'class_slug': 'fg2017', 'gallery_slug': 'fg2017-lzhu', 'image_slug': 'img370'}, url_name=students_slideshow_image, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f348de876d8> |
wrapped_callback | <function slideshow_image at 0x7f347a61e488> |
/home/zvez01/apps/fg2017/django-fgstudents/fgstudents/views.py
in slideshow_image
context.update(CS.gallery_image_slideshow_data(gi, up_page))
return render(request, "fgstudents/gallery_image.html", context=context)
def slideshow_image(request, class_slug, gallery_slug, image_slug):
return gallery_image(request, class_slug, gallery_slug, image_slug, True)...
def class_about_page(request, class_slug):
student_class = get_object_or_404(StudentClass, slug=class_slug)
context = {'content': student_class.about,
Variable | Value |
---|---|
class_slug | 'fg2017' |
gallery_slug | 'fg2017-lzhu' |
image_slug | 'img370' |
request | <WSGIRequest: GET '/fg2017/slideshow/fg2017-lzhu/img370/'> |
/home/zvez01/apps/fg2017/django-fgstudents/fgstudents/views.py
in gallery_image
up_page = (reverse('students_index', args=[class_slug]), 'Up')
else:
up_page = None
CS = ClassSlideshow(class_slug=class_slug)
context.update(CS.gallery_image_slideshow_data(gi, up_page))
return render(request, "fgstudents/gallery_image.html", context=context)...
def slideshow_image(request, class_slug, gallery_slug, image_slug):
return gallery_image(request, class_slug, gallery_slug, image_slug, True)
Variable | Value |
---|---|
CS | <fgstudents.slideshow.ClassSlideshow object at 0x7f347a54ae48> |
class_slug | 'fg2017' |
context | {'bio': 'Lindy Zhu is a graphic designer who focus a lot on communication ' 'instinct.Back at 2016 she did some project about how to convey wild ' "conservastion information to the public. Now she's interested in " 'convey body and its language to the people through clothes they wear.', 'gallery': <Gallery: Link>, 'gallery_counter': '136/250', 'gi': <GalleryImage: Link [08] Wrap>, 'image': <Image: Wrap>, 'next_link': ('/fg2017/slideshow/fg2017-lzhu/img372/', 'Link'), 'ngimages': [(<GalleryImage: Link [14] look book>, '/fg2017/slideshow/fg2017-lzhu/img341/'), (<GalleryImage: Link [13] Website>, '/fg2017/slideshow/fg2017-lzhu/img384/'), (<GalleryImage: Link [12] Poster 2>, '/fg2017/slideshow/fg2017-lzhu/img389/'), (<GalleryImage: Link [11] Poster1>, '/fg2017/slideshow/fg2017-lzhu/img388/'), (<GalleryImage: Link [10] Lead>, '/fg2017/slideshow/fg2017-lzhu/img387/'), (<GalleryImage: Link [09] Link>, '/fg2017/slideshow/fg2017-lzhu/img372/')], 'pgimages': [(<GalleryImage: Link [02] Link logo>, '/fg2017/slideshow/fg2017-lzhu/img179/'), (<GalleryImage: Link [03] Mood 1>, '/fg2017/slideshow/fg2017-lzhu/img367/'), (<GalleryImage: Link [04] Mood 2>, '/fg2017/slideshow/fg2017-lzhu/img366/'), (<GalleryImage: Link [05] Mood 3>, '/fg2017/slideshow/fg2017-lzhu/img365/'), (<GalleryImage: Link [06] Tangle>, '/fg2017/slideshow/fg2017-lzhu/img368/'), (<GalleryImage: Link [07] Ravel>, '/fg2017/slideshow/fg2017-lzhu/img369/')], 'prev_link': ('/fg2017/slideshow/fg2017-lzhu/img369/', 'Link'), 'slideshow': True, 'student_class': <StudentClass: MICA Fashion Graphics 2017>, 'user': <User: lzhu>} |
full_slideshow | True |
gallery_slug | 'fg2017-lzhu' |
gi | <GalleryImage: Link [08] Wrap> |
image_slug | 'img370' |
profile | <StudentProfile: Lindy Zhu> |
request | <WSGIRequest: GET '/fg2017/slideshow/fg2017-lzhu/img370/'> |
student_class | <StudentClass: MICA Fashion Graphics 2017> |
up_page | None |
/home/zvez01/apps/fg2017/env/src/django/django/shortcuts.py
in render
def render(request, template_name, context=None, content_type=None, status=None, using=None):
"""
Returns a HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
"""
content = loader.render_to_string(template_name, context, request, using=using)...
return HttpResponse(content, content_type, status)
def redirect(to, *args, **kwargs):
"""
Returns an HttpResponseRedirect to the appropriate URL for the arguments
Variable | Value |
---|---|
content_type | None |
context | {'bio': 'Lindy Zhu is a graphic designer who focus a lot on communication ' 'instinct.Back at 2016 she did some project about how to convey wild ' "conservastion information to the public. Now she's interested in " 'convey body and its language to the people through clothes they wear.', 'gallery': <Gallery: Link>, 'gallery_counter': '136/250', 'gi': <GalleryImage: Link [08] Wrap>, 'image': <Image: Wrap>, 'next_link': ('/fg2017/slideshow/fg2017-lzhu/img372/', 'Link'), 'ngimages': [(<GalleryImage: Link [14] look book>, '/fg2017/slideshow/fg2017-lzhu/img341/'), (<GalleryImage: Link [13] Website>, '/fg2017/slideshow/fg2017-lzhu/img384/'), (<GalleryImage: Link [12] Poster 2>, '/fg2017/slideshow/fg2017-lzhu/img389/'), (<GalleryImage: Link [11] Poster1>, '/fg2017/slideshow/fg2017-lzhu/img388/'), (<GalleryImage: Link [10] Lead>, '/fg2017/slideshow/fg2017-lzhu/img387/'), (<GalleryImage: Link [09] Link>, '/fg2017/slideshow/fg2017-lzhu/img372/')], 'pgimages': [(<GalleryImage: Link [02] Link logo>, '/fg2017/slideshow/fg2017-lzhu/img179/'), (<GalleryImage: Link [03] Mood 1>, '/fg2017/slideshow/fg2017-lzhu/img367/'), (<GalleryImage: Link [04] Mood 2>, '/fg2017/slideshow/fg2017-lzhu/img366/'), (<GalleryImage: Link [05] Mood 3>, '/fg2017/slideshow/fg2017-lzhu/img365/'), (<GalleryImage: Link [06] Tangle>, '/fg2017/slideshow/fg2017-lzhu/img368/'), (<GalleryImage: Link [07] Ravel>, '/fg2017/slideshow/fg2017-lzhu/img369/')], 'prev_link': ('/fg2017/slideshow/fg2017-lzhu/img369/', 'Link'), 'slideshow': True, 'student_class': <StudentClass: MICA Fashion Graphics 2017>, 'user': <User: lzhu>} |
request | <WSGIRequest: GET '/fg2017/slideshow/fg2017-lzhu/img370/'> |
status | None |
template_name | 'fgstudents/gallery_image.html' |
using | None |
/home/zvez01/apps/fg2017/env/src/django/django/template/loader.py
in render_to_string
template_name may be a string or a list of strings.
"""
if isinstance(template_name, (list, tuple)):
template = select_template(template_name, using=using)
else:
template = get_template(template_name, using=using)
return template.render(context, request)...
def _engine_list(using=None):
return engines.all() if using is None else [engines[using]]
Variable | Value |
---|---|
context | {'bio': 'Lindy Zhu is a graphic designer who focus a lot on communication ' 'instinct.Back at 2016 she did some project about how to convey wild ' "conservastion information to the public. Now she's interested in " 'convey body and its language to the people through clothes they wear.', 'gallery': <Gallery: Link>, 'gallery_counter': '136/250', 'gi': <GalleryImage: Link [08] Wrap>, 'image': <Image: Wrap>, 'next_link': ('/fg2017/slideshow/fg2017-lzhu/img372/', 'Link'), 'ngimages': [(<GalleryImage: Link [14] look book>, '/fg2017/slideshow/fg2017-lzhu/img341/'), (<GalleryImage: Link [13] Website>, '/fg2017/slideshow/fg2017-lzhu/img384/'), (<GalleryImage: Link [12] Poster 2>, '/fg2017/slideshow/fg2017-lzhu/img389/'), (<GalleryImage: Link [11] Poster1>, '/fg2017/slideshow/fg2017-lzhu/img388/'), (<GalleryImage: Link [10] Lead>, '/fg2017/slideshow/fg2017-lzhu/img387/'), (<GalleryImage: Link [09] Link>, '/fg2017/slideshow/fg2017-lzhu/img372/')], 'pgimages': [(<GalleryImage: Link [02] Link logo>, '/fg2017/slideshow/fg2017-lzhu/img179/'), (<GalleryImage: Link [03] Mood 1>, '/fg2017/slideshow/fg2017-lzhu/img367/'), (<GalleryImage: Link [04] Mood 2>, '/fg2017/slideshow/fg2017-lzhu/img366/'), (<GalleryImage: Link [05] Mood 3>, '/fg2017/slideshow/fg2017-lzhu/img365/'), (<GalleryImage: Link [06] Tangle>, '/fg2017/slideshow/fg2017-lzhu/img368/'), (<GalleryImage: Link [07] Ravel>, '/fg2017/slideshow/fg2017-lzhu/img369/')], 'prev_link': ('/fg2017/slideshow/fg2017-lzhu/img369/', 'Link'), 'slideshow': True, 'student_class': <StudentClass: MICA Fashion Graphics 2017>, 'user': <User: lzhu>} |
request | <WSGIRequest: GET '/fg2017/slideshow/fg2017-lzhu/img370/'> |
template | <django.template.backends.django.Template object at 0x7f347a48d550> |
template_name | 'fgstudents/gallery_image.html' |
using | None |
/home/zvez01/apps/fg2017/env/src/django/django/template/backends/django.py
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}, {}, {}, {'student_class': <StudentClass: MICA Fashion Graphics 2017>, 'gallery': <Gallery: Link>, 'image': <Image: Wrap>, 'gi': <GalleryImage: Link [08] Wrap>, 'bio': "Lindy Zhu is a graphic designer who focus a lot on communication instinct.Back at 2016 she did some project about how to convey wild conservastion information to the public. Now she's interested in convey body and its language to the people through clothes they wear.", 'user': <User: lzhu>, 'slideshow': True, 'prev_link': ('/fg2017/slideshow/fg2017-lzhu/img369/', 'Link'), 'next_link': ('/fg2017/slideshow/fg2017-lzhu/img372/', 'Link'), 'gallery_counter': '136/250', 'pgimages': [(<GalleryImage: Link [02] Link logo>, '/fg2017/slideshow/fg2017-lzhu/img179/'), (<GalleryImage: Link [03] Mood 1>, '/fg2017/slideshow/fg2017-lzhu/img367/'), (<GalleryImage: Link [04] Mood 2>, '/fg2017/slideshow/fg2017-lzhu/img366/'), (<GalleryImage: Link [05] Mood 3>, '/fg2017/slideshow/fg2017-lzhu/img365/'), (<GalleryImage: Link [06] Tangle>, '/fg2017/slideshow/fg2017-lzhu/img368/'), (<GalleryImage: Link [07] Ravel>, '/fg2017/slideshow/fg2017-lzhu/img369/')], 'ngimages': [(<GalleryImage: Link [14] look book>, '/fg2017/slideshow/fg2017-lzhu/img341/'), (<GalleryImage: Link [13] Website>, '/fg2017/slideshow/fg2017-lzhu/img384/'), (<GalleryImage: Link [12] Poster 2>, '/fg2017/slideshow/fg2017-lzhu/img389/'), (<GalleryImage: Link [11] Poster1>, '/fg2017/slideshow/fg2017-lzhu/img388/'), (<GalleryImage: Link [10] Lead>, '/fg2017/slideshow/fg2017-lzhu/img387/'), (<GalleryImage: Link [09] Link>, '/fg2017/slideshow/fg2017-lzhu/img372/')]}, {'block': <Block Node: content. Contents: [<TextNode: '\n<div class="image-full">'>, <Variable Node: prev_link.0>, <TextNode: '" title="'>, <Variable Node: prev_link.1>, <TextNode: '">'>, <Variable Node: prev_link.1>, <TextNode: '</a>\n <a class="next'>, <Variable Node: next_link.0>, <TextNode: '" title="'>, <Variable Node: next_link.1>, <TextNode: '">'>, <Variable Node: next_link.1>, <TextNode: '</a>\n </div>\n <img sr'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a1a84a8>, <TextNode: '" alt="'>, <Variable Node: image.title>, <TextNode: '"/>\n '>, <IfNode>, <TextNode: '\n</div>\n<div class="galle'>, <For Node: for gim, giurl in pgimages, tail_len: 13>, <TextNode: '\n<span class="galcounter"'>, <Variable Node: gallery_counter>, <TextNode: '</span>\n'>, <For Node: for gim, giurl in ngimages, tail_len: 13>, <TextNode: '</div>\n<div class="image-'>, <Variable Node: gallery.title>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n <div class="i'>, <Variable Node: user.first_name>, <TextNode: ' '>, <Variable Node: user.last_name>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n</div>\n'>]>}] |
request | <WSGIRequest: GET '/fg2017/slideshow/fg2017-lzhu/img370/'> |
self | <django.template.backends.django.Template object at 0x7f347a48d550> |
/home/zvez01/apps/fg2017/env/src/django/django/template/base.py
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}, {}, {}, {'student_class': <StudentClass: MICA Fashion Graphics 2017>, 'gallery': <Gallery: Link>, 'image': <Image: Wrap>, 'gi': <GalleryImage: Link [08] Wrap>, 'bio': "Lindy Zhu is a graphic designer who focus a lot on communication instinct.Back at 2016 she did some project about how to convey wild conservastion information to the public. Now she's interested in convey body and its language to the people through clothes they wear.", 'user': <User: lzhu>, 'slideshow': True, 'prev_link': ('/fg2017/slideshow/fg2017-lzhu/img369/', 'Link'), 'next_link': ('/fg2017/slideshow/fg2017-lzhu/img372/', 'Link'), 'gallery_counter': '136/250', 'pgimages': [(<GalleryImage: Link [02] Link logo>, '/fg2017/slideshow/fg2017-lzhu/img179/'), (<GalleryImage: Link [03] Mood 1>, '/fg2017/slideshow/fg2017-lzhu/img367/'), (<GalleryImage: Link [04] Mood 2>, '/fg2017/slideshow/fg2017-lzhu/img366/'), (<GalleryImage: Link [05] Mood 3>, '/fg2017/slideshow/fg2017-lzhu/img365/'), (<GalleryImage: Link [06] Tangle>, '/fg2017/slideshow/fg2017-lzhu/img368/'), (<GalleryImage: Link [07] Ravel>, '/fg2017/slideshow/fg2017-lzhu/img369/')], 'ngimages': [(<GalleryImage: Link [14] look book>, '/fg2017/slideshow/fg2017-lzhu/img341/'), (<GalleryImage: Link [13] Website>, '/fg2017/slideshow/fg2017-lzhu/img384/'), (<GalleryImage: Link [12] Poster 2>, '/fg2017/slideshow/fg2017-lzhu/img389/'), (<GalleryImage: Link [11] Poster1>, '/fg2017/slideshow/fg2017-lzhu/img388/'), (<GalleryImage: Link [10] Lead>, '/fg2017/slideshow/fg2017-lzhu/img387/'), (<GalleryImage: Link [09] Link>, '/fg2017/slideshow/fg2017-lzhu/img372/')]}, {'block': <Block Node: content. Contents: [<TextNode: '\n<div class="image-full">'>, <Variable Node: prev_link.0>, <TextNode: '" title="'>, <Variable Node: prev_link.1>, <TextNode: '">'>, <Variable Node: prev_link.1>, <TextNode: '</a>\n <a class="next'>, <Variable Node: next_link.0>, <TextNode: '" title="'>, <Variable Node: next_link.1>, <TextNode: '">'>, <Variable Node: next_link.1>, <TextNode: '</a>\n </div>\n <img sr'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a1a84a8>, <TextNode: '" alt="'>, <Variable Node: image.title>, <TextNode: '"/>\n '>, <IfNode>, <TextNode: '\n</div>\n<div class="galle'>, <For Node: for gim, giurl in pgimages, tail_len: 13>, <TextNode: '\n<span class="galcounter"'>, <Variable Node: gallery_counter>, <TextNode: '</span>\n'>, <For Node: for gim, giurl in ngimages, tail_len: 13>, <TextNode: '</div>\n<div class="image-'>, <Variable Node: gallery.title>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n <div class="i'>, <Variable Node: user.first_name>, <TextNode: ' '>, <Variable Node: user.last_name>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n</div>\n'>]>}] |
self | <django.template.base.Template object at 0x7f347a48de48> |
/home/zvez01/apps/fg2017/env/src/django/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
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}, {}, {}, {'student_class': <StudentClass: MICA Fashion Graphics 2017>, 'gallery': <Gallery: Link>, 'image': <Image: Wrap>, 'gi': <GalleryImage: Link [08] Wrap>, 'bio': "Lindy Zhu is a graphic designer who focus a lot on communication instinct.Back at 2016 she did some project about how to convey wild conservastion information to the public. Now she's interested in convey body and its language to the people through clothes they wear.", 'user': <User: lzhu>, 'slideshow': True, 'prev_link': ('/fg2017/slideshow/fg2017-lzhu/img369/', 'Link'), 'next_link': ('/fg2017/slideshow/fg2017-lzhu/img372/', 'Link'), 'gallery_counter': '136/250', 'pgimages': [(<GalleryImage: Link [02] Link logo>, '/fg2017/slideshow/fg2017-lzhu/img179/'), (<GalleryImage: Link [03] Mood 1>, '/fg2017/slideshow/fg2017-lzhu/img367/'), (<GalleryImage: Link [04] Mood 2>, '/fg2017/slideshow/fg2017-lzhu/img366/'), (<GalleryImage: Link [05] Mood 3>, '/fg2017/slideshow/fg2017-lzhu/img365/'), (<GalleryImage: Link [06] Tangle>, '/fg2017/slideshow/fg2017-lzhu/img368/'), (<GalleryImage: Link [07] Ravel>, '/fg2017/slideshow/fg2017-lzhu/img369/')], 'ngimages': [(<GalleryImage: Link [14] look book>, '/fg2017/slideshow/fg2017-lzhu/img341/'), (<GalleryImage: Link [13] Website>, '/fg2017/slideshow/fg2017-lzhu/img384/'), (<GalleryImage: Link [12] Poster 2>, '/fg2017/slideshow/fg2017-lzhu/img389/'), (<GalleryImage: Link [11] Poster1>, '/fg2017/slideshow/fg2017-lzhu/img388/'), (<GalleryImage: Link [10] Lead>, '/fg2017/slideshow/fg2017-lzhu/img387/'), (<GalleryImage: Link [09] Link>, '/fg2017/slideshow/fg2017-lzhu/img372/')]}, {'block': <Block Node: content. Contents: [<TextNode: '\n<div class="image-full">'>, <Variable Node: prev_link.0>, <TextNode: '" title="'>, <Variable Node: prev_link.1>, <TextNode: '">'>, <Variable Node: prev_link.1>, <TextNode: '</a>\n <a class="next'>, <Variable Node: next_link.0>, <TextNode: '" title="'>, <Variable Node: next_link.1>, <TextNode: '">'>, <Variable Node: next_link.1>, <TextNode: '</a>\n </div>\n <img sr'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a1a84a8>, <TextNode: '" alt="'>, <Variable Node: image.title>, <TextNode: '"/>\n '>, <IfNode>, <TextNode: '\n</div>\n<div class="galle'>, <For Node: for gim, giurl in pgimages, tail_len: 13>, <TextNode: '\n<span class="galcounter"'>, <Variable Node: gallery_counter>, <TextNode: '</span>\n'>, <For Node: for gim, giurl in ngimages, tail_len: 13>, <TextNode: '</div>\n<div class="image-'>, <Variable Node: gallery.title>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n <div class="i'>, <Variable Node: user.first_name>, <TextNode: ' '>, <Variable Node: user.last_name>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n</div>\n'>]>}] |
self | <django.template.base.Template object at 0x7f347a48de48> |
/home/zvez01/apps/fg2017/env/src/django/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'student_class': <StudentClass: MICA Fashion Graphics 2017>, 'gallery': <Gallery: Link>, 'image': <Image: Wrap>, 'gi': <GalleryImage: Link [08] Wrap>, 'bio': "Lindy Zhu is a graphic designer who focus a lot on communication instinct.Back at 2016 she did some project about how to convey wild conservastion information to the public. Now she's interested in convey body and its language to the people through clothes they wear.", 'user': <User: lzhu>, 'slideshow': True, 'prev_link': ('/fg2017/slideshow/fg2017-lzhu/img369/', 'Link'), 'next_link': ('/fg2017/slideshow/fg2017-lzhu/img372/', 'Link'), 'gallery_counter': '136/250', 'pgimages': [(<GalleryImage: Link [02] Link logo>, '/fg2017/slideshow/fg2017-lzhu/img179/'), (<GalleryImage: Link [03] Mood 1>, '/fg2017/slideshow/fg2017-lzhu/img367/'), (<GalleryImage: Link [04] Mood 2>, '/fg2017/slideshow/fg2017-lzhu/img366/'), (<GalleryImage: Link [05] Mood 3>, '/fg2017/slideshow/fg2017-lzhu/img365/'), (<GalleryImage: Link [06] Tangle>, '/fg2017/slideshow/fg2017-lzhu/img368/'), (<GalleryImage: Link [07] Ravel>, '/fg2017/slideshow/fg2017-lzhu/img369/')], 'ngimages': [(<GalleryImage: Link [14] look book>, '/fg2017/slideshow/fg2017-lzhu/img341/'), (<GalleryImage: Link [13] Website>, '/fg2017/slideshow/fg2017-lzhu/img384/'), (<GalleryImage: Link [12] Poster 2>, '/fg2017/slideshow/fg2017-lzhu/img389/'), (<GalleryImage: Link [11] Poster1>, '/fg2017/slideshow/fg2017-lzhu/img388/'), (<GalleryImage: Link [10] Lead>, '/fg2017/slideshow/fg2017-lzhu/img387/'), (<GalleryImage: Link [09] Link>, '/fg2017/slideshow/fg2017-lzhu/img372/')]}, {'block': <Block Node: content. Contents: [<TextNode: '\n<div class="image-full">'>, <Variable Node: prev_link.0>, <TextNode: '" title="'>, <Variable Node: prev_link.1>, <TextNode: '">'>, <Variable Node: prev_link.1>, <TextNode: '</a>\n <a class="next'>, <Variable Node: next_link.0>, <TextNode: '" title="'>, <Variable Node: next_link.1>, <TextNode: '">'>, <Variable Node: next_link.1>, <TextNode: '</a>\n </div>\n <img sr'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a1a84a8>, <TextNode: '" alt="'>, <Variable Node: image.title>, <TextNode: '"/>\n '>, <IfNode>, <TextNode: '\n</div>\n<div class="galle'>, <For Node: for gim, giurl in pgimages, tail_len: 13>, <TextNode: '\n<span class="galcounter"'>, <Variable Node: gallery_counter>, <TextNode: '</span>\n'>, <For Node: for gim, giurl in ngimages, tail_len: 13>, <TextNode: '</div>\n<div class="image-'>, <Variable Node: gallery.title>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n <div class="i'>, <Variable Node: user.first_name>, <TextNode: ' '>, <Variable Node: user.last_name>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n</div>\n'>]>}] |
node | <ExtendsNode: extends "fgstudents/portfolio.html"> |
self | [<ExtendsNode: extends "fgstudents/portfolio.html">] |
/home/zvez01/apps/fg2017/env/src/django/django/template/base.py
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}, {}, {}, {'student_class': <StudentClass: MICA Fashion Graphics 2017>, 'gallery': <Gallery: Link>, 'image': <Image: Wrap>, 'gi': <GalleryImage: Link [08] Wrap>, 'bio': "Lindy Zhu is a graphic designer who focus a lot on communication instinct.Back at 2016 she did some project about how to convey wild conservastion information to the public. Now she's interested in convey body and its language to the people through clothes they wear.", 'user': <User: lzhu>, 'slideshow': True, 'prev_link': ('/fg2017/slideshow/fg2017-lzhu/img369/', 'Link'), 'next_link': ('/fg2017/slideshow/fg2017-lzhu/img372/', 'Link'), 'gallery_counter': '136/250', 'pgimages': [(<GalleryImage: Link [02] Link logo>, '/fg2017/slideshow/fg2017-lzhu/img179/'), (<GalleryImage: Link [03] Mood 1>, '/fg2017/slideshow/fg2017-lzhu/img367/'), (<GalleryImage: Link [04] Mood 2>, '/fg2017/slideshow/fg2017-lzhu/img366/'), (<GalleryImage: Link [05] Mood 3>, '/fg2017/slideshow/fg2017-lzhu/img365/'), (<GalleryImage: Link [06] Tangle>, '/fg2017/slideshow/fg2017-lzhu/img368/'), (<GalleryImage: Link [07] Ravel>, '/fg2017/slideshow/fg2017-lzhu/img369/')], 'ngimages': [(<GalleryImage: Link [14] look book>, '/fg2017/slideshow/fg2017-lzhu/img341/'), (<GalleryImage: Link [13] Website>, '/fg2017/slideshow/fg2017-lzhu/img384/'), (<GalleryImage: Link [12] Poster 2>, '/fg2017/slideshow/fg2017-lzhu/img389/'), (<GalleryImage: Link [11] Poster1>, '/fg2017/slideshow/fg2017-lzhu/img388/'), (<GalleryImage: Link [10] Lead>, '/fg2017/slideshow/fg2017-lzhu/img387/'), (<GalleryImage: Link [09] Link>, '/fg2017/slideshow/fg2017-lzhu/img372/')]}, {'block': <Block Node: content. Contents: [<TextNode: '\n<div class="image-full">'>, <Variable Node: prev_link.0>, <TextNode: '" title="'>, <Variable Node: prev_link.1>, <TextNode: '">'>, <Variable Node: prev_link.1>, <TextNode: '</a>\n <a class="next'>, <Variable Node: next_link.0>, <TextNode: '" title="'>, <Variable Node: next_link.1>, <TextNode: '">'>, <Variable Node: next_link.1>, <TextNode: '</a>\n </div>\n <img sr'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a1a84a8>, <TextNode: '" alt="'>, <Variable Node: image.title>, <TextNode: '"/>\n '>, <IfNode>, <TextNode: '\n</div>\n<div class="galle'>, <For Node: for gim, giurl in pgimages, tail_len: 13>, <TextNode: '\n<span class="galcounter"'>, <Variable Node: gallery_counter>, <TextNode: '</span>\n'>, <For Node: for gim, giurl in ngimages, tail_len: 13>, <TextNode: '</div>\n<div class="image-'>, <Variable Node: gallery.title>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n <div class="i'>, <Variable Node: user.first_name>, <TextNode: ' '>, <Variable Node: user.last_name>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n</div>\n'>]>}] |
self | <ExtendsNode: extends "fgstudents/portfolio.html"> |
/home/zvez01/apps/fg2017/env/src/django/django/template/loader_tags.py
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, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7f347a2d0e80> |
compiled_parent | <django.template.base.Template object at 0x7f347a24a358> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'student_class': <StudentClass: MICA Fashion Graphics 2017>, 'gallery': <Gallery: Link>, 'image': <Image: Wrap>, 'gi': <GalleryImage: Link [08] Wrap>, 'bio': "Lindy Zhu is a graphic designer who focus a lot on communication instinct.Back at 2016 she did some project about how to convey wild conservastion information to the public. Now she's interested in convey body and its language to the people through clothes they wear.", 'user': <User: lzhu>, 'slideshow': True, 'prev_link': ('/fg2017/slideshow/fg2017-lzhu/img369/', 'Link'), 'next_link': ('/fg2017/slideshow/fg2017-lzhu/img372/', 'Link'), 'gallery_counter': '136/250', 'pgimages': [(<GalleryImage: Link [02] Link logo>, '/fg2017/slideshow/fg2017-lzhu/img179/'), (<GalleryImage: Link [03] Mood 1>, '/fg2017/slideshow/fg2017-lzhu/img367/'), (<GalleryImage: Link [04] Mood 2>, '/fg2017/slideshow/fg2017-lzhu/img366/'), (<GalleryImage: Link [05] Mood 3>, '/fg2017/slideshow/fg2017-lzhu/img365/'), (<GalleryImage: Link [06] Tangle>, '/fg2017/slideshow/fg2017-lzhu/img368/'), (<GalleryImage: Link [07] Ravel>, '/fg2017/slideshow/fg2017-lzhu/img369/')], 'ngimages': [(<GalleryImage: Link [14] look book>, '/fg2017/slideshow/fg2017-lzhu/img341/'), (<GalleryImage: Link [13] Website>, '/fg2017/slideshow/fg2017-lzhu/img384/'), (<GalleryImage: Link [12] Poster 2>, '/fg2017/slideshow/fg2017-lzhu/img389/'), (<GalleryImage: Link [11] Poster1>, '/fg2017/slideshow/fg2017-lzhu/img388/'), (<GalleryImage: Link [10] Lead>, '/fg2017/slideshow/fg2017-lzhu/img387/'), (<GalleryImage: Link [09] Link>, '/fg2017/slideshow/fg2017-lzhu/img372/')]}, {'block': <Block Node: content. Contents: [<TextNode: '\n<div class="image-full">'>, <Variable Node: prev_link.0>, <TextNode: '" title="'>, <Variable Node: prev_link.1>, <TextNode: '">'>, <Variable Node: prev_link.1>, <TextNode: '</a>\n <a class="next'>, <Variable Node: next_link.0>, <TextNode: '" title="'>, <Variable Node: next_link.1>, <TextNode: '">'>, <Variable Node: next_link.1>, <TextNode: '</a>\n </div>\n <img sr'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a1a84a8>, <TextNode: '" alt="'>, <Variable Node: image.title>, <TextNode: '"/>\n '>, <IfNode>, <TextNode: '\n</div>\n<div class="galle'>, <For Node: for gim, giurl in pgimages, tail_len: 13>, <TextNode: '\n<span class="galcounter"'>, <Variable Node: gallery_counter>, <TextNode: '</span>\n'>, <For Node: for gim, giurl in ngimages, tail_len: 13>, <TextNode: '</div>\n<div class="image-'>, <Variable Node: gallery.title>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n <div class="i'>, <Variable Node: user.first_name>, <TextNode: ' '>, <Variable Node: user.last_name>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n</div>\n'>]>}] |
node | <ExtendsNode: extends "base.html"> |
self | <ExtendsNode: extends "fgstudents/portfolio.html"> |
/home/zvez01/apps/fg2017/env/src/django/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
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}, {}, {}, {'student_class': <StudentClass: MICA Fashion Graphics 2017>, 'gallery': <Gallery: Link>, 'image': <Image: Wrap>, 'gi': <GalleryImage: Link [08] Wrap>, 'bio': "Lindy Zhu is a graphic designer who focus a lot on communication instinct.Back at 2016 she did some project about how to convey wild conservastion information to the public. Now she's interested in convey body and its language to the people through clothes they wear.", 'user': <User: lzhu>, 'slideshow': True, 'prev_link': ('/fg2017/slideshow/fg2017-lzhu/img369/', 'Link'), 'next_link': ('/fg2017/slideshow/fg2017-lzhu/img372/', 'Link'), 'gallery_counter': '136/250', 'pgimages': [(<GalleryImage: Link [02] Link logo>, '/fg2017/slideshow/fg2017-lzhu/img179/'), (<GalleryImage: Link [03] Mood 1>, '/fg2017/slideshow/fg2017-lzhu/img367/'), (<GalleryImage: Link [04] Mood 2>, '/fg2017/slideshow/fg2017-lzhu/img366/'), (<GalleryImage: Link [05] Mood 3>, '/fg2017/slideshow/fg2017-lzhu/img365/'), (<GalleryImage: Link [06] Tangle>, '/fg2017/slideshow/fg2017-lzhu/img368/'), (<GalleryImage: Link [07] Ravel>, '/fg2017/slideshow/fg2017-lzhu/img369/')], 'ngimages': [(<GalleryImage: Link [14] look book>, '/fg2017/slideshow/fg2017-lzhu/img341/'), (<GalleryImage: Link [13] Website>, '/fg2017/slideshow/fg2017-lzhu/img384/'), (<GalleryImage: Link [12] Poster 2>, '/fg2017/slideshow/fg2017-lzhu/img389/'), (<GalleryImage: Link [11] Poster1>, '/fg2017/slideshow/fg2017-lzhu/img388/'), (<GalleryImage: Link [10] Lead>, '/fg2017/slideshow/fg2017-lzhu/img387/'), (<GalleryImage: Link [09] Link>, '/fg2017/slideshow/fg2017-lzhu/img372/')]}, {'block': <Block Node: content. Contents: [<TextNode: '\n<div class="image-full">'>, <Variable Node: prev_link.0>, <TextNode: '" title="'>, <Variable Node: prev_link.1>, <TextNode: '">'>, <Variable Node: prev_link.1>, <TextNode: '</a>\n <a class="next'>, <Variable Node: next_link.0>, <TextNode: '" title="'>, <Variable Node: next_link.1>, <TextNode: '">'>, <Variable Node: next_link.1>, <TextNode: '</a>\n </div>\n <img sr'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a1a84a8>, <TextNode: '" alt="'>, <Variable Node: image.title>, <TextNode: '"/>\n '>, <IfNode>, <TextNode: '\n</div>\n<div class="galle'>, <For Node: for gim, giurl in pgimages, tail_len: 13>, <TextNode: '\n<span class="galcounter"'>, <Variable Node: gallery_counter>, <TextNode: '</span>\n'>, <For Node: for gim, giurl in ngimages, tail_len: 13>, <TextNode: '</div>\n<div class="image-'>, <Variable Node: gallery.title>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n <div class="i'>, <Variable Node: user.first_name>, <TextNode: ' '>, <Variable Node: user.last_name>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n</div>\n'>]>}] |
self | <django.template.base.Template object at 0x7f347a24a358> |
/home/zvez01/apps/fg2017/env/src/django/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'student_class': <StudentClass: MICA Fashion Graphics 2017>, 'gallery': <Gallery: Link>, 'image': <Image: Wrap>, 'gi': <GalleryImage: Link [08] Wrap>, 'bio': "Lindy Zhu is a graphic designer who focus a lot on communication instinct.Back at 2016 she did some project about how to convey wild conservastion information to the public. Now she's interested in convey body and its language to the people through clothes they wear.", 'user': <User: lzhu>, 'slideshow': True, 'prev_link': ('/fg2017/slideshow/fg2017-lzhu/img369/', 'Link'), 'next_link': ('/fg2017/slideshow/fg2017-lzhu/img372/', 'Link'), 'gallery_counter': '136/250', 'pgimages': [(<GalleryImage: Link [02] Link logo>, '/fg2017/slideshow/fg2017-lzhu/img179/'), (<GalleryImage: Link [03] Mood 1>, '/fg2017/slideshow/fg2017-lzhu/img367/'), (<GalleryImage: Link [04] Mood 2>, '/fg2017/slideshow/fg2017-lzhu/img366/'), (<GalleryImage: Link [05] Mood 3>, '/fg2017/slideshow/fg2017-lzhu/img365/'), (<GalleryImage: Link [06] Tangle>, '/fg2017/slideshow/fg2017-lzhu/img368/'), (<GalleryImage: Link [07] Ravel>, '/fg2017/slideshow/fg2017-lzhu/img369/')], 'ngimages': [(<GalleryImage: Link [14] look book>, '/fg2017/slideshow/fg2017-lzhu/img341/'), (<GalleryImage: Link [13] Website>, '/fg2017/slideshow/fg2017-lzhu/img384/'), (<GalleryImage: Link [12] Poster 2>, '/fg2017/slideshow/fg2017-lzhu/img389/'), (<GalleryImage: Link [11] Poster1>, '/fg2017/slideshow/fg2017-lzhu/img388/'), (<GalleryImage: Link [10] Lead>, '/fg2017/slideshow/fg2017-lzhu/img387/'), (<GalleryImage: Link [09] Link>, '/fg2017/slideshow/fg2017-lzhu/img372/')]}, {'block': <Block Node: content. Contents: [<TextNode: '\n<div class="image-full">'>, <Variable Node: prev_link.0>, <TextNode: '" title="'>, <Variable Node: prev_link.1>, <TextNode: '">'>, <Variable Node: prev_link.1>, <TextNode: '</a>\n <a class="next'>, <Variable Node: next_link.0>, <TextNode: '" title="'>, <Variable Node: next_link.1>, <TextNode: '">'>, <Variable Node: next_link.1>, <TextNode: '</a>\n </div>\n <img sr'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a1a84a8>, <TextNode: '" alt="'>, <Variable Node: image.title>, <TextNode: '"/>\n '>, <IfNode>, <TextNode: '\n</div>\n<div class="galle'>, <For Node: for gim, giurl in pgimages, tail_len: 13>, <TextNode: '\n<span class="galcounter"'>, <Variable Node: gallery_counter>, <TextNode: '</span>\n'>, <For Node: for gim, giurl in ngimages, tail_len: 13>, <TextNode: '</div>\n<div class="image-'>, <Variable Node: gallery.title>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n <div class="i'>, <Variable Node: user.first_name>, <TextNode: ' '>, <Variable Node: user.last_name>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n</div>\n'>]>}] |
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.html">] |
/home/zvez01/apps/fg2017/env/src/django/django/template/base.py
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}, {}, {}, {'student_class': <StudentClass: MICA Fashion Graphics 2017>, 'gallery': <Gallery: Link>, 'image': <Image: Wrap>, 'gi': <GalleryImage: Link [08] Wrap>, 'bio': "Lindy Zhu is a graphic designer who focus a lot on communication instinct.Back at 2016 she did some project about how to convey wild conservastion information to the public. Now she's interested in convey body and its language to the people through clothes they wear.", 'user': <User: lzhu>, 'slideshow': True, 'prev_link': ('/fg2017/slideshow/fg2017-lzhu/img369/', 'Link'), 'next_link': ('/fg2017/slideshow/fg2017-lzhu/img372/', 'Link'), 'gallery_counter': '136/250', 'pgimages': [(<GalleryImage: Link [02] Link logo>, '/fg2017/slideshow/fg2017-lzhu/img179/'), (<GalleryImage: Link [03] Mood 1>, '/fg2017/slideshow/fg2017-lzhu/img367/'), (<GalleryImage: Link [04] Mood 2>, '/fg2017/slideshow/fg2017-lzhu/img366/'), (<GalleryImage: Link [05] Mood 3>, '/fg2017/slideshow/fg2017-lzhu/img365/'), (<GalleryImage: Link [06] Tangle>, '/fg2017/slideshow/fg2017-lzhu/img368/'), (<GalleryImage: Link [07] Ravel>, '/fg2017/slideshow/fg2017-lzhu/img369/')], 'ngimages': [(<GalleryImage: Link [14] look book>, '/fg2017/slideshow/fg2017-lzhu/img341/'), (<GalleryImage: Link [13] Website>, '/fg2017/slideshow/fg2017-lzhu/img384/'), (<GalleryImage: Link [12] Poster 2>, '/fg2017/slideshow/fg2017-lzhu/img389/'), (<GalleryImage: Link [11] Poster1>, '/fg2017/slideshow/fg2017-lzhu/img388/'), (<GalleryImage: Link [10] Lead>, '/fg2017/slideshow/fg2017-lzhu/img387/'), (<GalleryImage: Link [09] Link>, '/fg2017/slideshow/fg2017-lzhu/img372/')]}, {'block': <Block Node: content. Contents: [<TextNode: '\n<div class="image-full">'>, <Variable Node: prev_link.0>, <TextNode: '" title="'>, <Variable Node: prev_link.1>, <TextNode: '">'>, <Variable Node: prev_link.1>, <TextNode: '</a>\n <a class="next'>, <Variable Node: next_link.0>, <TextNode: '" title="'>, <Variable Node: next_link.1>, <TextNode: '">'>, <Variable Node: next_link.1>, <TextNode: '</a>\n </div>\n <img sr'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a1a84a8>, <TextNode: '" alt="'>, <Variable Node: image.title>, <TextNode: '"/>\n '>, <IfNode>, <TextNode: '\n</div>\n<div class="galle'>, <For Node: for gim, giurl in pgimages, tail_len: 13>, <TextNode: '\n<span class="galcounter"'>, <Variable Node: gallery_counter>, <TextNode: '</span>\n'>, <For Node: for gim, giurl in ngimages, tail_len: 13>, <TextNode: '</div>\n<div class="image-'>, <Variable Node: gallery.title>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n <div class="i'>, <Variable Node: user.first_name>, <TextNode: ' '>, <Variable Node: user.last_name>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n</div>\n'>]>}] |
self | <ExtendsNode: extends "base.html"> |
/home/zvez01/apps/fg2017/env/src/django/django/template/loader_tags.py
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, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7f347a2d0e80> |
blocks | {'bodyclass': <Block Node: bodyclass. Contents: []>, 'bodyonload': <Block Node: bodyonload. Contents: []>, 'content': <Block Node: content. Contents: []>, 'css': <Block Node: css. Contents: []>, 'feeds': <Block Node: feeds. Contents: []>, 'js': <Block Node: js. Contents: []>, 'title': <Block Node: title. Contents: []>, 'topcenter': <Block Node: topcenter. Contents: []>, 'topleft': <Block Node: topleft. Contents: []>, 'topright': <Block Node: topright. Contents: []>} |
compiled_parent | <django.template.base.Template object at 0x7f347a2c6588> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'student_class': <StudentClass: MICA Fashion Graphics 2017>, 'gallery': <Gallery: Link>, 'image': <Image: Wrap>, 'gi': <GalleryImage: Link [08] Wrap>, 'bio': "Lindy Zhu is a graphic designer who focus a lot on communication instinct.Back at 2016 she did some project about how to convey wild conservastion information to the public. Now she's interested in convey body and its language to the people through clothes they wear.", 'user': <User: lzhu>, 'slideshow': True, 'prev_link': ('/fg2017/slideshow/fg2017-lzhu/img369/', 'Link'), 'next_link': ('/fg2017/slideshow/fg2017-lzhu/img372/', 'Link'), 'gallery_counter': '136/250', 'pgimages': [(<GalleryImage: Link [02] Link logo>, '/fg2017/slideshow/fg2017-lzhu/img179/'), (<GalleryImage: Link [03] Mood 1>, '/fg2017/slideshow/fg2017-lzhu/img367/'), (<GalleryImage: Link [04] Mood 2>, '/fg2017/slideshow/fg2017-lzhu/img366/'), (<GalleryImage: Link [05] Mood 3>, '/fg2017/slideshow/fg2017-lzhu/img365/'), (<GalleryImage: Link [06] Tangle>, '/fg2017/slideshow/fg2017-lzhu/img368/'), (<GalleryImage: Link [07] Ravel>, '/fg2017/slideshow/fg2017-lzhu/img369/')], 'ngimages': [(<GalleryImage: Link [14] look book>, '/fg2017/slideshow/fg2017-lzhu/img341/'), (<GalleryImage: Link [13] Website>, '/fg2017/slideshow/fg2017-lzhu/img384/'), (<GalleryImage: Link [12] Poster 2>, '/fg2017/slideshow/fg2017-lzhu/img389/'), (<GalleryImage: Link [11] Poster1>, '/fg2017/slideshow/fg2017-lzhu/img388/'), (<GalleryImage: Link [10] Lead>, '/fg2017/slideshow/fg2017-lzhu/img387/'), (<GalleryImage: Link [09] Link>, '/fg2017/slideshow/fg2017-lzhu/img372/')]}, {'block': <Block Node: content. Contents: [<TextNode: '\n<div class="image-full">'>, <Variable Node: prev_link.0>, <TextNode: '" title="'>, <Variable Node: prev_link.1>, <TextNode: '">'>, <Variable Node: prev_link.1>, <TextNode: '</a>\n <a class="next'>, <Variable Node: next_link.0>, <TextNode: '" title="'>, <Variable Node: next_link.1>, <TextNode: '">'>, <Variable Node: next_link.1>, <TextNode: '</a>\n </div>\n <img sr'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a1a84a8>, <TextNode: '" alt="'>, <Variable Node: image.title>, <TextNode: '"/>\n '>, <IfNode>, <TextNode: '\n</div>\n<div class="galle'>, <For Node: for gim, giurl in pgimages, tail_len: 13>, <TextNode: '\n<span class="galcounter"'>, <Variable Node: gallery_counter>, <TextNode: '</span>\n'>, <For Node: for gim, giurl in ngimages, tail_len: 13>, <TextNode: '</div>\n<div class="image-'>, <Variable Node: gallery.title>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n <div class="i'>, <Variable Node: user.first_name>, <TextNode: ' '>, <Variable Node: user.last_name>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n</div>\n'>]>}] |
node | <Block Node: title. Contents: []> |
self | <ExtendsNode: extends "base.html"> |
/home/zvez01/apps/fg2017/env/src/django/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
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}, {}, {}, {'student_class': <StudentClass: MICA Fashion Graphics 2017>, 'gallery': <Gallery: Link>, 'image': <Image: Wrap>, 'gi': <GalleryImage: Link [08] Wrap>, 'bio': "Lindy Zhu is a graphic designer who focus a lot on communication instinct.Back at 2016 she did some project about how to convey wild conservastion information to the public. Now she's interested in convey body and its language to the people through clothes they wear.", 'user': <User: lzhu>, 'slideshow': True, 'prev_link': ('/fg2017/slideshow/fg2017-lzhu/img369/', 'Link'), 'next_link': ('/fg2017/slideshow/fg2017-lzhu/img372/', 'Link'), 'gallery_counter': '136/250', 'pgimages': [(<GalleryImage: Link [02] Link logo>, '/fg2017/slideshow/fg2017-lzhu/img179/'), (<GalleryImage: Link [03] Mood 1>, '/fg2017/slideshow/fg2017-lzhu/img367/'), (<GalleryImage: Link [04] Mood 2>, '/fg2017/slideshow/fg2017-lzhu/img366/'), (<GalleryImage: Link [05] Mood 3>, '/fg2017/slideshow/fg2017-lzhu/img365/'), (<GalleryImage: Link [06] Tangle>, '/fg2017/slideshow/fg2017-lzhu/img368/'), (<GalleryImage: Link [07] Ravel>, '/fg2017/slideshow/fg2017-lzhu/img369/')], 'ngimages': [(<GalleryImage: Link [14] look book>, '/fg2017/slideshow/fg2017-lzhu/img341/'), (<GalleryImage: Link [13] Website>, '/fg2017/slideshow/fg2017-lzhu/img384/'), (<GalleryImage: Link [12] Poster 2>, '/fg2017/slideshow/fg2017-lzhu/img389/'), (<GalleryImage: Link [11] Poster1>, '/fg2017/slideshow/fg2017-lzhu/img388/'), (<GalleryImage: Link [10] Lead>, '/fg2017/slideshow/fg2017-lzhu/img387/'), (<GalleryImage: Link [09] Link>, '/fg2017/slideshow/fg2017-lzhu/img372/')]}, {'block': <Block Node: content. Contents: [<TextNode: '\n<div class="image-full">'>, <Variable Node: prev_link.0>, <TextNode: '" title="'>, <Variable Node: prev_link.1>, <TextNode: '">'>, <Variable Node: prev_link.1>, <TextNode: '</a>\n <a class="next'>, <Variable Node: next_link.0>, <TextNode: '" title="'>, <Variable Node: next_link.1>, <TextNode: '">'>, <Variable Node: next_link.1>, <TextNode: '</a>\n </div>\n <img sr'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a1a84a8>, <TextNode: '" alt="'>, <Variable Node: image.title>, <TextNode: '"/>\n '>, <IfNode>, <TextNode: '\n</div>\n<div class="galle'>, <For Node: for gim, giurl in pgimages, tail_len: 13>, <TextNode: '\n<span class="galcounter"'>, <Variable Node: gallery_counter>, <TextNode: '</span>\n'>, <For Node: for gim, giurl in ngimages, tail_len: 13>, <TextNode: '</div>\n<div class="image-'>, <Variable Node: gallery.title>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n <div class="i'>, <Variable Node: user.first_name>, <TextNode: ' '>, <Variable Node: user.last_name>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n</div>\n'>]>}] |
self | <django.template.base.Template object at 0x7f347a2c6588> |
/home/zvez01/apps/fg2017/env/src/django/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '</div>\n </div>\n <div id="content">' |
bits | ['<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"\n' '"http://www.w3.org/TR/html4/strict.dtd">\n' '<html>\n' ' <head>\n' ' <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\n' ' <title>', ' (Link)', '</title>\n <link rel="stylesheet" type="text/css" href="', '/static/', 'css/site.css">\n ', '', '\n ', '', '\n ', '', '\n </head>\n <body class="', 'index', '" onload="', '', '">\n' ' <div id="wrapper">\n' ' <div id="topnav">\n' '\t<div id="topleft" class="toplinks">', '\n\t <a href="/fg2017/about/">About the Class</a>\n', '</div>\n\t<div id="logo">\n\t <a href="/"><img src="', '/static/', 'images/logo001.png" alt="fg logo"/></a>\n' '\t</div>\n' '\t<div id="topright" class="toplinks">', '\n' '\t <a href="/fg2017/">Student Work</a>\n' '\t <a href="/fg2017/students/">Log In</a>\n' '\t \n', '</div>\n' ' </div>\n' ' <div id="pastnav">\n' '\t<div id="topcenter" class="pastlinks">', '\n' ' \n' '\t <a href="/fg2009/">2009</a>\n' ' \n' '\t <a href="/fg2010/">2010</a>\n' ' \n' '\t <a href="/fg2012/">2012</a>\n' ' \n' '\t <a href="/fg2014/">2014</a>\n' ' \n' '\t <a href="/fg2015/">2015</a>\n' ' \n' '\t <a href="/fg2016/">2016</a>\n' ' \n' '\t <a href="/fg2017/">2017</a>\n' ' \n', '</div>\n </div>\n <div id="content">'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'student_class': <StudentClass: MICA Fashion Graphics 2017>, 'gallery': <Gallery: Link>, 'image': <Image: Wrap>, 'gi': <GalleryImage: Link [08] Wrap>, 'bio': "Lindy Zhu is a graphic designer who focus a lot on communication instinct.Back at 2016 she did some project about how to convey wild conservastion information to the public. Now she's interested in convey body and its language to the people through clothes they wear.", 'user': <User: lzhu>, 'slideshow': True, 'prev_link': ('/fg2017/slideshow/fg2017-lzhu/img369/', 'Link'), 'next_link': ('/fg2017/slideshow/fg2017-lzhu/img372/', 'Link'), 'gallery_counter': '136/250', 'pgimages': [(<GalleryImage: Link [02] Link logo>, '/fg2017/slideshow/fg2017-lzhu/img179/'), (<GalleryImage: Link [03] Mood 1>, '/fg2017/slideshow/fg2017-lzhu/img367/'), (<GalleryImage: Link [04] Mood 2>, '/fg2017/slideshow/fg2017-lzhu/img366/'), (<GalleryImage: Link [05] Mood 3>, '/fg2017/slideshow/fg2017-lzhu/img365/'), (<GalleryImage: Link [06] Tangle>, '/fg2017/slideshow/fg2017-lzhu/img368/'), (<GalleryImage: Link [07] Ravel>, '/fg2017/slideshow/fg2017-lzhu/img369/')], 'ngimages': [(<GalleryImage: Link [14] look book>, '/fg2017/slideshow/fg2017-lzhu/img341/'), (<GalleryImage: Link [13] Website>, '/fg2017/slideshow/fg2017-lzhu/img384/'), (<GalleryImage: Link [12] Poster 2>, '/fg2017/slideshow/fg2017-lzhu/img389/'), (<GalleryImage: Link [11] Poster1>, '/fg2017/slideshow/fg2017-lzhu/img388/'), (<GalleryImage: Link [10] Lead>, '/fg2017/slideshow/fg2017-lzhu/img387/'), (<GalleryImage: Link [09] Link>, '/fg2017/slideshow/fg2017-lzhu/img372/')]}, {'block': <Block Node: content. Contents: [<TextNode: '\n<div class="image-full">'>, <Variable Node: prev_link.0>, <TextNode: '" title="'>, <Variable Node: prev_link.1>, <TextNode: '">'>, <Variable Node: prev_link.1>, <TextNode: '</a>\n <a class="next'>, <Variable Node: next_link.0>, <TextNode: '" title="'>, <Variable Node: next_link.1>, <TextNode: '">'>, <Variable Node: next_link.1>, <TextNode: '</a>\n </div>\n <img sr'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a1a84a8>, <TextNode: '" alt="'>, <Variable Node: image.title>, <TextNode: '"/>\n '>, <IfNode>, <TextNode: '\n</div>\n<div class="galle'>, <For Node: for gim, giurl in pgimages, tail_len: 13>, <TextNode: '\n<span class="galcounter"'>, <Variable Node: gallery_counter>, <TextNode: '</span>\n'>, <For Node: for gim, giurl in ngimages, tail_len: 13>, <TextNode: '</div>\n<div class="image-'>, <Variable Node: gallery.title>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n <div class="i'>, <Variable Node: user.first_name>, <TextNode: ' '>, <Variable Node: user.last_name>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n</div>\n'>]>}] |
node | <Block Node: content. Contents: []> |
self | [<TextNode: '<!DOCTYPE HTML PUBLIC "-/'>, <Block Node: title. Contents: []>, <TextNode: '</title>\n <link rel="s'>, <Variable Node: STATIC_URL>, <TextNode: 'css/site.css">\n '>, <Block Node: css. Contents: []>, <TextNode: '\n '>, <Block Node: js. Contents: []>, <TextNode: '\n '>, <Block Node: feeds. Contents: []>, <TextNode: '\n </head>\n <body class='>, <Block Node: bodyclass. Contents: []>, <TextNode: '" onload="'>, <Block Node: bodyonload. Contents: []>, <TextNode: '">\n <div id="wrapper">'>, <Block Node: topleft. Contents: []>, <TextNode: '</div>\n\t<div id="logo">\n\t'>, <Variable Node: STATIC_URL>, <TextNode: 'images/logo001.png" alt="'>, <Block Node: topright. Contents: []>, <TextNode: '</div>\n </div>\n '>, <Block Node: topcenter. Contents: []>, <TextNode: '</div>\n </div>\n '>, <Block Node: content. Contents: []>, <TextNode: '</div>\n </div>\n </bod'>] |
/home/zvez01/apps/fg2017/env/src/django/django/template/base.py
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}, {}, {}, {'student_class': <StudentClass: MICA Fashion Graphics 2017>, 'gallery': <Gallery: Link>, 'image': <Image: Wrap>, 'gi': <GalleryImage: Link [08] Wrap>, 'bio': "Lindy Zhu is a graphic designer who focus a lot on communication instinct.Back at 2016 she did some project about how to convey wild conservastion information to the public. Now she's interested in convey body and its language to the people through clothes they wear.", 'user': <User: lzhu>, 'slideshow': True, 'prev_link': ('/fg2017/slideshow/fg2017-lzhu/img369/', 'Link'), 'next_link': ('/fg2017/slideshow/fg2017-lzhu/img372/', 'Link'), 'gallery_counter': '136/250', 'pgimages': [(<GalleryImage: Link [02] Link logo>, '/fg2017/slideshow/fg2017-lzhu/img179/'), (<GalleryImage: Link [03] Mood 1>, '/fg2017/slideshow/fg2017-lzhu/img367/'), (<GalleryImage: Link [04] Mood 2>, '/fg2017/slideshow/fg2017-lzhu/img366/'), (<GalleryImage: Link [05] Mood 3>, '/fg2017/slideshow/fg2017-lzhu/img365/'), (<GalleryImage: Link [06] Tangle>, '/fg2017/slideshow/fg2017-lzhu/img368/'), (<GalleryImage: Link [07] Ravel>, '/fg2017/slideshow/fg2017-lzhu/img369/')], 'ngimages': [(<GalleryImage: Link [14] look book>, '/fg2017/slideshow/fg2017-lzhu/img341/'), (<GalleryImage: Link [13] Website>, '/fg2017/slideshow/fg2017-lzhu/img384/'), (<GalleryImage: Link [12] Poster 2>, '/fg2017/slideshow/fg2017-lzhu/img389/'), (<GalleryImage: Link [11] Poster1>, '/fg2017/slideshow/fg2017-lzhu/img388/'), (<GalleryImage: Link [10] Lead>, '/fg2017/slideshow/fg2017-lzhu/img387/'), (<GalleryImage: Link [09] Link>, '/fg2017/slideshow/fg2017-lzhu/img372/')]}, {'block': <Block Node: content. Contents: [<TextNode: '\n<div class="image-full">'>, <Variable Node: prev_link.0>, <TextNode: '" title="'>, <Variable Node: prev_link.1>, <TextNode: '">'>, <Variable Node: prev_link.1>, <TextNode: '</a>\n <a class="next'>, <Variable Node: next_link.0>, <TextNode: '" title="'>, <Variable Node: next_link.1>, <TextNode: '">'>, <Variable Node: next_link.1>, <TextNode: '</a>\n </div>\n <img sr'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a1a84a8>, <TextNode: '" alt="'>, <Variable Node: image.title>, <TextNode: '"/>\n '>, <IfNode>, <TextNode: '\n</div>\n<div class="galle'>, <For Node: for gim, giurl in pgimages, tail_len: 13>, <TextNode: '\n<span class="galcounter"'>, <Variable Node: gallery_counter>, <TextNode: '</span>\n'>, <For Node: for gim, giurl in ngimages, tail_len: 13>, <TextNode: '</div>\n<div class="image-'>, <Variable Node: gallery.title>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n <div class="i'>, <Variable Node: user.first_name>, <TextNode: ' '>, <Variable Node: user.last_name>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n</div>\n'>]>}] |
self | <Block Node: content. Contents: []> |
/home/zvez01/apps/fg2017/env/src/django/django/template/loader_tags.py
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: content. Contents: [<TextNode: '\n<div class="image-full">'>, <Variable Node: prev_link.0>, <TextNode: '" title="'>, <Variable Node: prev_link.1>, <TextNode: '">'>, <Variable Node: prev_link.1>, <TextNode: '</a>\n <a class="next'>, <Variable Node: next_link.0>, <TextNode: '" title="'>, <Variable Node: next_link.1>, <TextNode: '">'>, <Variable Node: next_link.1>, <TextNode: '</a>\n </div>\n <img sr'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a1a84a8>, <TextNode: '" alt="'>, <Variable Node: image.title>, <TextNode: '"/>\n '>, <IfNode>, <TextNode: '\n</div>\n<div class="galle'>, <For Node: for gim, giurl in pgimages, tail_len: 13>, <TextNode: '\n<span class="galcounter"'>, <Variable Node: gallery_counter>, <TextNode: '</span>\n'>, <For Node: for gim, giurl in ngimages, tail_len: 13>, <TextNode: '</div>\n<div class="image-'>, <Variable Node: gallery.title>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n <div class="i'>, <Variable Node: user.first_name>, <TextNode: ' '>, <Variable Node: user.last_name>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n</div>\n'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f347a2d0e80> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'student_class': <StudentClass: MICA Fashion Graphics 2017>, 'gallery': <Gallery: Link>, 'image': <Image: Wrap>, 'gi': <GalleryImage: Link [08] Wrap>, 'bio': "Lindy Zhu is a graphic designer who focus a lot on communication instinct.Back at 2016 she did some project about how to convey wild conservastion information to the public. Now she's interested in convey body and its language to the people through clothes they wear.", 'user': <User: lzhu>, 'slideshow': True, 'prev_link': ('/fg2017/slideshow/fg2017-lzhu/img369/', 'Link'), 'next_link': ('/fg2017/slideshow/fg2017-lzhu/img372/', 'Link'), 'gallery_counter': '136/250', 'pgimages': [(<GalleryImage: Link [02] Link logo>, '/fg2017/slideshow/fg2017-lzhu/img179/'), (<GalleryImage: Link [03] Mood 1>, '/fg2017/slideshow/fg2017-lzhu/img367/'), (<GalleryImage: Link [04] Mood 2>, '/fg2017/slideshow/fg2017-lzhu/img366/'), (<GalleryImage: Link [05] Mood 3>, '/fg2017/slideshow/fg2017-lzhu/img365/'), (<GalleryImage: Link [06] Tangle>, '/fg2017/slideshow/fg2017-lzhu/img368/'), (<GalleryImage: Link [07] Ravel>, '/fg2017/slideshow/fg2017-lzhu/img369/')], 'ngimages': [(<GalleryImage: Link [14] look book>, '/fg2017/slideshow/fg2017-lzhu/img341/'), (<GalleryImage: Link [13] Website>, '/fg2017/slideshow/fg2017-lzhu/img384/'), (<GalleryImage: Link [12] Poster 2>, '/fg2017/slideshow/fg2017-lzhu/img389/'), (<GalleryImage: Link [11] Poster1>, '/fg2017/slideshow/fg2017-lzhu/img388/'), (<GalleryImage: Link [10] Lead>, '/fg2017/slideshow/fg2017-lzhu/img387/'), (<GalleryImage: Link [09] Link>, '/fg2017/slideshow/fg2017-lzhu/img372/')]}, {'block': <Block Node: content. Contents: [<TextNode: '\n<div class="image-full">'>, <Variable Node: prev_link.0>, <TextNode: '" title="'>, <Variable Node: prev_link.1>, <TextNode: '">'>, <Variable Node: prev_link.1>, <TextNode: '</a>\n <a class="next'>, <Variable Node: next_link.0>, <TextNode: '" title="'>, <Variable Node: next_link.1>, <TextNode: '">'>, <Variable Node: next_link.1>, <TextNode: '</a>\n </div>\n <img sr'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a1a84a8>, <TextNode: '" alt="'>, <Variable Node: image.title>, <TextNode: '"/>\n '>, <IfNode>, <TextNode: '\n</div>\n<div class="galle'>, <For Node: for gim, giurl in pgimages, tail_len: 13>, <TextNode: '\n<span class="galcounter"'>, <Variable Node: gallery_counter>, <TextNode: '</span>\n'>, <For Node: for gim, giurl in ngimages, tail_len: 13>, <TextNode: '</div>\n<div class="image-'>, <Variable Node: gallery.title>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n <div class="i'>, <Variable Node: user.first_name>, <TextNode: ' '>, <Variable Node: user.last_name>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n</div>\n'>]>}] |
push | <Block Node: content. Contents: [<TextNode: '\n<div class="image-full">'>, <Variable Node: prev_link.0>, <TextNode: '" title="'>, <Variable Node: prev_link.1>, <TextNode: '">'>, <Variable Node: prev_link.1>, <TextNode: '</a>\n <a class="next'>, <Variable Node: next_link.0>, <TextNode: '" title="'>, <Variable Node: next_link.1>, <TextNode: '">'>, <Variable Node: next_link.1>, <TextNode: '</a>\n </div>\n <img sr'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a1a84a8>, <TextNode: '" alt="'>, <Variable Node: image.title>, <TextNode: '"/>\n '>, <IfNode>, <TextNode: '\n</div>\n<div class="galle'>, <For Node: for gim, giurl in pgimages, tail_len: 13>, <TextNode: '\n<span class="galcounter"'>, <Variable Node: gallery_counter>, <TextNode: '</span>\n'>, <For Node: for gim, giurl in ngimages, tail_len: 13>, <TextNode: '</div>\n<div class="image-'>, <Variable Node: gallery.title>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n <div class="i'>, <Variable Node: user.first_name>, <TextNode: ' '>, <Variable Node: user.last_name>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n</div>\n'>]> |
self | <Block Node: content. Contents: []> |
/home/zvez01/apps/fg2017/env/src/django/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '</span>\n' |
bits | ['\n' '<div class="image-full">\n' ' <div class="controls">\n' ' <a class="previous" href="', '/fg2017/slideshow/fg2017-lzhu/img369/', '" title="', 'Link', '">', 'Link', '</a>\n <a class="next" href="', '/fg2017/slideshow/fg2017-lzhu/img372/', '" title="', 'Link', '">', 'Link', '</a>\n </div>\n <img src="', '/uploads/images/2017/12/13/thumbs/wrap_5c1QWVN.jpg.560x420_q85.jpg', '" alt="', 'Wrap', '"/>\n ', '<p>Time sometimes is a gift. We look forward to the surprise in our ' 'relationships. Wrap it up and feel warm again.</p>', '\n</div>\n<div class="gallery-thumbs">\n', '\n' ' <div class="sthumb sthumb1">\n' ' <a href="/fg2017/slideshow/fg2017-lzhu/img179/"><img id="img179" ' 'src="/uploads/images/2017/12/06/thumbs/logo_337JxEa.jpg.44x33_q85_crop.jpg" ' 'alt="Link logo" title="Link logo"></a>\n' ' </div>\n' '\n' ' <div class="sthumb ">\n' ' <a href="/fg2017/slideshow/fg2017-lzhu/img367/"><img id="img367" ' 'src="/uploads/images/2017/12/13/thumbs/m1.jpg.44x33_q85_crop.jpg" alt="Mood ' '1" title="Mood 1"></a>\n' ' </div>\n' '\n' ' <div class="sthumb ">\n' ' <a href="/fg2017/slideshow/fg2017-lzhu/img366/"><img id="img366" ' 'src="/uploads/images/2017/12/13/thumbs/m2.jpg.44x33_q85_crop.jpg" alt="Mood ' '2" title="Mood 2"></a>\n' ' </div>\n' '\n' ' <div class="sthumb ">\n' ' <a href="/fg2017/slideshow/fg2017-lzhu/img365/"><img id="img365" ' 'src="/uploads/images/2017/12/13/thumbs/m3_424U9kw.jpg.44x33_q85_crop.jpg" ' 'alt="Mood 3" title="Mood 3"></a>\n' ' </div>\n' '\n' ' <div class="sthumb ">\n' ' <a href="/fg2017/slideshow/fg2017-lzhu/img368/"><img id="img368" ' 'src="/uploads/images/2017/12/13/thumbs/tangle.jpg.44x33_q85_crop.jpg" ' 'alt="Tangle" title="Tangle"></a>\n' ' </div>\n' '\n' ' <div class="sthumb ">\n' ' <a href="/fg2017/slideshow/fg2017-lzhu/img369/"><img id="img369" ' 'src="/uploads/images/2017/12/13/thumbs/ravel.jpg.44x33_q85_crop.jpg" ' 'alt="Ravel" title="Ravel"></a>\n' ' </div>\n', '\n<span class="galcounter">', '136/250', '</span>\n'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'student_class': <StudentClass: MICA Fashion Graphics 2017>, 'gallery': <Gallery: Link>, 'image': <Image: Wrap>, 'gi': <GalleryImage: Link [08] Wrap>, 'bio': "Lindy Zhu is a graphic designer who focus a lot on communication instinct.Back at 2016 she did some project about how to convey wild conservastion information to the public. Now she's interested in convey body and its language to the people through clothes they wear.", 'user': <User: lzhu>, 'slideshow': True, 'prev_link': ('/fg2017/slideshow/fg2017-lzhu/img369/', 'Link'), 'next_link': ('/fg2017/slideshow/fg2017-lzhu/img372/', 'Link'), 'gallery_counter': '136/250', 'pgimages': [(<GalleryImage: Link [02] Link logo>, '/fg2017/slideshow/fg2017-lzhu/img179/'), (<GalleryImage: Link [03] Mood 1>, '/fg2017/slideshow/fg2017-lzhu/img367/'), (<GalleryImage: Link [04] Mood 2>, '/fg2017/slideshow/fg2017-lzhu/img366/'), (<GalleryImage: Link [05] Mood 3>, '/fg2017/slideshow/fg2017-lzhu/img365/'), (<GalleryImage: Link [06] Tangle>, '/fg2017/slideshow/fg2017-lzhu/img368/'), (<GalleryImage: Link [07] Ravel>, '/fg2017/slideshow/fg2017-lzhu/img369/')], 'ngimages': [(<GalleryImage: Link [14] look book>, '/fg2017/slideshow/fg2017-lzhu/img341/'), (<GalleryImage: Link [13] Website>, '/fg2017/slideshow/fg2017-lzhu/img384/'), (<GalleryImage: Link [12] Poster 2>, '/fg2017/slideshow/fg2017-lzhu/img389/'), (<GalleryImage: Link [11] Poster1>, '/fg2017/slideshow/fg2017-lzhu/img388/'), (<GalleryImage: Link [10] Lead>, '/fg2017/slideshow/fg2017-lzhu/img387/'), (<GalleryImage: Link [09] Link>, '/fg2017/slideshow/fg2017-lzhu/img372/')]}, {'block': <Block Node: content. Contents: [<TextNode: '\n<div class="image-full">'>, <Variable Node: prev_link.0>, <TextNode: '" title="'>, <Variable Node: prev_link.1>, <TextNode: '">'>, <Variable Node: prev_link.1>, <TextNode: '</a>\n <a class="next'>, <Variable Node: next_link.0>, <TextNode: '" title="'>, <Variable Node: next_link.1>, <TextNode: '">'>, <Variable Node: next_link.1>, <TextNode: '</a>\n </div>\n <img sr'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a1a84a8>, <TextNode: '" alt="'>, <Variable Node: image.title>, <TextNode: '"/>\n '>, <IfNode>, <TextNode: '\n</div>\n<div class="galle'>, <For Node: for gim, giurl in pgimages, tail_len: 13>, <TextNode: '\n<span class="galcounter"'>, <Variable Node: gallery_counter>, <TextNode: '</span>\n'>, <For Node: for gim, giurl in ngimages, tail_len: 13>, <TextNode: '</div>\n<div class="image-'>, <Variable Node: gallery.title>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n <div class="i'>, <Variable Node: user.first_name>, <TextNode: ' '>, <Variable Node: user.last_name>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n</div>\n'>]>}] |
node | <For Node: for gim, giurl in ngimages, tail_len: 13> |
self | [<TextNode: '\n<div class="image-full">'>, <Variable Node: prev_link.0>, <TextNode: '" title="'>, <Variable Node: prev_link.1>, <TextNode: '">'>, <Variable Node: prev_link.1>, <TextNode: '</a>\n <a class="next'>, <Variable Node: next_link.0>, <TextNode: '" title="'>, <Variable Node: next_link.1>, <TextNode: '">'>, <Variable Node: next_link.1>, <TextNode: '</a>\n </div>\n <img sr'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a1a84a8>, <TextNode: '" alt="'>, <Variable Node: image.title>, <TextNode: '"/>\n '>, <IfNode>, <TextNode: '\n</div>\n<div class="galle'>, <For Node: for gim, giurl in pgimages, tail_len: 13>, <TextNode: '\n<span class="galcounter"'>, <Variable Node: gallery_counter>, <TextNode: '</span>\n'>, <For Node: for gim, giurl in ngimages, tail_len: 13>, <TextNode: '</div>\n<div class="image-'>, <Variable Node: gallery.title>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n <div class="i'>, <Variable Node: user.first_name>, <TextNode: ' '>, <Variable Node: user.last_name>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n</div>\n'>] |
/home/zvez01/apps/fg2017/env/src/django/django/template/base.py
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}, {}, {}, {'student_class': <StudentClass: MICA Fashion Graphics 2017>, 'gallery': <Gallery: Link>, 'image': <Image: Wrap>, 'gi': <GalleryImage: Link [08] Wrap>, 'bio': "Lindy Zhu is a graphic designer who focus a lot on communication instinct.Back at 2016 she did some project about how to convey wild conservastion information to the public. Now she's interested in convey body and its language to the people through clothes they wear.", 'user': <User: lzhu>, 'slideshow': True, 'prev_link': ('/fg2017/slideshow/fg2017-lzhu/img369/', 'Link'), 'next_link': ('/fg2017/slideshow/fg2017-lzhu/img372/', 'Link'), 'gallery_counter': '136/250', 'pgimages': [(<GalleryImage: Link [02] Link logo>, '/fg2017/slideshow/fg2017-lzhu/img179/'), (<GalleryImage: Link [03] Mood 1>, '/fg2017/slideshow/fg2017-lzhu/img367/'), (<GalleryImage: Link [04] Mood 2>, '/fg2017/slideshow/fg2017-lzhu/img366/'), (<GalleryImage: Link [05] Mood 3>, '/fg2017/slideshow/fg2017-lzhu/img365/'), (<GalleryImage: Link [06] Tangle>, '/fg2017/slideshow/fg2017-lzhu/img368/'), (<GalleryImage: Link [07] Ravel>, '/fg2017/slideshow/fg2017-lzhu/img369/')], 'ngimages': [(<GalleryImage: Link [14] look book>, '/fg2017/slideshow/fg2017-lzhu/img341/'), (<GalleryImage: Link [13] Website>, '/fg2017/slideshow/fg2017-lzhu/img384/'), (<GalleryImage: Link [12] Poster 2>, '/fg2017/slideshow/fg2017-lzhu/img389/'), (<GalleryImage: Link [11] Poster1>, '/fg2017/slideshow/fg2017-lzhu/img388/'), (<GalleryImage: Link [10] Lead>, '/fg2017/slideshow/fg2017-lzhu/img387/'), (<GalleryImage: Link [09] Link>, '/fg2017/slideshow/fg2017-lzhu/img372/')]}, {'block': <Block Node: content. Contents: [<TextNode: '\n<div class="image-full">'>, <Variable Node: prev_link.0>, <TextNode: '" title="'>, <Variable Node: prev_link.1>, <TextNode: '">'>, <Variable Node: prev_link.1>, <TextNode: '</a>\n <a class="next'>, <Variable Node: next_link.0>, <TextNode: '" title="'>, <Variable Node: next_link.1>, <TextNode: '">'>, <Variable Node: next_link.1>, <TextNode: '</a>\n </div>\n <img sr'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a1a84a8>, <TextNode: '" alt="'>, <Variable Node: image.title>, <TextNode: '"/>\n '>, <IfNode>, <TextNode: '\n</div>\n<div class="galle'>, <For Node: for gim, giurl in pgimages, tail_len: 13>, <TextNode: '\n<span class="galcounter"'>, <Variable Node: gallery_counter>, <TextNode: '</span>\n'>, <For Node: for gim, giurl in ngimages, tail_len: 13>, <TextNode: '</div>\n<div class="image-'>, <Variable Node: gallery.title>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n <div class="i'>, <Variable Node: user.first_name>, <TextNode: ' '>, <Variable Node: user.last_name>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n</div>\n'>]>}] |
self | <For Node: for gim, giurl in ngimages, tail_len: 13> |
/home/zvez01/apps/fg2017/env/src/django/django/template/defaulttags.py
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:
# The loop variables were pushed on to the context so pop them
# off again. This is necessary because the tag lets the length
# of loopvars differ to the length of each set of items and we
# don't want to leave any vars from the previous loop on the
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'student_class': <StudentClass: MICA Fashion Graphics 2017>, 'gallery': <Gallery: Link>, 'image': <Image: Wrap>, 'gi': <GalleryImage: Link [08] Wrap>, 'bio': "Lindy Zhu is a graphic designer who focus a lot on communication instinct.Back at 2016 she did some project about how to convey wild conservastion information to the public. Now she's interested in convey body and its language to the people through clothes they wear.", 'user': <User: lzhu>, 'slideshow': True, 'prev_link': ('/fg2017/slideshow/fg2017-lzhu/img369/', 'Link'), 'next_link': ('/fg2017/slideshow/fg2017-lzhu/img372/', 'Link'), 'gallery_counter': '136/250', 'pgimages': [(<GalleryImage: Link [02] Link logo>, '/fg2017/slideshow/fg2017-lzhu/img179/'), (<GalleryImage: Link [03] Mood 1>, '/fg2017/slideshow/fg2017-lzhu/img367/'), (<GalleryImage: Link [04] Mood 2>, '/fg2017/slideshow/fg2017-lzhu/img366/'), (<GalleryImage: Link [05] Mood 3>, '/fg2017/slideshow/fg2017-lzhu/img365/'), (<GalleryImage: Link [06] Tangle>, '/fg2017/slideshow/fg2017-lzhu/img368/'), (<GalleryImage: Link [07] Ravel>, '/fg2017/slideshow/fg2017-lzhu/img369/')], 'ngimages': [(<GalleryImage: Link [14] look book>, '/fg2017/slideshow/fg2017-lzhu/img341/'), (<GalleryImage: Link [13] Website>, '/fg2017/slideshow/fg2017-lzhu/img384/'), (<GalleryImage: Link [12] Poster 2>, '/fg2017/slideshow/fg2017-lzhu/img389/'), (<GalleryImage: Link [11] Poster1>, '/fg2017/slideshow/fg2017-lzhu/img388/'), (<GalleryImage: Link [10] Lead>, '/fg2017/slideshow/fg2017-lzhu/img387/'), (<GalleryImage: Link [09] Link>, '/fg2017/slideshow/fg2017-lzhu/img372/')]}, {'block': <Block Node: content. Contents: [<TextNode: '\n<div class="image-full">'>, <Variable Node: prev_link.0>, <TextNode: '" title="'>, <Variable Node: prev_link.1>, <TextNode: '">'>, <Variable Node: prev_link.1>, <TextNode: '</a>\n <a class="next'>, <Variable Node: next_link.0>, <TextNode: '" title="'>, <Variable Node: next_link.1>, <TextNode: '">'>, <Variable Node: next_link.1>, <TextNode: '</a>\n </div>\n <img sr'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a1a84a8>, <TextNode: '" alt="'>, <Variable Node: image.title>, <TextNode: '"/>\n '>, <IfNode>, <TextNode: '\n</div>\n<div class="galle'>, <For Node: for gim, giurl in pgimages, tail_len: 13>, <TextNode: '\n<span class="galcounter"'>, <Variable Node: gallery_counter>, <TextNode: '</span>\n'>, <For Node: for gim, giurl in ngimages, tail_len: 13>, <TextNode: '</div>\n<div class="image-'>, <Variable Node: gallery.title>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n <div class="i'>, <Variable Node: user.first_name>, <TextNode: ' '>, <Variable Node: user.last_name>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n</div>\n'>]>}] |
i | 0 |
item | (<GalleryImage: Link [14] look book>, '/fg2017/slideshow/fg2017-lzhu/img341/') |
len_item | 2 |
len_values | 6 |
loop_dict | {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {}, 'revcounter': 6, 'revcounter0': 5} |
node | <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a265128> |
nodelist | ['\n <div class="rthumb ', 'rthumb1', '">\n <a href="', '/fg2017/slideshow/fg2017-lzhu/img341/', '"><img id="', 'img341', '" src="'] |
num_loopvars | 2 |
parentloop | {} |
pop_context | True |
self | <For Node: for gim, giurl in ngimages, tail_len: 13> |
unpack | True |
unpacked_vars | {'gim': <GalleryImage: Link [14] look book>, 'giurl': '/fg2017/slideshow/fg2017-lzhu/img341/'} |
values | [(<GalleryImage: Link [14] look book>, '/fg2017/slideshow/fg2017-lzhu/img341/'), (<GalleryImage: Link [13] Website>, '/fg2017/slideshow/fg2017-lzhu/img384/'), (<GalleryImage: Link [12] Poster 2>, '/fg2017/slideshow/fg2017-lzhu/img389/'), (<GalleryImage: Link [11] Poster1>, '/fg2017/slideshow/fg2017-lzhu/img388/'), (<GalleryImage: Link [10] Lead>, '/fg2017/slideshow/fg2017-lzhu/img387/'), (<GalleryImage: Link [09] Link>, '/fg2017/slideshow/fg2017-lzhu/img372/')] |
/home/zvez01/apps/fg2017/env/src/django/django/template/base.py
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}, {}, {}, {'student_class': <StudentClass: MICA Fashion Graphics 2017>, 'gallery': <Gallery: Link>, 'image': <Image: Wrap>, 'gi': <GalleryImage: Link [08] Wrap>, 'bio': "Lindy Zhu is a graphic designer who focus a lot on communication instinct.Back at 2016 she did some project about how to convey wild conservastion information to the public. Now she's interested in convey body and its language to the people through clothes they wear.", 'user': <User: lzhu>, 'slideshow': True, 'prev_link': ('/fg2017/slideshow/fg2017-lzhu/img369/', 'Link'), 'next_link': ('/fg2017/slideshow/fg2017-lzhu/img372/', 'Link'), 'gallery_counter': '136/250', 'pgimages': [(<GalleryImage: Link [02] Link logo>, '/fg2017/slideshow/fg2017-lzhu/img179/'), (<GalleryImage: Link [03] Mood 1>, '/fg2017/slideshow/fg2017-lzhu/img367/'), (<GalleryImage: Link [04] Mood 2>, '/fg2017/slideshow/fg2017-lzhu/img366/'), (<GalleryImage: Link [05] Mood 3>, '/fg2017/slideshow/fg2017-lzhu/img365/'), (<GalleryImage: Link [06] Tangle>, '/fg2017/slideshow/fg2017-lzhu/img368/'), (<GalleryImage: Link [07] Ravel>, '/fg2017/slideshow/fg2017-lzhu/img369/')], 'ngimages': [(<GalleryImage: Link [14] look book>, '/fg2017/slideshow/fg2017-lzhu/img341/'), (<GalleryImage: Link [13] Website>, '/fg2017/slideshow/fg2017-lzhu/img384/'), (<GalleryImage: Link [12] Poster 2>, '/fg2017/slideshow/fg2017-lzhu/img389/'), (<GalleryImage: Link [11] Poster1>, '/fg2017/slideshow/fg2017-lzhu/img388/'), (<GalleryImage: Link [10] Lead>, '/fg2017/slideshow/fg2017-lzhu/img387/'), (<GalleryImage: Link [09] Link>, '/fg2017/slideshow/fg2017-lzhu/img372/')]}, {'block': <Block Node: content. Contents: [<TextNode: '\n<div class="image-full">'>, <Variable Node: prev_link.0>, <TextNode: '" title="'>, <Variable Node: prev_link.1>, <TextNode: '">'>, <Variable Node: prev_link.1>, <TextNode: '</a>\n <a class="next'>, <Variable Node: next_link.0>, <TextNode: '" title="'>, <Variable Node: next_link.1>, <TextNode: '">'>, <Variable Node: next_link.1>, <TextNode: '</a>\n </div>\n <img sr'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a1a84a8>, <TextNode: '" alt="'>, <Variable Node: image.title>, <TextNode: '"/>\n '>, <IfNode>, <TextNode: '\n</div>\n<div class="galle'>, <For Node: for gim, giurl in pgimages, tail_len: 13>, <TextNode: '\n<span class="galcounter"'>, <Variable Node: gallery_counter>, <TextNode: '</span>\n'>, <For Node: for gim, giurl in ngimages, tail_len: 13>, <TextNode: '</div>\n<div class="image-'>, <Variable Node: gallery.title>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n <div class="i'>, <Variable Node: user.first_name>, <TextNode: ' '>, <Variable Node: user.last_name>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n</div>\n'>]>}] |
self | <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a265128> |
/home/zvez01/apps/fg2017/env/lib/python3.6/site-packages/easy_thumbnails/templatetags/thumbnail.py
in render
if raise_errors:
raise TemplateSyntaxError(
"%r is an invalid subsampling level." %
opts['subsampling'])
return self.bail_out(context)
try:
thumbnail = get_thumbnailer(source).get_thumbnail(opts)...
except Exception:
if raise_errors:
raise
return self.bail_out(context)
# Return the thumbnail file url, or put the file on the context.
if self.context_name is None:
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'student_class': <StudentClass: MICA Fashion Graphics 2017>, 'gallery': <Gallery: Link>, 'image': <Image: Wrap>, 'gi': <GalleryImage: Link [08] Wrap>, 'bio': "Lindy Zhu is a graphic designer who focus a lot on communication instinct.Back at 2016 she did some project about how to convey wild conservastion information to the public. Now she's interested in convey body and its language to the people through clothes they wear.", 'user': <User: lzhu>, 'slideshow': True, 'prev_link': ('/fg2017/slideshow/fg2017-lzhu/img369/', 'Link'), 'next_link': ('/fg2017/slideshow/fg2017-lzhu/img372/', 'Link'), 'gallery_counter': '136/250', 'pgimages': [(<GalleryImage: Link [02] Link logo>, '/fg2017/slideshow/fg2017-lzhu/img179/'), (<GalleryImage: Link [03] Mood 1>, '/fg2017/slideshow/fg2017-lzhu/img367/'), (<GalleryImage: Link [04] Mood 2>, '/fg2017/slideshow/fg2017-lzhu/img366/'), (<GalleryImage: Link [05] Mood 3>, '/fg2017/slideshow/fg2017-lzhu/img365/'), (<GalleryImage: Link [06] Tangle>, '/fg2017/slideshow/fg2017-lzhu/img368/'), (<GalleryImage: Link [07] Ravel>, '/fg2017/slideshow/fg2017-lzhu/img369/')], 'ngimages': [(<GalleryImage: Link [14] look book>, '/fg2017/slideshow/fg2017-lzhu/img341/'), (<GalleryImage: Link [13] Website>, '/fg2017/slideshow/fg2017-lzhu/img384/'), (<GalleryImage: Link [12] Poster 2>, '/fg2017/slideshow/fg2017-lzhu/img389/'), (<GalleryImage: Link [11] Poster1>, '/fg2017/slideshow/fg2017-lzhu/img388/'), (<GalleryImage: Link [10] Lead>, '/fg2017/slideshow/fg2017-lzhu/img387/'), (<GalleryImage: Link [09] Link>, '/fg2017/slideshow/fg2017-lzhu/img372/')]}, {'block': <Block Node: content. Contents: [<TextNode: '\n<div class="image-full">'>, <Variable Node: prev_link.0>, <TextNode: '" title="'>, <Variable Node: prev_link.1>, <TextNode: '">'>, <Variable Node: prev_link.1>, <TextNode: '</a>\n <a class="next'>, <Variable Node: next_link.0>, <TextNode: '" title="'>, <Variable Node: next_link.1>, <TextNode: '">'>, <Variable Node: next_link.1>, <TextNode: '</a>\n </div>\n <img sr'>, <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a1a84a8>, <TextNode: '" alt="'>, <Variable Node: image.title>, <TextNode: '"/>\n '>, <IfNode>, <TextNode: '\n</div>\n<div class="galle'>, <For Node: for gim, giurl in pgimages, tail_len: 13>, <TextNode: '\n<span class="galcounter"'>, <Variable Node: gallery_counter>, <TextNode: '</span>\n'>, <For Node: for gim, giurl in ngimages, tail_len: 13>, <TextNode: '</div>\n<div class="image-'>, <Variable Node: gallery.title>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n <div class="i'>, <Variable Node: user.first_name>, <TextNode: ' '>, <Variable Node: user.last_name>, <TextNode: '</h3>\n '>, <IfNode>, <TextNode: '\n </div>\n</div>\n'>]>}] |
key | 'crop' |
m | <_sre.SRE_Match object; span=(0, 5), match='44x33'> |
opts | {'crop': True, 'size': (44, 33)} |
raise_errors | True |
self | <easy_thumbnails.templatetags.thumbnail.ThumbnailNode object at 0x7f347a265128> |
size | '44x33' |
source | <ImageFieldFile: images/2017/12/13/book3.jpg> |
value | True |
/home/zvez01/apps/fg2017/env/lib/python3.6/site-packages/easy_thumbnails/files.py
in get_thumbnail
generate = self.generate
thumbnail = self.get_existing_thumbnail(thumbnail_options)
if not thumbnail:
if generate:
thumbnail = self.generate_thumbnail(
thumbnail_options,
silent_template_exception=silent_template_exception)...
if save:
self.save_thumbnail(thumbnail)
else:
signals.thumbnail_missed.send(
sender=self, options=thumbnail_options,
high_resolution=False)
Variable | Value |
---|---|
generate | True |
save | True |
self | <ThumbnailerFieldFile: images/2017/12/13/book3.jpg> |
silent_template_exception | False |
thumbnail | None |
thumbnail_options | {'crop': True, 'quality': 85, 'size': (44, 33), 'subsampling': 2} |
/home/zvez01/apps/fg2017/env/lib/python3.6/site-packages/easy_thumbnails/files.py
in generate_thumbnail
if high_resolution:
thumbnail_options['size'] = (orig_size[0] * 2, orig_size[1] * 2)
image = engine.generate_source_image(
self, thumbnail_options, self.source_generators,
fail_silently=silent_template_exception)
if image is None:
raise exceptions.InvalidImageFormatError(
"The source file does not appear to be an image")...
thumbnail_image = engine.process_image(image, thumbnail_options,
self.thumbnail_processors)
if high_resolution:
thumbnail_options['size'] = orig_size # restore original size
Variable | Value |
---|---|
dim | 33 |
high_resolution | False |
image | None |
max_dim | 44 |
min_dim | 0 |
orig_size | (44, 33) |
self | <ThumbnailerFieldFile: images/2017/12/13/book3.jpg> |
silent_template_exception | False |
thumbnail_options | {'crop': True, 'quality': 85, 'size': (44, 33), 'subsampling': 2} |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'upgrade' |
HTTP_FORWARDED_REQUEST_URI | '/fg2017/slideshow/fg2017-lzhu/img370/' |
HTTP_HOST | 'fashiongraphics.net' |
HTTP_HTTPS | 'on' |
HTTP_REFERER | 'http://fashiongraphics.net/fg2017/slideshow/fg2017-lzhu/img370/' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '35.173.178.60' |
HTTP_X_FORWARDED_HOST | 'fashiongraphics.net' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_FORWARDED_SERVER | 'fashiongraphics.net' |
HTTP_X_FORWARDED_SSL | 'on' |
PATH_INFO | '/fg2017/slideshow/fg2017-lzhu/img370/' |
QUERY_STRING | '' |
REMOTE_ADDR | '127.0.0.1' |
REMOTE_PORT | '32685' |
REQUEST_METHOD | 'GET' |
REQUEST_URI | '/fg2017/slideshow/fg2017-lzhu/img370/' |
SCRIPT_NAME | '' |
SERVER_NAME | 'opal4.opalstack.com' |
SERVER_PORT | '3448' |
SERVER_PROTOCOL | 'HTTP/1.1' |
UWSGI_ROUTER | 'http' |
uwsgi.core | 1 |
uwsgi.node | b'opal4.opalstack.com' |
uwsgi.version | b'2.0.19.1' |
wsgi.errors | <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'> |
wsgi.file_wrapper | '' |
wsgi.input | <uwsgi._Input object at 0x7f347a328c48> |
wsgi.multiprocess | True |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
fgsite.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | (('Aleksandar Stojmirovic', 'aleksandar@stojmirovic.org'),) |
ALLOWED_HOSTS | ['.fashiongraphics.net', 'fg.zvezdana.com'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/home/zvez01/apps/fg2017/django-fashiongraphics' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql', 'HOST': '127.0.0.1', 'NAME': 'stojmirovic_fg2017', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'stojmirovic_fg2017'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_CONTENT_TYPE | 'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'zvezdanas@earthlink.net' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.console.EmailBackend' |
EMAIL_HOST | 'localhost' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | '' |
EMAIL_PORT | 25 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | False |
FILE_CHARSET | 'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['portfolio.apps.PortfolioConfig', 'fgstudents.apps.FgstudentsConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'markdown_deux', 'easy_thumbnails'] |
INTERNAL_IPS | [] |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-us' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | (('Aleksandar Stojmirovic', 'aleksandar@stojmirovic.org'),) |
MEDIA_ROOT | '/home/zvez01/apps/fg2017/django-fashiongraphics/fgsite/media' |
MEDIA_URL | '/uploads/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['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'] |
MIDDLEWARE_CLASSES | ['django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PORTFOLIO_IMAGE_DIR_PREFIX | 'portfolio' |
PORTFOLIO_THUMB_COLS | 7 |
PREPEND_WWW | False |
ROOT_URLCONF | 'fgsite.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'admin@fashiongraphics.net' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'fgsite.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 1 |
SITE_ROOT | '/home/zvez01/apps/fg2017/django-fashiongraphics/fgsite' |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/home/zvez01/apps/fg2017/django-fashiongraphics/fgsite/static' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/zvez01/apps/fg2017/django-fashiongraphics/fgsite/templates'], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'fgstudents.context_processors.class_menu']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
THUMBNAIL_DEBUG | True |
THUMBNAIL_SUBDIR | 'thumbs' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'America/New_York' |
USE_ETAGS | False |
USE_I18N | False |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'fgsite.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.