I had posted some questions about blocking a site on TextDrive on their forums, and ultimately ended up doing it with a middleware component that I wrote myself. There was a nice example already in the wiki, but it didn't do quite what I needed - I wanted to block the site to everyone (registered users included) and just show a splash/teaser page. And if you happened to know the obscure URL to access the a form that let you enter in a passcode, it would let you in. Plenty of variations on the theme are possible...

Anyway, I posted my middleware for you all to enjoy (and pick apart as you like) at http://www.rhonabwy.com/wp/2006/08/01/blocking-a-site-in-django/ - and I added it as a link to the wiki as well.

-joe

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to