Hi Awesome Learners! welcome. In this part, we are going to create a project using Django.
Documentation Link: https://tutorialwithproject.com/creat...
Join :
/ jagwithyou
/ jagwithyou
https://github.com/jagwithyou
-----------------------------------------------------------------------------------------------------------------------
First, we are going to create our project directory. I am giving the name as django_basics.
Now, we will create a Django project inside our project folder. Open a command prompt from your project folder and execute the command:
cmd
django-admin startproject django_basics
Here django_basics is the main project name, you can give anything you want. If you check your project directory you will find a folder that has been created as a name what you have given in command prompt.
django_project_structure.PNG
As shown in the figure we have to run all the commands using manage.py. so first enter to the project folder where manage.py is present
cmd
cd django_basics
NOTE: django_basics is my project folder if your project folder name is different you have to change this.
running our app on Django Server :
Now, run the app using manage.py, But where is the server to run?
No worry Django has provided us its lightweight server to develop our app. So we will use that for now. To run the server type below command
cmd
python manage.py runserver
You will get the link where your app is running. copy the link and open it in a browser, you will get the welcome message from django.like below
Congratulations you have successfully installed and created a Django project. In the next part, we will create a Hello World app using Django.
==============
Complete Playlist:
==============
https://tutorialwithproject.com/what-...
https://tutorialwithproject.com/creat...
https://tutorialwithproject.com/hello...
https://tutorialwithproject.com/rende...
https://tutorialwithproject.com/stati...
https://tutorialwithproject.com/creat...
https://tutorialwithproject.com/add-a...
https://tutorialwithproject.com/templ...
https://tutorialwithproject.com/addin...
https://tutorialwithproject.com/link-...
Thank You
Keep Learning & Keep Growing
#TWP #DjangoTutorials #LearnOnLockdown