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

Add django-tos contrib app #5

Merged
merged 3 commits into from Jan 2, 2023

Conversation

blag
Copy link
Contributor

@blag blag commented Dec 27, 2022

This PR adds an integration with django-tos.

It is necessary when using django-tos's middleware option (2). When using django-tos' middleware, since guest users have full user accounts they are required to agree to the site's terms of service before they can do anything else.

I have refactored django-tos a bit in revsys/django-tos#65 specifically to make this custom middleware easier to write. That PR allows us to minimize the amount of code necessary in this middleware and any changes to upstream django-tos should not interfere with this middleware.

@julianwachholz
Copy link
Owner

Hi @blag thank you for this contribution! I think this could be added but if I understand it correctly it depends on the linked PR being merged into django-tos first?

@blag
Copy link
Contributor Author

blag commented Dec 29, 2022

Sorry I wasn't clear about that - yes, it needs the linked PR to be merged first. That maintainer is pretty active though, so it hopefully shouldn't take too much longer.

@blag blag force-pushed the contrib-django-tos branch 2 times, most recently from 82817e8 to f16693c Compare December 31, 2022 05:15
docs/contrib.rst Outdated Show resolved Hide resolved
@julianwachholz julianwachholz merged commit 8af9c87 into julianwachholz:main Jan 2, 2023
@julianwachholz
Copy link
Owner

Thanks for your contribution and continued support of this project @blag :)

@blag
Copy link
Contributor Author

blag commented Jan 2, 2023

Thank you for maintaining it for me and the Django community. Happy New Year! 😄

@blag blag deleted the contrib-django-tos branch January 3, 2023 08:07
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