将python2.7+django1.10部署到SAE上

时间:2023-03-08 16:12:54
将python2.7+django1.10部署到SAE上

首先我想说的是我为什么选择SAE呢?本人学生一枚,没钱。然后sae好像又有免费的一定限额,所以我就选了它。

期间曲折颇多,实在不是三言两语所能道情的。各种百度,谷歌,最后所幸成功了,幸哉!

主要参考了这位老兄的,链接:http://www.cosmozhang.com/2016/09/28/use-higher-version-of-django-in-sae.html

需要指出的几点,1.SAE默认不支持django1.10这么高的版本,所以首先得把你安装的django包拷贝到你当前项目的文件夹下,如下图site-packages.

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAA1cAAABuCAYAAADLX+kIAAAABHNCSVQICAgIfAhkiAAAIABJREFUeF7tnQd4HNX57t9t6sKS5YZ7r2AbMG7YYGxisMkNpoZ+CUn4ExJSwCHUSxoQcAiE/EMLBEJMSCCQQAKmmF6MKW7Yxrjggm3Zki1ZXdp6zzerlVfa2Z2Vdlc7s/ue59Ej6czMmXN+7zkz55vvFNvy5csDc+bMAQMJkAAJkAAJkAAJkAAJkAAJkEDXCTi7fimvJAESIAESIAESMAOB999/H16v1wxZgcvlwsyZM02RF6tlgjpaTTH9/FJHfS7ZEkvjKluUZjlJgARIgAQyloAYVieffDJsNltayxgIBPDmm2+mNQ9Wvjl1tLJ6h/NOHTNDx66WgsZVV8nxOhIgARIgARIwCQExajweD1paWtKao9zcXEheGLpGgDp2jZvZrqKOZlOke/ND46p7efNuJEACJEACJJB0AqHOXLoNGzHw0p2HpMPtxgSpYzfCTuGtqGMK4VogabsF8sgskgAJkAAJkAAJkAAJkAAJkIDpCdBzZXqJmEESIAESIAESiE1AvpSHfmKfmdqjZshDakuY2tSpY2r5dlfq1LG7SJvzPvRcmVMX5ooESIAESIAE4iZgpqF4ZspL3ABNcqKZ2JkpLyaRJ+5smImdmfISN0CLn0jPlcUFZPZJgARIgARIINSBMkNHygx5sGqN0NNxxYoVWnF69uyJqqoqOBwOFBYWora2VouTIPG9evXCgQMHIoo+Y8aMiLh4IqhjP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NC4SglWJkoCJEACJEACJEACJEACJJBtBGhcZZviLC8JkAAJkAAJkAAJkAAJkEBKCNC4SglWJkoCJEACJEACJEACJEACJJBtBGhcZZviLC8JkAAJkAAJkAAJkAAJkEBKCNC4SglWJkoCJEACJEACJEACJEACJJBtBGhcZZviLC8JkAAJkAAJkAAJkAAJkEBKCNC4SglWJkoCJEACJEACJEACJEACJJBtBGhcZZviLC8JkAAJkAAJkAAJkAAJkEBKCNC4SglWJkoCJEACJEACJEACJEACJJBtBGhcZZviLC8JkAAJkAAJkAAJkAAJkEBKCNC4SglWJkoCJEACJEACJEACJEACJJBtBGhcZZviLC8JkAAJkAAJkAAJkAAJkEBKCNC4SglWJkoCJEACJEACJEACJEACJJBtBGhcZZviLC8JkAAJkAAJkAAJkAAJkEBKCNC4SglWJkoCJEACJEACJEACJEACJJBtBGhcZZviLC8JkAAJkAAJkAAJkAAJkEBKCNC4SglWJkoCJEACJEACJEACJEACJJBtBGhcZZviLC8JkAAJkAAJkAAJkAAJkEBKCNC4SglWJkoCJEACJEACJEACJEACJJBtBGhcZZviLC8JkAAJkAAJkAAJkAAJkEBKCNC4SglWJkoCJEACJEACJEACJEACJJBtBGhcZZviLC8JkAAJkAAJkAAJkAAJkEBKCNC4SglWJkoCJEACJEACJEACJEACJJBtBGhcZZviLC8JkAAJkAAJkAAJkAAJkEBKCNC4SglWJkoCJEACJEACJEACJEACJJBtBGhcZZviLC8JkAAJkAAJkAAJkAAJkEBKCNC4SglWJkoCJEACJEACJEACJEACJJBtBP4/dIFa7stlqiIAAAAASUVORK5CYII=" alt="" />

2.SAE默认不支持sqlite,但是django默认是sqlite,所以在项目下的setting.py下得将默认sql改为:

 DATABASES = {
'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
'ENGINE': 'django.db.backends.mysql',
'NAME': sae.const.MYSQL_DB,
'USER': sae.const.MYSQL_USER,
'PASSWORD': sae.const.MYSQL_PASS,
'HOST': sae.const.MYSQL_HOST,
'PORT': sae.const.MYSQL_PORT,
}
}

注释掉的为默认设置,下面的为新添加的支持mysql,同时在SAE中要去配置使用mysql,(注意的是:在这个setting.py 前面要加上import sae)

基本我认为重要的几点需要注意的就是这么多了!享受网站编码的成就感吧。