diff --git a/MUOR/MUOR/settings.py b/MUOR/MUOR/settings.py index afc479883..ccee8f7a9 100644 --- a/MUOR/MUOR/settings.py +++ b/MUOR/MUOR/settings.py @@ -126,7 +126,7 @@ STATICFILES_DIRS = ( STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') -LOGIN_REDIRECT_URL = 'home' +LOGIN_REDIRECT_URL = 'loader' LOGOUT_REDIRECT_URL = 'home' # Default primary key field type diff --git a/MUOR/MUOR/urls.py b/MUOR/MUOR/urls.py index 66476216a..4a143369b 100644 --- a/MUOR/MUOR/urls.py +++ b/MUOR/MUOR/urls.py @@ -25,9 +25,8 @@ urlpatterns = [ path('admin/', admin.site.urls), path('', include('django.contrib.auth.urls')), path('signup/', SignUpView.as_view(), name='signup'), - path('welcome/', TemplateView.as_view(template_name='home.html'), - name='home'), - path('favicon.ico', RedirectView.as_view( - url=staticfiles_storage.url('images/favicon.ico'))), + path('loader/', TemplateView.as_view(template_name='loader.html'), name='loader'), + path('welcome/', TemplateView.as_view(template_name='home.html'), name='home'), + path('favicon.ico', RedirectView.as_view(url=staticfiles_storage.url('images/favicon.ico'))), path('', views.home, name='home') ] diff --git a/MUOR/MUOR/views.py b/MUOR/MUOR/views.py index 780c959ec..944f84540 100644 --- a/MUOR/MUOR/views.py +++ b/MUOR/MUOR/views.py @@ -1,6 +1,4 @@ -from django.contrib.auth import logout from django.contrib.auth.forms import UserCreationForm -from django.http import JsonResponse from django.shortcuts import redirect from django.urls import reverse_lazy from django.views import generic diff --git a/MUOR/db.sqlite3 b/MUOR/db.sqlite3 index 66b5fe754..b8f09abba 100644 Binary files a/MUOR/db.sqlite3 and b/MUOR/db.sqlite3 differ diff --git a/MUOR/templates/base.html b/MUOR/templates/base.html index bb3b175c6..0837aca71 100644 --- a/MUOR/templates/base.html +++ b/MUOR/templates/base.html @@ -2,8 +2,8 @@ - + {% block title %}MultiUserOpenRefine{% endblock %} @@ -25,5 +25,14 @@ + + + \ No newline at end of file diff --git a/MUOR/templates/loader.html b/MUOR/templates/loader.html new file mode 100644 index 000000000..6702a8658 --- /dev/null +++ b/MUOR/templates/loader.html @@ -0,0 +1,13 @@ + +{% extends 'base.html' %} + +{% block title %}Loader{% endblock %} + +{% block content %} +

Your instance is getting ready. Please wait...

+
+
+ Loading... +
+
+{% endblock %} \ No newline at end of file