Re: DRF and React - request.user is "Anonymous user"

2022-09-20 Thread Deep Chirag
yes On Tue, Sep 20, 2022 at 9:49 AM Jackson Patrick wrote: > Do i need to pass token in headers? > > On Tue, 20 Sep, 2022, 9:44 am Mohammad Ehsan Ansari, > wrote: > >> make sure you have listed auth as jwt and added permission class for >> authentication >> >> On Monday, 12 September 2022 at

Re: DRF and React - request.user is "Anonymous user"

2022-09-19 Thread Mohammad Ehsan Ansari
yes you need On Tue, 20 Sept 2022 at 09:49, Jackson Patrick wrote: > Do i need to pass token in headers? > > On Tue, 20 Sep, 2022, 9:44 am Mohammad Ehsan Ansari, > wrote: > >> make sure you have listed auth as jwt and added permission class for >> authentication >> >> On Monday, 12 September

Re: DRF and React - request.user is "Anonymous user"

2022-09-19 Thread Jackson Patrick
Do i need to pass token in headers? On Tue, 20 Sep, 2022, 9:44 am Mohammad Ehsan Ansari, wrote: > make sure you have listed auth as jwt and added permission class for > authentication > > On Monday, 12 September 2022 at 09:52:22 UTC+5:30 jacks...@gmail.com > wrote: > >> I have used simple JWT

Re: DRF and React - request.user is "Anonymous user"

2022-09-19 Thread Mohammad Ehsan Ansari
make sure you have listed auth as jwt and added permission class for authentication On Monday, 12 September 2022 at 09:52:22 UTC+5:30 jacks...@gmail.com wrote: > I have used simple JWT for authentication and i have successfully logged > in and am getting tokens also. But when i do a

DRF and React - request.user is "Anonymous user"

2022-09-11 Thread Jackson Patrick
I have used simple JWT for authentication and i have successfully logged in and am getting tokens also. But when i do a request.user in backend i get "Annonymous user". Tried passing Authorization header in axios post in FE REACT but it throws error. Am setting both refresh and access in a state

Re: anonymous user in django app

2019-07-01 Thread Volodymyr Sergeyev
Hi, You may add a checkbox into your form with comment, "Post anonymously". And then in view check this value and if so - leave Post's user field blank. Regards, V. On Thursday, June 27, 2019 at 4:22:01 PM UTC+3, Gaurav Sahu wrote: > > Hy, I have a Django blog app. I want to add a feature in

anonymous user in django app

2019-06-27 Thread Gaurav Sahu
Hy, I have a Django blog app. I want to add a feature in which a registered user can add a post anonymously. But I couldn't figure out how to do it. Anybody help me how can I implement this feature? It will be a great help. Thanks in advance. -- You received this message because you are

Re: saving django session data for anonymous user

2018-06-21 Thread Melvyn Sopacua
On woensdag 13 juni 2018 14:40:05 CEST Siddharth Srivastava wrote: > Thanks Anthony for your prompt reply. current implementation is that i am > using django orm query to pull the user cart details and cart id(session > key) is the key so when user switch from anonymous > user to

Re: saving django session data for anonymous user

2018-06-15 Thread 'Anthony Flury' via Django users
with the new session key. On 13/06/18 13:40, Siddharth Srivastava wrote: Thanks  Anthony for your prompt reply. current implementation is that i am using django orm query to pull the user cart details and cart id(session key) is the key so when user switch from anonymous user to actual user then i

Re: saving django session data for anonymous user

2018-06-13 Thread Siddharth Srivastava
Thanks Anthony for your prompt reply. current implementation is that i am using django orm query to pull the user cart details and cart id(session key) is the key so when user switch from anonymous user to actual user then i loses the data came from the query. so when user gets authenticated

Re: saving django session data for anonymous user

2018-06-12 Thread Melvyn Sopacua
On dinsdag 12 juni 2018 12:01:32 CEST Siddharth Srivastava wrote: > so the scenario is that whenever anonymous > user check out and mapped data against that session id is purged. Is there > any mechanism to save anonymous user session data even after user logs in. > kindly provide e

Re: saving django session data for anonymous user

2018-06-12 Thread 'Anthony Flury' via Django users
Srivastava wrote: Hi , i was writing small ecommerce application in django framework. so i was trying to implement add to cart functionality like that if user is anonymous user then selected products should be mapped to it's session id which is act. cart id in models. so the scenario

saving django session data for anonymous user

2018-06-12 Thread Siddharth Srivastava
Hi , i was writing small ecommerce application in django framework. so i was trying to implement add to cart functionality like that if user is anonymous user then selected products should be mapped to it's session id which is act. cart id in models. so the scenario is that whenever anonymous

Django - Tracking Usage by each registered user and anonymous user

2013-04-16 Thread Jaimin Patel
Hello, I would like to gather the information on how many minutes/hours spent by anonymous users and registered users on my app. On quick google I found few ways to do it - 1. Django-tracking : https://github.com/codekoala/django-tracking 2. Django-tracking2 :

