code: def nav_categorizer(request):
      
  
      categories = [(r"^/$", "dashboard"), (r"^/announcements", "dashboard"), (r"^/eighth/admin", "eighth_admin"), (r"^/eighth", "eighth"),
                    (r"^/events", "events"), (r"^/files", "files"), (r"^/printing", "printing"), (r"^/groups", "groups"), (r"^/polls", "polls"),
                    (r"^/board", "board"), (r"/bus", "bus")]
  
      for pattern, category in categories:
          p = re.compile(pattern)
          if p.match(request.path):
              return {"nav_category": category}
  
      return {"nav_category": ""}
docs: Determine which top-level nav category (left nav) a request
      falls under