mirror of
https://github.com/TakeusV1/flask_ipam.git
synced 2026-10-13 17:15:33 +02:00
5 files changed
+8
-7
No files matched your search
+5
-5
@@ -60,7 +60,7 @@ def create_app():
|
||||
"401",
|
||||
"Unauthorized",
|
||||
"The server could not verify that you are authorized to access the URL requested. You are not authenticated, or your browser doesn't understand how to supply the credentials required...",
|
||||
"https://takeus.ovh/static/img/login.svg"
|
||||
"/static/img/403.png"
|
||||
]
|
||||
return render_template('srv_error.html',HTTP_ERROR=HTTP_ERROR), 401
|
||||
|
||||
@@ -70,7 +70,7 @@ def create_app():
|
||||
"403",
|
||||
"Forbidden",
|
||||
"You don't have the permission to access the requested resource. It is either read-protected or not readable by the server...",
|
||||
"https://takeus.ovh/static/img/login.svg"
|
||||
"/static/img/403.png"
|
||||
]
|
||||
return render_template('srv_error.html',HTTP_ERROR=HTTP_ERROR), 403
|
||||
|
||||
@@ -80,7 +80,7 @@ def create_app():
|
||||
"404",
|
||||
"Not Found",
|
||||
"The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again...",
|
||||
"https://takeus.ovh/static/img/404.svg"
|
||||
"/static/img/404.png"
|
||||
]
|
||||
return render_template('srv_error.html',HTTP_ERROR=HTTP_ERROR), 404
|
||||
|
||||
@@ -90,7 +90,7 @@ def create_app():
|
||||
"500",
|
||||
"Internal Server Error",
|
||||
"The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.",
|
||||
"https://takeus.ovh/static/img/500.svg"
|
||||
"/static/img/403.png"
|
||||
]
|
||||
return render_template('srv_error.html',HTTP_ERROR=HTTP_ERROR), 500
|
||||
|
||||
@@ -100,7 +100,7 @@ def create_app():
|
||||
"503",
|
||||
"Service Unavailable",
|
||||
"The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.",
|
||||
"https://takeus.ovh/static/img/503.svg"
|
||||
"/static/img/403.png"
|
||||
]
|
||||
return render_template('srv_error.html',HTTP_ERROR=HTTP_ERROR), 503
|
||||
|
||||
|
||||
+2
-2
@@ -10,8 +10,8 @@ app_debug = True
|
||||
app_maintenance = False
|
||||
|
||||
app_name = 'takeus-ipam'
|
||||
app_version = 'V2026.1'
|
||||
app_release_date = '01/2026'
|
||||
app_version = 'V2026.3'
|
||||
app_release_date = '03/2026'
|
||||
app_url = "http://0.0.0.0"
|
||||
|
||||
app_theme = ['default', 'lumen', 'simplex', 'zephyr']
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
@@ -15,6 +15,7 @@ class User(db.Model):
|
||||
is_admin = db.Column(db.Boolean(),default=False)
|
||||
is_reado = db.Column(db.Boolean(),default=False)
|
||||
ui_theme = db.Column(db.String(16))
|
||||
ui_lmode = db.Column(db.Boolean(),default=False)
|
||||
dat_last = db.Column(db.DateTime())
|
||||
|
||||
with app.app_context():
|
||||
|
||||
Reference in new issue
Block a user