전체 글 (1854) 썸네일형 리스트형 [Django]Survey WEB Application Tutorial 2 1. Setting.py 데이터베이스 확인 ''' mysite/settings.py ''' DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } } 1-1. 관련된 명령어 # 데이터베이스에 변경 필요 사항 추출 python manage.py makemigrations # 데이터베이스에 변경사항 반영 python manage.py migrate 1-2. DBdb.sqlite3 2. TimeZone 설정 ''' mysite/settings.py ''' TIME_ZONE = 'Asia/Seoul' 3. 언어 설정 LANGUAGE_CODE = 'ko-kr' 4... [Django]Survey WEB Application Tutorial 1 1. 가상 환경 생성 python -m venv venv 2. Django 설치 pip install django 3. Django Ver 확인 py -m django --version 4. 프로젝트 만들기 4-1. 기본 명령어 django-admin startproject name [directory] 4-2. 현재 폴더에 프로젝트 만들기 django-admin startproject mysite . 4-3. mysite 폴더 생성 후 프로젝트 만들기 django-admin startproject mysite 5. 프로젝트 생성 확인 mysite/ manage.py mysite/ __init__.py settings.py urls.py asgi.py wsgi.py mysite/ 프로젝트의 컨테이너 ma.. db.sqlite3 db.sqlite3> SQLite3 데이터베이스 파일 DB 관련 명령어> 1. 데이터베이스에 변경 필요 사항 추출 python manage.py makemigrations 2. 데이터베이스에 변경사항 반영 python manage.py migrate Acceptable Password VI Quiz> In this mission you need to create a password verification function. Those are the verification conditions: the length should be bigger than 6; should contain at least one digit, but it cannot consist of just digits; having numbers or containing just numbers does not apply to the password longer than 9. a string should not contain the word "password" in any case; should contain 3 different.. Acceptable Password V Quiz> In this mission you need to create a password verification function. Those are the verification conditions: the length should be bigger than 6; should contain at least one digit, but it cannot consist of just digits; having numbers or containing just numbers does not apply to the password longer than 9. a string should not contain the word "password" in any case. Input: A string. Output: A.. Acceptable Password IV Quiz> In this mission you need to create a password verification function. Those are the verification conditions: the length should be bigger than 6; should contain at least one digit, but it cannot consist of just digits; having numbers or containing just numbers does not apply to the password longer than 9. Input: A string. Output: A bool. Example: is_acceptable_password('short') == False is_a.. Acceptable Password III Quiz> In this mission you need to create a password verification function. Those are the verification conditions: the length should be bigger than 6; should contain at least one digit, but cannot consist of just digits. Input: A string. Output: A bool. Example: is_acceptable_password('short') == False is_acceptable_password('muchlonger') == False is_acceptable_password('ashort') == False is_acce.. Acceptable Password II Quiz> In this mission you need to create a password verification function. Those are the verification conditions: the length should be bigger than 6; should contain at least one digit. Input: A string. Output: A bool. Example: is_acceptable_password('short') == False is_acceptable_password('muchlonger') == False is_acceptable_password('ashort') == False is_acceptable_password('muchlonger5') == T.. 이전 1 ··· 122 123 124 125 126 127 128 ··· 232 다음