Skip to content

saloniig/ChatBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat Box Using Django

In this project there is an online Chat Box with signup and forgot password verification mail . By this project you will get to know about the Rest framework of django and also large amount of Javascript In this project AJAX LIVE SEARCH is also used that displays the result of username search In this audio has been also added while sending and receiving mail.

About Django

Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of Web development, so you can focus on writing your app without needing to reinvent the wheel. It’s free and open source.

Features

  • A split of settings.py that allows for different values in development versus production
  • Preinstallation of Django's automatic administration panel
  • Preconfiguration of urls.py to serve static, media and Munin files
  • Preconfiguration of logging options
  • Preinstallation of django-debug-toolbar
  • Preconfiguration of our preferred caching options for development and production
  • Management commands for scheduling database backups retrieving them for local installation.
  • Custom context processors that provide the current site and environment

Requirements

Getting started

Table of Contents

For the complete tutorial series index click here.

Installation

Please check the official django installation guide for server requirements before you start. Official Documentation

Setup

Create a virtual enviroment to work inside.

virtualenv my-environment

Jump in and turn it on.

cd my-environment

. bin/activate

Install Django:

pip install Django

Other commands:

pip install django

pip install django-emoji-picker

pip install mysqlclient

python -m pip install Pillow

Perform database migration:

python manage.py makemigrations

python manage.py migrate

Run Development Server

python manage.py runserver

You can now access the server at http://localhost:8000

Project File/Folder Structure

What I’ve changed ?

  • All Django apps live under box/ folder.
  • All of the models live under models.py file.
  • All of the admin files live under admin.py file. -- All of the views live under generated app’s views/ folder.
  • Every app should contain It’s own urls.py.
  • All settings related files will live under settings.py file.
  • Every environment has It’s own setting such as
  • Every environment/settings can have It’s own package/module requirements.
  • All of the templates live under basedir’s templates/APP_NAME folder.
  • Additional files such as images, JavaScript, or CSS are live under static/box folder.
  • Every environment/settings can have It’s own package/module requirements.

Here is directory/file structure:



Chat-Box/
    manage.py
    Chat/
       __init__.py
       settings.py
       urls.py
       wsgi.py
    box/
       migrations/
               __init__.py
       __init__.py
       admin.py
       static
       templates
       models.py
       tests.py
       views.py

Documentation

You can see the documentation over at Read the Docs: django-project-skeleton

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published