Processing nodes onboarding

pull/836/head
Piero Toffanin 2020-03-20 12:38:03 -04:00
rodzic dc6cbe9cbd
commit 0c256afcbc
2 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -34,6 +34,9 @@ def index(request):
@login_required
def dashboard(request):
no_processingnodes = ProcessingNode.objects.count() == 0
if no_processingnodes and settings.PROCESSING_NODES_ONBOARDING is not None:
return redirect(settings.PROCESSING_NODES_ONBOARDING)
no_tasks = Task.objects.filter(project__owner=request.user).count() == 0
# Create first project automatically

Wyświetl plik

@ -64,6 +64,9 @@ APP_DEFAULT_LOGO = os.path.join('app', 'static', 'app', 'img', 'logo512.png')
# used so that no login windows are displayed
SINGLE_USER_MODE = False
# URL to redirect to if there are no processing nodes when visiting the dashboard
PROCESSING_NODES_ONBOARDING = None
# Application definition
INSTALLED_APPS = [