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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:31:11+00:00 2026-06-17T04:31:11+00:00

I recently started to learn Django and found it amazingly useful. But there is

  • 0

I recently started to learn Django and found it amazingly useful. But there is one problem: I have no idea how to debug a website properly!

For example, I downloaded some examples and tried to set them up. But when I visit the site, I got this traceback. This is not helpful at all — I get that Python is complaining “str object is not callable”. But how is it triggered? What did I do that result in that function call?

Is there an easy way to debug Django website?

Environment:


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

Django Version: 1.4.3
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.humanize',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.admin',
 'forum',
 'registration')
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')


Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)

Exception Type: TypeError at /
Exception Value: 'str' object is not callable
  • 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-17T04:31:12+00:00Added an answer on June 17, 2026 at 4:31 am

    The stack trace you’ve shown us isn’t the entire stacktrace, it’s just where the error was generated. The django default debug page allows you to interactively expand nodes within the trace to see where the error first originated from. Go up a few levels, and find the most likely suspect – a line number within your own code – and investigate from there.

    Later, django-debug-toolbar is an extremely useful app for seeing a vast amount of information to help in debugging.

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

Sidebar

Related Questions

I have recently started to learn Objective-C and write my tests using OCUnit that
I have a friend and he recently started to learn Cinema 4D. He asked
Hi I have recently started to learn C# and have some questions regarding properties.
I recently started to learn node.js + Express and found it very interesting. I
I have recently started to learn using of Doctrine 2.0 framework for PHP. Now
i have very recently started to learn to create VBA macros in Excel, however,
i recently started to learn AS3 and i decided to make a portfolio website
I have recently started to learn about programming for the iPhone and after going
I have recently started to learn Ruby. I know that Ruby is a interpreted
I have started to learn JavaScript on Codecademy recently and I was wondering where

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.