Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 15th, 2011  |  syntax: None  |  size: 1.54 KB  |  views: 150  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Environment:
  2.  
  3.  
  4. Request Method: GET
  5. Request URL: http://127.0.0.1:8000/time/plus/5/
  6.  
  7. Django Version: 1.3
  8. Python Version: 2.7.1
  9. Installed Applications:
  10. ['django.contrib.auth',
  11.  'django.contrib.contenttypes',
  12.  'django.contrib.sessions',
  13.  'django.contrib.sites',
  14.  'django.contrib.messages',
  15.  'django.contrib.staticfiles']
  16. Installed Middleware:
  17. ('django.middleware.common.CommonMiddleware',
  18.  'django.contrib.sessions.middleware.SessionMiddleware',
  19.  'django.middleware.csrf.CsrfViewMiddleware',
  20.  'django.contrib.auth.middleware.AuthenticationMiddleware',
  21.  'django.contrib.messages.middleware.MessageMiddleware')
  22.  
  23.  
  24. Traceback:
  25. File "C:\Python27\lib\site-packages\django\core\handlers\base.py" in get_response
  26.   101.                             request.path_info)
  27. File "C:\Python27\lib\site-packages\django\core\urlresolvers.py" in resolve
  28.   250.             for pattern in self.url_patterns:
  29. File "C:\Python27\lib\site-packages\django\core\urlresolvers.py" in _get_url_patterns
  30.   279.         patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  31. File "C:\Python27\lib\site-packages\django\core\urlresolvers.py" in _get_urlconf_module
  32.   274.             self._urlconf_module = import_module(self.urlconf_name)
  33. File "C:\Python27\lib\site-packages\django\utils\importlib.py" in import_module
  34.   35.     __import__(name)
  35. File "D:\Codes\django\mysite\..\mysite\urls.py" in <module>
  36.   10.   (r'^time/plus/(\d{1,2})/$', hours_ahead),
  37.  
  38. Exception Type: NameError at /time/plus/5/
  39. Exception Value: name 'hours_ahead' is not defined
clone this paste RAW Paste Data