mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #1118 from SchrodingersGat/log-viewer
Add requirement for django-error-report
This commit is contained in:
commit
6d5bdaadbd
@ -155,6 +155,8 @@ INSTALLED_APPS = [
|
||||
'markdownify', # Markdown template rendering
|
||||
'django_tex', # LaTeX output
|
||||
'django_admin_shell', # Python shell for the admin interface
|
||||
'error_report', # Error reporting in the admin interface
|
||||
|
||||
]
|
||||
|
||||
LOGGING = {
|
||||
@ -181,6 +183,9 @@ MIDDLEWARE = CONFIG.get('middleware', [
|
||||
'InvenTree.middleware.AuthRequiredMiddleware'
|
||||
])
|
||||
|
||||
# Error reporting middleware
|
||||
MIDDLEWARE.append('error_report.middleware.ExceptionProcessor')
|
||||
|
||||
AUTHENTICATION_BACKENDS = CONFIG.get('authentication_backends', [
|
||||
'django.contrib.auth.backends.ModelBackend'
|
||||
])
|
||||
|
@ -126,6 +126,7 @@ urlpatterns = [
|
||||
url(r'^edit-user/', EditUserView.as_view(), name='edit-user'),
|
||||
url(r'^set-password/', SetPasswordView.as_view(), name='set-password'),
|
||||
|
||||
url(r'^admin/error_log/', include('error_report.urls')),
|
||||
url(r'^admin/shell/', include('django_admin_shell.urls')),
|
||||
url(r'^admin/', admin.site.urls, name='inventree-admin'),
|
||||
|
||||
|
@ -109,6 +109,9 @@ class RuleSet(models.Model):
|
||||
'report_reportasset',
|
||||
'report_testreport',
|
||||
'part_partstar',
|
||||
|
||||
# Third-party tables
|
||||
'error_report_error',
|
||||
]
|
||||
|
||||
RULE_OPTIONS = [
|
||||
|
@ -26,5 +26,6 @@ django-tex==1.1.7 # LaTeX PDF export
|
||||
django-weasyprint==1.0.1 # HTML PDF export
|
||||
django-debug-toolbar==2.2 # Debug / profiling toolbar
|
||||
django-admin-shell==0.1.2 # Python shell for the admin interface
|
||||
django-error-report==0.2.0 # Error report viewer for the admin interface
|
||||
|
||||
inventree # Install the latest version of the InvenTree API python library
|
Loading…
Reference in New Issue
Block a user