Python 3.11.2
source ../env/bin/activate && ./manage.py runserver
..\env_20230705\Scripts\activate; .\manage.py runserver
- Ensure that .env file is in place (in OneDrive). Ensure settings are such that sqlite db is used
- Create a python virtualenv
MacOS
Ensure pyenv is installed
brew install pyenv
Install latest python versionpyenv install 3.12.2
Create virtualenv~/.pyenv/versions/3.12.2/bin/python -m venv env_20240412
Windowspython -m venv env_20230705
- Activate virtualenv
MacOS
source ./env/bin/activate
Windows.\env_20230705\Scripts\activate
- Install requirements
MacOS
pip install -r ./code/requirements.txt
Windowspython -m pip install -r .\code\requirements.txt
- Run migrations
MacOS
./manage.py migrate
Windows.\manage.py migrate
- Create a superuser
MacOS
./manage.py createsuperuser --username=USERNAME
Windows.\code\manage.py createsuperuser --username=USERNAME
- Run commands to import employees and reviews from Caselle
- Add settings_local.py file from an existing install
- Run the backend locally
MacOS
./manage.py runserver
Windows.\manage.py runserver
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install.html Manually install the CLI using pip. Modify environment variable PATH from instructions.