- Using the postgres admin tool, create the database user account to use with the project database
- Using the postgres admin tool, create the database for this project and assign the user you created above as the owner
- How to install virtualenv - http://docs.python-guide.org/en/latest/dev/virtualenvs/
- Create the virtualenv for your project
- Navigate to the folder containing the repository (lets assume this is /Work/portal)
- Using the fully qualified path to the virtualenv pip, install the requirements
- Example: /Work/portal/.virtual/portal/bin/pip install -r requirements.txt
Create a settings.override file for your local machine (note: this will not be included in source control)
- Add a new json file to your /.config/ folder, named settings.override.json , with the following text: {}
- Add a DATABASE object entry to the /.config/settings.override.json file, copy/paste the DATABASE block from the settings.json file and update to include the database name, username, and password for your local db
- Run initial database migration: /Work/portal/.virtual/portal/bin/python manage.py migrate
- Run the project database migration: /Work/portal/.virtual/portal/bin/python manage.py migrate rpg
- To create a new migration: /Work/portal/.virtual/portal/bin/python manage.py makemigrations rpg