install & tutorial - pai-plznw4me/django-initializer GitHub Wiki
django ์์ debug ์๋ฒ์์ ์ธ๋ถ ์์ดํผ๋ก ์ ๊ทผ์ ๋ณ๊ฒฝํด์ผ ํ ๊ฒ๋ค
install
1. IDE ์ค์น(Pycharm)
- Pycharm pro ์ค์น๋ฅผ ๊ถ์ฅํจ (pro version ์ด ๋์ด์ผ javascript, djagno html template ์ง์)
2. anaconda ์ค์น
- anaconda ์ต์ ๋ฒ์ ์ ์ค์น
3. Pycharm ์ค์
- git repository ์์ repository ๋ค์ด๋ก๋
- token issue ์๊ธธ์ [์๋ ๋งํฌ ์ฐธ์กฐ]()
- anaconda interpreter setting
- django ์ค์น
pip install django
- edit configuration ์ ํ
Run -> Edit Configurations
4. ํ๋ก์ ํธ ์์ฑ ๋ฐ ์ ํ
{ํ๋ก์ ํธํด๋}/settings.py
์์ ์๋ ๋ณ๊ฒฝํ๊ธฐ
- ์ธ๋ถ ์์ดํผ ์ ๊ทผ ํ์ฉ
DEBUG = False
ALLOWED_HOSTS = ['*']
- ์๋ฒ ์คํ
python manage.py runserver 0.0.0.0:8000