This is an example project for TalkJS's tutorial on how to build a Django chat app with TalkJS. This example demonstrates how to integrate TalkJS with a Python application that uses the Django framework.
To run this tutorial, you will need:
- Clone or download this project.
- Replace
<APP_ID>
intalkjs/templates/talkjs/chat.html
with the value found in the Settings tab of your TalkJS dashboard. - Install Django:
python -m venv venv source venv/bin/activate # On Windows, use: venv\Scripts\activate pip install django
- Run
python manage.py migrate
to create the database tables. - Run
python manage.py seed_users
to seed the database with test data (this will first delete any test data that's already in the database). - Run
python manage.py runserver
to start the server. - Go to
http://127.0.0.1:8000/chat/alice
to try the example out.