0% found this document useful (0 votes)
44 views3 pages

Djangoinstalltion

The document details the process of installing and setting up a Django project using pip and virtualenv. It includes steps for upgrading pip, installing virtualenv, creating a virtual environment, and installing Django. Finally, it demonstrates running the Django development server and notes that there are unapplied migrations that need to be addressed.

Uploaded by

vedvarmishra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views3 pages

Djangoinstalltion

The document details the process of installing and setting up a Django project using pip and virtualenv. It includes steps for upgrading pip, installing virtualenv, creating a virtual environment, and installing Django. Finally, it demonstrates running the Django development server and notes that there are unapplied migrations that need to be addressed.

Uploaded by

vedvarmishra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

V:\DjangoProject>python -m pip install -U pip

Requirement already satisfied: pip in c:\users\neert\appdata\local\programs\python\


python312\lib\site-packages (24.0)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at
0x000001F22D387BC0>: Failed to establish a new connection: [Errno 11001]
getaddrinfo failed')': /simple/pip/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at
0x000001F22D3D7200>: Failed to establish a new connection: [Errno 11001]
getaddrinfo failed')': /simple/pip/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at
0x000001F22D3D7380>: Failed to establish a new connection: [Errno 11001]
getaddrinfo failed')': /simple/pip/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at
0x000001F22D3D7560>: Failed to establish a new connection: [Errno 11001]
getaddrinfo failed')': /simple/pip/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at
0x000001F22D3D7770>: Failed to establish a new connection: [Errno 11001]
getaddrinfo failed')': /simple/pip/

V:\DjangoProject>pip install virtualenv


WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at
0x000002361C65EFC0>: Failed to establish a new connection: [Errno 11001]
getaddrinfo failed')': /simple/virtualenv/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at
0x000002361C9EB620>: Failed to establish a new connection: [Errno 11001]
getaddrinfo failed')': /simple/virtualenv/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at
0x000002361C9EB8F0>: Failed to establish a new connection: [Errno 11001]
getaddrinfo failed')': /simple/virtualenv/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at
0x000002361C9EBB00>: Failed to establish a new connection: [Errno 11001]
getaddrinfo failed')': /simple/virtualenv/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None,
status=None)) after connection broken by
'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at
0x000002361C9EBD10>: Failed to establish a new connection: [Errno 11001]
getaddrinfo failed')': /simple/virtualenv/
ERROR: Could not find a version that satisfies the requirement virtualenv (from
versions: none)
ERROR: No matching distribution found for virtualenv
V:\DjangoProject>pip install virtualenv
Collecting virtualenv
Downloading virtualenv-20.26.2-py3-none-any.whl.metadata (4.4 kB)
Collecting distlib<1,>=0.3.7 (from virtualenv)
Downloading distlib-0.3.8-py2.py3-none-any.whl.metadata (5.1 kB)
Collecting filelock<4,>=3.12.2 (from virtualenv)
Downloading filelock-3.15.1-py3-none-any.whl.metadata (2.8 kB)
Collecting platformdirs<5,>=3.9.1 (from virtualenv)
Downloading platformdirs-4.2.2-py3-none-any.whl.metadata (11 kB)
Downloading virtualenv-20.26.2-py3-none-any.whl (3.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.9/3.9 MB 156.4 kB/s eta 0:00:00
Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 kB 586.5 kB/s eta 0:00:00
Downloading filelock-3.15.1-py3-none-any.whl (15 kB)
Downloading platformdirs-4.2.2-py3-none-any.whl (18 kB)
Installing collected packages: distlib, platformdirs, filelock, virtualenv
Successfully installed distlib-0.3.8 filelock-3.15.1 platformdirs-4.2.2 virtualenv-
20.26.2

V:\DjangoProject>python -m virtualenv my_env


created virtual environment CPython3.12.1.final.0-64 in 10992ms
creator CPython3Windows(dest=V:\DjangoProject\my_env, clear=False,
no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, via=copy, app_data_dir=C:\Users\
neert\AppData\Local\pypa\virtualenv)
added seed packages: pip==24.0
activators
BashActivator,BatchActivator,FishActivator,NushellActivator,PowerShellActivator,Pyt
honActivator

V:\DjangoProject>cd my_env

V:\DjangoProject\my_env>cd Scripts

V:\DjangoProject\my_env\Scripts>activate

V:\DjangoProject\my_env\Scripts>()

(my_env) V:\DjangoProject\my_env\Scripts>cd ..

(my_env) V:\DjangoProject\my_env>cd ..

(my_env) V:\DjangoProject>pip install django


Collecting django
Downloading Django-5.0.6-py3-none-any.whl.metadata (4.1 kB)
Collecting asgiref<4,>=3.7.0 (from django)
Downloading asgiref-3.8.1-py3-none-any.whl.metadata (9.3 kB)
Collecting sqlparse>=0.3.1 (from django)
Downloading sqlparse-0.5.0-py3-none-any.whl.metadata (3.9 kB)
Collecting tzdata (from django)
Downloading tzdata-2024.1-py2.py3-none-any.whl.metadata (1.4 kB)
Downloading Django-5.0.6-py3-none-any.whl (8.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.2/8.2 MB 1.2 MB/s eta 0:00:00
Downloading asgiref-3.8.1-py3-none-any.whl (23 kB)
Downloading sqlparse-0.5.0-py3-none-any.whl (43 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 44.0/44.0 kB 1.1 MB/s eta 0:00:00
Downloading tzdata-2024.1-py2.py3-none-any.whl (345 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 345.4/345.4 kB 1.0 MB/s eta 0:00:00
Installing collected packages: tzdata, sqlparse, asgiref, django
Successfully installed asgiref-3.8.1 django-5.0.6 sqlparse-0.5.0 tzdata-2024.1

(my_env) V:\DjangoProject>django-admin startproject demoproject

(my_env) V:\DjangoProject>cd demoproject

(my_env) V:\DjangoProject\demoproject>python manage.py runserver


Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).

You have 18 unapplied migration(s). Your project may not work properly until you
apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.
June 19, 2024 - 18:54:24
Django version 5.0.6, using settings 'demoproject.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.

You might also like