Giter VIP home page Giter VIP logo

chatbox's Introduction

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

chatbox's People

Contributors

saloniig avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.