diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2018-01-01 22:26:04 +0100 |
---|---|---|
committer | Jelle van der Waa <jelle@vdwaa.nl> | 2018-04-08 12:51:19 +0200 |
commit | 8468b67ba5329ca30feca21643d60bb4ebe71240 (patch) | |
tree | d9794fdac5bf47c06801c25cbbb57825220acc03 | |
parent | 0d87491c7d2fc6c5c7b97df1c797b6d861052465 (diff) | |
download | archweb-8468b67ba5329ca30feca21643d60bb4ebe71240.tar.gz archweb-8468b67ba5329ca30feca21643d60bb4ebe71240.zip |
README: django 1.9 removed the syncdb command
Instead of syncdb, migrate should be used now.
-rw-r--r-- | README.md | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -49,15 +49,11 @@ packages, you will probably want the following: Make sure to uncomment the appropriate database section (either sqlite or PostgreSQL). -4. Sync the database to create it. - - ./manage.py syncdb - -5. Migrate changes. +4. Migrate changes. ./manage.py migrate -6. Load the fixtures to prepopulate some data. If you don't want some of the +5. Load the fixtures to prepopulate some data. If you don't want some of the provided data, adjust the file glob accordingly. ./manage.py loaddata main/fixtures/*.json @@ -65,11 +61,11 @@ packages, you will probably want the following: ./manage.py loaddata mirrors/fixtures/*.json ./manage.py loaddata releng/fixtures/*.json -7. Use the following commands to start a service instance +6. Use the following commands to start a service instance ./manage.py runserver -8. To optionally populate the database with real data: +7. To optionally populate the database with real data: wget http://mirrors.kernel.org/archlinux/core/os/x86_64/core.db.tar.gz ./manage.py reporead x86_64 core.db.tar.gz |