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

Exclude some paths from being redirected #4

Merged
merged 17 commits into from
Feb 26, 2019
Merged

Conversation

chillpop
Copy link
Contributor

Allow setting excluded paths that will never be redirected.

  • Adds a setting to set excluded paths
  • Warns when creating/editing a redirect about matching excluded paths
  • Updates for more modern Django versions

Copy link
Contributor

@emperorcezar emperorcezar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you'll need to clear the url caches in the Redirect save to make it fully compatible with latest Django.

Also some minor comments.

robustredirects/models.py Outdated Show resolved Hide resolved
robustredirects/models.py Outdated Show resolved Hide resolved
Copy link
Contributor

@emperorcezar emperorcezar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chillpop chillpop merged commit 3bddc04 into master Feb 26, 2019
@chillpop chillpop deleted the feature/exclude-paths branch February 26, 2019 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants