original
1.0.0
A new generation of Django project development scaffolding.
When you often face the development of various small and medium-sized projects and need to support WeChat login and WeChat applet logic, using this scaffolding will save a lot of time.
deploy, deploy related files
original, main code directory
Change the fabric file path to your own configuration
sudo pip install fabric
cd /data/app/original
ln -s /data/app/original/deploy/fabric/ln_fabfile.py fabfile.py
fab deploy
FILE_UPLOAD_BACKEND = 'qiniu'
根据七牛配置将下面配置补全
FILE_UPLOAD_KEY = ''
FILE_UPLOAD_SECRET = ''
FILE_UPLOAD_BUCKET = ''
FILE_CALLBACK_POLICY = {}
ENABLE_REDIS = False
REDIS_HOST = 'localhost'
REDIS_PORT = 6379
REDIS_DB = 0
SMS_BACKEND supports qcloud (Tencent), yunpian (Yunpian). Note that individual developers have many restrictions on SMS service providers. For example, the sum of all text in the variables in the template must not exceed 10 characters (Yunpian), Tencent (12 characters)
SMS_BACKEND = ''
SMS_QCLOUD_KEY = ''
SMS_QCLOUD_SECRET = ''
SMS_QCLOUD_DEFAULT_TEMPLATE_ID = ''
SMS_YUNPIAN_KEY = ''
SMS_YUNPIAN_SECRET = ''
SMS_YUNPIAN_DEFAULT_TEMPLATE_ID = ''