Skip to content

Commit fb6868f

Browse files
committed
Refactor Wagtail setup guide: update virtual environment path to use /home/django, switch to official HuaweiCloudDeveloper/gaussdb-django repo, and extend openEuler OS detection support in driver installer
1 parent a4f5cc7 commit fb6868f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

example/wagtail_README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ python3.10 --version
5252

5353
---
5454

55-
5655
## 创建用户
5756

5857
创建wagtail用户,并切换到该用户下进行后续操作。
@@ -84,13 +83,13 @@ mkdir -p ~/.pip && echo -e "[global]\nindex-url = https://pypi.tuna.tsinghua.edu
8483
```bash
8584
# 创建虚拟环境
8685
# 注意:因为gaussdb-django需要python3.10
87-
python3.10 -m venv --clear --without-pip /opt/django_work/venv_wgtail
88-
source /opt/django_work/venv_wgtail/bin/activate
86+
python3.10 -m venv --clear --without-pip /$HOME/django_work/venv_wgtail
87+
source /$HOME/django_work/venv_wgtail/bin/activate
8988
python -m ensurepip
9089
pip3 install --upgrade pip
9190

9291
# 安装 GaussDB 驱动
93-
curl -s https://api.github.com/repos/pangpang20/gaussdb-django/contents/install_gaussdb_driver.sh?ref=5.2.0 | jq -r '.content' | base64 --decode > install_gaussdb_driver.sh
92+
curl -s https://api.github.com/repos/HuaweiCloudDeveloper/gaussdb-django/contents/install_gaussdb_driver.sh?ref=5.2.0 | jq -r '.content' | base64 --decode > install_gaussdb_driver.sh
9493
chmod u+x install_gaussdb_driver.sh
9594
source install_gaussdb_driver.sh
9695

install_gaussdb_driver.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ OS_TYPE=""
6464
if [[ -f /etc/os-release ]]; then
6565
. /etc/os-release
6666
case "$ID" in
67-
centos|hce)
67+
centos|hce|openEuler)
6868
if [[ -d "$DRIVER_DIR/Hce2_$ARCH_TYPE" ]]; then
6969
OS_TYPE="Hce2_$ARCH_TYPE"
7070
fi

0 commit comments

Comments
 (0)