Environment Request Method GET Request URL http 127 8000 Django Versio

  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
133
134
135
136
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 1.0.2 final
Python Version: 2.5.2
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'lib',
'tasks',
'reference',
'files',
'accounts',
'mptt']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'accounts.middleware.AuthKeyMiddleware')
Template error:
In template /home/marat/dev/erp/templates/base.html, error at line 22
Caught an exception while rendering: Reverse for 'erp.index' with arguments '()' and keyword arguments '{}' not found.
12 : <script type="text/javascript" src="/static/js/jquery-1.2.6.js"></script>
13 : <script type="text/javascript" src="/static/js/jquery-ui-1.6rc2.packed.js"></script>
14 : <script type="text/javascript" src="/static/js/system.js"></script>
15 :
16 : {% block head_js %}{% endblock %}
17 :
18 : </head>
19 : <body>
20 : <div id="container">
21 : <div id="header">
22 : <div id="logo"><a href=" {% url index %} "><h1>Управление персоналом</h1></a></div>
23 : {% if user.is_authenticated %}
24 : <div id="user-panel">Приятной работы, <b><a href="#">{% if user.first_name %}{{ user.first_name }} {{ user.last_name }}{% else %} {{ user.username }}{% endif %}</a></b> (<a href="{% url accounts_logout %}">выйти</a>) </div>
25 : {% endif %}
26 : </div>
27 : {% if user.is_authenticated %}
28 : <div id="menu">
29 : <ul class="top-menu">
30 : <li><a href="#">Задачи</a>
31 : <ul>
32 : <li><a href="{% url task_list %}">Входящие</a></li>
Traceback:
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response
86. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.5/site-packages/django/contrib/auth/decorators.py" in __call__
67. return self.view_func(request, *args, **kwargs)
File "/home/marat/dev/erp/apps/lib/db.py" in my_object_list
6. return object_list(*args, **kwargs)
File "/usr/lib/python2.5/site-packages/django/views/generic/list_detail.py" in object_list
101. return HttpResponse(t.render(c), mimetype=mimetype)
File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in render
176. return self.nodelist.render(context)
File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in render
768. bits.append(self.render_node(node, context))
File "/usr/lib/python2.5/site-packages/django/template/debug.py" in render_node
71. result = node.render(context)
File "/usr/lib/python2.5/site-packages/django/template/loader_tags.py" in render
97. return compiled_parent.render(context)
File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in render
176. return self.nodelist.render(context)
File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in render
768. bits.append(self.render_node(node, context))
File "/usr/lib/python2.5/site-packages/django/template/debug.py" in render_node
71. result = node.render(context)
File "/usr/lib/python2.5/site-packages/django/template/loader_tags.py" in render
97. return compiled_parent.render(context)
File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in render
176. return self.nodelist.render(context)
File "/usr/lib/python2.5/site-packages/django/template/__init__.py" in render
768. bits.append(self.render_node(node, context))
File "/usr/lib/python2.5/site-packages/django/template/debug.py" in render_node
81. raise wrapped
Exception Type: TemplateSyntaxError at /
Exception Value: Caught an exception while rendering: Reverse for 'erp.index' with arguments '()' and keyword arguments '{}' not found.
Original Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/django/template/debug.py", line 71, in render_node
result = node.render(context)
File "/usr/lib/python2.5/site-packages/django/template/defaulttags.py", line 378, in render
args=args, kwargs=kwargs)
File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py", line 254, in reverse
*args, **kwargs)))
File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py", line 243, in reverse
"arguments '%s' not found." % (lookup_view, args, kwargs))
NoReverseMatch: Reverse for 'erp.index' with arguments '()' and keyword arguments '{}' not found.