修复了一些可能影响生产的问题

This commit is contained in:
2026-06-14 23:08:44 +08:00
parent 21bb129c5d
commit a155dc9f33
43 changed files with 66 additions and 210 deletions

View File

@@ -1,3 +1 @@
from django.contrib import admin
# Register your models here.

View File

@@ -1,5 +1,5 @@
from django.apps import AppConfig
class PeizhiConfig(AppConfig):
name = "peizhi"
class ConfigConfig(AppConfig):
name = "config"

View File

@@ -1,7 +1,6 @@
from django.db import models
class Lunbo(models.Model):
tupian_url = models.CharField(max_length=500, null=True, blank=True, verbose_name='轮播图片URL')
leixing = models.IntegerField(null=True, blank=True, verbose_name='图片类型:1轮播2个人中心背景')

View File

@@ -1,3 +1 @@
from django.test import TestCase
# Create your tests here.

View File

@@ -7,6 +7,7 @@ from .views import ShangpinGonggaoView, AdminUpdateConfigView, AdminUploadImageV
GetDynamicConfigView, PopupConfigView, GetWithdrawModeView,CheckPhoneAuthView,\
ShangjiaLianjieListView
urlpatterns = [
path('shangpingonggao/', ShangpinGonggaoView.as_view(), name='商品公告轮播获取'),
path('adpzhq', AdminConfigQueryView.as_view(), name='管理员获取配置'),

View File

@@ -1,6 +1,5 @@
import io
import os
import json
import re
import time
import random
@@ -11,7 +10,7 @@ import urllib.parse
from decimal import Decimal, InvalidOperation
from django.conf import settings
from django.db import models, transaction, connection
from django.db import transaction, connection
from django.db.models import Q, F, Max, Prefetch
from django.core.cache import cache
from django.core.paginator import Paginator