At fast Install python in your system -
Make Sure You Have Python and pip:
Just like before, the foundation for Django is Python and its package manager, pip.
-
Check for Python: Open your Command Prompt. You can do this by searching for "cmd" in the Start Menu and pressing Enter. In the Command Prompt, type:
python --version or py --version
If Python is installed, you'll see a version number (like If not, head over to the official Python website: https://www.python.org/downloads/windows/ and download the latest stable version.
Python 3.x.x).create ENV:
py -m venv myenv
if any problem then update pip like this -
py -m pip install --upgrade pip
myenv\Scripts\activate
Install Django:
With your virtual environment activated, you can now install Django using pip:
py -m pip install Django or pip install Django
Then you can check version-
py -m django --version
Creating project:
mkdir djangotutorial
cd into a directory where you’d like to store your code and create a new directory named djangotutorial. starproject:
django-admin startproject projectname
Run:
python manage.py runserver
.....
0 Comments