Hello,
It doesn't look as though my tables plugin is working correctly. When adding an IP I get the following error:
<class 'django.template.exceptions.TemplateDoesNotExist'> django_tables2/table.html
Using EL 7.3, all versions and permissions look correct
[root@host netbox]# pip list | grep tables
django-tables2 (1.2.5)
[root@host netbox]# python --version
Python 2.7.5
[root@host netbox]# ll templates/table.html
-rw-rw-r-- 1 root root 258 Feb 3 18:59 templates/table.html
My sites/devices/racks pages also load blank as if it is failing to load the template too
--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to netbox-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/e80e3fee-5cb7-4bad-bb50-430267007975%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
django_tables2/table.html and templates/table.html are different files. The former is included as part of the django-tables2 package; the later is provided by NetBox. Try forcing a reinstallation of the django-tables2 package.
On Tue, Mar 14, 2017 at 8:02 AM, Oliver Leaver-Smith <oli...@gmail.com> wrote:
Hello,
It doesn't look as though my tables plugin is working correctly. When adding an IP I get the following error:
<class 'django.template.exceptions.TemplateDoesNotExist'> django_tables2/table.html
Using EL 7.3, all versions and permissions look correct
[root@host netbox]# pip list | grep tables
django-tables2 (1.2.5)
[root@host netbox]# python --version
Python 2.7.5
[root@host netbox]# ll templates/table.html
-rw-rw-r-- 1 root root 258 Feb 3 18:59 templates/table.html
My sites/devices/racks pages also load blank as if it is failing to load the template too
--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To post to this group, send email to netbox-...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to netbox-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/30b02fbc-4cc2-4715-8180-d8346c90a5a0%40googlegroups.com.
There was a problem with your request. This error has been logged and administrative staff have been notified. Please return to the home page and try again.
If you are responsible for this installation, please consider filing a bug report. Additional information is provided below:
<class 'django.template.exceptions.TemplateDoesNotExist'>
django_tables2/table.html
(attached to ticket)
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to netbox-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/2f11ccaf-077f-49ca-a650-221aeb32c6fe%40googlegroups.com.
In template /opt/netbox/netbox/templates/table.html, error at line 1
| 1 | {% extends 'django_tables2/table.html' %} |
|---|---|
| 2 | {% load django_tables2 %} |
| 3 |
|
| 4 | {# Extends the stock django_tables2 template to provide custom formatting of the pagination controls #} |
| 5 |
|
| 6 | {% block pagination %} |
| 7 | {% include 'paginator.html' %} |
| 8 | {% endblock pagination %} |
| 9 |
Django tried loading these templates, in this order:
Using engine django:
django.template.loaders.filesystem.Loader: /opt/netbox/netbox/templates/django_tables2/table.html (Source does not exist)django.template.loaders.app_directories.Loader:
/usr/lib/python2.7/site-packages/Django-1.10-py2.7.egg/django/contrib/admin/templates/django_tables2/table.html
(Source does not exist)django.template.loaders.app_directories.Loader:
/usr/lib/python2.7/site-packages/Django-1.10-py2.7.egg/django/contrib/auth/templates/django_tables2/table.html
(Source does not exist)django.template.loaders.app_directories.Loader:
/usr/lib/python2.7/site-packages/django_debug_toolbar-1.7-py2.7.egg/debug_toolbar/templates/django_tables2/table.html
(Source does not exist)django.template.loaders.app_directories.Loader:
/usr/lib/python2.7/site-packages/djangorestframework-3.5.0-py2.7.egg/rest_framework/templates/django_tables2/table.html
(Source does not exist)django.template.loaders.app_directories.Loader: /opt/netbox-1.8.4/netbox/secrets/templates/django_tables2/table.html (Source does not exist)