What is Django and Python Web framework- Step 1
What is Django?
Django is Python web framework that is used for rapid web development which follows the
mode-view-template (MVT) architectural pattern.Django CMS is a free and open source content management system platform for publishing content on the WWW and intranets.
Django is a collection of Python libs allowing you to quickly and efficiently create a quality Web application and is suitable for both frontend and backend.
- Named after famous Guitarist Django Reinhardt
- Developed by Adrain Holovaty & Jacob Kaplan-moss
- Created in 2003 and open sourced in 2005
Who uses Django?
- Instagram: - We all know Instagram is the place to share your life in pictures. The Instagram website is a Python website that allows users to browse, find and post pictures.
- Pinterest: - Pinterest is a visual discovery tool that allows users to showcase their interests through the posting of pictures. Users can also follow and share other users’ pictures and content all through the power of Django.
- Quora: - Quora is the number one place online to ask a question and receive answers from a community of individuals. On their Python website, relevant results are answered, edited, and organized by these community members.
- Bitbucket, NASA, Mozilla, National Geographic, Discovery channel
Some of the popular websites that are created using Django and Python there are much more.
Django Architecture
Django Architecture |
- The URL dispatcher(urls.py) maps the requested URL to a view function and call it.If caching is enabled the view function can check to see if a cached version of the exists and bypass all further steps, returning the cached version instead.
- The view function(views.py) performs the requested action, which typically involves in CRUD operations with the database.
- The model(models.py) defines the data in python and interacts with it.
- Template returns the HTML.
- As a database option,
- If you’re using PostgreSQL, you’ll need the psycopg2 package.
- If you’re using MySQL, you’ll need a DB API driver like mysqlclient.
- If you’re using SQLite you might want to read the SQLite backend notes.
- If you’re using Oracle, you’ll need a copy of cx_Oracle.
Project Directory Structure
Django CMS admin panel
Here, You can see I have created an app(MyMusicapp) in Django every section such as (Home, About, etc) is called an app and we will discuss this later.
Happy coding and keep sharing !!!!
Useful blog admin. I learned a lot about django and python web framework.
ReplyDeleteBest Python Training in Chennai | Python Training classes in Chennai
Usually, I never comment on blogs but yours is so convincing that I never stop myself to say something about it. keep updating regularly.
ReplyDeleteBest IELTS Classes in Mulund
IELTS Centres in Mulund East
IELTS Coaching Classes in Mulund
IELTS Training in Mulund
IELTS Coaching Centres in Mulund
Best IELTS Course in Mulund West
IELTS Training Institute near me
Articles are so informative,looking towards more.Thanks for sharing us
ReplyDeletepython training in chennai | python training in annanagar | python training in omr | python training in porur | python training in tambaram | python training in velachery