Create Project

package install

pip install channels

create project

django-admin startproject ChatApplication

Create App

cd ChatApplication
python manage.py startapp chat

Project settings.py

INSTALLED_APPS = [
    'channels',
    'chat',
]

link app urls.py to project urls.py

from django.urls import path
from . import views
urlpatterns = [
    path('index',views.index,name='index'),
    
]

views.py

database migrations and run server

Last updated