A database programming error was detected while processing this request. Common causes include the following:
Database migrations missing - When upgrading to a new NetBox release, the upgrade script must be run to apply any new database migrations. You can run migrations manually by executing python3 manage.py migrate from the command line.
Unsupported PostgreSQL version - Ensure that PostgreSQL version 9.6 or higher is in use. You can check this by connecting to the database using NetBox's credentials and issuing a query for SELECT VERSION().
The complete exception is provided below:
<class 'django.db.utils.ProgrammingError'>
relation "reportview_reportviewmodel" does not exist
LINE 1: SELECT COUNT(*) AS "__count" FROM "reportview_reportviewmode...
^
----------------------------------------------------------------------------------------------------------------------------------
I have followed https://netbox.readthedocs.io/en/stable/plugins/development/ this link for creations of plugins(django app)
Please find the attached django app (plugins)
thanks in advance I'm waiting for response
relation "reportview_reportviewmodel" does not exist LINE 1: SELECT COUNT(*) AS "__count" FROM "reportview_reportviewmode... ^
output of makemigrations command------------------------------------------------CommandError: This command is available for development purposes only.
A database programming error was detected while processing this request. Common causes include the following:
Database migrations missing - When upgrading to a new NetBox release, the upgrade script must be run to apply any new database migrations. You can run migrations manually by executing python3 manage.py migrate from the command line.
Unsupported PostgreSQL version - Ensure that PostgreSQL version 9.6 or higher is in use. You can check this by connecting to the database using NetBox's credentials and issuing a query for SELECT VERSION().
The complete exception is provided below:
<class 'django.db.utils.ProgrammingError'>'reportriew' is not a registered namespace inside 'plugins'
| 9 | <li> |
|---|---|
| 10 | {% if menu_item.buttons %} |
| 11 | <div class="buttons pull-right"> |
| 12 | {% for button in menu_item.buttons %} |
| 13 | {% if not button.permissions or request.user|has_perms:button.permissions %} |
| 14 | <a href="{% url button.link %}" class="btn btn-xs btn-{{ button.color }}" title="{{ button.title }}"><i class="{{ button.icon_class }}"></i></a> |
| 15 | {% endif %} |
| 16 | {% endfor %} |
| 17 | </div> |
| 18 | {% endif %} |
| 19 | <a href="{% url menu_item.link %}">{{ menu_item.link_text }}</a> |
| 20 | </li> |
| 21 | {% else %} |
| 22 | <li class="disabled"><a href="#">{{ menu_item.link_text }}</a></li> |
| 23 | {% endif %} |
| 24 | {% endfor %} |
| 25 | {% if not forloop.last %} |
| 26 | <li class="divider"></li> |
| 27 | {% endif %} |
| 28 | {% endfor %} |
| 29 | </ul> |
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/e673f637-db00-43bd-8fef-bddfd2490869n%40googlegroups.com.