Python/Django (2) 썸네일형 리스트형 django 시작 (startproject, startapp) django project 시작하기 1. project 이름의 디렉토리 생성 2. project 생성 (#django-admin startproject config .) 3. app 생성 (#python manage.py startapp app1) ==> 나중에 해도 된다. PROJECT1 디렉토리를 생성한 후 django-admin startproject config . 명령어를 입력하면 사진과 같이 생성된다. 여기서 주로 설정하는 파일은 settings.py, urls.py 이다. manage.py 파일은 django 명령어를 입력할 때 주로 사용한다. settings.py 는 django에서 사용할 app, static 위치, media 위치 등등 django의 설정을 관리하는 파일이다. urls... Django 기본 명령어 Django에서 사용할 수 있는 기본 명령어 django 프로젝트를 시작하면 manage.py 파일이 생성이 된다. 이 파일을 이용하여 django command를 사용할 수 있다. (ex: python manage.py createsuperuser) 아래에 정리한 내용 중 사용빈도는 주관적인 내용이므로 참고 (별 1~5로 표현) 명령어 List Available subcommands: [auth] changepassword createsuperuser [contenttypes] remove_stale_contenttypes [django] check compilemessages createcachetable dbshell diffsettings dumpdata flush inspectdb loaddat.. 이전 1 다음