Authenticating a user without retrieving or saving from a database

38 views
Skip to first unread message

Rajesh Khan

unread,
Jun 1, 2016, 5:04:47 AM6/1/16
to Django users
My objective is  to authenticate a user from a custom authentication system.

I am not sure how I could create a user object without creating a user in the database.
If I do something like this


u =User.objects.create_user('john', 'len...@thebeatles.com', 'johnpassword')


the above fails and returns Client.DoesNotExist error (probably because a db is not configured probably)

My question is can I create a user at runtime without saving to a db.

monoBOT

unread,
Jun 1, 2016, 5:48:52 AM6/1/16
to django...@googlegroups.com
Users without users ... maybe you can use personalized cookies so you keep track of recurrent visits without any kind of database

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b932ea08-4803-4700-9950-7bea24dbd102%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
monoBOT
Visite mi sitio(Visit my site): monobotsoft.es/blog/
Reply all
Reply to author
Forward
0 new messages