mkdir myProj

cd myProj

python -m venv myvenv (리눅스 : source python -m venv myvenv)

myvenv\Scripts\activate

pip install django

django-admin startproject mysite .        (프로젝트생성)

python manage.py startapp community        (프로젝트 내부의 하위 카테고리)

python manage.py migrate                (변경사항을 db 에 반영)

python manage.py createsuperuser

python manage.py runserver



=============================

manage.py

makemigrations app - app 의 모델변경사항 체크


'django' 카테고리의 다른 글

서버실행  (1) 2017.06.23
url 정규표현식  (0) 2017.03.01
페이지 추가  (0) 2017.03.01

+ Recent posts