|
@@ -13,7 +13,7 @@ CategoryForm = get_class("search.forms", "CategoryForm")
|
13
|
13
|
BaseSearchView = get_class("search.views.base", "BaseSearchView")
|
14
|
14
|
Category = get_model("catalogue", "Category")
|
15
|
15
|
|
16
|
|
-import traceback
|
|
16
|
+
|
17
|
17
|
class CatalogueView(BaseSearchView):
|
18
|
18
|
"""
|
19
|
19
|
Browse all products in the catalogue
|
|
@@ -26,13 +26,9 @@ class CatalogueView(BaseSearchView):
|
26
|
26
|
|
27
|
27
|
def get(self, request, *args, **kwargs):
|
28
|
28
|
try:
|
29
|
|
- try:
|
30
|
|
- # do_stuff()
|
31
|
|
- raise "q"
|
32
|
|
- except Exception as e:
|
33
|
|
- # print(traceback.format_exc())
|
34
|
|
- print(traceback.print_exception(e))
|
35
|
|
-
|
|
29
|
+ print("GET CAT")
|
|
30
|
+
|
|
31
|
+ print(traceback.print_stack())
|
36
|
32
|
return super().get(request, *args, **kwargs)
|
37
|
33
|
except Http404:
|
38
|
34
|
# Redirect to page one.
|