/Direct-Messages-in-Django

A tutorial on how to create synchronous slack-inspired message channels and private messages using Django. Enjoy!

Primary LanguagePythonMIT LicenseMIT

Direct Messages in Django Logo

Direct Messages in Django

A tutorial on how to create synchronous slack-inspired message channels and private messages using Django. Enjoy!

Lesson Code

4 - Base Django Project in VS Code

5 - DM App and Abstract Base Model

6 - Message Model Class & Migrations

6 - The Channel Model

8 - Two User Channel Lookup

9 - Channel Lookup TestCase

10 - The Channel Model in the Admin

11 - Private Message View

12 - Get or Create Private Channel

13 - Function Based View to Class Based View

14 - Templates & Our View

15 - My Private Channel View

16 - Multi-User Channel Detail View

17 - URL Regex for UUID

18 - Channel Message Form

19 - AJAX with XMLHttpRequest

20 - Simple UI & CSS In Channel