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.
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.
- A split of
settings.pythat allows for different values in development versus production - Preinstallation of Django's automatic administration panel
- Preconfiguration of
urls.pyto 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
- Part 1 - Getting Started
- Part 2 - Fundamentals
- Part 3 - Advanced Concepts
- Part 4 - Authentication
- Part 5 - ORM
- Part 6 - Class-Based Views
- Part 7 - Deployment
- Part 8 - Django Reset Password With Email Verification
- Part 9 - How to Create a Password Reset View
For the complete tutorial series index click here.
Please check the official django installation guide for server requirements before you start. Official Documentation
Create a virtual enviroment to work inside.
virtualenv my-environment
Jump in and turn it on.
cd my-environment
. bin/activate
pip install Django
pip install django
pip install django-emoji-picker
pip install mysqlclient
python -m pip install Pillow
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
You can now access the server at http://localhost:8000
What I’ve changed ?
- All Django apps live under
box/folder. - All of the models live under
models.pyfile. - All of the admin files live under
admin.pyfile. -- All of the views live under generated app’sviews/folder. - Every app should contain It’s own
urls.py. - All settings related files will live under
settings.pyfile. - 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_NAMEfolder. - Additional files such as images, JavaScript, or CSS are live under
static/boxfolder. - Every environment/settings can have It’s own package/module requirements.
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
You can see the documentation over at Read the Docs: django-project-skeleton