python - Django-admin: TemplateDoesNotExist at /admin/plans/plan/ -
i'm trying make django-plans app work. seems working except /admin/plans/plan/
( /admin/plans/order/
, /admin/plans/userplan/
etc. works correctly).
when click on plan in django-admin returns:
templatedoesnotexist @ /admin/plans/plan/
i can't figure out why wouldn't exists. took @ django-plans
admin.py file , seems plan
doesn't have special template specified.
do know what's problem?
traceback
environment: request method: request url: http://127.0.0.1:8000/admin/plans/plan/ django version: 1.10.5 python version: 2.7.10 installed applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'authapp', 'presentationapp', 'allauth', 'allauth.account', 'allauth.socialaccount', 'djmoney_rates', 'djmoney', 'api', 'productapp', 'django_extensions', 'mainapp', 'django_tables2', 'engineapp', 'dashboardapp', 'ticketapp', 'celery', 'dbbackup', 'bootstrap3', 'django_filters', 'widget_tweaks', 'cacheapp', 'adminapp', 'djcelery', 'import_export', 'plans', 'request', 'django.contrib.humanize'] installed middleware: ['django.middleware.security.securitymiddleware', 'django.contrib.sessions.middleware.sessionmiddleware', 'authapp.middleware.basicauthmiddleware', 'django.middleware.common.commonmiddleware', 'django.middleware.csrf.csrfviewmiddleware', 'django.contrib.auth.middleware.authenticationmiddleware', 'request.middleware.requestmiddleware', 'django.contrib.messages.middleware.messagemiddleware', 'django.middleware.clickjacking.xframeoptionsmiddleware'] template loader postmortem django tried loading these templates, in order: using engine django: * django.template.loaders.app_directories.loader: c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\contrib\admin\templates\ordered_model\admin\order_controls.html (source not exist) * django.template.loaders.app_directories.loader: c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\contrib\auth\templates\ordered_model\admin\order_controls.html (source not exist) * django.template.loaders.app_directories.loader: c:\users\milano\desktop\projekty\fs dropbox\dropbox\priceist\authapp\templates\ordered_model\admin\order_controls.html (source not exist) * django.template.loaders.app_directories.loader: c:\users\milano\desktop\projekty\fs dropbox\dropbox\priceist\presentationapp\templates\ordered_model\admin\order_controls.html (source not exist) * django.template.loaders.app_directories.loader: c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\allauth\templates\ordered_model\admin\order_controls.html (source not exist) * django.template.loaders.app_directories.loader: c:\users\milano\desktop\projekty\fs dropbox\dropbox\priceist\productapp\templates\ordered_model\admin\order_controls.html (source not exist) * django.template.loaders.app_directories.loader: c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django_extensions\templates\ordered_model\admin\order_controls.html (source not exist) * django.template.loaders.app_directories.loader: c:\users\milano\desktop\projekty\fs dropbox\dropbox\priceist\mainapp\templates\ordered_model\admin\order_controls.html (source not exist) * django.template.loaders.app_directories.loader: c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django_tables2\templates\ordered_model\admin\order_controls.html (source not exist) * django.template.loaders.app_directories.loader: c:\users\milano\desktop\projekty\fs dropbox\dropbox\priceist\engineapp\templates\ordered_model\admin\order_controls.html (source not exist) * django.template.loaders.app_directories.loader: c:\users\milano\desktop\projekty\fs dropbox\dropbox\priceist\dashboardapp\templates\ordered_model\admin\order_controls.html (source not exist) * django.template.loaders.app_directories.loader: c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\bootstrap3\templates\ordered_model\admin\order_controls.html (source not exist) * django.template.loaders.app_directories.loader: c:\users\milano\desktop\projekty\fs dropbox\dropbox\priceist\adminapp\templates\ordered_model\admin\order_controls.html (source not exist) * django.template.loaders.app_directories.loader: c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\djcelery\templates\ordered_model\admin\order_controls.html (source not exist) * django.template.loaders.app_directories.loader: c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\import_export\templates\ordered_model\admin\order_controls.html (source not exist) * django.template.loaders.app_directories.loader: c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\plans\templates\ordered_model\admin\order_controls.html (source not exist) * django.template.loaders.app_directories.loader: c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\request\templates\ordered_model\admin\order_controls.html (source not exist) template error: in template c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\contrib\admin\templates\admin\change_list.html, error @ line 82 ordered_model/admin/order_controls.html 72 : {% endif %} 73 : {% endblock %} 74 : 75 : <form id="changelist-form" method="post"{% if cl.formset.is_multipart %} enctype="multipart/form-data"{% endif %} novalidate>{% csrf_token %} 76 : {% if cl.formset %} 77 : <div>{{ cl.formset.management_form }}</div> 78 : {% endif %} 79 : 80 : {% block result_list %} 81 : {% if action_form , actions_on_top , cl.show_admin_actions %}{% admin_actions %}{% endif %} 82 : {% result_list cl %} 83 : {% if action_form , actions_on_bottom , cl.show_admin_actions %}{% admin_actions %}{% endif %} 84 : {% endblock %} 85 : {% block pagination %}{% pagination cl %}{% endblock %} 86 : </form> 87 : </div> 88 : </div> 89 : {% endblock %} 90 : traceback: file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\core\handlers\exception.py" in inner 39. response = get_response(request) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\core\handlers\base.py" in _get_response 217. response = self.process_exception_by_middleware(e, request) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\core\handlers\base.py" in _get_response 215. response = response.render() file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\response.py" in render 109. self.content = self.rendered_content file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\response.py" in rendered_content 86. content = template.render(context, self._request) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\backends\django.py" in render 68. reraise(exc, self.backend) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\backends\django.py" in reraise 89. six.reraise(exc.__class__, new, sys.exc_info()[2]) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\backends\django.py" in render 66. return self.template.render(context) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\base.py" in render 208. return self._render(context) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\base.py" in _render 199. return self.nodelist.render(context) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\base.py" in render 994. bit = node.render_annotated(context) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\base.py" in render_annotated 961. return self.render(context) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\loader_tags.py" in render 174. return compiled_parent._render(context) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\base.py" in _render 199. return self.nodelist.render(context) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\base.py" in render 994. bit = node.render_annotated(context) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\base.py" in render_annotated 961. return self.render(context) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\loader_tags.py" in render 174. return compiled_parent._render(context) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\base.py" in _render 199. return self.nodelist.render(context) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\base.py" in render 994. bit = node.render_annotated(context) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\base.py" in render_annotated 961. return self.render(context) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\loader_tags.py" in render 70. result = block.nodelist.render(context) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\base.py" in render 994. bit = node.render_annotated(context) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\base.py" in render_annotated 961. return self.render(context) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\loader_tags.py" in render 70. result = block.nodelist.render(context) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\base.py" in render 994. bit = node.render_annotated(context) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\base.py" in render_annotated 961. return self.render(context) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\library.py" in render 225. _dict = self.func(*resolved_args, **resolved_kwargs) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\contrib\admin\templatetags\admin_list.py" in result_list 339. 'results': list(results(cl))} file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\contrib\admin\templatetags\admin_list.py" in results 315. yield resultlist(none, items_for_result(cl, res, none)) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\contrib\admin\templatetags\admin_list.py" in __init__ 306. super(resultlist, self).__init__(*items) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\contrib\admin\templatetags\admin_list.py" in items_for_result 217. f, attr, value = lookup_field(field_name, result, cl.model_admin) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\contrib\admin\utils.py" in lookup_field 286. value = attr(obj) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\ordered_model\admin.py" in move_up_down_links 69. 'query_string': self.request_query_string file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\loader.py" in render_to_string 67. template = get_template(template_name, using=using) file "c:\users\milano\pycharmprojects\dropboxworkspaces\priceist_workspace\priceist_venv\lib\site-packages\django\template\loader.py" in get_template 25. raise templatedoesnotexist(template_name, chain=chain) exception type: templatedoesnotexist @ /admin/plans/plan/ exception value: ordered_model/admin/order_controls.html
i can't in plans, other pages works correctly.
Comments
Post a Comment