본문 바로가기

분류 전체보기

(298)
RStudio 시작하기 프로젝트 만들기 file -> new project -> new directory -> new project 스크립트 실행하기 script에 한줄 단위로 작성하고 ctrl + enter 작성하면 한줄씩 실행된다 한번에 실행하고 싶다면 ctrl + alt + r 주석은 ctrl + shift + c console 창 지울땐 ctrl + L 저장 script 내용을 저장하면 R 확장자로 저장된다. (예시에서는 ex1 이라는 임의의 명칭으로 저장했다) 끄고 다시 키면 .Rhistory가 저장된다.
R, RStudio 설치 및 설정 r-project.org https://www.r-project.org/ R 과정 생략, 설치 https://cran.seoul.go.kr/ RStudio https://www.rstudio.com/ RStudio 과정 생략 설치 https://www.rstudio.com/products/rstudio/download/#download RStudio 관리자 권한 자바 설치하면서 했었다고 한다 만약을 대비하여 작성 자바 기반 R관련 package 를 사용하기 위한 설정 >Sys.setenv(JAVA_HOME="c:/program files/java/jre~") >Sys.getenv() 속성 -> 호환성 설정 변경
django11 - ajax, db Anaconda Prompt properties 참고하여 경로이동 python manage.py inspectdb > aa.py 생성된 aa.py에서 Sangdata 복사 후 models.py에 복사 settings.py """ Django settings for django11_ajax_db project. Generated by 'django-admin startproject' using Django 4.1.2. For more information on this file, see https://docs.djangoproject.com/en/4.1/topics/settings/ For the full list of settings and their values, see https://docs.djan..
django10 - ajax urls.py from django.contrib import admin from django.urls import path from myapp import views urlpatterns = [ path("admin/", admin.site.urls), path('', views.indexFunc), path('startajax', views.Func1), path('goajax', views.Func2), ] views.py from django.shortcuts import render import time import json from django.http.response import HttpResponseRedirect, HttpResponse # Create your views here. la..
ajax - 미완성 박영권 선생님 카페 ajax https://cafe.daum.net/flowlife/HqLj/37
고객 정보 찾기 예제 예제 설명 및 예시 고객 정보는 데이터 베이스에 입력된 상황에서 진행한다 성별에 따라 남자 이미지 또는 여자 이미지 출력
django9 - DB, 게시판, 댓글 게시판 예시 DB models.py from django.db import models # Create your models here. class BoardTab(models.Model): name = models.CharField(max_length = 20) passwd = models.CharField(max_length = 20) mail = models.CharField(max_length = 30) title = models.CharField(max_length = 100) cont = models.TextField() bip = models.GenericIPAddressField() bdate = models.DateTimeField() readcnt = models.IntegerField(..
django project 과정 정리 과정 요약 project 틀 프로젝트 생성 application 생성 templates 폴더 만들기 settings 수정 - INSTALLED_APPS, DATABASES, LANGUAGE_CODE,TIME_ZONE models models 작성 migrations - app이름 입력 (databases를 사용하지 않는다면 생략) migrate mariadb prompt에서 사용하는 DB로 접속 접속 후 show tables, desc 테이블명 으로 테이블이 잘 만들어 졌는지 확인 adimin 작성 - (관리자 화면이 필요할 때만 작성) Anaconda Prompt 에서 경로이동 - (우클릭 properties로 확인하는 것이 빠르다) 계정생성 - python manage.py createsuperuse..