This commit is contained in:
feng626
2022-08-29 19:53:04 +08:00
138 changed files with 4665 additions and 1147 deletions

View File

@@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
#
import re
import socket
from django.templatetags.static import static
from collections import OrderedDict
from itertools import chain
import logging
@@ -381,3 +383,13 @@ def test_ip_connectivity(host, port, timeout=0.5):
else:
connectivity = False
return connectivity
<<<<<<< HEAD
=======
def static_or_direct(logo_path):
if logo_path.startswith('img/'):
return static(logo_path)
else:
return logo_path
>>>>>>> origin