Skip to content

Instantly share code, notes, and snippets.

@shadow-fox
Created September 29, 2012 18:52
Show Gist options
  • Save shadow-fox/3804886 to your computer and use it in GitHub Desktop.
Save shadow-fox/3804886 to your computer and use it in GitHub Desktop.
hello not defined
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/hello/
Django Version: 1.4.1
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles')
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
101. request.path_info)
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in resolve
298. for pattern in self.url_patterns:
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in url_patterns
328. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in urlconf_module
323. self._urlconf_module = import_module(self.urlconf_name)
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py" in import_module
35. __import__(name)
File "/home/shadowfax/Development/djangocore/silhouette/silhouette/urls.py" in <module>
8. ('^hello/$', hello),
Exception Type: NameError at /hello/
Exception Value: name 'hello' is not defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment