BGMaster, did you ever get this working? I'm encountering the same problem,
and can't seem to get the middleware redirects to work properly (doesn't
properly submit/constantly redirects).
On Wednesday, May 2, 2012 3:34:16 PM UTC-6, BGMaster wrote:
>
> Hi,
>
> I'm trying to implement acceptance
Expanding on Jonathan's suggestion, you could create a simple middleware
function to redirect a user to the EULA page if they haven't accepted it
yet. And you don't need to put the restriction into every view: it's
automatic.
https://docs.djangoproject.com/en/dev/topics/http/middleware/?from=olddo
That's what I have. The problem is that you then have to restrict
access on every page of your site to those who've accepted the EULA.
What I would rather do is create a profile and only allow access to
the EULA acceptance page once the person is registered and until they
accept the EULA. I'm just
You could store the Eula as a boolean field on a user profile model and manage
it that way.
Sent from my iPhone
On May 2, 2012, at 3:34 PM, BGMaster wrote:
> Hi,
>
> I'm trying to implement acceptance of a EULA into my site registration
> form. The EULA acceptance is on a separate page from t
Hi,
I'm trying to implement acceptance of a EULA into my site registration
form. The EULA acceptance is on a separate page from the rest of the
registration form. I'm trying to figure out a way to prevent the user
from accessing the rest of the site without accepting the EULA. Every
path I go down
5 matches
Mail list logo