diff --git a/InvenTree/InvenTree/urls.py b/InvenTree/InvenTree/urls.py index 3d94e9c545..d750b6388c 100644 --- a/InvenTree/InvenTree/urls.py +++ b/InvenTree/InvenTree/urls.py @@ -7,6 +7,7 @@ from rest_framework.decorators import api_view admin.site.site_header = "InvenTree Admin" + @api_view() def Inventree404(self): """ Supplied URL is invalid @@ -14,6 +15,7 @@ def Inventree404(self): content = {'detail': 'Malformed API URL'} return Response(content, status=status.HTTP_404_NOT_FOUND) + urlpatterns = [ url(r'^stock/', include('stock.urls')), url(r'^part/', include('part.urls')),