Python 3.12.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 pyenvInstall latest python versionpyenv install 3.13.9Create virtualenv~/.pyenv/versions/3.12.2/bin/python -m venv env_20240412Windowspython -m venv env_20230705 - Activate virtualenv
MacOS
source ./env/bin/activateWindows.\env_20230705\Scripts\activate - Install requirements
MacOS
pip install -r ./code/requirements.txtWindowspython -m pip install -r .\code\requirements-windows.txt - Run migrations
MacOS
./manage.py migrateWindowspython .\manage.py migrate - Create a superuser
MacOS
./manage.py createsuperuser --username=USERNAMEWindowspython .\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 runserverWindowspython .\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.