Skip to content

Commit e432e7e

Browse files
committed
update django
1 parent fa9372a commit e432e7e

File tree

6 files changed

+7
-10
lines changed

6 files changed

+7
-10
lines changed

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.0
5+
Version: 0.1.1
66
Description: 基于Django框架的博客系统
77
HomePage: https://github.com/devsapp/native-runtime-framework-example
88
Tags:

example/django-blog/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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': {

example/django-blog/src/code/ServerlessBlog/settings.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,8 @@
7676

7777
DATABASES = {
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

example/django-blog/src/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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': {

example/django-blog/src/s.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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'

update.list

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
./example/todolist-app
1+
./example/django-blog

0 commit comments

Comments
 (0)