Have you tried copying the content of contrib/auth and placing it in a 
directory in your app? It should work (perhaps with a bit of tweaking) BUT 
you will have to be careful where they both use the same data (for example 
the setting for the login url) and may have other problems. 

I cannot see what possible benefit you will got from this, and it is 
probably the wrong thing to do. You should almost certainly either:

1) user a custom user 
model: 
https://docs.djangoproject.com/en/dev/topics/auth/customizing/#specifying-a-custom-user-model
 
or,
2) create a model within your app with a onetoone field pointing at the 
user for extra information

On Tuesday, June 10, 2014 5:49:04 PM UTC+5:30, Carlos Perche wrote:
>
> Hi, 
>
> Is there a way to have multiple implementations of django's 
> authentication/authorization system? In my practice blog-type site, 
> I've implemented django's auth/auth system as is. I'd like to use the 
> default implementation solely for administrators of the site. For 
> users of the site, on the other hand, I'd like to have a derivation of 
> django's auth/auth system - which will have the same functionality as 
> the default implementation, but have a separate set of user tables and 
> different fields. 
>
> I need to use the auth.user default just for admin user and I need to use 
> my custom.user for the others usuarios in the same project and database.
>
> It's possible?
>
> Anyone know how to do what I've described? Thanks. 
>

-- 
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+unsubscr...@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/fc4e3c49-663f-42dc-bb36-07daf66014e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to