Starting Project in Simple Editor
C:\Users\user>cd ..
C:\Users>cd ..
C:\>cd d
The system cannot find the path specified.
C:\>D:
D:\>cd DjangoNew
D:\DjangoNew>cd Esite
The system cannot find the path specified.
D:\DjangoNew>mkdir Esite
D:\DjangoNew>cd Esite
D:\DjangoNew\Esite>virtualenv
usage: virtualenv [--version] [--with-traceback] [-v | -q] [--read-only-app-data] [--app-data APP_DATA] [--reset-app-data] [--upgrade-embed-wheels] [--discovery {builtin}] [-p py] [--try-first-with py_exe]
[--creator {builtin,cpython3-win,venv}] [--seeder {app-data,pip}] [--no-seed] [--activators comma_sep_list] [--clear] [--no-vcs-ignore] [--system-site-packages] [--copies] [--no-download | --download]
[--extra-search-dir d [d ...]] [--pip version] [--setuptools version] [--wheel version] [--no-pip] [--no-setuptools] [--no-wheel] [--no-periodic-update] [--symlink-app-data] [--prompt prompt] [-h]
dest
virtualenv: error: the following arguments are required: dest
SystemExit: 2
D:\DjangoNew\Esite>virtualenv ve
created virtual environment CPython3.7.6.final.0-64 in 22759ms
creator CPython3Windows(dest=D:\DjangoNew\Esite\ve, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\user\AppData\Local\pypa\virtualenv)
added seed packages: pip==21.0.1, setuptools==52.0.0, wheel==0.36.2
activators BashActivator,BatchActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
D:\DjangoNew\Esite>cd ve
D:\DjangoNew\Esite\ve>cd Scripts
D:\DjangoNew\Esite\ve\Scripts>activate
(ve) D:\DjangoNew\Esite\ve\Scripts>cd ..
(ve) D:\DjangoNew\Esite\ve>cd ..
(ve) D:\DjangoNew\Esite>pip install django
Collecting django
Using cached Django-3.1.6-py3-none-any.whl (7.8 MB)
Collecting pytz
Using cached pytz-2021.1-py2.py3-none-any.whl (510 kB)
Collecting sqlparse>=0.2.2
Using cached sqlparse-0.4.1-py3-none-any.whl (42 kB)
Collecting asgiref<4,>=3.2.10
Using cached asgiref-3.3.1-py3-none-any.whl (19 kB)
Installing collected packages: sqlparse, pytz, asgiref, django
Successfully installed asgiref-3.3.1 django-3.1.6 pytz-2021.1 sqlparse-0.4.1
(ve) D:\DjangoNew\Esite>django-admin
Type 'django-admin help <subcommand>' for help on a specific subcommand.
Available subcommands:
[django]
check
compilemessages
createcachetable
dbshell
diffsettings
dumpdata
flush
inspectdb
loaddata
makemessages
makemigrations
migrate
runserver
sendtestemail
shell
showmigrations
sqlflush
sqlmigrate
sqlsequencereset
squashmigrations
startapp
startproject
test
testserver
Note that only Django core commands are listed as settings are not properly configured (error: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.).
(ve) D:\DjangoNew\Esite>django-admin startproject Eshop
(ve) D:\DjangoNew\Esite>django-admin startproject Eshop .
(ve) D:\DjangoNew\Esite>django-admin startapp store .
CommandError: '.' is not a valid app directory. Please make sure the directory is a valid identifier.
(ve) D:\DjangoNew\Esite>django-admin startapp store
(ve) D:\DjangoNew\Esite>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.
February 08, 2021 - 13:35:42
Django version 3.1.6, using settings 'Eshop.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Starting Project in Pycharm
Microsoft Windows [Version 10.0.19042.746]
(c) 2020 Microsoft Corporation. All rights reserved.
(venv) C:\Users\user\PycharmProjects\Esite>pip install django
Collecting django
Using cached https://files.pythonhosted.org/packages/75/42/f59a8ebf14be6d17438f13042c775f53d3dfa71fff973e4aef64ca89
582c/Django-3.1.6-py3-none-any.whl
Collecting sqlparse>=0.2.2 (from django)
Using cached https://files.pythonhosted.org/packages/14/05/6e8eb62ca685b10e34051a80d7ea94b7137369d8c0be5c3b9d9b6e3f
5dae/sqlparse-0.4.1-py3-none-any.whl
Collecting asgiref<4,>=3.2.10 (from django)
Using cached https://files.pythonhosted.org/packages/89/49/5531992efc62f9c6d08a7199dc31176c8c60f7b2548c6ef245f96f29
d0d9/asgiref-3.3.1-py3-none-any.whl
Collecting pytz (from django)
Downloading https://files.pythonhosted.org/packages/70/94/784178ca5dd892a98f113cdd923372024dc04b8d40abe77ca76b5fb90
ca6/pytz-2021.1-py2.py3-none-any.whl (510kB)
100% |████████████████████████████████| 512kB 605kB/s
Installing collected packages: sqlparse, asgiref, pytz, django
Successfully installed asgiref-3.3.1 django-3.1.6 pytz-2021.1 sqlparse-0.4.1
(venv) C:\Users\user\PycharmProjects\Esite>django-admi
'django-admi' is not recognized as an internal or external command,
operable program or batch file.
(venv) C:\Users\user\PycharmProjects\Esite>
(venv) C:\Users\user\PycharmProjects\Esite>
(venv) C:\Users\user\PycharmProjects\Esite>django-admin
Type 'django-admin help <subcommand>' for help on a specific subcommand.
Available subcommands:
[django]
check
compilemessages
createcachetable
dbshell
diffsettings
dumpdata
flush
inspectdb
loaddata
makemessages
makemigrations
migrate
runserver
sendtestemail
shell
showmigrations
sqlflush
sqlmigrate
sqlsequencereset
squashmigrations
startapp
startproject
test
testserver
Note that only Django core commands are listed as settings are not properly configured (error: Requested setting INST
ALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE o
r call settings.configure() before accessing settings.).
(venv) C:\Users\user\PycharmProjects\Esite>django-admin startproject Esite
(venv) C:\Users\user\PycharmProjects\Esite>django-admin startproject Esite .
(venv) C:\Users\user\PycharmProjects\Esite>django-admin startapp store
(venv) C:\Users\user\PycharmProjects\Esite>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): adm
in, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.
February 08, 2021 - 12:59:43
Django version 3.1.6, using settings 'Esite.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
[08/Feb/2021 13:00:48] "GET / HTTP/1.1" 200 16351
[08/Feb/2021 13:00:48] "GET /static/admin/css/fonts.css HTTP/1.1" 200 423
[08/Feb/2021 13:00:48] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 200 85692
[08/Feb/2021 13:00:48] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 200 85876
[08/Feb/2021 13:00:48] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.1" 200 86184
Not Found: /favicon.ico
[08/Feb/2021 13:00:50] "GET /favicon.ico HTTP/1.1" 404 1971
[08/Feb/2021 13:35:48] "GET /static/admin/css/fonts.css HTTP/1.1" 304 0
[08/Feb/2021 13:35:48] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.1" 304 0
[08/Feb/2021 13:35:48] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 304 0
[08/Feb/2021 13:35:48] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 304 0
[08/Feb/2021 13:35:51] "GET / HTTP/1.1" 200 16351