Environment Request Method GET Request URL http localhost 1122 user lo

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
Environment:
Request Method: GET
Request URL: http://localhost:1122/user/login/
Django Version: 1.0-alpha-SVN-8148
Python Version: 2.5.1
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'account',
'agency',
'client',
'task',
'common',
'flash',
'compaign',
'city',
'supplier',
'place',
'cmanager',
'admin',
'pytils']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'flash.middleware.FlashMiddleware',
'account.middleware.AuthenticationMiddleware',
'account.middleware.DebugLoginMiddleware',
'common.middleware.LoginRequiredMiddleware',
'common.middleware.AntiCacheMiddleware',
'django.middleware.doc.XViewMiddleware')
Template error:
In template /home/offline/Development/django/website/static/templates/account/login.html, error at line 5
Caught an exception while rendering: Error while importing URLconf 'task.urls': No module named widgets
1 : {% extends "base.html" %}
2 :
3 : {% block menu %}
4 : <li class="select"><div class="left"><div class="right">
5 : <a href=" {% url auth_login %} ">Авторизация</a>
6 : </div></div></li>
7 : {% endblock %}
8 :
9 : {% block auth %}
10 : <!-- override with empty space -->
11 : {% endblock %}
12 :
13 : {% block content %}
14 : {% include 'form-begin.html' %}
15 : <form class="login" method="post">
Traceback:
File "/home/offline/Development/django/website/django/core/handlers/base.py" in get_response
87. response = callback(request, *callback_args, **callback_kwargs)
File "/home/offline/Development/django/website/common/decorators.py" in wrapper
32. return render_to_response(template, output, **kwargs)
File "/home/offline/Development/django/website/django/shortcuts/__init__.py" in render_to_response
18. return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
File "/home/offline/Development/django/website/django/template/loader.py" in render_to_string
107. return t.render(context_instance)
File "/home/offline/Development/django/website/django/template/__init__.py" in render
176. return self.nodelist.render(context)
File "/home/offline/Development/django/website/django/template/__init__.py" in render
751. bits.append(self.render_node(node, context))
File "/home/offline/Development/django/website/django/template/debug.py" in render_node
71. result = node.render(context)
File "/home/offline/Development/django/website/django/template/loader_tags.py" in render
97. return compiled_parent.render(context)
File "/home/offline/Development/django/website/django/template/__init__.py" in render
176. return self.nodelist.render(context)
File "/home/offline/Development/django/website/django/template/__init__.py" in render
751. bits.append(self.render_node(node, context))
File "/home/offline/Development/django/website/django/template/debug.py" in render_node
71. result = node.render(context)
File "/home/offline/Development/django/website/django/template/loader_tags.py" in render
24. result = self.nodelist.render(context)
File "/home/offline/Development/django/website/django/template/__init__.py" in render
751. bits.append(self.render_node(node, context))
File "/home/offline/Development/django/website/django/template/debug.py" in render_node
81. raise wrapped
Exception Type: TemplateSyntaxError at /user/login/
Exception Value: Caught an exception while rendering: Error while importing URLconf 'task.urls': No module named widgets
Original Traceback (most recent call last):
File "/home/offline/Development/django/website/django/template/debug.py", line 71, in render_node
result = node.render(context)
File "/home/offline/Development/django/website/django/template/defaulttags.py", line 365, in render
return reverse(self.view_name, args=args, kwargs=kwargs)
File "/home/offline/Development/django/website/django/core/urlresolvers.py", line 307, in reverse
*args, **kwargs)))
File "/home/offline/Development/django/website/django/core/urlresolvers.py", line 289, in reverse
if lookup_view in self.reverse_dict:
File "/home/offline/Development/django/website/django/core/urlresolvers.py", line 225, in _get_reverse_dict
for key, value in pattern.reverse_dict.iteritems():
File "/home/offline/Development/django/website/django/core/urlresolvers.py", line 222, in _get_reverse_dict
if not self._reverse_dict and hasattr(self.urlconf_module, 'urlpatterns'):
File "/home/offline/Development/django/website/django/core/urlresolvers.py", line 262, in _get_urlconf_module
raise ImproperlyConfigured, "Error while importing URLconf %r: %s" % (self.urlconf_name, e)
ImproperlyConfigured: Error while importing URLconf 'task.urls': No module named widgets