Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "C:Python25libsite-packagesdjangocoreserversbasehttp.py", line 278, in run
- self.result = application(self.environ, self.start_response)
- File "C:Python25libsite-packagesdjangocoreserversbasehttp.py", line 635, in __call__
- return self.application(environ, start_response)
- File "C:Python25libsite-packagesdjangocorehandlerswsgi.py", line 239, in __call__
- response = self.get_response(request)
- File "C:Python25libsite-packagesdjangocorehandlersbase.py", line 67, in get_response
- response = middleware_method(request)
- File "C:Python25Libsite-packagesdjangomiddlewarecommon.py", line 56, in process_request
- if (not _is_valid_path(request.path_info) and
- File "C:Python25Libsite-packagesdjangomiddlewarecommon.py", line 142, in _is_valid_path
- urlresolvers.resolve(path)
- File "C:Python25Libsite-packagesdjangocoreurlresolvers.py", line 254, in resolve
- return get_resolver(urlconf).resolve(path)
- File "C:Python25Libsite-packagesdjangocoreurlresolvers.py", line 181, in resolve
- for pattern in self.url_patterns:
- File "C:Python25Libsite-packagesdjangocoreurlresolvers.py", line 205, in _get_url_patterns
- patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
- File "C:Python25Libsite-packagesdjangocoreurlresolvers.py", line 200, in _get_urlconf_module
- self._urlconf_module = __import__(self.urlconf_name, {}, {}, [''])
- File "c:projectsiFriends..iFriendsurls.py", line 17, in <module>
- (r'^admin/', include('django.contribute.admin.urls'))
- TypeError: 'tuple' object is not callable
- 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:
- )
- File "c:projectsiFriends..iFriendsurls.py", line 17, in <module>
- (r'^admin/', include('django.contribute.admin.urls'))
- 16. (r'^/', 'some_stuff....') # <-- missed comma here
- 17. (r'^admin/', include('django.contribute.admin.urls'))
Add Comment
Please, Sign In to add comment