django_private_chat2 icon indicating copy to clipboard operation
django_private_chat2 copied to clipboard

Add more instructions to quickstart

Open periwinkleFTW opened this issue 4 years ago • 1 comments

  • django_private_chat2 version: 0.1.4
  • Django version: 3.2.3
  • Python version: 3.7
  • Operating System: Docker

Description

I want to make it work in my project

What I Did

I followed the instructions with adding the django_private_chat2 to the settings, added urls, asgi stuff, and added this to my base template:

<!-- Page-specific JS goes here -->
{% block javascripts %}{% endblock javascripts %}

<!-- Django private chat -->
{% block extra_js %}{% endblock extra_js %}

What do I do next? I created a new dialog in the admin. Using django_private_chat(previous version) docs I found the url to see the dialogs at http://127.0.0.1:8600/dialogs/ but i just see this when i open this url:

{"page": 1, "pages": 1, "data": [{"id": 1, "created": 1624491923, "modified": 1624492271, "other_user_id": "1b9e1903-4baa-489b-bdc9-bb43babf2cc2", "unread_count": 0, "username": "[email protected]", "last_message": null}]}
Screen Shot 2021-06-23 at 5 59 45 PM

Where do I go from here? Do i need to make a view for dialogs? Do I need to run some commands like run_chat_server? Am I missing something? I am completely lost

periwinkleFTW avatar Jun 23 '21 23:06 periwinkleFTW

Hi The tutorial is not clear please The templates how we do it

Larryson7780 avatar Sep 12 '23 04:09 Larryson7780