refector: 配置和ignore修改

This commit is contained in:
caoqianming 2023-03-24 13:29:14 +08:00
parent 894e096c3a
commit 010eef05fd
67 changed files with 14 additions and 24 deletions

1
.gitignore vendored
View File

@ -2,7 +2,6 @@
.vscode/
.vs/
venv/
media/
__pycache__/
*.pyc

9
test_server/.gitignore vendored Normal file
View File

@ -0,0 +1,9 @@
.vscode/
.vs/
venv/
!media/default/*
!media/muban/*
__pycache__/
*.pyc
server/conf*.py
dist/*

View File

@ -35,7 +35,7 @@ from rbac.models import UserProfile
from django.http import Http404
from .spider import getZs
import time
from server.config import *
from server.conf import *
from .hwmsg import sendMsg
def my_payload_handler(user, dtype="admin"):

Binary file not shown.

Before

Width:  |  Height:  |  Size: 530 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 468 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 940 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 940 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 940 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 940 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 940 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 940 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 940 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 940 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 940 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 940 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 940 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 940 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 940 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 940 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 940 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

View File

@ -27,7 +27,7 @@ from ..serializers.user_serializer import (UserCreateSerializer,
UserInfoListSerializer,
UserListSerializer,
UserModifySerializer)
from server.config import *
from server.conf import *
from rest_framework_jwt.serializers import jwt_encode_handler
from crm.views import my_payload_handler

Binary file not shown.

View File

@ -1,5 +0,0 @@
appid = 'wxf1e9471c93f05ad6'
secret = '4bf7f9bd6c52634586bbe792a1f0a834'
sms_appid = '100172'
sms_appsecret = '00b8681c-0ce6-41c8-a867-904c1891c78a'
sms_url = 'https://sms.zhenzikj.com'

View File

@ -13,7 +13,7 @@ https://docs.djangoproject.com/en/3.0/ref/settings/
import os
import datetime
import sys
from . import conf
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@ -25,7 +25,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = '+*j($q+46c*1qre8227=(b$(d@lro0)vllts%l%*8)z5$x#=tx'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = conf.DEBUG
ALLOWED_HOSTS = ['*']
@ -98,20 +98,7 @@ CACHES = {
# Database
# https://docs.djangoproject.com/en/3.0/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'zkfs',
'USER':'ctcuser',
'PASSWORD':'zkfs1234',
'HOST':'116.63.176.211',
'PORT':'5432',
},
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
# }
}
DATABASES = conf.DATABASES
# Password validation