code_junkie

TypeError: 'tuple' object is not callable

Nov 13th, 2011
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. Traceback (most recent call last):
  2.  
  3. File "C:Python25libsite-packagesdjangocoreserversbasehttp.py", line 278, in run
  4. self.result = application(self.environ, self.start_response)
  5.  
  6. File "C:Python25libsite-packagesdjangocoreserversbasehttp.py", line 635, in __call__
  7. return self.application(environ, start_response)
  8.  
  9. File "C:Python25libsite-packagesdjangocorehandlerswsgi.py", line 239, in __call__
  10. response = self.get_response(request)
  11.  
  12. File "C:Python25libsite-packagesdjangocorehandlersbase.py", line 67, in get_response
  13. response = middleware_method(request)
  14.  
  15. File "C:Python25Libsite-packagesdjangomiddlewarecommon.py", line 56, in process_request
  16. if (not _is_valid_path(request.path_info) and
  17.  
  18. File "C:Python25Libsite-packagesdjangomiddlewarecommon.py", line 142, in _is_valid_path
  19. urlresolvers.resolve(path)
  20.  
  21. File "C:Python25Libsite-packagesdjangocoreurlresolvers.py", line 254, in resolve
  22. return get_resolver(urlconf).resolve(path)
  23.  
  24. File "C:Python25Libsite-packagesdjangocoreurlresolvers.py", line 181, in resolve
  25. for pattern in self.url_patterns:
  26.  
  27. File "C:Python25Libsite-packagesdjangocoreurlresolvers.py", line 205, in _get_url_patterns
  28. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  29.  
  30. File "C:Python25Libsite-packagesdjangocoreurlresolvers.py", line 200, in _get_urlconf_module
  31. self._urlconf_module = __import__(self.urlconf_name, {}, {}, [''])
  32.  
  33. File "c:projectsiFriends..iFriendsurls.py", line 17, in <module>
  34. (r'^admin/', include('django.contribute.admin.urls'))
  35.  
  36. TypeError: 'tuple' object is not callable
  37.  
  38. from django.conf.urls.defaults import *
  39.  
  40. ####Uncomment the next two lines to enable the admin:
  41. #### from django.contrib import admin
  42. #### admin.autodiscover()
  43.  
  44. urlpatterns = patterns('',
  45. (r'^People/$', 'iFriends.People.views.index') ,
  46. (r'^admin/', include('django.contrib.admin.urls')),
  47. # Example:
  48. # (r'^iFriends/', include('iFriends.foo.urls')),
  49.  
  50. # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
  51. # to INSTALLED_APPS to enable admin documentation:
  52. # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
  53.  
  54. # Uncomment the next line to enable the admin:
  55.  
  56.  
  57. )
  58.  
  59. File "c:projectsiFriends..iFriendsurls.py", line 17, in <module>
  60. (r'^admin/', include('django.contribute.admin.urls'))
  61.  
  62. 16. (r'^/', 'some_stuff....') # <-- missed comma here
  63. 17. (r'^admin/', include('django.contribute.admin.urls'))
Add Comment
Please, Sign In to add comment