In loving memory of emosurrealist Alex Cheng. Emosurrealism lives on. ♡
- Also, shout out to Cloudinary
- Daley
- Jorge
If you don't have a virtual environment set up yet:
- Create a virtual environment:
python3 -m venv venv- Activate the virtual environment:
source venv/bin/activate- Install dependencies:
pip install -r requirements.txt- Run migrations:
python3 manage.py migrate- Run the server:
python3 manage.py runserver- Activate the virtual environment:
source venv/bin/activate- Run the Django development server:
python3 manage.py runserver-
Access the application: Open your browser to
http://localhost:8000 -
To deactivate the virtual environment when done:
deactivate- git checkout -b branch-name
- make changes to branch-name
- git add .
- git commit -m "message"
- git push origin branch-name
- cmd click GitHub link
- bypass rules and merge (for now)
- git checkout main
- git pull origin main
- git fetch origin deploy (if you don't have deploy branch yet)
- git checkout deploy
- git merge main
- git push origin deploy
- If you changed models: run
heroku run python manage.py migrateto apply database changes
- Always run migrations on Heroku after changing models - Your local migrations won't automatically apply to production
- To verify migrations worked:
heroku run python manage.py showmigrations