Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove print() statements in middleware.py #84

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions djangocms_redirect/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def do_redirect(self, request, response=None):
cached_redirect = cache.get(key)

if not cached_redirect:
print("possible_paths", possible_paths)
for path in possible_paths:
filters = dict(site=current_site, old_path=path)
try:
Expand All @@ -74,7 +73,6 @@ def do_redirect(self, request, response=None):
"status_code": r.response_code if r else None,
}
cache.set(key, cached_redirect, timeout=getattr(settings, "DJANGOCMS_REDIRECT_CACHE_TIMEOUT", 3600))
print("cached_redirect", cached_redirect)
if cached_redirect["redirect"] == "":
return self.response_gone_class()
if cached_redirect["status_code"] == "302":
Expand Down
Loading