python -m venv venv
source venv/Scripts/activate
deactivate
pip freeze > requirements.txt
pip install -r requirements.txt
----------------------------------------------
pip install django==3.2.18
----------------------------------------------
pip install ipython
pip install django-extensions
INSTALLED_APPS = [
'django_extensions',
...,
]
----------------------------------------------
django-admin startproject mypjt(프로젝트 명)
python manage.py startapp articles(app 명)
python manage.py runserver
python manage.py createsuperuser
----------------------------------------------
python manage.py shell
python manage.py shell_plus
----------------------------------------------
python manage.py makemigrations
python manage.py migrate
----------------------------------------------
Article.objects.all()
-----------------------------------------------
asgiref==3.6.0
asttokens==2.2.1
backcall==0.2.0
colorama==0.4.6
decorator==5.1.1
Django==3.2.18
django-extensions==3.2.1
executing==1.2.0
ipython==8.11.0
jedi==0.18.2
matplotlib-inline==0.1.6
parso==0.8.3
pickleshare==0.7.5
Pillow==9.4.0
prompt-toolkit==3.0.38
pure-eval==0.2.2
Pygments==2.14.0
pytz==2022.7.1
six==1.16.0
sqlparse==0.4.3
stack-data==0.6.2
traitlets==5.9.0
wcwidth==0.2.6