Re: [geo-django] Best way to capture geo-coordinate of an anonymous user?

2011-08-25 Thread Brian Bouterse
gt; > Anyone knows how to capture a geo-coordinate of an anonymous user > after his insert your address in an input? Using a google api? > > Thanks so much > > -- > Ricardo Lapa Dani > > -- > You received this message because you are subscribed to the Google Groups >

[geo-django] Best way to capture geo-coordinate of an anonymous user?

2011-08-25 Thread Ricardo L. Dani
Hello everyone, Anyone knows how to capture a geo-coordinate of an anonymous user after his insert your address in an input? Using a google api? Thanks so much -- Ricardo Lapa Dani -- You received this message because you are subscribed to the Google Groups "Django users" grou

Django, request.user is anonymous user in subsequent requests.

2011-03-21 Thread A
[BACKEND_SESSION_KEY] = user.backend request.user = user user is a custom object here which does not derive from Dj\ango's auth User class. On subsequent requests, request.user is anonymous user. What am I missing? However, I can get my user if I save it in the session manually. but I am worried how

Re: Newbie question regarding User and Anonymous user

2010-04-06 Thread zenr
users can use all features of the site while > > Anonymous user should be able to use some portion of the site. When > > django makes a request for an authenticated user, it creates a > > request.user object that is derived from django's User class, while > > the same

Re: Newbie question regarding User and Anonymous user

2010-04-06 Thread Karen Tracey
On Mon, Apr 5, 2010 at 3:32 PM, zenr <zenr...@gmail.com> wrote: > In my application, I used django-registration to allow users to > login. Authenticated users can use all features of the site while > Anonymous user should be able to use some portion of the site. When > djan

Newbie question regarding User and Anonymous user

2010-04-05 Thread zenr
Hi In my application, I used django-registration to allow users to login. Authenticated users can use all features of the site while Anonymous user should be able to use some portion of the site. When django makes a request for an authenticated user, it creates a request.user object

Re: anonymous user

2010-02-19 Thread Sameer Rahmani
i can't understand you well but if you enable auth system and session system you already have anonymous user , for example you can find out the current user in a view with request.user . if you did not log in then user must be anonymous -- You received this message because you are subscribed

anonymous user

2010-02-19 Thread knight
How can I just enable anonymous user in Django? I mean, what is the minimum I should do to be logged in as anonymous first time I go to my site? Regards, Arshavski Alexnder. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Add request.user.message_set for Anonymous user

2009-06-10 Thread Joshua Partogi
On Jun 11, 2:22 am, soniiic wrote: > use session_messageshttp://code.google.com/p/django-session-messages/ > > I'm using it myself at yourxisity.com and it works fine :) Thanks. This is sufficient enough. Cheers. --~--~-~--~~~---~--~~ You

Re: Add request.user.message_set for Anonymous user

2009-06-10 Thread Alex Gaynor
On Wed, Jun 10, 2009 at 11:22 AM, soniiic wrote: > > use session_messages http://code.google.com/p/django-session-messages/ > > I'm using it myself at yourxisity.com and it works fine :) > > > This is the topic of ticket 4604: http://code.djangoproject.com/ticket/4604.

Re: Add request.user.message_set for Anonymous user

2009-06-10 Thread soniiic
use session_messages http://code.google.com/p/django-session-messages/ I'm using it myself at yourxisity.com and it works fine :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Add request.user.message_set for Anonymous user

2009-06-10 Thread Jashugan
On Jun 10, 6:09 am, Joshua Partogi <joshua.j...@gmail.com> wrote: > How do we add request.user.message_set for Anonymous user? I would imagine that you would play with session data instead to store that information (see http://docs.djangoproject.com/en/dev/topics/http

Add request.user.message_set for Anonymous user

2009-06-10 Thread Joshua Partogi
Dear all, How do we add request.user.message_set for Anonymous user? The point is I want to display a successful message after submitting form for Anonymous user. Thanks for the hint. Best regards, -- Join Scrum8.com. http://scrum8.com/member/jpartogi/ http://scrum8.com/blog/jpartogi/ http

Re: Admin pages for anonymous user

2006-08-15 Thread jarpis
Hi, and thanks for your ideas. Creating a default user and authenticating to that automatically by my own middleware seems like a way to go. I'd like to avoid doing custom forms and Django's admin system could relieve me from that. Not requiring login for unprivileged operations eases learning

Re: Admin pages for anonymous user

2006-08-11 Thread Malcolm Tredinnick
Hi Jussi, On Fri, 2006-08-11 at 04:37 -0700, jarpis wrote: [...] > Problem is, AnonymousUser seems to be a special case and I can't figure > out how to give permissions to it. You can't. An AnonymousUser object is not a real user and only exists for users that do not exist within the system.

Admin pages for anonymous user

2006-08-11 Thread jarpis
Hi. I'm trying to allow admin generated pages for unauthenticated (anonymous) users. This is for intranet app and I'd only need to open some models. I'm using 0.95 release version and development server. Problem is, AnonymousUser seems to be a special case and I can't figure out how to give