Move authentication-related modules to app bocal_auth
This commit is contained in:
parent
b1727f7e07
commit
e699fc617e
9 changed files with 14 additions and 2 deletions
|
@ -32,6 +32,7 @@ INSTALLED_APPS = [
|
|||
'django_cas_ng',
|
||||
'mainsite',
|
||||
'api',
|
||||
'bocal_auth',
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
|
@ -87,7 +88,7 @@ AUTH_PASSWORD_VALIDATORS = [
|
|||
|
||||
AUTHENTICATION_BACKENDS = [
|
||||
'django.contrib.auth.backends.ModelBackend',
|
||||
'mainsite.cas_backend.BOcalCASBackend',
|
||||
'bocal_auth.cas_backend.BOcalCASBackend',
|
||||
]
|
||||
|
||||
CAS_ADMIN_PREFIX = '/yaes5eiS' # we don't want CAS to take over /admin auth
|
||||
|
|
|
@ -19,7 +19,7 @@ from django.contrib.auth.decorators import login_required
|
|||
import django.contrib.auth.views as dj_auth_views
|
||||
|
||||
import mainsite.urls
|
||||
import mainsite.auth_views as auth_views
|
||||
import bocal_auth.views as auth_views
|
||||
import markdownx.urls
|
||||
import api.urls
|
||||
|
||||
|
|
0
bocal_auth/__init__.py
Normal file
0
bocal_auth/__init__.py
Normal file
3
bocal_auth/admin.py
Normal file
3
bocal_auth/admin.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
5
bocal_auth/apps.py
Normal file
5
bocal_auth/apps.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class AuthConfig(AppConfig):
|
||||
name = 'bocal_auth'
|
0
bocal_auth/migrations/__init__.py
Normal file
0
bocal_auth/migrations/__init__.py
Normal file
3
bocal_auth/tests.py
Normal file
3
bocal_auth/tests.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
Loading…
Reference in a new issue