Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions django_start_project/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ is copyrighted by Markus Zapke-Gründemann et al.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
'NAME': BASE_DIR / 'db.sqlite3',
}
}

要為我們的部落格創建一個資料庫,我們要在終端機下執行這個: `python manage.py syncdb` (我們需要在已經建好了 `manage.py` 檔的 `djangogirls` 目錄下)。如果一切順利,你應該可以看到像這樣的東西:
要為我們的部落格創建一個資料庫,我們要在終端機下執行這個: `python manage.py migrate` (我們需要在已經建好了 `manage.py` 檔的 `djangogirls` 目錄下)。如果一切順利,你應該可以看到像這樣的東西:

(myvenv) ~/djangogirls$ python manage.py syncdb
(myvenv) ~/djangogirls$ python manage.py migrate
Creating tables ...
Creating table django_admin_log
Creating table auth_permission
Expand Down