Skip to content

Commit

Permalink
fix missing '{% load static %}' from 'home.html' template
Browse files Browse the repository at this point in the history
  • Loading branch information
emersonfelipesp committed Oct 9, 2023
1 parent 9441a57 commit 5dc5ea0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 4 additions & 1 deletion netbox_proxbox/proxbox_api/plugins_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
except ImportError:
DEFAULT_BASE_PATH = ''

from utilities.exceptions import AbortRequest

####################################################################################################
# #
# DEFAULT VARIABLES DEFINED BY ProxboxConfig CLASS ON PROXBOX PLUGIN CONFIGURATION (__init__.py) #
Expand Down Expand Up @@ -179,7 +181,8 @@ def get_proxmox_session(PROXMOX_SETTING):
output['PROXMOX_SESSION'] = PROXMOX_SESSION
return output
except:
raise RuntimeError(f'Error trying to initialize Proxmox Session using USER {PROXMOX_USER} and PASSWORD')

print(f'Error trying to initialize Proxmox Session using USER {PROXMOX_USER} and PASSWORD')

for s in PROXMOX_SETTING:
P_Setting = get_proxmox_session(s)
Expand Down
1 change: 1 addition & 0 deletions netbox_proxbox/templates/netbox_proxbox/home.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% extends 'base/layout.html' %}
{% load static %}

{% block content %}
<div class="row mb-3">
Expand Down
10 changes: 6 additions & 4 deletions netbox_proxbox/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@
import json

from netbox import configuration

from . import ProxboxConfig

import markdown
from . import github

Expand All @@ -34,10 +33,13 @@ class HomeView(View):
# service incoming GET HTTP requests
def get(self, request):
"""Get request."""

plugin_configuration = configuration.PLUGINS_CONFIG
default_config = ProxboxConfig.default_settings


print("plugin_configuration: ", plugin_configuration, "\n\n")
print("default_config: ", default_config)

return render(
request,
self.template_name,
Expand Down

0 comments on commit 5dc5ea0

Please sign in to comment.