본문 바로가기
728x90

Programing/Python-Django4

[Python] 1-4. Python Django Project APP Creation - Hello World!! (장고 프로젝트 Hello Word 띄우기) 1. python manage.py startapp 2. Modify code and add new code as below. Basically we’re saying whenever the view function homePageView is called, return the text “Hello, World!” More specifically, we’ve imported the built-in HttpResponse method so we can return a response object to the user. Our function homePageView accepts the request object and returns a response with the string Hello, World! .. 2018. 9. 19.
[Python] 1-3. Python Django Project Creation - 장고 프로젝트 만들기 1. Win+R > CMD > Ok 2. django-admin startproject After moving to directory you want to make project, create Django project. (프로젝트를 만들고자 하는 폴더로 이동 후 Django 프로젝트 생성) 3. python manage.py runserver Start Django Server (장고 서버 실행) 4. Web Browser (IE, chrome, firefox, safari, opera etc.) - "127.0.0.1:8000 or localhost:8000" - 127.0.0.1 : My Computer's localhost - 8000 : 8000 Port 5. Stop Django Server .. 2018. 9. 19.
[Python] 1-2. Python Django Install - 장고 설치하기 Win + RCMD$pip install django C:\>pip install django Collecting django Downloading https://files.pythonhosted.org/packages/ca/7e/fc068d164b32552ae3a8f8d5d0280c083f2e8d553e71ecacc21927564561/Django-2.1.1-py3-none-any.whl (7.3MB) 100% |████████████████████████████████| 7.3MB 1.6MB/s Collecting pytz (from django) Downloading https://files.pythonhosted.org/packages/30/4e/27c34b62430286c6d59177a0842e.. 2018. 9. 19.
[Python] 1-1. Python install - 파이썬 설치하기 https://www.python.org/downloads/ Download Python Install Python ** Add Python 3.7 to PATH Check status #Python #파이썬 2018. 9. 19.
728x90