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

Chapter on Signals: Need How-To Example and Use Case #120

Open
FlipperPA opened this issue Feb 10, 2016 · 0 comments
Open

Chapter on Signals: Need How-To Example and Use Case #120

FlipperPA opened this issue Feb 10, 2016 · 0 comments

Comments

@FlipperPA
Copy link

The chapter on Signals is made up of information about how to avoid using signals. This is important information to know: signals appear shiny, and suffer from the old problem of, "I have a hammer, so now everything looks like a nail!" However, when I had an actual use case for signal use to remain DRY, I couldn't find a how-to or use case in Two Scoops, which has served me so well in so many other cases.

I'd be happy to share my use case in a chapter. I'm on a team migrating a huge legacy web site which serves tens of thousands of paying users from a legacy Perl / ColdFusion / PHP mash-up to Django. We can't do this with a kill switch: the sites must be able to live side-by-side without the end user knowing they're actively being swapped back and forth between the legacy site, and the Django site. As an upshot of this, we have four forms of auth which will need to be supported in Django: Django's own model auth, a custom middleware cookie authentication, LDAP, and CoSign (RemoteUser). There are some functions we need to perform regardless of the authentication type after login, which is a good use case for a signal. I'd be happy to use this as a concrete example and show how we implemented it for the next version of the book / Django LTS release.

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

No branches or pull requests

1 participant