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

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 ShangpinConfig(AppConfig):
name = "shangpin"
class ProductsConfig(AppConfig):
name = "products"

View File

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

View File

@@ -64,8 +64,6 @@ urlpatterns = [
path('adhyjllxcx',HuiyuanTypeListView.as_view(), name='管理员查询会员记录获取会员类型'),
path('adhyjlcxhq',HuiyuanRecordListView.as_view(), name='管理员查询会员记录'),
path('zuzhangfenhong', ZuzhangFenhongView.as_view(), name='组长分红记录获取'),
path('czhqdy', CzhqdyView.as_view(), name='充值打手抵押查询'),
path('dsqrgmdh', DsqrgmdhView.as_view(), name='充值抵扣'),

View File

@@ -1,5 +1,3 @@
# tongji/utils.py 或 shangpin/utils.py
import logging
from datetime import date
from decimal import Decimal

View File

@@ -15,9 +15,8 @@ import defusedxml.ElementTree as ET
# ==================== Django 内置 ====================
from django.conf import settings
from django.db import models, transaction, connection
from django.db.models import Q, Count, Subquery, OuterRef
from django.core.paginator import Paginator
from django.db import transaction, connection
from django.db.models import Q
from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse
from django.utils import timezone