mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 03:17:07 +00:00
@@ -158,6 +158,8 @@ THIRD_PARTY_APPS = [
|
||||
'rest_framework',
|
||||
'post_office',
|
||||
'bootstrap_datepicker_plus',
|
||||
'hijack',
|
||||
'compat',
|
||||
]
|
||||
|
||||
FIRST_PARTY_APPS = [
|
||||
@@ -265,7 +267,7 @@ AUTH_USER_MODEL = 'people.User'
|
||||
|
||||
LOGIN_URL = reverse_lazy('login')
|
||||
|
||||
LOGIN_REDIRECT_URL = reverse_lazy('index')
|
||||
LOGIN_REDIRECT_URL = reverse_lazy('people:person.profile')
|
||||
|
||||
# Internationalization
|
||||
# https://docs.djangoproject.com/en/2.2/topics/i18n/
|
||||
@@ -353,6 +355,13 @@ CONSTANCE_CONFIG_FIELDSETS = {
|
||||
|
||||
CONSTANCE_BACKEND = 'constance.backends.database.DatabaseBackend'
|
||||
|
||||
|
||||
# Django Hijack settings
|
||||
# See https://django-hijack.readthedocs.io/en/stable/
|
||||
|
||||
HIJACK_USE_BOOTSTRAP = True
|
||||
|
||||
|
||||
# Bootstrap settings
|
||||
# See https://django-bootstrap4.readthedocs.io/en/latest/settings.html
|
||||
|
||||
|
||||
@@ -27,6 +27,10 @@
|
||||
{% load staticfiles %}
|
||||
<link rel="stylesheet" href="{% static 'css/global.css' %}">
|
||||
|
||||
<link rel="stylesheet"
|
||||
type="text/css"
|
||||
href="{% static 'hijack/hijack-styles.css' %}" />
|
||||
|
||||
{% if 'javascript_in_head'|bootstrap_setting %}
|
||||
{% if 'include_jquery'|bootstrap_setting %}
|
||||
{# jQuery JavaScript if it is in head #}
|
||||
@@ -144,6 +148,9 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% load hijack_tags %}
|
||||
{% hijack_notification %}
|
||||
|
||||
{% if request.user.is_authenticated and not request.user.has_person %}
|
||||
<div class="alert alert-info rounded-0" role="alert">
|
||||
<p class="text-center mb-0">
|
||||
|
||||
@@ -25,6 +25,9 @@ urlpatterns = [
|
||||
path('select2/',
|
||||
include('django_select2.urls')),
|
||||
|
||||
path('hijack/',
|
||||
include('hijack.urls', namespace='hijack')),
|
||||
|
||||
path('',
|
||||
include('django.contrib.auth.urls')),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user