Hi Tim,
many thanks for your reply!
Am 23.07.2015 um 18:49 schrieb Tim Graham:
> The admin login only allows staff users to login so it makes sense to me that if you
> wanted to add regular user login to your site, it should have separate URLs.
I think what confuses me is the fact that (in the Auth app) there is only one User
model, and the only difference between regular and staff users is the User.is_staff flag.
For example, if a staff user logs out of the Admin, he is logged out as a regular user
as well. If a regular user logs in via a custom login page, then browses to an Admin
page, some kind of error report or redirect must occur.
Given this, authentication is like a user-centric, site-wide feature rather than an
app-specific one, isn't it?
> As for the template issue, it seems to me the admin/template/registration templates
> should be more like admin/login.html and namespaced under admin so that if you want to
> implement a non-admin password reset, you don't have a conflict in the template names
> (see the ticket below for an example).
>
> https://code.djangoproject.com/ticket/20372
>
Well, I am quite happy about the admin using the registration/... templates by default:
With the view that authentication is user- rather than app-specific, I recently made my
admin and regular logins look identical, which worked very well.
So ticket 20372 is quite the opposite of my view. ;-)
In fact, I'd even prefer if the admin came with no auth dependency at all. I'm aware
that that would make getting started harder (and easily getting started was one of the
things I was very grateful for while taking my first steps with Django!), but if the
admin and auth were explicitly separate, it would also remove all confusion both in the
spirit of ticket 20372 and the opposite of it.
Best regards,
Carsten
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/55B12743.7090909%40cafu.de.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment