Skip to content

Latest commit

 

History

History

django_talkjs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

TalkJS and Django example

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.

Prerequisites

To run this tutorial, you will need:

How to run the tutorial

  1. Clone or download this project.
  2. Replace <APP_ID> in talkjs/templates/talkjs/chat.html with the value found in the Settings tab of your TalkJS dashboard.
  3. Install Django:
    python -m venv venv
    source venv/bin/activate  # On Windows, use: venv\Scripts\activate
    pip install django
  4. Run python manage.py migrate to create the database tables.
  5. 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).
  6. Run python manage.py runserver to start the server.
  7. Go to http://127.0.0.1:8000/chat/alice to try the example out.