-
Notifications
You must be signed in to change notification settings - Fork 2
Back end commands
noliveleger edited this page Dec 10, 2021
·
3 revisions
- Install dependencies
computer:mepp user$ pipenv install
- Prepare the database
computer:mepp user$ pipenv shell
(mepp) computer:mepp user$ python manage.py migrate
- In development environment, populate database.
computer:mepp user$ pipenv shell
(mepp) computer:mepp user$ python manage.py mock_data
Notes: The DB must be empty prior to run the management command.
If you already have a DB, please delete it first (i.e.: rm .vols/db.sqlite3
), run migrate
then mock_data
.
- Start Django development server
computer:mepp user$ pipenv shell
(mepp) computer:mepp user$ python manage.py runserver_plus 0:8000
Notes: a .env
file must be created to pass environment variables to both development servers (see .env.sample)