anonymous-users Questions

8

Solved

def index(request): the_user = request.user In Django, how do I know if it's a real user or not? I tried: if the_user: but "AnonymousUser" is there even if no one logs in. So, it always returns...

4

Solved

How would I go about caching pages for anonymous users but rendering them for authorized users in Django 1.6? There used to be a CACHE_MIDDLEWARE_ANONYMOUS_ONLY flag that sounded perfect, but that ...

2

My app implements a shopping cart in which anonymous users can fill their cart with products. User Login is required only before payment. How can this be implemented? The main challenge is that fl...
Rube asked 30/4, 2015 at 7:44

4

Solved

I have a simple Post model in my django app: class Post(models.Model): category = models.CharField(max_length=10, choices=choices) message = models.CharField(max_length=500) user = models.Forei...
Toul asked 3/1, 2011 at 13:5

1

Solved

I am attempting to track AnonymousUsers to figure out when they first come to the site, and when they then register to the website. To do so, I created a middleware with the relevant functionalit...
Courtier asked 19/2, 2013 at 4:20

1

Solved

I'm using Spring Security 3.0.2 and I can't find a way to load roles of anonymous user from database (I've got dynamic roles where roles can be given to everyone). I've tried to use a custom anony...

4

Solved

I'm looking at implementing some form of anonymous user system in Rails. I need to let people do things (creating records, looking at what they've created, etc), without actually creating an accoun...
Trochilus asked 7/1, 2009 at 18:29
1

© 2022 - 2024 — McMap. All rights reserved.