kopia lustrzana https://github.com/OpenDroneMap/WebODM
Processing nodes onboarding
rodzic
dc6cbe9cbd
commit
0c256afcbc
|
@ -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
|
||||
|
|
|
@ -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 = [
|
||||
|
|
Ładowanie…
Reference in New Issue