I have implemented a registration/login/authentication system using this Django guide.
But, how would I access a user’s information from my views so I can send the user’s information to a template file?
I want to be able to access a user’s ID so I can submit a form with the user’s ID attached to the form.
There is a
django.contrib.auth.models.Userobject attached to the request; you can access it in a view viarequest.user. You must have the auth middleware installed, though.