Linebot for reporting specific diseases (Dengue, Flu...)
- Python 3.6
- Django 1.10
- Heroku CLI
- Postgres
Creating a project
$ django-admin startproject {{project_name}}
Creating a app in the project
$ python manage.py startapp {{app_name}}
Database setup
$ python manage.py migrate
Creating models
- Change your models (in models.py)
- create migrations for those changes
$ python manage.py makemigrations
- apply those changes to the database
$ python manage.py migrate
Interactive Python shell and play around with the free API Django
$ python manage.py shell
$ python manage.py runserver
See Configuring Django Apps for Heroku
$ git add .
$ git commit -m "Added a Procfile."
$ heroku login
$ heroku create
$ git push heroku master
$ heroku run python manage.py migrate
$ heroku open
For more detail, see Deploying Python and Django Apps on Heroku