[Answered ]-Rendering an existing site invite only in Django

2👍

Have you looked at the privatebeta application (PyPI, GitHub)? It seems like that does what you are looking for. Otherwise you can at least have a look at their middleware component to base your code on.

0👍

Perhaps you could use signals to catch people that are not logged in:

http://docs.djangoproject.com/en/dev/ref/signals/#django.core.signals.request_started

Or you could fiddle with the urlpatterns somehow, so that the urlpatterns list only contains the required login stuff when you’re not logged in. That would work, right?

Leave a comment