Você está na página 1de 5

Microsoft Windows [Version 6.1.

7601]

Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\DIPTO>cd Projects

C:\Users\DIPTO\Projects>virtualenv env

Using base prefix 'c:\\users\\dipto\\appdata\\local\\programs\\python\\python37-

32'

New python executable in C:\Users\DIPTO\Projects\env\Scripts\python.exe

Installing setuptools, pip, wheel...done.

C:\Users\DIPTO\Projects>env\scripts\activate

(env) C:\Users\DIPTO\Projects>pip install django

Collecting django

Downloading https://files.pythonhosted.org/packages/32/ab/22530cc1b2114e6067ee

ce94a333d6c749fa1c56a009f0721e51c181ea53/Django-2.1.2-py3-none-any.whl (7.3MB)

100% |████████████████████████████████| 7.3MB 35kB/s

Collecting pytz (from django)

Using cached https://files.pythonhosted.org/packages/30/4e/27c34b62430286c6d59

177a0842ed90dc789ce5d1ed740887653b898779a/pytz-2018.5-py2.py3-none-any.whl

Installing collected packages: pytz, django

Successfully installed django-2.1.2 pytz-2018.5

(env) C:\Users\DIPTO\Projects>django -admin startproject mysite


'django' is not recognized as an internal or external command,

operable program or batch file.

(env) C:\Users\DIPTO\Projects>django-admin startproject mysite

(env) C:\Users\DIPTO\Projects>cd mysite

(env) C:\Users\DIPTO\Projects\mysite>python manage.py migrate

Operations to perform:

Apply all migrations: admin, auth, contenttypes, sessions

Running migrations:

Applying contenttypes.0001_initial... OK

Applying auth.0001_initial... OK

Applying admin.0001_initial... OK

Applying admin.0002_logentry_remove_auto_add... OK

Applying admin.0003_logentry_add_action_flag_choices... OK

Applying contenttypes.0002_remove_content_type_name... OK

Applying auth.0002_alter_permission_name_max_length... OK

Applying auth.0003_alter_user_email_max_length... OK

Applying auth.0004_alter_user_username_opts... OK

Applying auth.0005_alter_user_last_login_null... OK

Applying auth.0006_require_contenttypes_0002... OK

Applying auth.0007_alter_validators_add_error_messages... OK

Applying auth.0008_alter_user_username_max_length... OK

Applying auth.0009_alter_user_last_name_max_length... OK
Applying sessions.0001_initial... OK

(env) C:\Users\DIPTO\Projects\mysite>python manage.py runserver

Performing system checks...

System check identified no issues (0 silenced).

October 21, 2018 - 14:45:13

Django version 2.1.2, using settings 'mysite.settings'

Starting development server at http://127.0.0.1:8000/

Quit the server with CTRL-BREAK.

[21/Oct/2018 14:45:24] "GET / HTTP/1.1" 200 16348

[21/Oct/2018 14:45:24] "GET /static/admin/css/fonts.css HTTP/1.1" 200 423

[21/Oct/2018 14:45:25] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP

/1.1" 200 80304

[21/Oct/2018 14:45:25] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.

1" 200 82564

[21/Oct/2018 14:45:25] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1

.1" 200 81348

Not Found: /favicon.ico

[21/Oct/2018 14:45:25] "GET /favicon.ico HTTP/1.1" 404 1972

[21/Oct/2018 14:45:30] "GET /admin HTTP/1.1" 301 0

[21/Oct/2018 14:45:30] "GET /admin/ HTTP/1.1" 302 0

[21/Oct/2018 14:45:30] "GET /admin/login/?next=/admin/ HTTP/1.1" 200 1819

[21/Oct/2018 14:45:30] "GET /static/admin/css/login.css HTTP/1.1" 200 1203

[21/Oct/2018 14:45:30] "GET /static/admin/css/base.css HTTP/1.1" 200 16225


[21/Oct/2018 14:45:30] "GET /static/admin/css/responsive.css HTTP/1.1" 200 17976

[21/Oct/2018 14:45:32] "POST /admin/login/?next=/admin/ HTTP/1.1" 200 1982

[21/Oct/2018 14:45:43] "POST /admin/login/?next=/admin/ HTTP/1.1" 200 1982

[21/Oct/2018 14:45:43] "GET /static/admin/css/base.css HTTP/1.1" 304 0

[21/Oct/2018 14:45:43] "GET /static/admin/css/login.css HTTP/1.1" 304 0

[21/Oct/2018 14:45:43] "GET /static/admin/css/responsive.css HTTP/1.1" 304 0

[21/Oct/2018 14:45:43] "GET /static/admin/css/fonts.css HTTP/1.1" 304 0

[21/Oct/2018 14:45:43] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP

/1.1" 304 0

[21/Oct/2018 14:45:43] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1

.1" 304 0

[21/Oct/2018 14:45:43] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.

1" 304 0

(env) C:\Users\DIPTO\Projects\mysite>python manage.py createsuperuser

Username (leave blank to use 'dipto'): Murshed

Email address: murshedularifeen@gmail.com

Password:

Password (again):

Superuser created successfully.

(env) C:\Users\DIPTO\Projects\mysite>python manage.py runserver

Performing system checks...


System check identified no issues (0 silenced).

October 21, 2018 - 14:46:49

Django version 2.1.2, using settings 'mysite.settings'

Starting development server at http://127.0.0.1:8000/

Quit the server with CTRL-BREAK.

[21/Oct/2018 14:46:51] "GET /admin/login/?next=/admin/ HTTP/1.1" 200 1819

[21/Oct/2018 14:46:51] "GET /static/admin/css/base.css HTTP/1.1" 304 0

[21/Oct/2018 14:46:51] "GET /static/admin/css/responsive.css HTTP/1.1" 304 0

[21/Oct/2018 14:46:51] "GET /static/admin/css/login.css HTTP/1.1" 304 0

[21/Oct/2018 14:46:51] "GET /static/admin/css/fonts.css HTTP/1.1" 304 0

[21/Oct/2018 14:46:51] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP

/1.1" 304 0

[21/Oct/2018 14:46:51] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1

.1" 304 0

[21/Oct/2018 14:47:00] "POST /admin/login/?next=/admin/ HTTP/1.1" 302 0

[21/Oct/2018 14:47:00] "GET /admin/ HTTP/1.1" 200 3044

[21/Oct/2018 14:47:00] "GET /static/admin/css/dashboard.css HTTP/1.1" 200 412

[21/Oct/2018 14:47:00] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.

1" 304 0

[21/Oct/2018 14:47:00] "GET /static/admin/img/icon-addlink.svg HTTP/1.1" 200 331

[21/Oct/2018 14:47:00] "GET /static/admin/img/icon-changelink.svg HTTP/1.1" 200

380