From c7403fd512094a4630848df3e64d62bb2bc3356d Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 3 Oct 2020 16:18:03 +1000 Subject: [PATCH] Add shell interface --- InvenTree/InvenTree/settings.py | 1 + InvenTree/InvenTree/urls.py | 1 + requirements.txt | 1 + 3 files changed, 3 insertions(+) diff --git a/InvenTree/InvenTree/settings.py b/InvenTree/InvenTree/settings.py index 7e398a9c34..f9e3285781 100644 --- a/InvenTree/InvenTree/settings.py +++ b/InvenTree/InvenTree/settings.py @@ -153,6 +153,7 @@ INSTALLED_APPS = [ 'markdownx', # Markdown editing 'markdownify', # Markdown template rendering 'django_tex', # LaTeX output + 'django_admin_shell', # Python shell for the admin interface ] LOGGING = { diff --git a/InvenTree/InvenTree/urls.py b/InvenTree/InvenTree/urls.py index c433cef382..d718871851 100644 --- a/InvenTree/InvenTree/urls.py +++ b/InvenTree/InvenTree/urls.py @@ -117,6 +117,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/shell/', include('django_admin_shell.urls')), url(r'^admin/', admin.site.urls, name='inventree-admin'), url(r'^qr_code/', include(qr_code_urls, namespace='qr_code')), diff --git a/requirements.txt b/requirements.txt index 8faa7f58a5..6e634328ae 100644 --- a/requirements.txt +++ b/requirements.txt @@ -25,5 +25,6 @@ django-stdimage==5.1.1 # Advanced ImageField management 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 inventree # Install the latest version of the InvenTree API python library \ No newline at end of file