Opened 11 years ago

Last modified 4 months 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 Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no
Pull Requests:How to create a pull request

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.

According to the ticket's flags, the next step(s) to move this issue forward are:

  • To provide a patch by sending a pull request. Claim the ticket when you start working so that someone else doesn't duplicate effort. Before sending a pull request, review your work against the patch review checklist. Check the "Has patch" flag on the ticket after sending a pull request and include a link to the pull request in the ticket comment when making that update. The usual format is: [https://github.com/django/django/pull/#### PR].

Change History (12)

comment:1 by Claude Paroz, 11 years ago

Component: UncategorizedDocumentation
Triage Stage: UnreviewedAccepted

comment:2 by Tim Graham, 11 years ago

#22075 contains some suggestions related to this.

comment:3 by Collin Anderson, 11 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 11 years ago by Collin Anderson (previous) (diff)

comment:4 by Collin Anderson, 10 years ago

Owner: changed from nobody to Collin Anderson
Status: newassigned

I'm interested in working on this today.

comment:5 by Collin Anderson, 10 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., 10 years ago

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

comment:7 by Haris Ibrahim K. V., 10 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., 9 years ago

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

in reply to:  7 comment:9 by Carlos Leite, 9 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, 4 years ago

Needs documentation: unset
Patch needs improvement: unset

Clearing flags for any new attempt when ready.

comment:12 by Ülgen Sarıkavak, 11 months ago

Cc: Ülgen Sarıkavak added

comment:13 by Clifford Gama, 4 months ago

Cc: Clifford Gama added
Note: See TracTickets for help on using tickets.
Back to Top