1. 环境搭建
python3 -m venv bookmarks_venv
source bookmarks_venv/bin/activate
pip install django
unset all_proxy && unset ALL_PROXY
2. 创建项目及应用
django-admin startproject bookmarks
cd bookmarks
python manage.py startapp account
3. 激活应用及数据库迁移
INSTALLED_APPS = [
# ...
'account.apps.AccountConfig',
]
python manage.py migrate