This is a site created to host the songs and display details of live events for the artist Oytun.
- Python: 3.7.1
- Psql
# Create python environment
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
# Set up and seed database
. scripts/create_dev_db.sh
python oytun_music/manage.py migrate
. scripts/create_super_user.sh
. scripts/seed_db.sh
# Run the local server
python oytun_music/manage.py runserver
The site will be available at http://127.0.0.1:8000/.
The admin panel of the site will be available at http://127.0.0.1:8000/admin and can be accessible with the following credentials:
- Username =
test
- Password =
test
The psql database is named oytun_music
and will be accessible with the following credentials:
- Username =
oytun_music
- Password =
development_password_only
- Create or update a model
- Run
./manage.py makemigrations music
- Run
./manage.py migrate music
. scripts/create_dev_db.sh
. scripts/seed_db.sh
export PGPASSWORD=development_password_only
psql -h localhost -d oytun_music -U oytun_music -p 5432
python oytun_music/manage.py sqlmigrate music 0001
python oytun_music/manage.py showmigrations