Video Rental application Developed in Python and Deployed on Heroku
- django=2.1 [
pipenv install django=2.1
] - django project setup [
django-admin startproject vinvid
] - django run server [
python manage.py runserver
]
- Create Database Migrations [
python manage.py makemigrations
] - Migrate the Chnage to Database [
python manage.py migrate
] - Making new Migrations [
python manage.py makemigrations
] - view SQL query for Migration [
python manage.py sqlmigrate movies 0001
]
- Create Super user in admin app [
python manage.py createsuperuser
]
- collect all the static file and copy and paste inside the static folder [
python manage.py collectstatic
] - server on production [
pipenv install gunicorn
] - Serve static file on Heroku the package is whilenoise [
pipenv install whiltenoise
]
heroku login
heroku create
git push heroku master
heroku ps:scale web=1
heroku open