Hello all, I am a beginner to Django and I had gone through the below link to start with Django
Django Overview
But i am unable to understand which command is used to create a new django project.
Please could you explain about this?
With Regards
programmer
How to create a new Django Project
Re: How to create a new Django Project
Thanks for asking this question. Sorry we had forgotten to mention this in the tutorial Learn Django Overview. Let us describe here below
To create Django project please have django installed. If you donot have, donot worry first install and create virtual environment and then activate it. To install virtual environment you can type the below command
To create virtual environment using python3 please do execute the below command
Now, it is time to activate virtualenv, this can be done using the below command
Now install django using pip
Since Django is installed, it is the time to create project using django. Let us execute the below command
Go inside the project and execute the below command
I hope in this way you will able to create a new django project with ease.
With Regards
AI Sangam
To create Django project please have django installed. If you donot have, donot worry first install and create virtual environment and then activate it. To install virtual environment you can type the below command
Code: Select all
sudo apt-get install virtualenv
Code: Select all
virtualenv --python python3 *name_of_env*
Code: Select all
source name_of_env/bin/activate
Code: Select all
pip install django
Code: Select all
django-admin startproject **name_of_project**
Code: Select all
python manage.py startapp **name_of_app**
With Regards
AI Sangam