joshuakarjala/django-hunger — pull request #45 by mypetyak (2014-03-11 00:57:51+00:00)
Title: Handle unauthenticated users trying to access in-beta views

I've been thinking on the same issue @jeffbowen raises in issue #43.

I propose that users who have not yet logged in be redirected to a login screen via the settings.LOGIN_URL, available by default from Django. It's probably safe to assume that anyone using contrib.auth has this setting correctly configured as well, and any non-beta views would already be whitelisted.

This commit resolves #43 and provides testing support for the update as well. Let me know what you think.