chanjunkai há 5 anos atrás
pai
commit
d202b9b00b
3 ficheiros alterados com 13 adições e 6 exclusões
  1. 1 0
      .gitignore
  2. 1 1
      Ansjer/local_settings.py
  3. 11 5
      requirements.txt

+ 1 - 0
.gitignore

@@ -13,3 +13,4 @@
 /Ansjer/test/__init__.py
 /sdk_install
 /DB/mydata4vipday2.ipdb
+/venv

+ 1 - 1
Ansjer/local_settings.py

@@ -117,7 +117,7 @@ USE_TZ = True
 # 跨域增加忽略
 CORS_ALLOW_CREDENTIALS = True
 CORS_ORIGIN_ALLOW_ALL = True
-CORS_ORIGIN_WHITELIST = ('*')
+# CORS_ORIGIN_WHITELIST = ('*')
 
 CORS_ALLOW_METHODS = (
     'DELETE',

+ 11 - 5
requirements.txt

@@ -1,4 +1,4 @@
-Django > 2
+Django==2
 
 django-cors-headers
 django-imagekit
@@ -18,13 +18,19 @@ ffmpy
 xmltodict
 var_dump
 django-middleware-global-request
-oss2
-aliyun-python-sdk-sts
 jpush
 pyipip
 boto
 django-ratelimit
 paypalrestsdk
 pymongo
-apns2-client
-pyfcm
+image
+pyfcm
+pillow
+oss2
+redis
+ipip-ipdb
+alipay-sdk-python
+https://www.cnblogs.com/victorwu/p/8505336.html
+apns2
+aliyun-python-sdk-sts