Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9211989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:25:23+00:00 2026-06-18T01:25:23+00:00

I’m using render_avatar tag as in question 5971951 because I was having the same

  • 0

I’m using render_avatar tag as in question 5971951 because I was having the same issue that the user. but even with such solution the error keeps showing up! 🙁

why ‘render_avatar’ will expect ‘endblock’?

Environment:


Request Method: GET
Request URL: http://127.0.0.1:8000/jorge/

Django Version: 1.4.3
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.staticfiles',
 'django.contrib.admin',
 'django.contrib.admindocs',
 'dispersion.apps.posts',
 'dispersion.apps.profiles',
 'dispersion.apps.contextualshare',
 'dispersion.apps.index',
 'avatar',
 'allauth',
 'allauth.account',
 'allauth.socialaccount',
 'allauth.socialaccount.providers.openid',
 'allauth.socialaccount.providers.persona')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')


Template error:
In template /home/jorge/coders/desarrollo/dispersion/dispersion/templates/default/user_profile.html, error at line 37
   Invalid block tag: 'render_avatar', expected 'endblock'
   27 :     <a id="disp-top-bar-login-button" class="disp-top-bar-btn disp-btn" href="#">Iniciar sesión</a>


   28 :     <a id="disp-top-bar-register-button" class="disp-top-bar-btn disp-btn" href="#">Registrarse</a>


   29 :       </div>


   30 :       {% else %}


   31 :       <p>UNA BARRITA PARA EL USUARIO AUTENTICADO NO ESTARIA DEMAS gLOL</p>


   32 :       {% endif %}


   33 :   </div>


   34 : </header>


   35 : <div id="disp-user-header">


   36 :     <!--<div class="disp-user-image-large"></div> <!-- Se busca ayuda con la sintaxis adecuada para posicionar correctamente éste elemento en el HTML -->


   37 :      {% render_avatar avatar 190 %} 


   38 :   <div id="disp-user-custom-wallpaper"></div>


   39 :   <div id="disp-user-bar-wrapper">


   40 :     <div id="disp-user-bar">


   41 :     <div id="disp-user-tabs">


   42 :         <span id="disp-user-posts-button" class="disp-user-tabs-button">Publicaciones</span>


   43 :         <span id="disp-user-about-button" class="disp-user-tabs-button">Sobre Mí</span>


   44 :         <span id="disp-user-photos-button" class="disp-user-tabs-button">Fotos</span>


   45 :         <span id="disp-user-videos-button" class="disp-user-tabs-button">Vídeos</span>


   46 :       </div>


   47 :       <div id="disp-user-name">


Traceback:
File "/home/jorge/coders/desarrollo/dispersion/lib/python2.7/site-packages/Django-1.4.3-py2.7.egg/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/home/jorge/coders/desarrollo/dispersion/dispersion/apps/profiles/views.py" in userprofile_view
  51.                     request))
File "/home/jorge/coders/desarrollo/dispersion/lib/python2.7/site-packages/Django-1.4.3-py2.7.egg/django/shortcuts/__init__.py" in render_to_response
  20.     return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
File "/home/jorge/coders/desarrollo/dispersion/lib/python2.7/site-packages/Django-1.4.3-py2.7.egg/django/template/loader.py" in render_to_string
  169.         t = get_template(template_name)
File "/home/jorge/coders/desarrollo/dispersion/lib/python2.7/site-packages/Django-1.4.3-py2.7.egg/django/template/loader.py" in get_template
  145.     template, origin = find_template(template_name)
File "/home/jorge/coders/desarrollo/dispersion/lib/python2.7/site-packages/Django-1.4.3-py2.7.egg/django/template/loader.py" in find_template
  134.             source, display_name = loader(name, dirs)
File "/home/jorge/coders/desarrollo/dispersion/lib/python2.7/site-packages/Django-1.4.3-py2.7.egg/django/template/loader.py" in __call__
  42.         return self.load_template(template_name, template_dirs)
File "/home/jorge/coders/desarrollo/dispersion/lib/python2.7/site-packages/Django-1.4.3-py2.7.egg/django/template/loader.py" in load_template
  48.             template = get_template_from_string(source, origin, template_name)
File "/home/jorge/coders/desarrollo/dispersion/lib/python2.7/site-packages/Django-1.4.3-py2.7.egg/django/template/loader.py" in get_template_from_string
  156.     return Template(source, origin, name)
File "/home/jorge/coders/desarrollo/dispersion/lib/python2.7/site-packages/Django-1.4.3-py2.7.egg/django/template/base.py" in __init__
  125.         self.nodelist = compile_string(template_string, origin)
File "/home/jorge/coders/desarrollo/dispersion/lib/python2.7/site-packages/Django-1.4.3-py2.7.egg/django/template/base.py" in compile_string
  153.     return parser.parse()
File "/home/jorge/coders/desarrollo/dispersion/lib/python2.7/site-packages/Django-1.4.3-py2.7.egg/django/template/base.py" in parse
  267.                     compiled_result = compile_func(self, token)
File "/home/jorge/coders/desarrollo/dispersion/lib/python2.7/site-packages/Django-1.4.3-py2.7.egg/django/template/loader_tags.py" in do_extends
  214.     nodelist = parser.parse()
File "/home/jorge/coders/desarrollo/dispersion/lib/python2.7/site-packages/Django-1.4.3-py2.7.egg/django/template/base.py" in parse
  267.                     compiled_result = compile_func(self, token)
File "/home/jorge/coders/desarrollo/dispersion/lib/python2.7/site-packages/Django-1.4.3-py2.7.egg/django/template/loader_tags.py" in do_block
  189.     nodelist = parser.parse(('endblock',))
File "/home/jorge/coders/desarrollo/dispersion/lib/python2.7/site-packages/Django-1.4.3-py2.7.egg/django/template/base.py" in parse
  265.                     self.invalid_block_tag(token, command, parse_until)
File "/home/jorge/coders/desarrollo/dispersion/lib/python2.7/site-packages/Django-1.4.3-py2.7.egg/django/template/base.py" in invalid_block_tag
  320.                 (command, get_text_list(["'%s'" % p for p in parse_until])))

Exception Type: TemplateSyntaxError at /jorge/
Exception Value: Invalid block tag: 'render_avatar', expected 'endblock'

any help? 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T01:25:24+00:00Added an answer on June 18, 2026 at 1:25 am

    Are you calling

     {% load avatar_tags %}
    

    in you template file?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a French site that I want to parse, but am running into
This could be a duplicate question, but I have no idea what search terms
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I need to clean up various Word 'smart' characters in user input, including but
I am using JSon response to parse title,date content and thumbnail images and place
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I want to count how many characters a certain string has in PHP, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.