عبدالله عباس5 نشر 1 يوليو 2022 أرسل تقرير نشر 1 يوليو 2022 Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\muser>cd docments The system cannot find the path specified. C:\Users\muser>Documents 'Documents' is not recognized as an internal or external command, operable program or batch file. C:\Users\muser>cd Documents C:\Users\muser\Documents>cd django C:\Users\muser\Documents\django>mkdir django_store C:\Users\muser\Documents\django>cd .\djano_store The system cannot find the path specified. C:\Users\muser\Documents\django>cd .\djano_store\ The system cannot find the path specified. C:\Users\muser\Documents\django>mkdir django_store A subdirectory or file django_store already exists. C:\Users\muser\Documents\django>cd django_store C:\Users\muser\Documents\django\django_store>pipenv install django Creating a virtualenv for this project... Pipfile: C:\Users\muser\Documents\django\django_store\Pipfile Using C:/Users/muser/AppData/Local/Programs/Python/Python38/python.exe (3.8.5) t o create virtualenv... [= ] Creating virtual environment...created virtual environment CPython3.8.5.f inal.0-64 in 31547ms creator CPython3Windows(dest=C:\Users\muser\.virtualenvs\django_store-oT8bnwMO , 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\muser\AppData\Local\pypa\virtualenv) added seed packages: pip==22.1.1, setuptools==62.3.2, wheel==0.37.1 activators BashActivator,BatchActivator,FishActivator,NushellActivator,PowerSh ellActivator,PythonActivator Successfully created virtual environment! Virtualenv location: C:\Users\muser\.virtualenvs\django_store-oT8bnwMO Creating a Pipfile for this project... Installing django... Adding django to Pipfile's [packages]... Installation Succeeded Pipfile.lock not found, creating... Locking [dev-packages] dependencies... Locking [packages] dependencies... Building requirements... Resolving dependencies... Success! Updated Pipfile.lock (a6086c)! Installing dependencies from Pipfile.lock (a6086c)... ================================ 0/0 - 00:00:00 To activate this project's virtualenv, run pipenv shell. Alternatively, run a command inside the virtualenv with pipenv run. C:\Users\muser\Documents\django\django_store>pipenv shell Launching subshell in virtual environment... Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. (django_store-oT8bnwMO) C:\Users\muser\Documents\django\django_store>claer 'claer' is not recognized as an internal or external command, operable program or batch file. (django_store-oT8bnwMO) C:\Users\muser\Documents\django\django_store>clear 'clear' is not recognized as an internal or external command, operable program or batch file. (django_store-oT8bnwMO) C:\Users\muser\Documents\django\django_store>clear 'clear' is not recognized as an internal or external command, operable program or batch file. (django_store-oT8bnwMO) C:\Users\muser\Documents\django\django_store>CLEAR 'CLEAR' is not recognized as an internal or external command, operable program or batch file. (django_store-oT8bnwMO) C:\Users\muser\Documents\django\django_store>Clear 'Clear' is not recognized as an internal or external command, operable program or batch file. (django_store-oT8bnwMO) C:\Users\muser\Documents\django\django_store>django_admi n startproject django_store. 'django_admin' is not recognized as an internal or external command, operable program or batch file. (django_store-oT8bnwMO) C:\Users\muser\Documents\django\django_store>django-admi n startproject djang_store. CommandError: 'djang_store.' is not a valid project name. Please make sure the n ame is a valid identifier. (django_store-oT8bnwMO) C:\Users\muser\Documents\django\django_store>python.exe .\manage.py runserver C:\Users\muser\AppData\Local\Programs\Python\Python38\python.exe: can't open fil e '.\manage.py': [Errno 2] No such file or directory (django_store-oT8bnwMO) C:\Users\muser\Documents\django\django_store>python.exe .\manage.py runserver C:\Users\muser\AppData\Local\Programs\Python\Python38\python.exe: can't open fil e '.\manage.py': [Errno 2] No such file or directory (django_store-oT8bnwMO) C:\Users\muser\Documents\django\django_store>python mana ge.py runserver C:\Users\muser\AppData\Local\Programs\Python\Python38\python.exe: can't open fil e 'manage.py': [Errno 2] No such file or directory (django_store-oT8bnwMO) C:\Users\muser\Documents\django\django_store> اقتباس
0 محمد حجي2 نشر 1 يوليو 2022 أرسل تقرير نشر 1 يوليو 2022 (معدل) سنقوم بالخطوات التالية: أمر إنشاء virtual environment venv: python -m venv venv ثم أمر الدخول على venv: venv\scripts\activate بعدها يجب أن يظهر شكل التالي: تأكد أن علامة (venv) ظاهرة. بعدها الأن ستقوم بتنزيل الجانقو هنا كتالي: py -m pip install Django الأن قم بفحص وتأكد من عملية التحميل: سيظهر لك إصدار Django py -m django --version والأن سنقوم بإنشاء مشروع جديد جانقو: قم بتسمية المشروع كما تريد هنا مثال mysite: django-admin startproject mysite و اخيرا جرب تشغيل السيرفر: py manage.py runserver و الدخول للموقع أو مشروع عبر الرابط الذي سيظهر في CMD بعد تنفيذ الأمر وهو http://localhost:8000/ مقالة قد تساعدك أكثر. تم التعديل في 1 يوليو 2022 بواسطة محمد حجي2 اقتباس
السؤال
عبدالله عباس5
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\muser>cd docments
The system cannot find the path specified.
C:\Users\muser>Documents
'Documents' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\muser>cd Documents
C:\Users\muser\Documents>cd django
C:\Users\muser\Documents\django>mkdir django_store
C:\Users\muser\Documents\django>cd .\djano_store
The system cannot find the path specified.
C:\Users\muser\Documents\django>cd .\djano_store\
The system cannot find the path specified.
C:\Users\muser\Documents\django>mkdir django_store
A subdirectory or file django_store already exists.
C:\Users\muser\Documents\django>cd django_store
C:\Users\muser\Documents\django\django_store>pipenv install django
Creating a virtualenv for this project...
Pipfile: C:\Users\muser\Documents\django\django_store\Pipfile
Using C:/Users/muser/AppData/Local/Programs/Python/Python38/python.exe (3.8.5) t
o create virtualenv...
[= ] Creating virtual environment...created virtual environment CPython3.8.5.f
inal.0-64 in 31547ms
creator CPython3Windows(dest=C:\Users\muser\.virtualenvs\django_store-oT8bnwMO
, 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\muser\AppData\Local\pypa\virtualenv)
added seed packages: pip==22.1.1, setuptools==62.3.2, wheel==0.37.1
activators BashActivator,BatchActivator,FishActivator,NushellActivator,PowerSh
ellActivator,PythonActivator
Successfully created virtual environment!
Virtualenv location: C:\Users\muser\.virtualenvs\django_store-oT8bnwMO
Creating a Pipfile for this project...
Installing django...
Adding django to Pipfile's [packages]...
Installation Succeeded
Pipfile.lock not found, creating...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
Success!
Updated Pipfile.lock (a6086c)!
Installing dependencies from Pipfile.lock (a6086c)...
================================ 0/0 - 00:00:00
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
C:\Users\muser\Documents\django\django_store>pipenv shell
Launching subshell in virtual environment...
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
(django_store-oT8bnwMO) C:\Users\muser\Documents\django\django_store>claer
'claer' is not recognized as an internal or external command,
operable program or batch file.
(django_store-oT8bnwMO) C:\Users\muser\Documents\django\django_store>clear
'clear' is not recognized as an internal or external command,
operable program or batch file.
(django_store-oT8bnwMO) C:\Users\muser\Documents\django\django_store>clear
'clear' is not recognized as an internal or external command,
operable program or batch file.
(django_store-oT8bnwMO) C:\Users\muser\Documents\django\django_store>CLEAR
'CLEAR' is not recognized as an internal or external command,
operable program or batch file.
(django_store-oT8bnwMO) C:\Users\muser\Documents\django\django_store>Clear
'Clear' is not recognized as an internal or external command,
operable program or batch file.
(django_store-oT8bnwMO) C:\Users\muser\Documents\django\django_store>django_admi
n startproject django_store.
'django_admin' is not recognized as an internal or external command,
operable program or batch file.
(django_store-oT8bnwMO) C:\Users\muser\Documents\django\django_store>django-admi
n startproject djang_store.
CommandError: 'djang_store.' is not a valid project name. Please make sure the n
ame is a valid identifier.
(django_store-oT8bnwMO) C:\Users\muser\Documents\django\django_store>python.exe
.\manage.py runserver
C:\Users\muser\AppData\Local\Programs\Python\Python38\python.exe: can't open fil
e '.\manage.py': [Errno 2] No such file or directory
(django_store-oT8bnwMO) C:\Users\muser\Documents\django\django_store>python.exe
.\manage.py runserver
C:\Users\muser\AppData\Local\Programs\Python\Python38\python.exe: can't open fil
e '.\manage.py': [Errno 2] No such file or directory
(django_store-oT8bnwMO) C:\Users\muser\Documents\django\django_store>python mana
ge.py runserver
C:\Users\muser\AppData\Local\Programs\Python\Python38\python.exe: can't open fil
e 'manage.py': [Errno 2] No such file or directory
(django_store-oT8bnwMO) C:\Users\muser\Documents\django\django_store>
1 جواب على هذا السؤال
Recommended Posts
انضم إلى النقاش
يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.