[PATCH] docs: Refer to fixtures by name, not path
Stephen Finucane
stephen.finucane at intel.com
Tue Mar 15 00:17:03 AEDT 2016
It's not necessary to use paths for fixtures, so update the docs and
Vagrant install scripts to remove these.
Signed-off-by: Stephen Finucane <stephen.finucane at intel.com>
---
docs/development.md | 4 +---
tools/install/install.sh | 6 +++---
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/docs/development.md b/docs/development.md
index d69f42f..d48d048 100644
--- a/docs/development.md
+++ b/docs/development.md
@@ -183,9 +183,7 @@ fixtures provide.
These can be loaded using the `loaddata` command:
- (.venv)$ ./manage.py loaddata patchwork/fixtures/default_tags.xml
- (.venv)$ ./manage.py loaddata patchwork/fixtures/default_states.xml
- (.venv)$ ./manage.py loaddata patchwork/fixtures/default_projects.xml
+ (.venv)$ ./manage.py loaddata default_tags default_states default_projects
You should also take the opportunity to create a "superuser". You can do this
using the aptly-named `createsuperuser` command:
diff --git a/tools/install/install.sh b/tools/install/install.sh
index b2a074b..380acaf 100644
--- a/tools/install/install.sh
+++ b/tools/install/install.sh
@@ -45,11 +45,11 @@ echo -e "\n--- Loading initial data ---\n"
sudo -E -u vagrant python3 $PROJECT_HOME/manage.py migrate > /dev/null
sudo -E -u vagrant python3 $PROJECT_HOME/manage.py loaddata \
- $PROJECT_HOME/patchwork/fixtures/default_tags.xml > /dev/null
+ default_tags > /dev/null
sudo -E -u vagrant python3 $PROJECT_HOME/manage.py loaddata \
- $PROJECT_HOME/patchwork/fixtures/default_states.xml > /dev/null
+ default_states > /dev/null
sudo -E -u vagrant python3 $PROJECT_HOME/manage.py loaddata \
- $PROJECT_HOME/patchwork/fixtures/default_projects.xml > /dev/null
+ default_projects > /dev/null
echo -e "\n--- Configuring environment ---\n"
--
2.0.0
More information about the Patchwork
mailing list