Prof Babu Python and Django Installation COmmand

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

Microsoft Windows [Version 10.0.22621.

3296]
(c) Microsoft Corporation. All rights reserved.

C:\Users\ICT>mkdir abcd

C:\Users\ICT>cd abcd

C:\Users\ICT\abcd>python -m venv vp1

C:\Users\ICT\abcd>cd vp1

C:\Users\ICT\abcd\vp1>dir/p
Volume in drive C is Windows
Volume Serial Number is B691-B169

Directory of C:\Users\ICT\abcd\vp1

03/25/2024 03:47 PM <DIR> .


03/25/2024 03:47 PM <DIR> ..
03/25/2024 03:47 PM <DIR> Include
03/25/2024 03:47 PM <DIR> Lib
03/25/2024 03:47 PM 222 pyvenv.cfg
03/25/2024 03:47 PM <DIR> Scripts
1 File(s) 222 bytes
5 Dir(s) 127,635,738,624 bytes free

C:\Users\ICT\abcd\vp1>cd Scripts

C:\Users\ICT\abcd\vp1\Scripts>dir/p
Volume in drive C is Windows
Volume Serial Number is B691-B169

Directory of C:\Users\ICT\abcd\vp1\Scripts

03/25/2024 03:47 PM <DIR> .


03/25/2024 03:47 PM <DIR> ..
03/25/2024 03:47 PM 2,032 activate
03/25/2024 03:47 PM 988 activate.bat
03/25/2024 03:47 PM 26,199 Activate.ps1
03/25/2024 03:47 PM 393 deactivate.bat
03/25/2024 03:47 PM 108,399 pip.exe
03/25/2024 03:47 PM 108,399 pip3.12.exe
03/25/2024 03:47 PM 108,399 pip3.exe
03/25/2024 03:47 PM 270,616 python.exe
03/25/2024 03:47 PM 259,352 pythonw.exe
03/25/2024 03:47 PM 790,016 pythonw_d.exe
03/25/2024 03:47 PM 791,040 python_d.exe
11 File(s) 2,465,833 bytes
2 Dir(s) 127,635,673,088 bytes free

C:\Users\ICT\abcd\vp1\Scripts>activate

(vp1) C:\Users\ICT\abcd\vp1\Scripts>activate.bat
(vp1) C:\Users\ICT\abcd\vp1\Scripts>../
'..' is not recognized as an internal or external command,
operable program or batch file.

(vp1) C:\Users\ICT\abcd\vp1\Scripts>cd ..

(vp1) C:\Users\ICT\abcd\vp1>pip list


Package Version
------- -------
pip 24.0

(vp1) C:\Users\ICT\abcd\vp1>pip install django

(vp1) C:\Users\ICT\abcd\vp1>python -m pip install django


Collecting django
Using cached Django-5.0.3-py3-none-any.whl.metadata (4.2 kB)
Collecting asgiref<4,>=3.7.0 (from django)
Using cached asgiref-3.8.1-py3-none-any.whl.metadata (9.3 kB)
Collecting sqlparse>=0.3.1 (from django)
Using cached sqlparse-0.4.4-py3-none-any.whl.metadata (4.0 kB)
Collecting tzdata (from django)
Using cached tzdata-2024.1-py2.py3-none-any.whl.metadata (1.4 kB)
Using cached Django-5.0.3-py3-none-any.whl (8.2 MB)
Using cached asgiref-3.8.1-py3-none-any.whl (23 kB)
Using cached sqlparse-0.4.4-py3-none-any.whl (41 kB)
Using cached tzdata-2024.1-py2.py3-none-any.whl (345 kB)
Installing collected packages: tzdata, sqlparse, asgiref, django
Successfully installed asgiref-3.8.1 django-5.0.3 sqlparse-0.4.4 tzdata-2024.1

(vp1) C:\Users\ICT\abcd\vp1>pip list


Package Version
-------- -------
asgiref 3.8.1
Django 5.0.3
pip 24.0
sqlparse 0.4.4
tzdata 2024.1

(vp1) C:\Users\ICT\abcd\vp1>django-admin startproject p1

(vp1) C:\Users\ICT\abcd\vp1>dir/p
Volume in drive C is Windows
Volume Serial Number is B691-B169

Directory of C:\Users\ICT\abcd\vp1

03/25/2024 03:49 PM <DIR> .


03/25/2024 03:47 PM <DIR> ..
03/25/2024 03:47 PM <DIR> Include
03/25/2024 03:47 PM <DIR> Lib
03/25/2024 03:49 PM <DIR> p1
03/25/2024 03:47 PM 222 pyvenv.cfg
03/25/2024 03:48 PM <DIR> Scripts
1 File(s) 222 bytes
6 Dir(s) 127,592,333,312 bytes free

(vp1) C:\Users\ICT\abcd\vp1>cd p1

(vp1) C:\Users\ICT\abcd\vp1\p1>dir/p
Volume in drive C is Windows
Volume Serial Number is B691-B169

Directory of C:\Users\ICT\abcd\vp1\p1

03/25/2024 03:49 PM <DIR> .


03/25/2024 03:49 PM <DIR> ..
03/25/2024 03:49 PM 680 manage.py
03/25/2024 03:49 PM <DIR> p1
1 File(s) 680 bytes
3 Dir(s) 127,592,173,568 bytes free

(vp1) C:\Users\ICT\abcd\vp1\p1>python -m manage.py runserver


C:\Users\ICT\abcd\vp1\Scripts\python.exe: Error while finding module specification for 'manage.py'
(ModuleNotFoundError: __path__ attribute not found on 'manage' while trying to find 'manage.py'). Try
using 'manage' instead of 'manage.py' as the module name.

