feat: 部分升级调整
This commit is contained in:
parent
e2621acf4b
commit
6f73165d9b
|
@ -3,7 +3,7 @@ import random
|
|||
import warnings
|
||||
from calendar import timegm
|
||||
from datetime import date, datetime, timedelta
|
||||
|
||||
import traceback
|
||||
import requests
|
||||
from django.db.models import Q
|
||||
from django_filters.rest_framework import DjangoFilterBackend
|
||||
|
@ -37,6 +37,9 @@ from .spider import getZs
|
|||
import time
|
||||
from server.conf import *
|
||||
from .hwmsg import sendMsg
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger('log')
|
||||
|
||||
def my_payload_handler(user, dtype="admin"):
|
||||
payload = {
|
||||
|
@ -707,7 +710,8 @@ def candidate(request):
|
|||
candidate.date3 = candidate.issue_date.strftime("%Y年%m月%d日")
|
||||
return render(request, 'index2.html', {"candidate":candidate})
|
||||
return render(request, 'index.html', {"candidate":candidate})
|
||||
except:
|
||||
except Exception:
|
||||
logger.error(traceback.format_exc())
|
||||
raise Http404
|
||||
raise Http404
|
||||
|
||||
|
|
Binary file not shown.
|
@ -29,7 +29,7 @@ DEBUG = conf.DEBUG
|
|||
|
||||
ALLOWED_HOSTS = ['*']
|
||||
|
||||
|
||||
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
|
||||
# Application definition
|
||||
|
||||
INSTALLED_APPS = [
|
||||
|
|
Loading…
Reference in New Issue