peng 2 vuotta sitten
vanhempi
commit
a9f1274a56
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      controller/beian.py

+ 3 - 1
controller/beian.py

@@ -2,9 +2,11 @@
 # @File      : beian.py
 # @File      : beian.py
 # @Time      : 2023/3/30 19:10
 # @Time      : 2023/3/30 19:10
 from django.http import HttpResponse
 from django.http import HttpResponse
+import logging
 
 
-
+logger = logging.getLogger('django')
 def beianPath(request, **kwargs):
 def beianPath(request, **kwargs):
+    logger.info('域名:{}'.format(request.get_host()))
     html = """
     html = """
     <!DOCTYPE html>
     <!DOCTYPE html>
 <html lang="en">
 <html lang="en">