Add new code in:
-
main/settings.py
- Import library django_heroku
- Add page app to INSTALLED_APPS
- Add django_heroku.settings(locals()) at the end of file
-
main/urls.py
- Connect with file urls in app pages
-
page/urls.py
- Create link so that client can call to it
-
page/views.py
- Create function will return data when client call to a specific url.
-
Run those command:
- pip install -r requirements.txt
- python manage.py showmigrations
- python manage.py migrate
- python manage.py runserver