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 6654759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:25:41+00:00 2026-05-26T01:25:41+00:00

The traceback Also can someone please tell me how to read tracebacks so that

  • 0

The traceback
Also can someone please tell me how to read tracebacks so that I can refrain from asking silly questions ?

Environment:




Django Version: 1.3
Python Version: 2.6.6
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.admin',
 'account',
 'fb_api',
 'trial',
 'location',
 'log',
 'kiosks',
 'store',
 'deals',
 'chat',
 'connect',
 'refer',
 'feed',
 'icrave',
 'suggest']
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',
 'log.library.LogMiddleware',
 'log.library.SSLRedirectMiddleware')


Template error:
In template c:\python26\lib\site-packages\django\contrib\admin\templates\admin\base.html, error at line 31
   Caught SyntaxError while rendering: invalid syntax (views.py, line 124)
   21 :     <!-- Header -->


   22 :     <div id="header">


   23 :         <div id="branding">


   24 :         {% block branding %}{% endblock %}


   25 :         </div>


   26 :         {% if user.is_active and user.is_staff %}


   27 :         <div id="user-tools">


   28 :             {% trans 'Welcome,' %}


   29 :             <strong>{% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}</strong>.


   30 :             {% block userlinks %}


   31 :                  {% url 'django-admindocs-docroot' as docsroot %} 


   32 :                 {% if docsroot %}


   33 :                     <a href="{{ docsroot }}">{% trans 'Documentation' %}</a> /


   34 :                 {% endif %}


   35 :                 {% url 'admin:password_change' as password_change_url %}


   36 :                 {% if password_change_url %}


   37 :                     <a href="{{ password_change_url }}">


   38 :                 {% else %}


   39 :                     <a href="{{ root_path }}password_change/">


   40 :                 {% endif %}


   41 :                 {% trans 'Change password' %}</a> /


Traceback:
File "C:\Python26\lib\site-packages\django\core\handlers\base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "C:\Python26\lib\site-packages\django\contrib\admin\sites.py" in wrapper
  214.                 return self.admin_view(view, cacheable)(*args, **kwargs)
File "C:\Python26\lib\site-packages\django\utils\decorators.py" in _wrapped_view
  93.                     response = view_func(request, *args, **kwargs)
File "C:\Python26\lib\site-packages\django\views\decorators\cache.py" in _wrapped_view_func
  79.         response = view_func(request, *args, **kwargs)
File "C:\Python26\lib\site-packages\django\contrib\admin\sites.py" in inner
  197.             return view(request, *args, **kwargs)
File "C:\Python26\lib\site-packages\django\views\decorators\cache.py" in _wrapped_view_func
  79.         response = view_func(request, *args, **kwargs)
File "C:\Python26\lib\site-packages\django\contrib\admin\sites.py" in index
  382.             context_instance=context_instance
File "C:\Python26\lib\site-packages\django\shortcuts\__init__.py" in render_to_response
  20.     return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
File "C:\Python26\lib\site-packages\django\template\loader.py" in render_to_string
  188.         return t.render(context_instance)
File "C:\Python26\lib\site-packages\django\template\base.py" in render
  123.             return self._render(context)
File "C:\Python26\lib\site-packages\django\template\base.py" in _render
  117.         return self.nodelist.render(context)
File "C:\Python26\lib\site-packages\django\template\base.py" in render
  744.                 bits.append(self.render_node(node, context))
File "C:\Python26\lib\site-packages\django\template\debug.py" in render_node
  73.             result = node.render(context)
File "C:\Python26\lib\site-packages\django\template\loader_tags.py" in render
  127.         return compiled_parent._render(context)
File "C:\Python26\lib\site-packages\django\template\base.py" in _render
  117.         return self.nodelist.render(context)
File "C:\Python26\lib\site-packages\django\template\base.py" in render
  744.                 bits.append(self.render_node(node, context))
File "C:\Python26\lib\site-packages\django\template\debug.py" in render_node
  73.             result = node.render(context)
File "C:\Python26\lib\site-packages\django\template\loader_tags.py" in render
  127.         return compiled_parent._render(context)
File "C:\Python26\lib\site-packages\django\template\base.py" in _render
  117.         return self.nodelist.render(context)
File "C:\Python26\lib\site-packages\django\template\base.py" in render
  744.                 bits.append(self.render_node(node, context))
