Full Guide | How to Create First Project in DjangoMay 14, 2021 2022-12-19 9:51
Full Guide | How to Create First Project in Django
How to Create First Project in Django
You know, JafriCode is the platform where our reader reads web development-related tutorials, now we are starting Django web framework to learn. And in this tutorial, we have to understand that How to Create First Project in Django, it is a very basic and necessary tutorial for beginners. So you have to read this tutorial if you want to really learn.
Django is the Python-based web framework, that is used to create high-level web applications/websites. It is used by big companies like Disqus YouTube Instagram Spotify Mozilla etc. Any kind of website or web application you can develop with Django because it is a very high-level web framework as it is developed in Python programming language which has more powerful technologies-related libraries. Due to a high level and powerful libraries, developers can develop any kind of applications or websites according to customer needs. For example, projects related to artificial intelligence, data science, machine learning, speech recognition, etc.
There are different things you have to understand before going to creating the first project in the Django framework. That all things that are prerequisites for Django, we will teach. Now we will learn that how to create first project in Django easily for beginners.
Before | Creating first Project in Django
The first step is that you should have a python installed in your system because without python installation we can work with any python based libraries. Because all the libraries are written with Python, also Django is written in Python, to use Django we need to get Python at first.
To install Python follow these steps:
- Visit Python official website
- Download Python
- After downloading you have to install it
- Important: while installing you have to check the checkbox at label ‘Add to path’
- Then Install Django library using this command pip install Django
Understand | How to Create First Project in Django
After installing Django you can create the first project in the Django library using this command
django-admin startproject project_name
django-admin startproject school
Where a school is the project name, after running this command you will get a folder with the school name in which all the other files will present.
django-admin startproject hospital
In this case, our project name is the hospital, in which default files, you will find when you run this command.
Keep three points in your mind:
- Install Python
- Install Django libary
- Run command for creating project
When you follow the above 3 points you will get your created project in the location in which you are. Now, you will get folders and files by default. That files have special meaning, it is very necessary to know about importance and information about that files. For this purpose, we created a Django tutorial about project files generated by default, exploring information and its explanation. You should take that tutorial, it will make it easy for you to understand best.
Now, you have created the first project in Django, the next step is to work on it. For example, you have to create a template for your project, manage static files, create models, views, and URL patterns. These all work you have to attempt because if you want to build a basic website in Django you should need to learn all these topics.
we have learned how to create first project in Django framework, now you have to do practical in your system for your own knowledge and experience. Without practise and exercise you can get targets in your study. There are a lot of examples on the internet, you can take free from your experience and practice. If you face any problems or issue then share your problem, we will find the best solution, possible for us.
Please this Django tutorial for beginners with your social media friends e.g Facebook, Twitter, Linked In, etc.