ImproperlyConfigured at /
Error while importing URLconf 'sw.urls': name '_' is not defined
Request Method: GET
Request URL: http://127.0.0.1:8000/
Exception Type: ImproperlyConfigured
Exception Value: Error while importing URLconf 'sw.urls': name '_' is not defined
Exception Location: /usr/lib/python2.5/site-packages/django/core/urlresolvers.py in _get_urlconf_module, line 255
Python Executable: /usr/bin/python
Python Version: 2.5.2
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 0.97-pre-SVN-unknown
Python Version: 2.5.2
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'sw.core',
'django.contrib.auth']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.doc.XViewMiddleware')
Traceback:
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response
73. callback, callback_args, callback_kwargs = resolver.resolve(request.path)
File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py" in resolve
231. for pattern in self.urlconf_module.urlpatterns:
File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py" in _get_urlconf_module
255. raise ImproperlyConfigured, "Error while importing URLconf %r: %s" % (self.urlconf_name, e)
Exception Type: ImproperlyConfigured at /
Exception Value: Error while importing URLconf 'sw.urls': name '_' is not defined
при чем при всем этом root_urlconf который указывает на sw.urls?
Содержание моего urls.py:
from django.conf.urls.defaults import * from core.views import show urlpatterns = patterns('', (r'^show/', show), )