Setting up and Installing Django for Beginners | Comprehensive Django Tutorial in Urdu/Hindi Part 1

Posted by

How to Install Django and Setup a Django Project

Complete Django Course in Urdu/Hindi

Are you interested in learning Django, the popular Python web framework? In this article, we will guide you on how to install Django and set up your first Django project.

Step 1: Install Django

To install Django, you first need to have Python installed on your system. You can download Python from the official website (https://www.python.org/downloads/).

Once you have Python installed, you can use pip, the Python package manager, to install Django. Open your terminal or command prompt and run the following command:

pip install django

After the installation is complete, you can verify that Django is installed by running the following command:

django-admin --version

Step 2: Create a Django Project

Now that you have Django installed, you can create a new Django project. Navigate to the directory where you want to create your project and run the following command:

django-admin startproject my_project

This will create a new directory called “my_project” with all the necessary files and folders for your Django project.

Step 3: Run the Development Server

To test your Django project, navigate to the newly created directory and run the following command:

python manage.py runserver

This will start the development server, and you can access your project by visiting http://127.0.0.1:8000/ in your web browser.

Step 4: Learn Django

Congratulations! You have successfully installed Django and set up your first Django project. Now it’s time to dive deeper into Django and learn more about its features and functionality.

If you want to learn Django in Urdu or Hindi, there are many online courses and tutorials available that can help you. You can also refer to the official Django documentation for detailed information on how to build web applications using Django.

Happy coding!

0 0 votes
Article Rating
2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
@amitpresents9419
7 months ago

Bhai jb unrestricted karta hu to running scrip is disabled aa rha hai 😢

@superworld7832
7 months ago

Dhan dhan satguru Tera hi asra
Love from India