INTRO model의 field를 추가하거나 수정 시 DB schema 변경으로 발생하는 migrte 이슈 테스트 시 생성했던 model의 DB의 filed 이름, 종류, 속성, 수량(추가 또는 제거)이 변경될 때 발생 You have 1 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): [YourApp] Run 'python manage.py migrate' to apply them. - 개발서버 127.0.0.1:8000/admin 에서 DB 내용을 지운다 - admin.py, views.py, urls.py, forms.py 등에서 선언했던 import를 포함 주석처..
INTRO Django model db를 csv로 내보내기(db to csv export) DB Browser SQLite를 통해 csv export(csv 내보내기)도 가능 csv to django model db view request 기반 model manager(model.object.create)를 이용 DB 생성하고자하는 app의 views.py를 이용 : ORM path 용이 views.py from django.shortcuts import render from [Your-App].models import [model_name] from .data.db_to_csv_run import db_to_csv # Create your views here. def test_db_to_csv(requ..
INTRO Django model 생성 후 다수 DB를 생성할 때 csv를 이용하면 수월하다 DB Browser SQLite를 통해 csv export(csv 내보내기)도 가능 view request 기반 model manager(model.object.create)를 이용 DB 생성하고자하는 app의 views.py를 이용 : ORM path 용이 views.py from django.shortcuts import render from [Your-App].models import [model_name] from .data.csv_to_db_run import csv_to_db # Create your views here. def test_csv_to_db(request): csv_to_db([model..
INTRO Python 3.10.0 Django 3.2.8 table/charts 적용 후 미리보기 - localhost:8000/home/ship_status/ : sidebar 출하현황 클릭 이동 - localhost:8000/home/ship_status/ : 크게보기 --the end-- -----python coding----------------------------------------------------------------------------------- 링크 생성 및 수정 templates/base/sidebar.html .... .... Reports 출하현황 매출현황 수주현황 Persona Menu Test_List charts_chartjs2.8 chart_bar_chartjs..
INTRO Python 3.10.0 Django 3.2.8 charts 적용 후 미리보기 - localhost:8000/charts_chartjs28/ : chartjs2.8 version, sidebar 클릭이동 - localhost:8000/charts_chartjs36/ : chartjs3.6 version, sidebar 클릭이동 --the end-- -----python coding----------------------------------------------------------------------------------- test 폴더 생성하기 : django-erp/charts/ - charts/views.py 파일 생성 config/urls.py """Major config URL C..
INTRO Python 3.10.0 Django 3.2.8 - Login template 위치 수정 : sidebar.html -> topbar.html - templates/sidebar.html : 부분 제거 .... Logged in as: {{ user.username }} .... - templates/topbar.html : Navbar dropdown toggle 메뉴 부분 수정 .... Settings Log-Out '{{ user.username }}'님 환영합니다. .... sales/customer 적용 후 미리보기 - localhost:8000/sales/customer 고객관리 옆 글쓰기 클릭 : localhost:8000/sales/customer_new 2번 공지사항 제목 클릭..
INTRO Python 3.10.0 Django 3.2.8 적용 후 미리보기 - localhost:8000 : 대문, welcome -> login으로 사용 - localhost:8000/accounts/login : login으로 사용 - localhost:8000/accounts/signup : 회원가입으로 사용 --> localhost:8000/home/ : 로그인 후 or 회원가입/로그인 후 --the end-- -----python coding----------------------------------------------------------------------------------- #참고 : from django.contrib.auth import views as auth_views 사..
INTRO Python 3.10.0 Django 3.2.8 1. base_log.html을 이용한 persona-erp.html, register.html, password.html 단순화 2. temlates/base/base.html을 이용한 home/notice 통합 home/views.py from django.shortcuts import render, redirect from django.contrib import auth from django.contrib.auth.models import User from django.contrib.auth import authenticate from django.contrib.auth.decorators import login_required from h..
- Total
- Today
- Yesterday
- server
- Regression
- Django
- pyserial
- analysis
- 코로나19
- Templates
- Model
- 라즈베리파이
- CSV
- Pandas
- Raspberry Pi
- git
- COVID-19
- SSH
- arduino
- template
- DAQ
- ERP
- raspberrypi
- 코로나
- 확진
- 자가격리
- github
- Python
- MacOS
- r
- vscode
- sublime text
- DS18B20
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |