Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more instructions to quickstart #17

Open
periwinkleFTW opened this issue Jun 23, 2021 · 1 comment
Open

Add more instructions to quickstart #17

periwinkleFTW opened this issue Jun 23, 2021 · 1 comment

Comments

@periwinkleFTW
Copy link

periwinkleFTW commented Jun 23, 2021

  • 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": "user2@a.ca", "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

@Larryson7780
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants