Back again with a new tutorial.
Today we are going to discuss a Python web development framework called Django.
In the previous tutorials we have discussed about Python programming language, if you didn’t access those tutorials then click here to see the tutorial series , it is recommended to see everyone who is a beginner in python because it will be helpful to you in this tutorial and so on.
So we are going to discuss the Django framework. So Django is an advanced web development Framework written in Python. Many huge companies used to develop their websites on the Django framework because of its easiness and large community of python and good structure of python language. These reasons are responsible to force developers to develop their websites on the Django framework. So How to develop websites on Django Framework. Before that we should know the basics of the Django Framework.
History of Django framework
Django is an open source Python based web development framework. Django is made with MTV architectural patterns. MTV stands for or model-template-view architecture. Django was developed by Django software Foundation on 21st July 2015 by two developers Adrian Holovaty and Simon Willison.
Django is a high level web Development Framework written in Python.
Django has many features like Django provides a default control panel in it and also a development database sqlite3 . Django provides ORM it stands for object relational mapping it means you can control your database through your classes from models.py file. It also provides high security to the websites Django is developed for high level web developing purpose Django can be run on any web server like Apache, Nginx , WSGI and so on.
Django provides built-in migration for cross site request forgery , cross site scripting , SQL injection , password cracking and other web related attacks. Django supports every database server in it like postgresql, mySQL , MariaDB , SQlite etc. It also supports noSQL databases like mongoDB and Google app engines databases etc. Django is presently in its 3.1 major version and is updating day by day Django uses the Ginger template to inherit its templates , for these features Django is one of the most famous web development frameworks nowadays.
Installation of Django
Django can be installed in your system by single command which is mentioned below:
pip install django
if you are a Windows user then go to your CMD and type this command to install Windows but if you are Linux user then open your terminal and try this command for installing Django to your system. After pressing enter you will see that some process will be done by the system and you Django will be installed as the process finished.
After that to check if Django has installed in your system , Execute the below command on your terminal or CMD:
this command will show you the version of Django which is just installed in your system.
Now to use Django you need to start a project with Django. so to start project you need to execute a command on your terminal or CMD the command is given below:
django-admin startproject <your project name>
This command will make a project for you. locate your Path where you were in your terminal. you will be able to see some files and folders which Django created for you automatically.
there are other many options in Django you can access those actions by executing the below command:
This above command will show you every possible action that is available in Django.
So friends that’s all for now see you in the next tutorial until then stay tuned with us and don’t forget to Get signed up.
From: Sayantan Biswas.