File "C:\Python26\lib\site-packages\django\template\debug.py" in render_node
  73.             result = node.render(context)
File "C:\Python26\lib\site-packages\django\template\defaulttags.py" in render
  311.             return self.nodelist_true.render(context)
File "C:\Python26\lib\site-packages\django\template\base.py" in render
  744.                 bits.append(self.render_node(node, context))
File "C:\Python26\lib\site-packages\django\template\debug.py" in render_node
  73.             result = node.render(context)
File "C:\Python26\lib\site-packages\django\template\defaulttags.py" in render
  311.             return self.nodelist_true.render(context)
File "C:\Python26\lib\site-packages\django\template\base.py" in render
  744.                 bits.append(self.render_node(node, context))
File "C:\Python26\lib\site-packages\django\template\debug.py" in render_node
  73.             result = node.render(context)
File "C:\Python26\lib\site-packages\django\template\loader_tags.py" in render
  64.             result = block.nodelist.render(context)
File "C:\Python26\lib\site-packages\django\template\base.py" in render
  744.                 bits.append(self.render_node(node, context))
File "C:\Python26\lib\site-packages\django\template\debug.py" in render_node
  73.             result = node.render(context)
File "C:\Python26\lib\site-packages\django\template\defaulttags.py" in render
  437.             url = reverse(view_name, args=args, kwargs=kwargs, current_app=context.current_app)
File "C:\Python26\lib\site-packages\django\core\urlresolvers.py" in reverse
  391.             *args, **kwargs)))
File "C:\Python26\lib\site-packages\django\core\urlresolvers.py" in reverse
  312.         possibilities = self.reverse_dict.getlist(lookup_view)
File "C:\Python26\lib\site-packages\django\core\urlresolvers.py" in _get_reverse_dict
  229.             self._populate()
File "C:\Python26\lib\site-packages\django\core\urlresolvers.py" in _populate
  208.                     for name in pattern.reverse_dict:
File "C:\Python26\lib\site-packages\django\core\urlresolvers.py" in _get_reverse_dict
  229.             self._populate()
File "C:\Python26\lib\site-packages\django\core\urlresolvers.py" in _populate
  220.                 lookups.appendlist(pattern.callback, (bits, p_pattern))
File "C:\Python26\lib\site-packages\django\core\urlresolvers.py" in _get_callback
  164.             self._callback = get_callable(self._callback_str)
File "C:\Python26\lib\site-packages\django\utils\functional.py" in wrapper
  124.         result = func(*args)
File "C:\Python26\lib\site-packages\django\core\urlresolvers.py" in get_callable
  91.                 lookup_view = getattr(import_module(mod_name), func_name)
File "C:\Python26\lib\site-packages\django\utils\importlib.py" in import_module
  35.     __import__(name)

Exception Type: TemplateSyntaxError at /admin/
Exception Value: Caught SyntaxError while rendering: invalid syntax (views.py, line 124)
  • 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-05-26T01:25:42+00:00Added an answer on May 26, 2026 at 1:25 am

    In this case, the traceback is admittedly a little confusing. Django thinks this is a template error, and therefore gives you a snippet of the template and the traceback of where it thinks it occurred. But actually, the error is deeper – it’s occurring when Django tries to resolve the {% url %} tag, which does a reverse lookup on urls and views to provide a link.

    But in order to do this, it must import all your views: and you have a syntax error in one of them, in line 124. Unfortunately, it doesn’t tell you which one.

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

Sidebar

Related Questions

Can someone help me out with the stanford parser from http://nlp.stanford.edu/software/lex-parser.shtml ? I've only
Python does not print traceback messages from exceptions raised in daemon threads. For example,
I have a traceback object that I want to show in the nice format
Can I get the parameters of the last function called in traceback? How? I
Any ideas? In [1]: from selenium.firefox.webdriver import WebDriver In [2]: d=WebDriver() --------------------------------------------------------------------------- Exception Traceback
I used Pygame2exe from the Pygame website and that got rid of the problem
Trying to use this following script to load a page so that I can
I'm running Python 2.6.6 on Ubuntu 10.10. I understand that we can import a
I'm trying to define some methods in a base class that can then be
I've gone through various tutorials and Stack Overflow posts and understand that Selenium can

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.