diff --git a/ubookmark/settings.py b/ubookmark/settings.py index 3866cfc..3c5f9f4 100644 --- a/ubookmark/settings.py +++ b/ubookmark/settings.py @@ -103,6 +103,11 @@ except (ModuleNotFoundError, ImportError): AUTH_LDAP_BIND_PASSWORD = "" AUTH_LDAP_USER_SEARCH = "" + AUTHENTICATION_BACKENDS = [ + "django_auth_ldap.backend.LDAPBackend", + "django.contrib.auth.backends.ModelBackend" + ] + SITE_NAME = "an unconfigured site" @@ -145,12 +150,6 @@ USE_TZ = True STATIC_URL = '/static/' STATICFILES_DIRS = [ os.path.join(BASE_DIR, "static") ] - -AUTHENTICATION_BACKENDS = [ - "django_auth_ldap.backend.LDAPBackend", - "django.contrib.auth.backends.ModelBackend" -] - AUTH_USER_MODEL = 'ubookmark.User' CRISPY_TEMPLATE_PACK = 'bootstrap4' diff --git a/ubookmark/templates/ubookmark/bookmarkmodel_list.html b/ubookmark/templates/ubookmark/bookmarkmodel_list.html index cb02865..1b40fee 100644 --- a/ubookmark/templates/ubookmark/bookmarkmodel_list.html +++ b/ubookmark/templates/ubookmark/bookmarkmodel_list.html @@ -19,7 +19,8 @@ {{ bookmark.comment }} ({{ bookmark.url }})