Added setup errors banner to welcome page.

This commit is contained in:
2018-12-30 12:43:14 +02:00
parent 21a05614f2
commit 457b0c4dc9
5 changed files with 14 additions and 2 deletions

View File

@ -1,5 +1,6 @@
import logging
from django.conf import settings
from django.contrib.auth import authenticate, login
from django.contrib.auth.models import User
from django.http import HttpResponseForbidden
@ -44,6 +45,14 @@ class Step0WelcomeView(WizardStepMixin, FormView):
form_class = WelcomeForm
success_url = reverse_lazy('first_time_1')
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context.update({
'config_errors': settings.CONFIG_ERRORS,
'config_warnings': settings.CONFIG_WARNINGS,
})
return context
#
# Step 1: setup API key