Skip to content

Commit 1251d25

Browse files
committed
update djangblog
1 parent e432e7e commit 1251d25

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

example/django-blog/hook/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ async function postInit(inputObj) {
2323
* Operation error: ImportError: cannot import name 'metadata' from 'importlib', you can refer to: https://stackoverflow.com/questions/59216175/importerror-cannot-import-name-metadata-from-importlib
2424
* Default information:
2525
* Admin:/admin
26-
* Default Admin Username: blog
27-
* Default Admin Password: myblog12345!
26+
* Default Admin Username: django
27+
* Default Admin Password: djangoblog
2828
\n`)
2929
}
3030

example/django-blog/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Type: Application
22
Name: django-blog
33
Provider:
44
- 阿里云
5-
Version: 0.1.1
5+
Version: 0.1.2
66
Description: 基于Django框架的博客系统
77
HomePage: https://github.com/devsapp/native-runtime-framework-example
88
Tags:

example/django-blog/src/s.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ services:
1818
pre-deploy: # 在deploy之前运行
1919
- run: pip3 install -r requirements.txt -t . # 要运行的命令行
2020
path: ./code # 命令行运行的路径
21+
post-deploy: # 在deploy之前运行
22+
- run: s nas upload ./db.sqlite3 /mnt/auto # 要运行的命令行
23+
path: ./ # 命令行运行的路径
2124
props: # 组件的属性值
2225
region: cn-beijing
2326
service:

0 commit comments

Comments
 (0)