Opened 12 years ago

Last modified 3 days ago

#21292 new New feature

A how-to or tutorial document for using authentication views and forms is needed

Reported by: Daniele Procida Owned by:
Component: Documentation Version: dev
Severity: Normal Keywords:
Cc: Ülgen Sarıkavak, Clifford Gama, Aarushi Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

There's are some substantial documents in /topics/auth/, but there isn't a step-by-step tutorial or how-to.

There's a need for it in the official documentation, because:

  • it's worthwhile getting users started on the right track, so that they don't find themselves doing it insecurely or incorrectly
  • there are plenty of questions on the subject on StackOverflow and elsewhere
  • there are numerous (often out-of-date or incomplete) weblog articles circulating on the subject

Probably a how-to is more appropriate than a tutorial.

Change History (16)

comment:1 by Claude Paroz, 12 years ago

Component: UncategorizedDocumentation
Triage Stage: UnreviewedAccepted

comment:2 by Tim Graham, 12 years ago

#22075 contains some suggestions related to this.

comment:3 by Collin Anderson, 12 years ago

We could better document django.contrib.auth.urls

     url('accounts/', include('django.contrib.auth.urls'),

And give an example view that uses UserCreationForm.

Last edited 12 years ago by Collin Anderson (previous) (diff)

comment:4 by Collin Anderson, 12 years ago

Owner: changed from nobody to Collin Anderson
Status: newassigned

I'm interested in working on this today.

comment:5 by Collin Anderson, 12 years ago

Owner: Collin Anderson removed
Status: assignednew

All I got to was an really rough outline:

- login view
- login form
- login template
- login url
- login_required
- logout view
- create view
- create form
- create template
- create url

comment:6 by Haris Ibrahim K. V., 11 years ago

Owner: set to Haris Ibrahim K. V.
Status: newassigned

comment:7 by Haris Ibrahim K. V., 11 years ago

Patch needs improvement: set

I am working on writing up this tutorial. I have a rough draft ready here: https://github.com/harisibrahimkv/django/blob/3cbcca57465f0dbdf5265b0b80d0bf307ed4505e/docs/topics/auth/tutorial.txt

This is my first time and I am not sure what exactly needs to go in there.

Looking for feedback.

comment:8 by Haris Ibrahim K. V., 10 years ago

Owner: Haris Ibrahim K. V. removed
Status: assignednew

in reply to:  7 comment:9 by Carlos Leite, 10 years ago

Replying to harisibrahimkv:

I am working on writing up this tutorial. I have a rough draft ready here: https://github.com/harisibrahimkv/django/blob/3cbcca57465f0dbdf5265b0b80d0bf307ed4505e/docs/topics/auth/tutorial.txt

This is my first time and I am not sure what exactly needs to go in there.

Looking for feedback.

this link to the article is broken

comment:11 by Jacob Walls, 5 years ago

Needs documentation: unset
Patch needs improvement: unset

Clearing flags for any new attempt when ready.

comment:12 by Ülgen Sarıkavak, 2 years ago

Cc: Ülgen Sarıkavak added

comment:13 by Clifford Gama, 17 months ago

Cc: Clifford Gama added

comment:14 by Tim Graham, 13 months ago

I closed #36204 ("Request to Add User Login & Authentication Example to the Official Django First Steps tutorial") as a duplicate.

comment:15 by Aarushi, 12 days ago

Hi, I'm Aarushi, a new contributor. I'd like to work on this ticket if it’s available. I'm currently setting up my local environment and will follow up with a plan soon.

comment:16 by Aarushi, 4 days ago

Cc: Aarushi added
Has patch: set

"Hi everyone, I have completed the how-to guide for the authentication system. I've submitted a pull request with the full tutorial, including sections for URL configuration, login views, user registration, and password resets.
PR Link: https://github.com/django/django/pull/20910"

comment:17 by Jacob Walls, 3 days ago

Has patch: unset
Note: See TracTickets for help on using tickets.
Back to Top