Django Introduction

#django

chetan Shrivastav Feb 21 2021 · 1 min read
Share this

                                        Django Introduction

Django is an open-source Web Application Framework written in python language. It works on Model View Template (MVT)

design. Django gives you the environment to create to web application in a very fast manner. Django is very demanding due its rapidly development environment.

Django also provide some security features like authentication system to manage the user account or

admin account. It also helps developer to avoid many other security mistakes such as SQL injection, (CSRF)

cross-site request forgery, cross-site scripting.

                                        Django Project

As we know that Django is used to create a web application. To create your first project or first web

application or a website. You need to be import Django by using:

                              >>>    pip install django

This command is automatically install Django in your system. Once it done now, we are ready to create a

project.

To create a new project in django run.

          >>> django-admin startproject <projectname>

By using this command, you just direct deal with the django admin to create a project. In below Image we create a project name Products.

Whenever you create a project,Django project always comes with some

Default file. File manage.py manage your it automatically create a environment for your project it always point your settings.py file which is present in your project folder.

After creating the project, you need to create different different page for your website you can create

different page by creating app. To create an app, you need to run a command:

                              >>> django-admin startapp <appname>

Here we create some apps using Django. Products is a project folder and Home, About, Login, Contact is app inside the django.

In next we explore the Project folder and learn about there default file.

Comments
Read next