본문 바로가기
반응형

Python14

장고 웹서버 백그라운드 실행 장고 웹서버 백그라운드 실행 우선 서버를 실행시킵니다. control + Z를 통해 해당 프로그램을 정지합니다. [8]+ Stopped python3 manage.py runserver 0.0.0.0:8000 --settings=config.settings.deploy 아래 명령어를 통해 프로그램을 백그라운드로 보냅니다. bg 아래 명령어를 통해 ssh 연결이 끊어져도 해당 프로세스가 돌아가도록 합니다. disown -h 실행중인 프로세스를 확인하면 존재하는 것을 알 수 있습니다. ps -l 장고 웹서버 백그라운드 실행 1. 우선 서버를 실행시킵니다. 2. control + Z를 통해 해당 프로그램을 정지합니다. [8]+ Stopped python3 manage.py runserver 0.0.0.0:80.. 2021. 3. 7.
파이썬 가상환경 설정 (아주 간단해요) 파이썬 가상환경 설정 파이썬 가상환경 설정은 아주 간단하게 할 수 있습니다. 가상환경을 설정한 후에 작업을 하는게 훨씬 안정적으로 편리하게 이용할 수 있습니다. 아래의 에는 Mac에서 파이썬 가상환경을 설정하는 방법입니다. # 현재 폴더는 startprojecct 폴더입니다. (manage.py 가 있는 폴더) $ brew install pyenv # or pip install pyenv $ pyenv install python3 $ pyenv virtualenv python3 [가상환경이름] # 활성화 $ source ~/[가상환경이름]/bin/activate # 비활성화 $ deactivate # 가상환경 제거 $ rm -r /경로명 다른 방법도 있습니다. $ python -m venv venvapp.. 2021. 3. 2.
python 가이드 자동생성 Documentation To build the documentation, you'll need to install mkdocs. $ pip install mkdocs To preview the documentation: $ mkdocs serve Running at: http://127.0.0.1:8000/ To build the documentation: $ mkdocs build 2021. 2. 27.
python django Testing Install testing requirements.$ pip install -r requirements.txt Run with runtests. $ ./runtests.py You can also use the excellent tox testing tool to run the tests against all supported versions of Python and Django. Install tox globally, and then simply run: $ tox 2021. 2. 27.
vscode에서 파이썬 인터프리터 설정 vscode에서 파이썬 인터프리터 설정 Visual Studio Code로 파이썬 작업을 하게 되면 실행과 디버깅을 해야할 때 정의 해주어야 하는 것이 있습니다. 바로 파이썬 경로 입니다. 파이썬 설치는 다들 쉽게 하셨겠습니다만 Visual Studio Code에서 작업을 하려면 뭔가 부족한 느낌이 듭니다. 뭔가 잊어버리고 작업을 하는 것 같지요. 제 경우는 PyCharm과 Anaconda 모두를 설치하여 사용하고 있습니다. 그래서 별 생각을 하지 않았는데 vscode에서는 설정이 필요하다는 것을 알았습니다. 제가 사용하는 환경은 Mac OSX에서 Visual Studio Code 이니까 이 환경에서 설명을 드리겠습니다. 파이썬 실행과 디버깅을 위해서 파이썬 인터프리터라는 것을 설정하게 됩니다. vsco.. 2021. 2. 8.
Delphi vs. Python Delphi vs. Python http://vschart.com/compare/delphi-programming-language/vs/python-programming-language Delphi Python Delphi (Pascal based programming language) Python Category Programming Language Programming Language Preference 49% votesvotes 51% votesvotes✏ Website www.​embarcadero.​com/​products/​delphi www.​python.​org License Commercial, Community Edition - Free Python Software Foundation .. 2020. 3. 10.
반응형