修复了一些可能影响生产的问题
This commit is contained in:
@@ -1,3 +1 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class PeizhiConfig(AppConfig):
|
||||
name = "peizhi"
|
||||
class ConfigConfig(AppConfig):
|
||||
name = "config"
|
||||
|
||||
@@ -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:个人中心背景')
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
|
||||
@@ -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='管理员获取配置'),
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user