(vp1) C:\Users\ICT\abcd\vp1\p1>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.
March 25, 2024 - 15:49:57
Django version 5.0.3, using settings 'p1.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.

[25/Mar/2024 15:50:17] "GET / HTTP/1.1" 200 10629

(vp1) C:\Users\ICT\abcd\vp1\p1>python -m manage.py startapp app1


C:\Users\ICT\abcd\vp1\Scripts\python.exe: Error while finding module specification for 'manage.py'
(ModuleNotFoundError: __path__ attribute not found on 'manage' while trying to find 'manage.py'). Try
using 'manage' instead of 'manage.py' as the module name.

(vp1) C:\Users\ICT\abcd\vp1\p1>python manage.py startapp app1

(vp1) C:\Users\ICT\abcd\vp1\p1>dir.p
Volume in drive C is Windows
Volume Serial Number is B691-B169

Directory of C:\Users\ICT\abcd\vp1\p1

File Not Found

(vp1) C:\Users\ICT\abcd\vp1\p1>dir/p
Volume in drive C is Windows
Volume Serial Number is B691-B169

Directory of C:\Users\ICT\abcd\vp1\p1

03/25/2024 03:50 PM <DIR> .


03/25/2024 03:49 PM <DIR> ..
03/25/2024 03:50 PM <DIR> app1
03/25/2024 03:49 PM 0 db.sqlite3
03/25/2024 03:49 PM 680 manage.py
03/25/2024 03:49 PM <DIR> p1
03/25/2024 03:49 PM <DIR> __pycache__
2 File(s) 680 bytes
5 Dir(s) 127,580,737,536 bytes free

(vp1) C:\Users\ICT\abcd\vp1\p1>cd app1

(vp1) C:\Users\ICT\abcd\vp1\p1\app1>dir/p
Volume in drive C is Windows
Volume Serial Number is B691-B169

Directory of C:\Users\ICT\abcd\vp1\p1\app1

03/25/2024 03:50 PM <DIR> .


03/25/2024 03:50 PM <DIR> ..
03/25/2024 03:50 PM 66 admin.py
03/25/2024 03:50 PM 146 apps.py
03/25/2024 03:50 PM <DIR> migrations
03/25/2024 03:50 PM 60 models.py
03/25/2024 03:50 PM 63 tests.py
03/25/2024 03:50 PM 66 views.py
03/25/2024 03:50 PM 0 __init__.py
6 File(s) 401 bytes
3 Dir(s) 127,580,737,536 bytes free

(vp1) C:\Users\ICT\abcd\vp1\p1\app1>cd..

(vp1) C:\Users\ICT\abcd\vp1\p1>dir/p
Volume in drive C is Windows
Volume Serial Number is B691-B169

Directory of C:\Users\ICT\abcd\vp1\p1

03/25/2024 03:50 PM <DIR> .


03/25/2024 03:49 PM <DIR> ..
03/25/2024 03:50 PM <DIR> app1
03/25/2024 03:49 PM 0 db.sqlite3
03/25/2024 03:49 PM 680 manage.py
03/25/2024 03:49 PM <DIR> p1
03/25/2024 03:49 PM <DIR> __pycache__
2 File(s) 680 bytes
5 Dir(s) 127,580,471,296 bytes free

(vp1) C:\Users\ICT\abcd\vp1\p1>cd p1
(vp1) C:\Users\ICT\abcd\vp1\p1\p1>dir/p
Volume in drive C is Windows
Volume Serial Number is B691-B169

Directory of C:\Users\ICT\abcd\vp1\p1\p1

03/25/2024 03:49 PM <DIR> .


03/25/2024 03:50 PM <DIR> ..
03/25/2024 03:49 PM 397 asgi.py
03/25/2024 03:49 PM 3,332 settings.py
03/25/2024 03:49 PM 780 urls.py
03/25/2024 03:49 PM 397 wsgi.py
03/25/2024 03:49 PM 0 __init__.py
03/25/2024 03:49 PM <DIR> __pycache__
5 File(s) 4,906 bytes
3 Dir(s) 127,580,471,296 bytes free

(vp1) C:\Users\ICT\abcd\vp1\p1\p1>cd..

(vp1) C:\Users\ICT\abcd\vp1\p1>cd..

(vp1) C:\Users\ICT\abcd\vp1>dir/p
Volume in drive C is Windows
Volume Serial Number is B691-B169

Directory of C:\Users\ICT\abcd\vp1

03/25/2024 03:49 PM <DIR> .


03/25/2024 03:47 PM <DIR> ..
03/25/2024 03:47 PM <DIR> Include
03/25/2024 03:47 PM <DIR> Lib
03/25/2024 03:50 PM <DIR> p1
03/25/2024 03:47 PM 222 pyvenv.cfg
03/25/2024 03:48 PM <DIR> Scripts
1 File(s) 222 bytes
6 Dir(s) 127,580,405,760 bytes free

(vp1) C:\Users\ICT\abcd\vp1>cd p1

(vp1) C:\Users\ICT\abcd\vp1\p1>dir/p
Volume in drive C is Windows
Volume Serial Number is B691-B169

Directory of C:\Users\ICT\abcd\vp1\p1

03/25/2024 03:50 PM <DIR> .


03/25/2024 03:49 PM <DIR> ..
03/25/2024 03:50 PM <DIR> app1
03/25/2024 03:49 PM 0 db.sqlite3
03/25/2024 03:49 PM 680 manage.py
03/25/2024 03:49 PM <DIR> p1
03/25/2024 03:49 PM <DIR> __pycache__
2 File(s) 680 bytes
5 Dir(s) 127,580,405,760 bytes free

(vp1) C:\Users\ICT\abcd\vp1\p1>

You might also like