Chat
Django Chat Application
Overview
This is a simple django chat applications for real time chatting. One needs to create an account to be able to chat with others. User can create their own room for chatting.
Libraries and Frameworks:
These are the libraries and frameworks used to build this chat application. 1.Django == 3.0.2 2.django-environ == 4.1.4 3.channels == 3.0.4
Getting started with project
First clone the repository from Github and cd into the Djagno Projects/Chat
Activate the virtualenv for the project
Install project dependencies
$ pip install -r requirements.txtThen aplly the migrations
$ python manage.py runserverNow you can run the server
$ python manage.py runserverSource Code: manage.py
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)
if __name__ == '__main__':
main()