
settings.py 를 살펴보면 많은 것들이 구현되어있다. 또한 Document의 URL이 주석으로 달려있다. settings.py에서 모르는게 있다면 CTRL + Click 을 하면 해당 URL로 이동하여 Document를 살펴볼 수 있다. 지금 수정할 부분은 마지막에 TIME_ZONE 을 UTC 대신 Asia/Seoul로 바꿔주자 가상환경 terminal에서 python manage.py runserver 를 입력하면 You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions. 그리고 조금 더..

장고가 설치된 상태에서 혹시라도 가상환경에서 빠져나와있다면 pipenv shell 명령어로 다시 돌아가야한다. 그리고 Django-admin 을 입력하면 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 같은 명령어들이 나타나게..
Window10 Python3 Code Editor : VS Code pip install pipenv 이후 프로젝트 폴더를 생성하자 md DjangoProject 해당 폴더로 이동한 후 cd DjangoProject pipenv --python 3.7 (pipenv --three) 를 입력하면 Successfully created virtual environment! 라는 문구가 뜰것이다 그 상태에서 code 라고 치면 VS Code에서 해당 폴더를 열어준다 Ctrl + ` 단축키를 눌러서 terminal을 열어주자 bash가 아닌 cmd창에서 pipenv shell 이라고 친다 그러면 virtual 환경에서 실행하게 될 것이다. 그 다음 pipenv install Django==2.2.5 를 치면 장..