Admin section issue #1972

Closed
opened 2025-12-29 17:21:02 +01:00 by adam · 4 comments
Owner

Originally created by @HeavenBay on GitHub (Aug 27, 2018).

Hi!

Environment

  • Python version: Python 3.6.5
  • NetBox version: 2.4.4 (moved from different server from version: 2.3.1)

Steps to Reproduce

The page https://netbox.domain.local/admin/ shows error:

<class 'django.template.exceptions.TemplateDoesNotExist'>
django_rq/index.html

Expected Behavior

Get control panel

Observed Behavior

Thank you.

Originally created by @HeavenBay on GitHub (Aug 27, 2018). Hi! <!-- NOTE: This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment * Python version: Python 3.6.5 * NetBox version: 2.4.4 (moved from different server from version: 2.3.1) <!-- Describe in detail the steps that someone else can take to reproduce this bug using the current stable release of NetBox (or the current beta release where applicable). --> ### Steps to Reproduce The page https://netbox.domain.local/admin/ shows error: **<class 'django.template.exceptions.TemplateDoesNotExist'> django_rq/index.html** <!-- What did you expect to happen? --> ### Expected Behavior Get control panel <!-- What happened instead? --> ### Observed Behavior - Thank you.
adam closed this issue 2025-12-29 17:21:02 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 27, 2018):

Thank you for your interest in NetBox. GitHub issues are intended for reporting reproducible bugs and requesting features, and must be submitted using the template provided here. For general discussion, questions, or assistance with installation issues, please post to our mailing list.

@jeremystretch commented on GitHub (Aug 27, 2018): Thank you for your interest in NetBox. GitHub issues are intended for reporting reproducible bugs and requesting features, and must be submitted using the template provided [here](https://raw.githubusercontent.com/digitalocean/netbox/develop/.github/ISSUE_TEMPLATE.md). For general discussion, questions, or assistance with installation issues, please post to our [mailing list](https://groups.google.com/forum/#!forum/netbox-discuss).
Author
Owner

@tobiasge commented on GitHub (Aug 31, 2018):

Hello,

@jeremystretch
we are also facing this issue. The problem is with having django_rq installed but webhooks disabled. This happens when using the Docker container from Nine.ch. In this container the django_rq is always installed, but you can still disable the webhooks backend.

So when webhooks are disabled in the settings.py you have these lines (from 161):

# Only load django-rq if the webhook backend is enabled
if WEBHOOKS_ENABLED:
    INSTALLED_APPS.append('django_rq')

And in the netbox/admin.py you have this (from line 25):

# Modify the template to include an RQ link if django_rq is installed (see RQ_SHOW_ADMIN_LINK)
try:
    import django_rq
    admin_site.index_template = 'django_rq/index.html'
except ImportError:
    pass

I think a good fix for this would be to check in admin.py if the setting WEBHOOKS_ENABLED is true.

Kind regards
Tobias

@tobiasge commented on GitHub (Aug 31, 2018): Hello, @jeremystretch we are also facing this issue. The problem is with having django_rq installed but webhooks disabled. This happens when using the Docker container from Nine.ch. In this container the `django_rq` is always installed, but you can still disable the webhooks backend. So when webhooks are disabled in the `settings.py` you have these lines (from 161): ``` # Only load django-rq if the webhook backend is enabled if WEBHOOKS_ENABLED: INSTALLED_APPS.append('django_rq') ``` And in the `netbox/admin.py` you have this (from line 25): ``` # Modify the template to include an RQ link if django_rq is installed (see RQ_SHOW_ADMIN_LINK) try: import django_rq admin_site.index_template = 'django_rq/index.html' except ImportError: pass ``` I think a good fix for this would be to check in `admin.py` if the setting WEBHOOKS_ENABLED is true. Kind regards Tobias
Author
Owner

@aswen commented on GitHub (Nov 6, 2018):

@jeremystretch The link you provide to the template isn't working :(
2018-11-06_16 15 09
(we are facing that issue on 2.4.6 now )

@aswen commented on GitHub (Nov 6, 2018): @jeremystretch The link you provide to the template isn't working :( ![2018-11-06_16 15 09](https://user-images.githubusercontent.com/550440/48073522-3badc280-e1df-11e8-8071-dec65885e503.png) (we are facing that issue on 2.4.6 now )
Author
Owner

@DanSheps commented on GitHub (Nov 6, 2018):

Upgrade to 2.4.7, a fix was just merged into master and 2.4.7 was released.

@DanSheps commented on GitHub (Nov 6, 2018): Upgrade to 2.4.7, a fix was just merged into master and 2.4.7 was released.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1972