- Clone this repository
- Install Python 3.7.0
- Create and to activate the virtual environment
- Install requirements for the project:
pip install -r requirements.txt
- Add .env in folder, like in .env.example.
- Create tables for models in your database:
python manage.py migrate
- Create superuser for admin page:
python manage.py createsuperuser
- Run server:
python manage.py runserver
- Clone this repository
- Register account on Heroku
- Install Heroku CLI locally
- Login to Heroku:
heroku login
- Create name of your site:
heroku create <name-of-site>
- Deploy to Heroku!:
git push heroku master
- Start web process:
heroku ps:scale web=1
- Run the migrate and createsuperuser commands:
heroku run python manage.py migrate
and thenheroku run python manage.py createsuperuser
- Visit your application:
heroku open