How to completely disable django.contrib.auth?

Since I use my own authorization and authorization system (with my own User / Permission model), I would like to completely disconnect this standard application from Django.

I tried to delete the corresponding rows from MIDDLEWARE_CLASSESand INSTALLED_APPS, but when I use the syncdb command, the default tables that come with the default authentication system are still created. Is there any way to prevent this? My main problem is that standard tables override the tables that I want to use for my own auth system.

INSTALLED_APPS = (
    'django.contrib.sessions',
    'form_utils',
    'org',
    'auth',
    'entities',
)

I also tried adding applications to the project package, it had no effect.

Perhaps there is another setting that I skip? Other possible variables that could lead to the inclusion of these standard applications, despite my efforts?

I also don’t use the built-in admin system, so I don’t think that might be the problem.

Additional Information: Recently I upgraded Django 1.2 to 1.3. Could this be the cause of my problem?

Edit: This problem appears to be caused by a change to Django 1.3. The associated ticket is here: http://code.djangoproject.com/ticket/15735

Any clues?

+5
source share
1 answer

I believe the authentication module is pulled into the RequestContext.

TEMPLATE_CONTEXT_PROCESSORS django.contrib.auth.context_processors.auth.

django auth, AnonymousUser "user", auth INSTALLED_APPS MIDDLEWARE_CLASSES.

TEMPLATE_CONTEXT_PROCESSORS, , .

1.2 1.3 , ( ), , , RequestContext dicts. , , , auth , django , auth , .

, .

+4

All Articles