Skip to content

Repository files navigation

The Sonatore Archive Server

In loving memory of emosurrealist Alex Cheng. Emosurrealism lives on. ♡

Tech and Frameworks Used

Python Django PostgreSQL
  • Also, shout out to Cloudinary

Concept and Aesthetic driven by

  • Daley
  • Jorge

Dev Contributors:

First Time Setup

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

Steps to run the Python Server

  • 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

Steps to deploy changes

  • 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 migrate to apply database changes

Important Notes

  • 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

About

the sonatore archive server

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages