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

  • Home
  • SEARCH
  • 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 108879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:58:53+00:00 2026-05-11T01:58:53+00:00

I was doing the tutorial from the book teach yourself django in 24 hours

  • 0

I was doing the tutorial from the book teach yourself django in 24 hours and in part1 hour 4 i got stuck on this error.

Traceback (most recent call last):    File 'C:\Python25\lib\site-packages\django\core\servers\basehttp.py', line 278, in run     self.result = application(self.environ, self.start_response)    File 'C:\Python25\lib\site-packages\django\core\servers\basehttp.py', line 635, in __call__     return self.application(environ, start_response)    File 'C:\Python25\lib\site-packages\django\core\handlers\wsgi.py', line 239, in __call__     response = self.get_response(request)    File 'C:\Python25\lib\site-packages\django\core\handlers\base.py', line 67, in get_response     response = middleware_method(request)    File 'C:\Python25\Lib\site-packages\django\middleware\common.py', line 56, in process_request     if (not _is_valid_path(request.path_info) and    File 'C:\Python25\Lib\site-packages\django\middleware\common.py', line 142, in _is_valid_path     urlresolvers.resolve(path)    File 'C:\Python25\Lib\site-packages\django\core\urlresolvers.py', line 254, in resolve     return get_resolver(urlconf).resolve(path)    File 'C:\Python25\Lib\site-packages\django\core\urlresolvers.py', line 181, in resolve     for pattern in self.url_patterns:    File 'C:\Python25\Lib\site-packages\django\core\urlresolvers.py', line 205, in _get_url_patterns     patterns = getattr(self.urlconf_module, 'urlpatterns', self.urlconf_module)    File 'C:\Python25\Lib\site-packages\django\core\urlresolvers.py', line 200, in _get_urlconf_module     self._urlconf_module = __import__(self.urlconf_name, {}, {}, [''])    File 'c:\projects\iFriends\..\iFriends\urls.py', line 17, in <module>     (r'^admin/', include('django.contribute.admin.urls'))  TypeError: 'tuple' object is not callable 

Can someone help me please..

url.py

from django.conf.urls.defaults import *  ####Uncomment the next two lines to enable the admin: #### from django.contrib import admin #### admin.autodiscover()  urlpatterns = patterns('',     (r'^People/$', 'iFriends.People.views.index') ,     (r'^admin/', include('django.contrib.admin.urls')),      # Example:     # (r'^iFriends/', include('iFriends.foo.urls')),      # Uncomment the admin/doc line below and add 'django.contrib.admindocs'      # to INSTALLED_APPS to enable admin documentation:     # (r'^admin/doc/', include('django.contrib.admindocs.urls')),      # Uncomment the next line to enable the admin:   ) 
  • 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. 2026-05-11T01:58:54+00:00Added an answer on May 11, 2026 at 1:58 am

    You somehow set some function to a tuple. Please edit the question and paste your urls.py code, so we can point you to the error.

    I can try a wild guess:

    File 'c:\projects\iFriends\..\iFriends\urls.py', line 17, in <module>    (r'^admin/', include('django.contribute.admin.urls')) 

    This somehow tells me that you missed a comma on line 16, so:

    16. (r'^/', 'some_stuff....')      # <-- missed comma here 17. (r'^admin/', include('django.contribute.admin.urls')) 

    Just put the comma and it will work. If that’s not the case, I’ll send my cristal ball for mainantance. Paste the code.

    EDIT

    Seems like you have pasted the urls.py as an answer. Please edit the question and paste urls.py there.

    Anyway, the error has changed. What did you do? In this new error, urls.py is not found anymore so maybe you’ve renamed it? Have you changed the way you run the application?

    The file you pasted is not the one that is running. Are you pasting url.py and django is reading urls.py? The code in the error doesn’t match the code you pasted! Please paste the correct file, i.e. the same that gives the error, or we can’t help.

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

Sidebar

Related Questions

When doing TDD , how to tell that's enough tests for this class /
I’m looking for some samples/tutorials/general pointers in doing either of the following. 1) Create
Doing odd/even styling with jQuery is pretty easy: $(function() { $(.oddeven tbody tr:odd).addClass(odd); $(.oddeven
When doing an INSERT with a lot of data, ie: INSERT INTO table (mediumtext_field)
When doing small icons, header graphics and the like for websites, is it better
When doing case-insensitive comparisons, is it more efficient to convert the string to upper
When doing a cvs update , you get a nice summary of the state
I doing a function in Javascript like the VisualBasic DateDiff. You give two dates
When doing a simple performance measurement, I was astonished to see that calling String.IndexOf(char)

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.