Commit cbd9134a by Clinton Blackburn

Added make task to prepare server with demo data

Change-Id: Idd58f9d38cf2d41f09c89597eecdc9c8af56f07c
parent be9144d7
......@@ -47,4 +47,9 @@ quality:
validate: test.requirements test quality
syncdb:
$(foreach db_name,$(DATABASES),./manage.py syncdb --migrate --database=$(db_name);)
$(foreach db_name,$(DATABASES),./manage.py syncdb --migrate --noinput --database=$(db_name);)
loaddata: syncdb
python manage.py loaddata courses education_levels single_course_activity course_enrollment_birth_year course_enrollment_education course_enrollment_gender problem_response_answer_distribution --database=analytics
demo: clean requirements loaddata
......@@ -34,10 +34,10 @@ Loading Data
------------
The fixtures directory contains demo data. This data can be loaded with the following commands:
$ ./manage.py syncdb --migrate --noinput --database=analytics
$ ./manage.py loaddata courses education_levels single_course_activity course_enrollment_birth_year course_enrollment_education course_enrollment_gender course_enrollment_daily problem_response_answer_distribution --database=analytics
$ make loaddata
Running Tests
-------------
Run `make validate` install the requirements, run the tests, and run lint.
Run `make validate` install the requirements, run the tests, and run lint. If you want to get the API server ready for
acceptance testing or demos, `make demo` will install requirements and load the fixture data.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment