- Install MySQL 8 Community: https://dev.mysql.com/downloads/mysql/
- Install MySQL Workbench (or any other tool to manipulate a MySQL DB): https://dev.mysql.com/downloads/workbench/
- Follow MySQL set up instructions
- Create a new database called “MyMusix” using MySQL Workbench
- Install Python 3.8 and follow the setup instructions. Choose to include python in PATH when prompted: https://www.python.org/downloads/release/python-380/
- Create and activate a local python environment in root project folder. Run the following commands:
python -m venv local_python_env
source local_python_env/bin/activate
-
Navigate to project directory containing requirements.txt
-
Run
python -m pip install -r requirements.txt
-
Edit settings.py > DATABASES to include the password you chose when setting up MySQL.
-
Run the following commands in the same directory as manage.py
./manage.py makemigrations
./manage.py migrate auth
./manage.py migrate --run-syncdb
./manage.py createsuperuser
(follow the instructions to set up a user account)
./manage.py runscript add_festival_artists
(this populates a few festivals, along with the associative table festivals_artists using data found online)
./manage.py runserver
Heroku Run Local python manage.py collectstatic heroku local web -> localhost:5000