File tree Expand file tree Collapse file tree 6 files changed +7
-10
lines changed Expand file tree Collapse file tree 6 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ Type: Application
22Name : django-blog
33Provider :
44 - 阿里云
5- Version : 0.1.0
5+ Version : 0.1.1
66Description : 基于Django框架的博客系统
77HomePage : https://github.com/devsapp/native-runtime-framework-example
88Tags :
Original file line number Diff line number Diff line change 44
55- 下载命令行工具:` npm install -g @serverless-devs/s `
66- 初始化一个模版项目:` s init django-blog `
7- - 对数据库等进行配置,在` ./ServerlessBlog/settings.py ` 文件中,70行的位置,对数据库等进行配置:
7+ - 【如果要配置Mysql,否则自动使用Sqlite】 对数据库等进行配置,在` ./ServerlessBlog/settings.py ` 文件中,70行的位置,对数据库等进行配置:
88 ``` python
99 DATABASES = {
1010 ' default' : {
Original file line number Diff line number Diff line change 7676
7777DATABASES = {
7878 'default' : {
79- 'ENGINE' : 'django.db.backends.mysql' ,
80- 'NAME' : '' ,
81- 'USER' : '' ,
82- 'PASSWORD' : '' ,
83- 'HOST' : '' ,
84- 'PORT' : 3306 ,
79+ 'ENGINE' : 'django.db.backends.sqlite3' ,
80+ 'NAME' : '/mnt/auto/db.sqlite3' ,
8581 }
8682}
8783
Original file line number Diff line number Diff line change 44
55- 下载命令行工具:` npm install -g @serverless-devs/s `
66- 初始化一个模版项目:` s init django-blog `
7- - 对数据库等进行配置,在` ./ServerlessBlog/settings.py ` 文件中,70行的位置,对数据库等进行配置:
7+ - 【如果要配置Mysql,否则自动使用Sqlite】 对数据库等进行配置,在` ./ServerlessBlog/settings.py ` 文件中,70行的位置,对数据库等进行配置:
88 ``` python
99 DATABASES = {
1010 ' default' : {
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ services:
2323 service :
2424 name : web-framework
2525 description : ' Serverless Devs Web Framework Service'
26+ nasConfig : auto
2627 function :
2728 name : django
2829 description : ' Serverless Devs Web Framework Django Function'
Original file line number Diff line number Diff line change 1- ./example/todolist-app
1+ ./example/django-blog
You can’t perform that action at this time.
0 commit comments