oracle 8

스프린트2_Day02_230327 진행현황

1. 홈페이지 이름 정하기 2. 팀명 정하기 3. 서기 정하기 기존에 작성했던 내용을 참고하여 진행함. https://yunn24.tistory.com/entry/%EC%9B%B9-%EC%84%9C%EB%B2%84-%EA%B5%AC%EC%B6%95%ED%95%98%EA%B8%B0%EA%B0%80%EC%83%81%ED%99%98%EA%B2%BD-%EB%A7%8C%EB%93%A4%EA%B8%B0%EA%B8%B0%EB%B3%B8-%EB%AA%85%EB%A0%B9%EC%96%B4 웹 서버 구축하기_가상환경 만들기_기본 명령어 230309 Python, Anaconda, Django Visual Studio Code, 명령 프롬프트(cmd) 활용 웹 서버 구축하기, 가상환경 만들기_기본 명령어_230309 강의 ..

nonmodelapp - 로그인, 로그아웃, templates 작성하기

- 아이디와 비밀번호를 입력한 후 [로그인] 버튼을 클릭하면, - 아이디와 비밀번호를 이용해서 DB 조회 - 조회 결과가 있으면 로그인 "성공" 메세지를 --> 조회 결과가 없으면 로그인 "실패" 메세지를 - login_session.html 페이지에 출력하기 - views.py 함수 이름: loginForm() - URL 패턴: login_form - views.py 함수 이름: loginCheck() - URL 패턴: login_session DB 처리 - 로그인 확인 함수: getLogin() nonmodelapp > views.py from django.shortcuts import render # Create your views here. from django.http import HttpRes..

Django 2023.03.23

model을 사용하지 않고 만들어보기-nonmodelapp 생성, 회원 정보 페이지 및 상세 페이지 만들기

* nonmodelapp 생성하기 > django-admin startapp nonmodelapp * config / settings.py에 app 이름 등록하기 - DBRouter는 사용 안 함 * config / urls.py에 include app 추가하기 * 서버 실행 > python manage.py runserver * nonmodelapp 폴더 안에 model_db 폴더 생성 * model_db 폴더 안에 member 폴더 생성 * member 폴더 안에 member.py 파일 생성 -> nonmodelapp/model_db/member/member.py * Jupyter Notebook 실행 * oracle_test.ipynb -> 주석 추가, (코드 수정, 추가) * member.py 작..

Django 2023.03.22

상세 페이지/목록 확인하기, 장바구니 수정/삭제/추가하기

* 상세 페이지에서 [목록 보기] 처리하기 - [목록 보기] 버튼 생성하기 - 버튼이 클릭되면 리스트(목록) 페이지로 가기 --> location.href = "리스트 페이지"; 또는 --> history.go(-1); cart_list.html 장바구니(주문) 정보 목록 주문번호 회원아이디 상품코드 주문수량 {% for cart in cart_list %} {{cart.cart_no}} {{cart.cart_member}} {{cart.cart_prod}} {{cart.cart_qty}} {% endfor %} * 상세 페이지에서 [수정하기] 처리하기 - [수정하기] 버튼 생성하기 - 버튼 클릭하면 함수 호출: goUpdateForm() - alert() 띄워서 함수 호출 확인하기 - cart_view..

Django 2023.03.20

oracleapp 생성, SQL DB 불러오기, class, table 생성

[ 요약 ] 1. oracleapp 생성 2. router.py 추가 3. models.py에 Cart 클래스 생성 4. views.py에서 models.Cart 호출 - 전체 조회 Cart.objects.all() 5. 특정 app의 모델과 실제 DB와 연결하기 - 명령 순서 (오류가 많이 발생하는 부분..) - 특정 app의 모델이 변경(수정/삭제/추가)되면 아래 수행 > python manage.py makemigrations oracleapp > python manage.py migrate 6. oracleapp에 templates\oracleapp\cart 폴더 생성 - cart_list.html 생성 7. view.py cartList() 함수에서 render() 생성 - html 페이지 호출..

SQL, Oracle DB 활용하여 Table 생성 및 데이터 조회하기, Jupyter Notebook에서 import cx_Oracle

sc delete OracleServiceXE mysql - u root -p create user 'root'@'%' Identified By 'root'; grant all privileges On *.* To 'root'@'%' with grant option;-- 주석 -- 테이블명: TestTable -- 컬럼명: id, 타입 varchar2, 사이즈 15, pk, null 허용 안 함 -- : pw, 타입 varchar2, 사이즈 20, null 허용 안 함 -- : name, 타입 varchar2, 사이즈 20, null 허용Create Table TestTable ( -- null 허용 안 함 -> not null 로 쓰기 id varchar2(15) not null, pw varchar2..

Oracle Database 21c Express Edition 설치 오류 및 해결 과정

230314 1. Oracle 11g xe 삭제 - python 3.8 이상에서는 지원되지 않는다. 2. Oracle 21c xe 다운로드 https://www.oracle.com/kr/database/technologies/xe-downloads.html Oracle Database Express Edition (XE) Downloads | Oracle 대한민국 Support Oracle Database Express Edition (XE) is a community supported edition of the Oracle Database family. Please go to the Oracle Database XE Community Support Forum for help, feedback, and ..

Oracle, Mysql 설치 및 진행

230314 1. Oracle 11g xe 삭제 - python 3.8 이상에서는 지원 안 됨. 2. Oracle 21c xe 다운로드 https://www.oracle.com/kr/database/technologies/xe-downloads.html Oracle Database Express Edition (XE) Downloads | Oracle 대한민국 Support Oracle Database Express Edition (XE) is a community supported edition of the Oracle Database family. Please go to the Oracle Database XE Community Support Forum for help, feedback, and en..