Skip to content

Channels wraps Django’s native asynchronous view support, allowing Django projects to handle not only HTTP, but protocols that require long-running connections too - WebSockets, MQTT, chatbots, amateur radio, and more.

License

Notifications You must be signed in to change notification settings

Abarvisionco/django-super-channels

 
 

Repository files navigation

Django Super Channels | FA

Chat room web application based on django_super_channels and implemented with websockets protocol.

Python Django redis Sqlite djangorestframework js html css

Django Super Channels is a chat room application based on django-channels. The design of this application is group chat.

Work process

The design and operation process of super channels is such that the address of the chat room is received on the index page. (if the chat room is available, it will be entered, and if it is not available, the chat room will be created). After the person enters the room, you can communicate with the people who have entered the chat room.

According to the picture, when a message is sent from the mahdi user, the message is sent to the server through websocket. The server saves the message once in the database and sends the same message again to the mahdi user and other users without the need for a request. All messages are received in the form of json through the client, and the main part of designing and displaying the messages is the responsibility of the client.

django channels is designed in the form of a messenger application whose client is javascript and its back-end has created a websocket-based connection with django.

In addition to the Super Chat section, the dashboard section is intended for users, which makes the sections and settings of the user's account accessible. Basically, it shows the number of user messages, the number of chat rooms in which the user is present, along with the deletion and display section of the chat room, the last login to the account and the date of registration. Other sections of this dashboard include the following sections:

  1. Changing the password.
  2. User account settings and user profile editing.
  3. Logging out of the user account.

In fact, the main part is the user dashboard, which can be accessed only by logging into the user account.

Performance

Note

It is better to use the virtualenvironment when installing libraries and running the project.

Warning

Have redis installed on the system before running.
download and install redis for windows and to cmd type redis-server to run the redis.

To install required libraries:

pip install -r requirements.txt

To Run The Project:

python manage.py runserver

About

Channels wraps Django’s native asynchronous view support, allowing Django projects to handle not only HTTP, but protocols that require long-running connections too - WebSockets, MQTT, chatbots, amateur radio, and more.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 30.8%
  • CSS 27.6%
  • HTML 24.0%
  • JavaScript 17.6%