diff --git a/bocal/settings_base.py b/bocal/settings_base.py index 22ff30a..2c2858e 100644 --- a/bocal/settings_base.py +++ b/bocal/settings_base.py @@ -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 diff --git a/bocal/urls.py b/bocal/urls.py index 0645196..e423159 100644 --- a/bocal/urls.py +++ b/bocal/urls.py @@ -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 diff --git a/bocal_auth/__init__.py b/bocal_auth/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/bocal_auth/admin.py b/bocal_auth/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/bocal_auth/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/bocal_auth/apps.py b/bocal_auth/apps.py new file mode 100644 index 0000000..08a0faa --- /dev/null +++ b/bocal_auth/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class AuthConfig(AppConfig): + name = 'bocal_auth' diff --git a/mainsite/cas_backend.py b/bocal_auth/cas_backend.py similarity index 100% rename from mainsite/cas_backend.py rename to bocal_auth/cas_backend.py diff --git a/bocal_auth/migrations/__init__.py b/bocal_auth/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/bocal_auth/tests.py b/bocal_auth/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/bocal_auth/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/mainsite/auth_views.py b/bocal_auth/views.py similarity index 100% rename from mainsite/auth_views.py rename to bocal_auth/views.py