Browse Source

auto commit

master
jfinn 8 months ago
parent
commit
7a85c9ec3c
2 changed files with 5 additions and 9 deletions
  1. 1
    1
      edan_v1/edan_v1/settings.py
  2. 4
    8
      src/oscar/apps/search/views/catalogue.py

+ 1
- 1
edan_v1/edan_v1/settings.py View File

41
 
41
 
42
 INSTALLED_APPS = [
42
 INSTALLED_APPS = [
43
     
43
     
44
-    'daphne',
44
+    # 'daphne',
45
     'channels',
45
     'channels',
46
     "hrld",
46
     "hrld",
47
 
47
 

+ 4
- 8
src/oscar/apps/search/views/catalogue.py View File

13
 BaseSearchView = get_class("search.views.base", "BaseSearchView")
13
 BaseSearchView = get_class("search.views.base", "BaseSearchView")
14
 Category = get_model("catalogue", "Category")
14
 Category = get_model("catalogue", "Category")
15
 
15
 
16
-import traceback
16
+
17
 class CatalogueView(BaseSearchView):
17
 class CatalogueView(BaseSearchView):
18
     """
18
     """
19
     Browse all products in the catalogue
19
     Browse all products in the catalogue
26
 
26
 
27
     def get(self, request, *args, **kwargs):
27
     def get(self, request, *args, **kwargs):
28
         try:
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
             return super().get(request, *args, **kwargs)
32
             return super().get(request, *args, **kwargs)
37
         except Http404:
33
         except Http404:
38
             # Redirect to page one.
34
             # Redirect to page one.

Loading…
Cancel
Save