Skip to content
/ chat Public

Веб-чат со стандартной Django-админкой (тестовое)

Notifications You must be signed in to change notification settings

miloft/chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat Project

This project use

Attention

Before you start the project, open the configuration file (main/settings.py) and change the settings for your database.

For example:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'chatdb',
        'USER': 'admin',
        'PASSWORD': 'admin',
        'HOST': 'localhost',
        'PORT': '5432',
    }
}

And install bootstrap:

pip install django-bootstrap3

Run

To start a chat just run:

python manage.py makemigrations
python manage.py makemigrations users 
python manage.py migrate
python manage.py createsuperuser #for create admin
python manage.py runserver

For use this chat you have to do the steps:

  1. Open the browser at '127.0.0.0:8000'
  2. Registration two or more users
  3. Log in as the 1st user
  4. Select user for dialog
  5. Write a text message and send it
  6. Log out
  7. Log in as the 2nd user
  8. Open a dialog with the 1st user and write the answer

For the administrator:

  1. Open the browser at '127.0.0.0:8000/admin'
  2. Authorize
  3. Select User for create or delete users
  4. Select Chat for create or delete dialogs
  5. Select Message for edit or delete any messages

About

Веб-чат со стандартной Django-админкой (тестовое)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published