forked from radovankavicky/dash-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver.py
36 lines (24 loc) · 842 Bytes
/
server.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# -*- coding: utf-8 -*-
from dash import Dash
from flask import Flask, redirect
import os
app = Dash(
__name__,
external_stylesheets=[
'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css'
]
)
server = app.server
app.config.suppress_callback_exceptions = True
@server.route('/deployment/on-premise')
def redirectDDS():
return redirect("/dash-deployment-server", code=302)
@server.route('/dash-deployment-server/enviornment-variables')
def redirectEnvVar():
return redirect("/dash-deployment-server/environment-variables", code=302)
@server.route('/dash-1-0-migration.')
def redirectMigration():
return redirect("/dash-1-0-migration", code=302)
@server.route('/gallery')
def redirectGallery():
return redirect("https://dash-gallery.plotly.host/Portal/", code=302)